/* ==========================================
   Mobile Performance Optimizations
   ========================================== */
/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
    *, *::before, *::after {
        animation-duration: 0.2s !important;
        animation-delay: 0s !important;
        transition-duration: 0.15s !important;
    }
    
    /* Disable complex animations on mobile */
    .pulse-animation,
    .float-animation {
        animation: none !important;
    }
    
    /* Improve touch targets - minimum 44px for accessibility */
    .btn, .nav-link, .tab-btn, .hamburger, .gallery-btn, .close-gallery {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation; /* Disable double-tap zoom */
        -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
    }
    
    /* Optimize scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: auto; /* Disable smooth scroll on mobile for better performance */
    }
    
    /* Better mobile typography */
    html {
        -webkit-text-size-adjust: 100%; /* Prevent font scaling */
        text-size-adjust: 100%;
    }
    
    /* Optimize images for mobile */
    img {
        height: auto;
        max-width: 100%;
        image-rendering: optimizeSpeed;
    }
    
    /* Reduce GPU usage on mobile */
    .product-card:hover,
    .feature-card:hover,
    .cert-card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
}

/* ==========================================
   Critical Performance Optimizations
   ========================================== */
/* Optimize will-change for GPU acceleration */
.navbar, .export-badge, .whatsapp-float, .back-to-top {
    will-change: transform;
}

/* Optimize animations with transform3d for GPU acceleration */
.product-card, .feature-card, .cert-card {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* Optimize images for all devices and connections */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    height: auto;
    max-width: 100%;
}

/* Prefers reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize for slow connections */
@media (prefers-reduced-data: reduce) {
    /* Disable background patterns on slow connections */
    .hero {
        background-image: none;
    }
    
    .product-gallery {
        background: none;
    }
    
    /* Simplify shadows and effects */
    .product-card,
    .feature-card,
    .cert-card {
        box-shadow: var(--shadow-light);
    }
}

/* Mobile-optimized class for JavaScript-applied optimizations */
.mobile-optimized .product-card,
.mobile-optimized .feature-card,
.mobile-optimized .cert-card {
    transition: transform 0.1s ease;
}

.mobile-optimized .product-card:hover,
.mobile-optimized .feature-card:hover,
.mobile-optimized .cert-card:hover {
    transform: translateY(-2px) !important;
}

/* Responsive images with aspect ratio preservation */
.responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Better touch feedback for mobile */
@media (max-width: 768px) {
    button:active,
    .btn:active,
    .tab-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Comprehensive Responsive Design Test Coverage */
/* These styles ensure proper display across all device sizes */

/* Large Desktop (1600px+) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1200px - 1599px) - Already covered above */
/* Laptop (1024px - 1199px) - Already covered above */
/* Tablet Landscape (768px - 1023px) - Already covered above */
/* Tablet Portrait (481px - 767px) - Already covered above */
/* Mobile Large (361px - 480px) - Already covered above */
/* Mobile Small (320px - 360px) - Already covered above */

/* Extra small devices (less than 320px) */
@media (max-width: 319px) {
    .container {
        padding: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .nav-menu {
        font-size: 0.9rem;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
    }
    
    .product-icon i {
        font-size: 1.1em; /* Slightly larger icons for crisp display */
    }
}

/* Reduce layout thrashing */
.hero-stats .stat-number {
    contain: layout style;
}

/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    /* Minimal Brand Colors */
    /* Brand Guidelines Compliant Colors */
    --forest-green: #043025;      /* Primary brand color */
    --sky-white: #F5FBF7;         /* Primary background */
    --secondary-green: #85C443;   /* Secondary brand color */
    --accent-yellow: #FBD801;     /* Accent color */

    /* Aliases for compatibility */
    --primary-dark: var(--forest-green);
    --primary-green: var(--forest-green);
    --accent-green: var(--secondary-green);
    --warm-white: var(--sky-white);
    --accent-gold: var(--accent-yellow);
    --soft-green: #a8d5a8;
    --cream: #fefefe;
    
    /* Neutral Minimalist Palette */
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --text-gray: #4a4a4a;
    --text-light: #7a7a7a;
    --border-light: #eeeeee;
    
    /* Typography */
    --font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Minimal Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 1.5rem;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Smooth Transitions - Optimized for Speed */
    --transition-fast: 0.08s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-medium: 0.1s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-slow: 0.12s cubic-bezier(0.4, 0.0, 0.2, 1);
    
    /* Subtle Shadows */
    --shadow-xs: 0 1px 2px rgba(26, 46, 26, 0.04);
    --shadow-sm: 0 2px 4px rgba(26, 46, 26, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 46, 26, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 46, 26, 0.10);
    --shadow-xl: 0 16px 40px rgba(26, 46, 26, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    color: var(--text-gray);
    background-color: var(--warm-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.75rem, 5vw, 4.5rem); 
    font-weight: var(--font-weight-light);
    letter-spacing: -0.04em;
}
h2 { 
    font-size: clamp(2rem, 4vw, 3.25rem); 
    font-weight: var(--font-weight-light);
}
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================
   Utility Classes
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-weight: var(--font-weight-light);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--accent-green);
    opacity: 0.6;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    letter-spacing: 0.025em;
    min-width: 140px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--medium-gray);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent-gold);
    color: var(--white);
    border-color: var(--accent-gold);
    font-weight: var(--font-weight-medium);
}

