/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    font-size: 1rem; /* 16px base */
}

/* Mobile-first container with relative units */
.container {
    width: 100%;
    max-width: 75rem; /* 1200px equivalent */
    margin: 0 auto;
    padding: 0 1.25rem; /* 20px equivalent */
}

/* Navigation - Mobile First */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 2.5rem; /* 40px equivalent */
    width: auto;
    max-width: 12.5rem; /* 200px equivalent */
    object-fit: contain;
}

/* Mobile navigation menu - hidden by default */
.nav-menu {
    display: none; /* Hidden on mobile */
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link.active {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -0.3125rem; /* -5px equivalent */
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger menu - visible on mobile */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 1.5625rem; /* 25px equivalent */
    height: 0.1875rem; /* 3px equivalent */
    background-color: #333;
    margin: 0.1875rem 0; /* 3px equivalent */
    transition: 0.3s;
}

/* Mobile Navigation Styles */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4.375rem; /* 70px equivalent */
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 0.625rem 1.6875rem rgba(0, 0, 0, 0.05);
        padding: 0.25rem 0; /* Reduced padding for tighter spacing */
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        display: flex; /* Show flex on mobile */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.125rem 0; /* Reduced spacing between menu items */
    }

    .nav-link {
        display: block;
        padding: 0.375rem 1rem; /* Reduced padding for tighter spacing */
        font-size: 1.125rem; /* 18px equivalent */
    }

    .nav-link::after {
        display: none; /* Hide underline on mobile */
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(0.5rem) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-0.5rem) rotate(-45deg);
    }
}

/* Hero Section - Mobile First */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0; /* Added padding for mobile */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column; /* Mobile: single column */
    gap: 2rem;
    align-items: center;
    text-align: center; /* Mobile: center text */
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem; /* Mobile: smaller font */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.125rem; /* 18px equivalent */
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Mobile: stacked buttons */
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.875rem; /* 12px 30px equivalent */
    border-radius: 3.125rem; /* 50px equivalent */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%; /* Mobile: full width */
    max-width: 15rem; /* 240px max width */
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 0.625rem 1.5625rem rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.6s both;
    width: 100%;
}

