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

:root {
    --primary-color: #d32f2f;
    --secondary-color: #ffa726;
    --accent-color: #ff6f00;
    --golden: #ffd700;
    --orange: #ff8c42;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- Updated Header/Navbar --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    /* Starts transparent */
    background: transparent;
    padding: 1rem 0;
}

header.scrolled {
    /* "Glassmorphism" effect on scroll */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

.navbar {
    /* Padding is now controlled by the header */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 85px;
    height: auto;
    object-fit: cover;
}

/* --- Desktop Navigation Links --- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem; /* Increased gap slightly */
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600; /* Slightly bolder */
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* Animated underline effect */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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


/* --- Mobile Navigation and Overlay --- */
.mobile-toggle {
    display: none; /* Hidden by default, shown in media query */
    flex-direction: column;
    gap: 5px; /* Slightly increased gap for better animation */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Must be above the header */
    padding: 5px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

/* Hamburger to "X" animation */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* The dark overlay behind the mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998; /* Below menu, above content */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}


.hero {
    margin-top: 0; /* Updated: The header is transparent, so no margin is needed */
    padding-top: 82px; /* Add padding to prevent content from hiding behind the fixed header */
    min-height: 700px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0b2 50%, #ffcc80 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 20px;
    position: relative;
    overflow: hidden;
    background-image: url('./images/hero-img-2.png');
    background-position: center;
    background-size: cover;
}

.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 1200 800" opacity="0.03"><circle cx="200" cy="200" r="100" fill="%23d32f2f"/><circle cx="800" cy="400" r="150" fill="%23ff6f00"/><circle cx="400" cy="600" r="80" fill="%23ffa726"/><circle cx="1000" cy="200" r="120" fill="%23d32f2f"/></svg>');
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    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, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.floating-snacks {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.snack {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--golden), var(--orange));
    border-radius: 50%;
    opacity: 0.15;
    animation: floatSnack 15s ease-in-out infinite;
}

.snack-1 { top: 10%; left: 10%; animation-delay: 0s; }
.snack-2 { top: 60%; right: 15%; animation-delay: 3s; width: 80px; height: 80px; }
.snack-3 { bottom: 20%; left: 20%; animation-delay: 6s; width: 50px; height: 50px; }
.snack-4 { top: 30%; right: 25%; animation-delay: 9s; width: 70px; height: 70px; }


@keyframes floatSnack {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(90deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

.curve-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0b2 50%, #ffcc80 100%);
}

.curve-divider svg {
    display: block;
    width: 100%;
    height: 100px;
}

.curve-divider.inverted {
    background: var(--white);
}

.curve-divider svg path {
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { d: path('M0,0 C300,100 900,100 1200,0 L1200,120 L0,120 Z'); }
    50% { d: path('M0,0 C300,80 900,120 1200,0 L1200,120 L0,120 Z'); }
}

.stats-section {
    padding: 4rem 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #ffffff, #fff8e1);
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #fff8e1, #ffe0b2);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.products-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    padding-bottom: 1rem;
}

.product-card {
    min-width: calc(33.333% - 20px);
    margin: 0 10px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

.product-card h3 {
    text-align: center;
    padding: 1rem .5rem;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.product-card p {
    padding: 0 1rem 1.5rem;
    color: var(--text-light);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.about-section {
    padding: 5rem 0;
    background: var(--white);
}

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

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-content { padding: 2rem; }
.about-content .section-title { text-align: left; margin-bottom: 2rem; }
.about-content p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.8; color: var(--text-dark); }

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 50px;
    margin-top: 1rem;
    border: 2px solid #4caf50;
}

.badge-icon {
    width: 30px;
    height: 30px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.badge-text { font-weight: 600; color: #2e7d32; }

.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 100%);
    position: relative;
}

.contact-section::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" opacity="0.05"><path d="M50 20 L65 50 L50 80 L35 50 Z" fill="%23ff6f00"/></svg>');
    background-size: 100px;
    pointer-events: none;
}

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

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.contact-card:hover { transform: translateY(-5px); }
.contact-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-card h3 { margin-bottom: 0.5rem; color: var(--text-dark); }
.contact-card p { color: var(--text-light); line-height: 1.6; }

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a252f);
    color: var(--white);
    padding: 2rem 0;
}

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

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 90px; height: auto; object-fit: cover; }
.footer-links { display: flex; gap: 2rem; align-items: center; }
.footer-links a { color: var(--white); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--secondary-color); }
.footer-copyright { color: rgba(255, 255, 255, 0.7); text-align: center; }
.footer-copyright p { margin: 0.25rem 0; }
.footer-tagline { font-style: italic; color: var(--secondary-color); font-weight: 600; margin-top: 0.5rem; }