.btn-accent:hover {
    background: #c19b26;
    border-color: #c19b26;
    transform: translateY(-1px);
}

/* ==========================================
   Export Badge
   ========================================== */
.export-badge {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all var(--transition-medium);
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-badge:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.badge-content i {
    animation: pulse 1.5s infinite; /* Subtle pulse animation */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05); /* Reduced scale for better performance */
    }
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(253, 253, 253, 0.98);
    box-shadow: var(--shadow-xs);
    border-bottom-color: var(--medium-gray);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(26, 46, 26, 0.08));
    transition: all var(--transition-medium);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: var(--font-weight-regular);
    color: var(--text-gray);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-link:not(.cta-btn):hover {
    color: var(--primary-green);
}

.nav-link:not(.cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-green);
    transition: width var(--transition-medium);
}

.nav-link:not(.cta-btn):hover::after {
    width: 20px;
}

.nav-link.cta-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius);
    margin-left: 1.5rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-xs);
}

.nav-link.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-white);
    padding-top: 120px; /* Account for navbar (72px) + export badge (40px) + extra spacing */
    overflow: hidden;
}

/* Animated gradient background using Amrudhya branding colors */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -2rem; /* Extend slightly but not into about section */
    background: conic-gradient(
        from 180deg at 30% 30%,
        #E8F5E3, /* Light green tint */
        var(--warm-white),
        #E1F4D9, /* Soft green */
        var(--off-white),
        #F0F8EC, /* Very light green */
        var(--warm-white),
        #E8F5E3
    );
    filter: blur(40px);
    animation: none; /* Removed slow background animation */
    opacity: 0.4;
    z-index: 0;
}

@keyframes heroGradientFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(360deg);
    }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero::before {
        animation: none;
        transform: rotate(45deg); /* Static subtle angle */
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--primary-dark);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(107, 166, 68, 0.1);
    border: 1px solid rgba(107, 166, 68, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-green);
    opacity: 0;
    animation: fadeInUp 0.15s ease 0.05s forwards;
}

.hero-badge i {
    color: var(--accent-green);
}

.hero-title {
    font-weight: var(--font-weight-light);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.15s ease forwards;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.title-line.highlight {
    color: var(--accent-green);
    font-weight: var(--font-weight-medium);
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.15s ease 0.1s forwards;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.15s ease 0.15s forwards;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-light);
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.025em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.15s ease 0.2s forwards;
}