.hero-shape {
    width: 18.75rem; /* 300px equivalent */
    height: 18.75rem;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-shape::before {
    content: '';
    position: absolute;
    top: 1.25rem; /* 20px equivalent */
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Products Section - Mobile First */
.products {
    padding: 4rem 0; /* 64px equivalent */
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem; /* 48px equivalent */
}

.section-header h2 {
    font-size: 2rem; /* Mobile: smaller font */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem; /* 18px equivalent */
    color: #64748b;
    max-width: 37.5rem; /* 600px equivalent */
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: single column */
    gap: 1.5rem; /* 24px equivalent */
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

.product-card {
    background: white;
    padding: 1.5rem; /* Mobile: smaller padding */
    border-radius: 1.25rem; /* 20px equivalent */
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-0.625rem); /* -10px equivalent */
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 12rem; /* 192px equivalent - fixed height for consistency */
    border-radius: 0.9375rem; /* 15px equivalent */
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    pointer-events: none;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    transition: all 0.3s ease;
    display: block;
    background: #f8f9fa;
}

.product-card:hover .product-img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.product-card:hover .product-image {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.product-card h3 {
    font-size: 1.25rem; /* 20px equivalent */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.product-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.product-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
    font-size: 1rem;
}

.product-link:hover {
    gap: 1rem;
}

/* About Section - Mobile First */
.about {
    padding: 4rem 0;
    background: white;
}

.about-content {
    display: flex;
    flex-direction: column; /* Mobile: single column */
    gap: 2rem;
    align-items: center;
}

.about-text {
    width: 100%;
}

.about-text h2 {
    font-size: 2rem; /* Mobile: smaller font */
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.about-text > p {
    font-size: 1.125rem; /* 18px equivalent */
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mission-vision {
    display: flex;
    flex-direction: column; /* Mobile: stacked */
    gap: 1.5rem;
}

.mission, .vision {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.9375rem; /* 15px equivalent */
    border-left: 4px solid #2563eb;
}

.mission h3, .vision h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem; /* 18px equivalent */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.mission i, .vision i {
    color: #2563eb;
}

.mission p, .vision p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-shape {
    width: 18.75rem; /* 300px equivalent - smaller for mobile */
    height: 18.75rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 50%;
    position: relative;
    animation: pulse 4s ease-in-out infinite;
}

.about-shape::before {
    content: '';
    position: absolute;
    top: 1.875rem; /* 30px equivalent */
    left: 1.875rem;
    right: 1.875rem;
    bottom: 1.875rem;
    background: white;
    border-radius: 50%;
}

/* Contact Section - Mobile First */
.contact {
    padding: 4rem 0;
    background: #f8fafc;
}

.contact-content {
    display: flex;
    flex-direction: column; /* Mobile: single column */
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form {
    background: white;
    padding: 1.5rem; /* Mobile: smaller padding */
    border-radius: 1.25rem; /* 20px equivalent */
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
    width: 100%;
    height: fit-content; /* Only take the space needed */
    align-self: start;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem; /* 10px equivalent */
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.9375rem; /* 15px equivalent */
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-0.3125rem); /* -5px equivalent */
}

.info-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 3.125rem; /* 50px equivalent */
    height: 3.125rem;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.info-item h4 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-item p {
    color: #64748b;
    font-size: 1rem;
}

/* Footer - Mobile First */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1.25rem; /* 48px 0 20px equivalent */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: single column */
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.125rem; /* 18px equivalent */
}

.footer-section p {
    color: #a1a1aa;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 2.5rem; /* 40px equivalent */
    height: 2.5rem;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-0.1875rem); /* -3px equivalent */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #a1a1aa;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem); /* 30px equivalent */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(1.875rem); /* 30px equivalent */
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-1.25rem); /* -20px equivalent */
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Medium devices (641px–1024px) */
@media (min-width: 641px) {
    .container {
        padding: 0 2rem; /* 32px equivalent */
    }
    
    .nav-container {
        padding: 0 2rem;
    }
    
    .hero-container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3rem; /* Medium: larger font */
    }
    
    .hero-buttons {
        flex-direction: row; /* Medium: horizontal buttons */
        justify-content: center;
    }
    
    .btn {
        width: auto; /* Medium: auto width */
        max-width: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Medium: 2 columns */
        gap: 2rem;
    }
    
    .product-card {
        padding: 2rem; /* Medium: larger padding */
    }
    
    .product-image {
        height: 14rem; /* Medium: slightly larger height */
    }
    
    .section-header h2 {
        font-size: 2.25rem; /* Medium: larger font */
    }
    
    .about-text h2 {
        font-size: 2.25rem;
    }
    
    .about-shape {
        width: 25rem; /* 400px equivalent */
        height: 25rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr); /* Medium: 2 columns */
    }
    
    .logo-img {
        height: 2.75rem; /* 44px equivalent */
    }
}

/* Large devices (1025px+) */
@media (min-width: 1025px) {
    .container {
        padding: 0 2.5rem; /* 40px equivalent */
    }
    
    .nav-container {
        padding: 0 2.5rem;
    }
    
    .hero-container {
        padding: 0 2.5rem;
        display: grid;
        grid-template-columns: 1fr 1fr; /* Desktop: 2 columns */
        text-align: left; /* Desktop: left align */
        gap: 4rem;
    }
    
    .hero-title {
        font-size: 3.5rem; /* Desktop: largest font */
    }
    
    .hero-buttons {
        justify-content: flex-start; /* Desktop: left align */
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
        gap: 2.5rem;
    }
    
    .product-card {
        padding: 2.5rem; /* Desktop: largest padding */
    }
    
    .product-image {
        height: 16rem; /* Desktop: largest height */
    }
    
    .section-header h2 {
        font-size: 2.5rem; /* Desktop: largest font */
    }
    
    .about-text h2 {
        font-size: 2.5rem;
    }
    
    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Desktop: 2 columns */
        gap: 4rem;
    }
    
    .about-shape {
        width: 25rem; /* 400px equivalent */
        height: 25rem;
    }
    
    .contact-content {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Desktop: 2 columns */
        gap: 4rem;
        height: fit-content; /* Only take the space needed */
        align-self: start;
    }
    
    .contact-form {
        padding: 2.5rem; /* Desktop: largest padding */
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
    }
    
    .logo-img {
        height: 2.5rem; /* 40px equivalent */
    }
    
    /* Desktop navigation */
    .nav-menu {
        display: flex; /* Desktop: show menu */
    }
    
    .hamburger {
        display: none; /* Desktop: hide hamburger */
    }
}

/* Small devices (max-width 640px) - Additional mobile optimizations */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem; /* 16px equivalent */
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem; /* Small mobile: even smaller */
    }
    
    .hero-subtitle {
        font-size: 1rem; /* Small mobile: smaller */
    }
    
    .btn {
        padding: 0.75rem 1.25rem; /* 12px 20px equivalent */
        font-size: 0.9rem;
    }
    
    .product-card {
        padding: 1.25rem; /* Small mobile: smaller padding */
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .logo-img {
        height: 2rem; /* 32px equivalent */
    }
    
    .hero-shape {
        width: 15rem; /* 240px equivalent - smaller for small mobile */
        height: 15rem;
    }
    
    .about-shape {
        width: 15rem;
        height: 15rem;
        height: fit-content; /* Only take the space needed */
        align-self: start;
    }
    
    .section-header h2 {
        font-size: 1.75rem; /* Small mobile: smaller */
    }
    
    .about-text h2 {
        font-size: 1.75rem;
    }
    
    .info-item {
        padding: 1.25rem; /* Small mobile: smaller padding */
    }
    
    .info-item i {
        width: 2.5rem; /* 40px equivalent */
        height: 2.5rem;
        font-size: 1.25rem;
    }
}