/* --- Updated Media Query for Responsiveness --- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    /* This is now the off-canvas menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%; /* Occupies 75% of screen width */
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center; /* Center links vertically */
        align-items: center;
        gap: 2.5rem;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        z-index: 999;
        /* Start off-screen to the right */
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        justify-content: start;
        padding-top: 4rem;
    }

    .nav-links.active {
        /* Slide into view */
        transform: translateX(0);
    }

    /* Style links inside the mobile menu */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        animation: menu-item-fade-in 0.5s forwards;
    }

    /* Staggered animation for links appearing */
    .nav-links.active li:nth-child(1) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.4s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.5s; }

    @keyframes menu-item-fade-in {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        font-size: 1.5rem; /* Make links much larger */
    }

    .nav-links a::after {
        display: none; /* Remove underline effect on mobile */
    }

    .hero {
        min-height: 600px;
        padding: 82px 20px 2rem;
    }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .cta-button { padding: 1rem 2rem; font-size: 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .product-card { min-width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .product-card {
        min-width: calc(50% - 20px);
    }
}


@media (min-width: 749px) { 
    header:not(.scrolled) .nav-links { 
    background: rgba(255, 255, 255, 0.566);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.75rem 3rem;
    border-radius: 12px;
    }
}



/* Base styles for icons in Stat and Contact cards */
.stat-icon svg,
.contact-icon svg {
    width: 48px;  /* Set a fixed width */
    height: 48px; /* Set a fixed height */
    fill: var(--primary-color); /* Use your primary red color */
    transition: all 0.3s ease-in-out; /* Smooth transition for hover effects */
}

/* Add a subtle hover effect to the stat card icons */
.stat-card:hover .stat-icon svg {
    fill: var(--accent-color); /* Change to accent orange on hover */
    transform: scale(1.1) rotate(5deg); /* Make it slightly larger and tilted */
}


/* --- SVG Icon Styling for Carousel Buttons --- */

.carousel-btn svg {
    width: 24px;  /* Smaller size suitable for a button */
    height: 24px;
    fill: var(--white); /* White color to stand out on the red background */
    transition: fill 0.3s ease;
}

/* Make the carousel button icons slightly transparent on hover */
.carousel-btn:hover svg {
    fill: rgba(255, 255, 255, 0.85);
}



/* popup */

.popup-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

/* The popup modal (white box)
  Hidden by default
*/
/* The dialog element itself (the white box) */
.popup-modal {
    /* DO NOT use 'display: none'. The browser handles this. */
    border: none; /* Removes the default dialog border */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px 30px;
    min-width: 300px;
    text-align: center;
}

#popup-modal {
    /* Make it stay in place when scrolling */
    position: fixed; 
    
    /* Start the top edge at the 50% mark of the viewport */
    top: 50%; 
    
    /* Start the left edge at the 50% mark of the viewport */
    left: 50%; 
    
    /* Move the element back up by 50% of its *own* height
      and back left by 50% of its *own* width.
      This is the key to perfect centering.
    */
    transform: translate(-50%, -50%); 
    
    /* --- Other styles --- */
    background: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1001; /* Make sure it's above the overlay */
}

/* This styles the dark background overlay */
.popup-modal::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

/* Style for the new close button */
.popup-close-btn {
    /* Reset button styles */
    background: none;
    border: none;
    padding: 0;
    
    /* Positioning */
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.popup-close-btn:hover {
    color: #000;
}

/* Your other styles */
.popup-modal h2 {
    margin-top: 0;
    color: #333;
}

.popup-modal p {
    color: #555;
}