.hero-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    opacity: 0;
    animation: fadeInUp 0.15s ease 0.25s forwards;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    font-size: 0.85rem;
}

.scroll-indicator:hover {
    transform: translateY(-2px);
    color: var(--accent-green);
}

.scroll-indicator i {
    animation: bounce 0.8s infinite;
    font-size: 1rem;
}

/* ==========================================
   Trust Indicators
   ========================================== */
.trust-indicators {
    background: linear-gradient(135deg, var(--warm-white) 0%, var(--off-white) 100%);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light);
}

.trust-item:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-item i {
    font-size: 1.25rem;
    color: var(--accent-green);
    transition: color var(--transition-medium);
}

.trust-item:hover i {
    color: var(--white);
}

.trust-item span {
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
}

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    display: grid;
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-green);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--medium-gray);
}

.about-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1.25rem;
    font-weight: var(--font-weight-medium);
    font-size: 1.35rem;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
    position: relative;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--medium-gray);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: var(--font-weight-light);
    margin-bottom: 0.75rem;
    color: var(--accent-green);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.025em;
}

/* ==========================================
   Products Section
   ========================================== */
.products {
    padding: var(--section-padding);
    background: var(--white);
}

.section-badge {
    display: inline-block;
    background: rgba(107, 166, 68, 0.1);
    color: var(--accent-green);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 1rem;
    border: 1px solid rgba(107, 166, 68, 0.2);
}

.product-categories {
    margin-top: 2rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--off-white);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    color: var(--text-gray);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-size: 0.9rem;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--accent-green);
    color: var(--white);
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    border-color: var(--medium-gray);
}

.product-icon {
    width: 60px;
    height: 60px;
    margin: 0 0 1.5rem 0;
    background: var(--accent-green);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    transition: all var(--transition-medium);
}

.product-card:hover .product-icon {
    background: var(--primary-green);
    transform: scale(1.05);
}

.product-title {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-medium);
    font-size: 1.3rem;
}

.product-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    flex-grow: 1;
    line-height: 1.6;
}

.product-varieties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.variety {
    background: rgba(107, 166, 68, 0.1);
    color: var(--accent-green);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
}

.product-specs {
    margin-bottom: 1.5rem;
}

.spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.spec i {
    color: var(--accent-green);
    width: 16px;
}

.product-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.product-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
}

/* ==========================================
   Certifications Section
   ========================================== */
.certifications {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f4 100%);
    position: relative;
}

.certifications::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"><g opacity="0.03"><circle cx="50" cy="50" r="25" fill="none" stroke="currentColor" stroke-width="0.5"/><circle cx="50" cy="50" r="35" fill="none" stroke="currentColor" stroke-width="0.3"/></g></svg>') repeat;
    background-size: 80px 80px;
    pointer-events: none;
}

.certifications-content {
    position: relative;
    z-index: 1;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cert-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-gold));
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

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

.cert-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cert-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-logo {
    margin: 1.5rem auto 1.5rem;
}

.cert-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: all var(--transition-medium);
    position: relative;
}

.cert-icon-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-gold));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.cert-card:hover .cert-icon-circle::before {
    opacity: 1;
}

.cert-card:hover .cert-icon-circle {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
}

.cert-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
    font-size: 1.25rem;
}

.cert-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cert-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.cert-validity,
.cert-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.cert-validity i,
.cert-number i {
    color: var(--accent-green);
    width: 16px;
}

.quality-assurance {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.quality-content h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
}

.quality-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quality-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.quality-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--off-white);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    color: var(--primary-dark);
}

.quality-feature i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

/* ==========================================
   Why Choose Us Section
   ========================================== */
.why-choose {
    padding: var(--section-padding);
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid rgba(4, 48, 37, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(133, 196, 67, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-green);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-dark);
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}


/* ==========================================
   Global Presence Section
   ========================================== */
.global-presence {
    padding: var(--section-padding);
    background: var(--off-white);
}

