/* --- Global Styles & Variables --- (Mostly Unchanged) --- */
:root {
    --primary-color: #28a745;
    --secondary-color: #f8f9fa;
    --dark-color: #333;
    --light-color: #fff;
    --accent-color: #ffc107;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth;  overflow-x: hidden;}
body { font-family: var(--font-family); line-height: 1.7; color: var(--dark-color); background-color: var(--light-color);  overflow-x: hidden;}
.container { width:100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { line-height: 1.3; margin-bottom: 1rem; font-weight: 600; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem;}
h3 { font-size: 1.8rem; } /* Category titles */
h4 { font-size: 1.4rem; color: var(--primary-color); margin-bottom: 0.75rem;} /* Product titles (card and single layout) */
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); transition: color var(--transition-speed) ease; }
a:hover { color: #1f7a34; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.btn { display: inline-block; padding: 12px 25px; border: none; border-radius: var(--border-radius); cursor: pointer; font-size: 1rem; font-weight: 600; transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease; }
.btn-primary { background-color: var(--primary-color); color: var(--light-color); }
.btn-primary:hover { background-color: #1f7a34; transform: translateY(-2px);}
.bg-light { background-color: var(--secondary-color); }
.content-section { padding: 60px 0; }

/* --- Header & Navigation --- (Unchanged) --- */
.header { background-color: var(--primary-color); color: var(--light-color); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.navbar .logo { display: flex; align-items: center; color: var(--light-color); font-size: 1.5rem; font-weight: 700; }
.navbar .logo img { height: 55px; margin-right: 10px; filter: brightness(0) invert(1); }
.navbar .nav-links { display: flex; }
.navbar .nav-links li { margin-left: 25px; }
.navbar .nav-links a { color: var(--light-color); padding: 5px 0; position: relative; font-weight: 400; }
.navbar .nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--light-color); transition: width var(--transition-speed) ease; }
.navbar .nav-links a:hover::after, .navbar .nav-links a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; color: var(--light-color); font-size: 1.8rem; cursor: pointer; }

/* --- Hero Section with Video Background --- (Unchanged) --- */


.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-color);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
}

.video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.video-background video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(145, 145, 145, 0.5); z-index: 2; }
.hero-content {
    margin-left: auto;
    text-align: left;
    padding-right: 5%;
    width: 100%;
    max-width: 1100px;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.3rem; max-width: 600px; margin-bottom: 2rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }

