:root {
    --primary-color: #FFD700;
    --text-color: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
}

body,
html {
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    /* height: 100%;  <-- REMOVED to allow ScrollTrigger to add scroll space */
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 10px;
    border-radius: 2px;
    overflow: hidden;
}

#progress {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

#progress-text {
    font-weight: 700;
}

/* Main Section */
.scrolly-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* Ensure canvas fills the space available */
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    /* Seamless fallback */
}

/* Background Color Match Enforcement */
.scrolly-section {
    background-color: var(--primary-color);
}


/* Text Overlays */
.overlay-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay-text h1,
.overlay-text h2 {
    color: white;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    /* Hidden by default, controlled by GSAP */
    transform: translateY(30px);
}

.overlay-text h2 {
    font-size: 4rem;
}

/* CTA specific */
.cta-btn {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    background: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    /* Enable clicking */
    opacity: 0;
    transform: translateY(20px);
}

.cta-btn:hover {
    transform: translateY(15px);
    /* slightly up from initial translateY(20px) which is animated out */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Start State for Frame 1 */
#text-1 h1 {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .overlay-text h1 {
        font-size: 3rem;
    }

    .overlay-text h2 {
        font-size: 2.5rem;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 12px 30px;
    }

    .logo {
        position: static;
        text-align: center;
        margin-bottom: 10px;
    }

    nav ul {
        justify-content: center;
    }

    .features-grid,
    .ingredients-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* --- New Sections Styling --- */

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease;
}

#main-header.scrolled {
    background-color: transparent;
    /* Kept transparent as requested */
    box-shadow: none;
    /* Optional: Add text-shadow if visibility becomes an issue on white backgrounds */
    /* text-shadow: 0 2px 5px rgba(0,0,0,0.2); */
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
}

/* General Layout */
.content-section {
    padding: 100px 20px;
    position: relative;
    z-index: 2;
    /* Above canvas if needed */
    background-color: white;
}

.dark-section {
    background-color: #1a1a1a;
    color: white;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.text-white {
    color: white;
}

.text-left {
    text-align: left;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Ingredients BENTO Grid */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ingredient-box {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ing-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ingredient-box:hover .ing-content {
    transform: translateY(0);
}

.ing-content h3 {
    margin: 0;
    font-size: 1.5rem;
}

.ing-content p {
    margin: 5px 0 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 300px;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card p {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #444;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card span {
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details p {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

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

.small-btn {
    align-self: flex-start;
    margin-top: 10px;
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    background-color: black;
    color: white;
    padding: 60px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: var(--primary-color);
}

.footer-col a {
    display: block;
    color: #999;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}