.presence-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.export-capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.capability-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-medium);
    position: relative;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-green);
}

.capability-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.capability-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-medium);
    font-size: 1.3rem;
}

.capability-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.capability-list {
    list-style: none;
    padding: 0;
}

.capability-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.capability-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: var(--font-weight-bold);
}

.capability-list li:last-child {
    border-bottom: none;
}

.export-process {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.export-process h3 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    font-weight: var(--font-weight-medium);
    font-size: 1.5rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    font-size: 1.1rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    padding: var(--section-padding);
    background: var(--off-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-medium);
    border-left: 4px solid var(--accent-green);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-medium);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid rgba(4, 48, 37, 0.1);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-medium);
    background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(133, 196, 67, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Enhanced Form Styling */
.form-error {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
    font-weight: var(--font-weight-medium);
}

.form-error.show {
    display: block;
}

.form-help {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
    font-style: italic;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group.has-success input,
.form-group.has-success select,
.form-group.has-success textarea {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(107, 166, 68, 0.1);
}

.form-checkbox {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-gray);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--accent-green);
}

.btn-submit {
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(107, 166, 68, 0.05);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
}

.form-note i {
    color: var(--accent-green);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-semibold);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 70px;
    width: auto;
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
    transition: all var(--transition-medium);
}

.footer-logo:hover img {
    filter: brightness(1.2) drop-shadow(0 2px 6px rgba(255, 255, 255, 0.15));
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-medium);
}

.social-links a:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-medium);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-family);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-medium);
}

.footer-bottom-links a:hover {
    color: var(--accent-gold);
}

/* New Footer Elements */
.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-cert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-badge-small {
    background: linear-gradient(135deg, var(--accent-green), var(--primary-green));
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--accent-green);
    width: 18px;
    font-size: 1rem;
}

.contact-item:hover {
    color: var(--accent-gold);
}

.contact-item:hover i {
    color: var(--accent-gold);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-medium);
}

.contact-item a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Enhanced Footer Bottom for Better Readability */
.footer-bottom-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-medium);
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width var(--transition-medium);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* ==========================================
   WhatsApp Widget
   ========================================== */
/* ==========================================
   Floating Action Buttons
   ========================================== */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: relative;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-medium);
    animation: pulse 1.2s infinite;
    position: relative;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Bulk Quote Widget */
.bulk-quote-widget {
    position: relative;
}

.bulk-quote-float {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-green), #5ba035);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(107, 166, 68, 0.4);
    transition: all var(--transition-medium);
    animation: bounce 1.2s infinite;
    position: relative;
}

.bulk-quote-float:hover {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #5ba035, var(--accent-green));
    box-shadow: 0 6px 25px rgba(107, 166, 68, 0.6);
}

/* Tooltips for floating buttons */
.tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-gray);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--text-gray);
}

.whatsapp-float:hover .tooltip,
.bulk-quote-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-8px);
}

/* Bounce animation for bulk quote button */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Ensure floating buttons don't interfere with other content */
.floating-buttons {
    pointer-events: none; /* Allow clicks through container */
}

.floating-buttons > * {
    pointer-events: auto; /* Re-enable clicks on actual buttons */
}

/* Add breathing room from screen edges */
@media (max-width: 480px) {
    .floating-buttons {
        bottom: calc(1rem + env(safe-area-inset-bottom)); /* Account for iOS home indicator */
        right: 1rem;
    }
}

/* Ensure buttons are above other content but below modals */
.floating-buttons {
    z-index: 900; /* Below modals (1000) but above most content */
}

/* Hide tooltips on mobile to prevent layout issues */
@media (max-width: 768px) {
    .tooltip {
        display: none;
    }
}