/* --- About Section --- (Unchanged) --- */
.about-content { display: flex; gap: 3rem; align-items: center; }
.about-image { flex: 1; max-width: 400px; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.about-text { flex: 1.5; }

/* Featured Card Styles */


.featured-card:hover {
    transform: translateY(-3px);
}

.featured-image {
    position: relative;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Products Section --- */
.products-section .product-category {
    margin-bottom: 4rem;
    padding: 2rem 0; /* Adjusted padding */
    /* Removed background/border from category wrapper */
}

.products-section .category-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

/* --- Grid layout for multi-product categories (Yoghurt, Butter/Ghee) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.yoghurt-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.product-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem; /* Ensure card title size consistency */
}

.product-card p {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1;
}
.product-card p em,
.product-description p em { /* Style the 'Available in' text */
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* --- NEW: Single Product Layout (Milk, Paneer) --- */
.single-product-layout {
    display: flex;
    align-items: center; /* Vertically align items in the middle */
    gap: 3rem; /* Space between image and text */
    background-color: var(--light-color); /* Optional: background */
    padding: 2rem; /* Optional: padding */
    border-radius: var(--border-radius); /* Optional: rounded corners */
    box-shadow: var(--box-shadow); /* Optional: shadow */
}

.single-product-layout .product-image {
    flex: 1 1 40%; /* Allow image to grow/shrink, basis of 40% */
    max-width: 40%; /* Ensure image doesn't exceed 40% */
}
.single-product-layout .product-image img {
    border-radius: var(--border-radius); /* Rounded corners for image */
    object-fit: cover; /* Or contain, depending on image aspect ratio */
}

.single-product-layout .product-description {
    flex: 1 1 55%; /* Allow text to grow/shrink, basis of 55% */
}

.single-product-layout .product-description h4 {
    /* Already styled globally */
    margin-bottom: 1rem;
}

.single-product-layout .product-description p {
    font-size: 1rem; /* Adjust as needed */
    color: #555;
}


/* REMOVED Paneer specific styles like .category-content-wrapper, .video-container etc. */


/* --- Snowfun Section --- (Unchanged) --- */
.snowfun-section { background-color: #e0f7fa; }
.snowfun-content { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; }
.snowfun-text { flex: 1; min-width: 280px; }
.snowfun-image { flex: 1; max-width: 500px; min-width: 280px; }
.snowfun-image img { border-radius: var(--border-radius); box-shadow: var(--box-shadow); }
.snowfun-logo { max-width: 150px; margin-bottom: 1rem;  }

/* --- Contact Section --- (Unchanged) --- */
.contact-content { display: flex; gap: 3rem; flex-wrap: wrap; }
.contact-info { flex: 1; min-width: 280px; }
.contact-info h3 { color: var(--primary-color); margin-bottom: 1.5rem; }
.contact-info p { margin-bottom: 1rem; display: flex; align-items: center; }
.contact-info i { color: var(--primary-color); margin-right: 10px; width: 20px; text-align: center; }
.contact-info a { color: var(--dark-color); }
.contact-info a:hover { color: var(--primary-color); }
.social-links { margin-top: 1.5rem; }
.social-links a { color: var(--primary-color); font-size: 1.5rem; margin-right: 15px; transition: color 0.3s ease; }
.social-links a:hover { color: #1f7a34; }
.contact-form { flex: 1.5; min-width: 300px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: var(--border-radius); font-family: inherit; font-size: 1rem; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 5px rgba(40, 167, 69, 0.3); }

/* --- Footer --- (Unchanged) --- */
.footer { background-color: var(--dark-color); color: var(--light-color); text-align: center; padding: 25px 0; margin-top: 40px; }
.footer p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer .fa-heart { color: #e74c3c; }

/* --- Animations --- (Unchanged) --- */
.animate-on-scroll { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in { transform: translateY(20px); }
.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* --- Responsiveness --- */
@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }
    

    .hero-content {
        text-align: center;
        padding-right: 20px;
        padding-left: 20px;
        position: relative;
        z-index: 2; /* Ensure text stays above overlay */
    }

    .hero-section {
        background-image: url('images/background.png');
        text-align: center;
    }

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4); /* Adjust opacity as needed */
        z-index: 1;
    }

    .navbar .container {
        width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.6rem; }
    h4 { font-size: 1.2rem; } /* Adjusted Card/Single Product Title */

    .navbar .container { height: 60px; }
    .navbar .logo span { display: none; }
    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 60px; left: 0; background-color: var(--primary-color); width: 100%; flex-direction: column; align-items: center; padding: 0rem 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; z-index: 999; }
    .nav-links.active { max-height: 300px; }
    .nav-links li { margin: 1rem 0; width: 100%; text-align: center; }
    .nav-links a::after { display: none; }

    .about-content, .snowfun-content { flex-direction: column; text-align: center; }
    .about-image, .snowfun-image { margin-bottom: 2rem; max-width: 80%; margin-left: auto; margin-right: auto; }

    /* Adjust single product layout for smaller screens */
    .single-product-layout {
        flex-direction: column; /* Stack image and text vertically */
        gap: 1.5rem;
        text-align: center; /* Center text when stacked */
        padding: 1.5rem;
    }
    .single-product-layout .product-image {
        max-width: 70%; /* Adjust image size when stacked */
        margin-bottom: 1rem; /* Add space below image */
    }
     .single-product-layout .product-description {
        /* Text takes full width automatically in column layout */
    }


    .products-section .product-category { padding: 1.5rem 0; }
    .contact-content { flex-direction: column; gap: 2rem; }
    .contact-info, .contact-form { flex: unset; width: 100%; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .container { padding: 0 ; }
    .product-grid { grid-template-columns: 1fr; } /* Stack cards in grids */
    .products-section .category-title { font-size: 1.5rem; }
    .product-card img { height: 150px; }
    .product-card p { font-size: 0.85rem; }
    .single-product-layout .product-image { max-width: 80%; } /* Further adjust image size */
    .single-product-layout .product-description p { font-size: 0.9rem; }
    .single-product-layout h4 { font-size: 1.1rem; }
}