/* Special positioning for landscape mobile */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 768px) {
    .floating-buttons {
        bottom: 0.5rem;
        right: 0.5rem;
        gap: 0.5rem;
    }
    
    .whatsapp-float,
    .bulk-quote-float {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .bulk-quote-float {
        font-size: 1rem;
    }
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================
   Enhanced Visual Elements
   ========================================== */

/* Floating elements animation */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: none; /* Removed slow floating animation */
}

.floating-element:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    font-size: 2rem;
    color: var(--accent-green);
}

.floating-element:nth-child(2) {
    left: 30%;
    animation-delay: 5s;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.floating-element:nth-child(3) {
    left: 50%;
    animation-delay: 10s;
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.floating-element:nth-child(4) {
    left: 70%;
    animation-delay: 15s;
    font-size: 1.8rem;
    color: var(--accent-green);
}

.floating-element:nth-child(5) {
    left: 90%;
    animation-delay: 7s;
    font-size: 2rem;
    color: var(--accent-gold);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Enhanced section backgrounds */
.section-bg-pattern {
    position: relative;
    overflow: hidden;
}

.section-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="grain-bg" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(133,196,67,0.03)"/><circle cx="15" cy="15" r="0.5" fill="rgba(251,216,1,0.02)"/><circle cx="45" cy="45" r="0.8" fill="rgba(4,48,37,0.02)"/></pattern></defs><rect width="60" height="60" fill="url(%23grain-bg)"/></svg>');
    pointer-events: none;
    z-index: -1;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(133, 196, 67, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(133, 196, 67, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(133, 196, 67, 0);
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .export-capabilities {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .quality-features {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
        --container-padding: 0 1rem;
    }
    
    .export-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1.2rem;
        top: 80px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--off-white);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 3rem;
        transition: left var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    
    .nav-link.cta-btn {
        margin: 2rem 0 0 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .trust-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        text-align: center;
        touch-action: manipulation;
    }
    
    /* Enhanced mobile touch interactions */
    .product-card, .feature-card, .cert-card {
        touch-action: manipulation;
        cursor: pointer;
    }
    
    .product-card:active, .feature-card:active, .cert-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Improve mobile form interactions */
    .form-group input, .form-group select, .form-group textarea {
        -webkit-appearance: none;
        border-radius: var(--border-radius);
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Better mobile navigation */
    .nav-menu.active {
        backdrop-filter: blur(10px);
        background: rgba(250, 250, 250, 0.95);
    }
    
    /* Improved mobile buttons */
    .btn {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .category-tabs {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quality-assurance {
        padding: 2rem 1.5rem;
    }
    
    .quality-content h3 {
        font-size: 1.75rem;
    }
    
    .quality-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cert-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }

    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom-links {
        gap: 1rem;
        justify-content: center;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-certifications {
        justify-content: center;
    }
    
    .cert-badge-small {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .footer-contact-info {
        gap: 0.75rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .export-capabilities {
        grid-template-columns: 1fr;
    }
    
    .capability-card {
        padding: 2rem 1.5rem;
    }
    
    .export-process {
        padding: 2rem 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-step {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 1rem;
        right: 1rem;
        gap: 0.75rem;
    }
    
    .whatsapp-float,
    .bulk-quote-float {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .bulk-quote-float {
        font-size: 1.2rem;
    }
    
    .tooltip {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        right: 60px;
    }
    
    .tooltip::after {
        border-width: 4px;
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .product-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================
   Print Styles
   ========================================== */
@media print {
    .navbar,
    .floating-buttons,
    .back-to-top,
    .hero-scroll {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 140px 0 2rem 0; /* Extra top padding for mobile */
        min-height: 100vh;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title::after {
        display: none;
    }
}

/* ==========================================
   Accessibility
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.6);
    }
}

/* ==========================================
   Product Galleries - Modal Style
   ========================================== */
.product-galleries {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(4, 48, 37, 0.95), rgba(26, 46, 26, 0.90));
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s cubic-bezier(0.23, 1, 0.320, 1);
    pointer-events: none;
}

.product-galleries.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-gallery {
    background: linear-gradient(135deg, var(--white) 0%, #fdfdfd 100%);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(26, 46, 26, 0.15), 0 0 0 1px rgba(107, 166, 68, 0.1);
    border: none;
    transform: scale(0.85) translateY(60px) rotateX(5deg);
    transition: all 0.15s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Custom scrollbar for gallery */
.product-gallery::-webkit-scrollbar {
    width: 8px;
}

.product-gallery::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.product-gallery::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-green), #5ba035);
    border-radius: 4px;
}

.product-gallery::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
}

.product-gallery.active {
    transform: scale(1) translateY(0) rotateX(0deg);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 3px solid var(--accent-green);
    position: relative;
}

.gallery-title-section {
    flex: 1;
}

.gallery-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.product-count {
    color: var(--text-gray);
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.export-ready {
    color: var(--accent-green);
    background: rgba(107, 166, 68, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-search {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-search i {
    position: absolute;
    left: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-input {
    padding: 8px 12px 8px 35px;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.12s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(107, 166, 68, 0.1);
    width: 240px;
}

.gallery-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--light-gray);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-action-btn:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 166, 68, 0.3);
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--off-white), var(--light-gray));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 20px;
    background: var(--white);
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
    position: relative;
    overflow: hidden;
}

.filter-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 166, 68, 0.1), transparent);
    transition: left 0.15s;
}

.filter-chip:hover::before {
    left: 100%;
}

.filter-chip:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(107, 166, 68, 0.3);
}

.view-options {
    display: flex;
    gap: 0.25rem;
    background: var(--white);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--border-light);
}

.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--light-gray);
    color: var(--text-gray);
}

.view-btn.active {
    background: var(--accent-green);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(107, 166, 68, 0.3);
}

.gallery-header::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
}

.gallery-header h3 {
    color: var(--primary-dark);
    margin: 0;
    font-size: 1.8rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-header h3::before {
    content: '🌾';
    font-size: 1.5rem;
}

.close-gallery {
    background: linear-gradient(135deg, var(--accent-green), #5ba035);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 12px rgba(107, 166, 68, 0.3);
    position: relative;
    overflow: hidden;
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.close-gallery:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-dark));
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(107, 166, 68, 0.5);
}

.close-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.12s ease;
    border-radius: 50%;
}

.close-gallery:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.gallery-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--medium-gray);
    background: transparent;
    border-radius: var(--border-radius);
    color: var(--text-gray);
    cursor: pointer;
    transition: all var(--transition-medium);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
}

.gallery-tab:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.gallery-tab.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.gallery-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.gallery-content.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Staggered animation for gallery items */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.2s ease forwards;
    position: relative;
}

.gallery-item-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-compare {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-green);
    cursor: pointer;
}

.product-badges {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.badge-protein {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.badge-export {
    background: linear-gradient(135deg, var(--accent-green), #5ba035);
    color: white;
}

.gallery-item ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(107, 166, 68, 0.1);
}

.gallery-item ul li:last-child {
    border-bottom: none;
}

.gallery-item ul li i {
    width: 16px;
    color: var(--accent-green);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(107, 166, 68, 0.1);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.spec-value {
    font-weight: 500;
    color: var(--primary-dark);
    font-size: 0.85rem;
}

.gallery-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--light-gray);
}

.quick-quote-btn,
.add-to-compare-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
}

.quick-quote-btn {
    background: linear-gradient(135deg, var(--accent-green), #5ba035);
    color: white;
    box-shadow: 0 2px 8px rgba(107, 166, 68, 0.3);
}

.quick-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 166, 68, 0.4);
}

.add-to-compare-btn {
    background: var(--light-gray);
    color: var(--text-gray);
    border: 1px solid var(--border-light);
}

.add-to-compare-btn:hover {
    background: var(--white);
    color: var(--accent-green);
    border-color: var(--accent-green);
    transform: translateY(-1px);
}

.gallery-item:nth-child(1) { animation-delay: 0.02s; }
.gallery-item:nth-child(2) { animation-delay: 0.04s; }
.gallery-item:nth-child(3) { animation-delay: 0.06s; }
.gallery-item:nth-child(4) { animation-delay: 0.08s; }
.gallery-item:nth-child(5) { animation-delay: 0.1s; }
.gallery-item:nth-child(6) { animation-delay: 0.12s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(107, 166, 68, 0.1), transparent);
    transition: left 0.15s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(107, 166, 68, 0.15);
    background: linear-gradient(135deg, var(--white) 0%, #fafbfa 100%);
    border-color: var(--accent-green);
}

.gallery-item:hover::before {
    left: 100%;
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-green), #5ba035);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--white);
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(107, 166, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.gallery-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(107, 166, 68, 0.4);
}

.gallery-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.gallery-item p {
    color: var(--accent-green);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.gallery-item em {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.gallery-item ul {
    list-style: none;
    margin: 0.75rem 0;
}

.gallery-item li {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}

.gallery-item li::before {
    content: '•';
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.gallery-specs {
    margin-top: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-green)10, var(--light-gray));
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
    border: 1px solid rgba(107, 166, 68, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--text-gray);
    font-weight: var(--font-weight-medium);
    border-left: 3px solid var(--accent-green);
}

.gallery-btn {
    margin-right: 1rem;
}

.gallery-btn:hover {
    background: var(--accent-green);
    color: var(--white);
    border-color: var(--accent-green);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Gallery Modals */

/* Large Desktop & 4K */
@media (min-width: 1600px) {
    .product-gallery {
        max-width: 92vw;
        max-height: 88vh;
        padding: 4rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
    
    .gallery-header h3 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        padding: 2.5rem;
        border-radius: 16px;
    }
}

/* MacBook Air/Pro & Desktop */
@media (min-width: 1200px) and (max-width: 1599px) {
    .product-gallery {
        max-width: 95vw;
        max-height: 90vh;
        padding: 3.5rem;
        border-radius: 24px;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    .gallery-header h3 {
        font-size: 2.2rem;
        font-weight: 500;
        margin-bottom: 1.5rem;
    }
    
    .close-gallery {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .gallery-item {
        padding: 2rem;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* Laptop */
@media (min-width: 1024px) and (max-width: 1199px) {
    .product-gallery {
        max-width: 95vw;
        max-height: 90vh;
        padding: 3rem;
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .gallery-item {
        padding: 2rem;
        border-radius: 12px;
    }
    
    .gallery-header h3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .close-gallery {
        width: 48px;
        height: 48px;
        font-size: 1.8rem;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-gallery {
        max-width: 90vw;
        max-height: 85vh;
        padding: 1.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .gallery-header {
        margin-bottom: 1.5rem;
    }
    
    .gallery-header h3 {
        font-size: 1.4rem;
    }
    
    .close-gallery {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }
    
    .gallery-tabs {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        min-width: 110px;
    }
    
    .gallery-item {
        padding: 1.4rem;
    }
}

/* Tablet Portrait & Large Phones */
@media (min-width: 481px) and (max-width: 767px) {
    .product-galleries {
        padding: 1rem;
    }
    
    .product-gallery {
        max-width: 95vw;
        max-height: 90vh;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-header {
        flex-direction: row;
        align-items: center;
        margin-bottom: 1.25rem;
        gap: 1rem;
    }
    
    .gallery-header h3 {
        font-size: 1.25rem;
        line-height: 1.3;
        flex: 1;
    }
    
    .close-gallery {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
        flex-shrink: 0;
    }
    
    .gallery-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
        justify-content: center;
    }
    
    .gallery-tab {
        flex: 1;
        min-width: 90px;
        max-width: 120px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .gallery-item {
        padding: 1.25rem;
    }
    
    .gallery-item h4 {
        font-size: 1rem;
    }
    
    .gallery-item li {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .gallery-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .product-galleries {
        padding: 0.5rem;
    }
    
    .product-gallery {
        max-width: 98vw;
        max-height: 95vh;
        padding: 1rem;
        border-radius: 8px;
        margin: 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .gallery-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1rem;
        gap: 0.75rem;
        position: relative;
    }
    
    .gallery-header h3 {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: center;
        padding-right: 2.5rem;
    }
    
    .close-gallery {
        position: absolute;
        top: -0.25rem;
        right: 0;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .gallery-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.4rem;
        margin-bottom: 1rem;
    }
    
    .gallery-tab {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        text-align: center;
        min-width: auto;
        border-radius: 6px;
    }
    
    .gallery-item {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .gallery-item h4 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .gallery-item p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .gallery-item em {
        font-size: 0.75rem;
    }
    
    .gallery-item li {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 0.3rem;
    }
    
    .gallery-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .gallery-specs {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
        margin-top: 0.75rem;
    }
}

/* Small Mobile Phones */
@media (max-width: 360px) {
    .product-gallery {
        max-width: 99vw;
        padding: 0.75rem;
    }
    
    .gallery-header h3 {
        font-size: 1rem;
    }
    
    .close-gallery {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .gallery-tabs {
        gap: 0.3rem;
    }
    
    .gallery-tab {
        padding: 0.4rem 0.2rem;
        font-size: 0.65rem;
    }
    
    .gallery-item {
        padding: 0.75rem;
    }
    
    .gallery-item h4 {
        font-size: 0.9rem;
    }
    
    .gallery-item li {
        font-size: 0.75rem;
    }
    
    .gallery-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .product-gallery {
        max-height: 95vh;
        padding: 1rem;
    }
    
    .gallery-header {
        margin-bottom: 0.75rem;
    }
    
    .gallery-header h3 {
        font-size: 1.1rem;
    }
    
    .gallery-tabs {
        margin-bottom: 0.75rem;
    }
    
    .gallery-item {
        padding: 1rem;
    }
    
    .gallery-grid {
        gap: 0.75rem;
    }
}

/* ==================================================
   Subtle & Minimal Animations - START
================================================== */

/* Gentle fade-in animation */
@keyframes subtleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Minimal slide animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Subtle scale animation */
@keyframes gentleScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

.animate-fade-in {
    animation: subtleFadeIn 0.2s ease-out forwards;
}

.animate-slide-up {
    animation: slideInUp 0.2s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.2s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.2s ease-out forwards;
}

.animate-scale {
    animation: gentleScale 0.15s ease-out forwards;
}

/* Enhanced hover effects - very subtle */
.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.12s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

.feature-icon:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Subtle button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn > * {
    position: relative;
    z-index: 1;
}

/* Gentle loading animation */
@keyframes subtleLoading {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

.loading {
    animation: subtleLoading 0.8s ease-in-out infinite;
}

/* Minimal form focus effects */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 166, 68, 0.15);
    transition: all 0.1s ease;
}

/* Subtle navigation effects */
.nav-link:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* Gallery modal - minimal entrance */
.product-gallery {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.12s ease;
}

.product-gallery.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation delays */
.animate-on-scroll:nth-child(1) { animation-delay: 0ms; }
.animate-on-scroll:nth-child(2) { animation-delay: 30ms; }
.animate-on-scroll:nth-child(3) { animation-delay: 60ms; }
.animate-on-scroll:nth-child(4) { animation-delay: 90ms; }
.animate-on-scroll:nth-child(5) { animation-delay: 120ms; }
.animate-on-scroll:nth-child(6) { animation-delay: 150ms; }

/* Mobile optimizations */
@media (max-width: 768px) {
    .product-card:hover,
    .feature-card:hover,
    .btn:hover {
        transform: none;
    }

    .animate-fade-in,
    .animate-slide-up,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale {
        animation-duration: 0.4s;
    }
}

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================================================
   Subtle & Minimal Animations - END
================================================== */
