@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    /* Pure Green & Gold 'Genius' Palette - Premium & Organic */
    --primary-color: #17B978;
    /* Emerald Green - Radiant & Fresh */
    --secondary-color: #004D25;
    /* Deep Forest Green - Strong Base (Replaces Navy) */
    --accent-color: #FFD700;
    /* Brilliant Gold */
    --highlight-color: #FFB900;
    /* Rich Honey Gold */

    /* Light Mode Backgrounds */
    --bg-light: #F0F9F4;
    /* Very Pale Mint */
    --bg-white: #ffffff;
    --text-dark: #002A16;
    /* Deepest Green Black */
    --text-muted: #4A5D4E;
    /* Darker Sage for better Light Mode contrast */

    /* Glass Effect vars */
    --glass-white: rgba(255, 255, 255, 0.95);
    --glass-green: rgba(23, 185, 120, 0.1);
    --shadow-soft: 0 10px 35px rgba(0, 77, 37, 0.15);
    /* Forest shadow */
    --glass-border: 1px solid rgba(255, 255, 255, 0.7);
    --mobile-nav-bg: #FFFFFF;

    /* Gradients - Canopy to Meadow */
    --vibrant-gradient: linear-gradient(135deg, #004D25 0%, #17B978 100%);
    --orange-gradient: linear-gradient(135deg, #FFD700 0%, #FFCC00 100%);
    /* Gold to Yellow */
}

/* Dark Mode - Deep Jungle Night */
[data-theme="dark"] {
    --bg-light: #001A0E;
    /* Deepest Jungle Green (Not Black) */
    --bg-white: #052E16;
    /* Dark Moss Panel */
    --text-dark: #FFFFFF;
    /* Pure White for Clarity */
    --text-muted: #D1FFBD;
    /* Pale Lime for Dark Mode - High Clarity */

    --glass-white: rgba(5, 46, 22, 0.85);
    --glass-green: rgba(23, 185, 120, 0.2);
    --shadow-soft: 0 15px 50px rgba(0, 20, 10, 0.6);
    --glass-border: 1px solid rgba(167, 255, 131, 0.15);

    /* Adjust colors for Dark Mode */
    --primary-color: #17B978;
    /* Glowing Emerald */
    --secondary-color: #FFD700;
    /* Gold becomes secondary text/icons in dark */
    --accent-color: #FFCC00;
    /* Golden Yellow accent */
    --logo-filter: brightness(1.1) contrast(1.1);
    --mobile-nav-bg: #052E16;
    --highlight-color: #FFD700;
}

/* Force dark mode logo text visibility */
[data-theme="dark"] .logo {
    color: #ffffff !important;
    /* Pure White main brand */
}

[data-theme="dark"] .logo div {
    color: #ffffff !important;
}

[data-theme="dark"] .logo small {
    color: #FFD700 !important;
    /* Brilliant Gold tagline */
}

/* Footer logo specifically in dark mode */
[data-theme="dark"] .footer-logo-text h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-logo-text small {
    color: #FFD700 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%, rgba(49, 134, 63, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(92, 214, 92, 0.08) 0px, transparent 50%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Jost', sans-serif;
    /* Universal Jost */
    font-weight: 700;
    color: var(--primary-color);
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    /* More modern rounded look */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 25px;
        /* Smaller mobile buttons */
        font-size: 0.95rem;
    }
}

.btn-primary {
    background: var(--vibrant-gradient);
    /* Use main green gradient */
    color: white;
    box-shadow: 0 8px 15px rgba(0, 77, 37, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 77, 37, 0.4);
    filter: brightness(1.1);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-outline {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.section-padding {
    padding: 25px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    font-weight: 800;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
        /* Mobile Size */
    }

    .section-header {
        margin-bottom: 40px;
        /* Reduced margin */
    }
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--orange-gradient);
    margin: 10px auto 0;
    border-radius: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Header Logo Restore with Text */
.logo {
    display: flex;
    align-items: center;
    font-family: 'Jost', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 50px;
    margin-right: 12px;
    vertical-align: middle;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)) var(--logo-filter, none);
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.1);
}

.logo div {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo small {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Header */
header {
    background: var(--glass-green);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    border-bottom: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    background: var(--bg-white);
    opacity: 0.98;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(45, 106, 79, 0.05);
}

/* Store Button Pulse Animation */
@keyframes storePulse {
    0% { box-shadow: 0 0 0 0 rgba(180, 229, 13, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(180, 229, 13, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(180, 229, 13, 0); transform: scale(1); }
}

.btn-blink {
    animation: storePulse 2s infinite;
    background: var(--vibrant-gradient) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Store Ribbon */
.store-ribbon {
    background: var(--vibrant-gradient);
    padding: 20px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.ribbon-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 800;
    color: #ffffff;
}

.ribbon-content p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 1rem;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--vibrant-gradient);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(180, 229, 13, 0.5);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Hero Section Updates */
.hero {
    height: 65vh;
    background: linear-gradient(rgba(27, 67, 50, 0.7), rgba(27, 67, 50, 0.4)), url('https://cdn.pixabay.com/photo/2024/03/20/04/00/ai-generated-8644565_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 85vh;
        padding-top: 100px;
        /* Space for navbar */
        padding-bottom: 50px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s forwards;
    opacity: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 18px;
    line-height: 1.1;
    text-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .hero-content {
        padding: 25px;
        width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
    color: #e0f2f1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.quality-strip {
    background: linear-gradient(135deg, #004D25 0%, #002A16 100%);
    /* Deep Forest Green */
    padding: 35px 0;
    color: #ffffff;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.quality-item i {
    font-size: 1.8rem;
    color: #FFD700 !important;
    /* Bright Gold Icon */
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.quality-item span {
    color: #ffffff !important;
    font-weight: 600;
}

.quality-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.quality-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.quality-item i {
    font-size: 1.8rem;
    color: #1A1100;
    /* Deep Dark Icon */
}

/* About Section */
.about {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 30px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    padding: 10px;
    max-width: 420px;
    margin: 0 auto;
}

/* Slider Container */
.about-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    min-height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #002A16; /* Dark green fallback */
}

/* Slide Images */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 5%;
    opacity: 1; /* Forced visible for now */
    z-index: 5;
}

/* Re-adding animation with visibility fix */
.slide-img {
    animation: crossFade 8s ease-in-out infinite;
}

.slide-img:nth-child(1) {
    animation-delay: 0s;
}

.slide-img:nth-child(2) {
    animation-delay: 4s;
}

@keyframes crossFade {
    0% {
        opacity: 0;
        z-index: 1;
    }

    5% {
        opacity: 1;
        z-index: 2;
        transform: scale(1);
    }

    45% {
        opacity: 1;
        z-index: 2;
        transform: scale(1.05);
    }

    55% {
        opacity: 0;
        z-index: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        z-index: 1;
    }
}

/* Shining Effect Overlay */
.about-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    transform: skewX(-25deg);
    animation: shineMove 5s infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes shineMove {
    0% {
        left: -150%;
    }

    20% {
        left: 150%;
    }

    /* Fast shine pass */
    100% {
        left: 150%;
    }

    /* Rest period */
}

/* Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -15px;
    right: 15px;
    background: #004D25;
    color: #FFD700;
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid #FFD700;
    /* Gold border accent */
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 20;
    /* Ensure it stays on top of slider and shine effect */
}

.experience-badge .years {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.about-text h3 {
    color: var(--accent-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.benefits {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 35px 0;
}

.benefit-icon {
    font-size: 2.5rem;
    color: #FFD700 !important;
    /* Bright Gold Icon */
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(255, 215, 0, 0.2));
}

.benefit-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Siddhar Legacy Section Background */
.siddhar-lineage {
    background-color: #FDFCF5;
    /* Light mode default */
    position: relative;
    overflow: hidden;
    /* No z-index here to avoid strict stacking context trapping */
}

/* Specific Dark Mode compatibility */
[data-theme="dark"] .siddhar-lineage {
    background-color: var(--bg-dark);
    /* Ensure it stays green in dark mode */
}

/* Previous static background removed in favor of Lottie */

.siddhar-lineage .container {
    position: relative;
    z-index: 2;
    /* Sits ON TOP of the tree overlay */
}

.siddhar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    /* Compact cards */
    gap: 30px;
    margin-top: 40px;
}

.benefit-item p {
    color: var(--text-dark);
    /* Restore theme variable visibility */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit-item {
    padding: 40px 30px;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    background: var(--bg-white);
    border-color: var(--secondary-color);
}

/* Products Section - With Leaf Animation */
.products {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    /* Important for containing falling leaves */
}

/* Enhanced Leaf Animation ("Scroll Effect") */
.leaf-bg {
    position: absolute;
    top: -50px;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.6;
    /* Increased visibility */
    z-index: 1;
    pointer-events: none;
    /* Use 'both' to keep state, animation defined below */
    animation: leafFall linear infinite;
    text-shadow: 2px 5px 5px rgba(0, 0, 0, 0.1);
    /* 3D leaf shadow */
}

@keyframes leafFall {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        /* Fade in quickly */
    }

    100% {
        transform: translateY(100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* More leaves with varied timing/colors */
.leaf-1 {
    left: 5%;
    animation-duration: 15s;
    animation-delay: 0s;
    color: #31863F;
    font-size: 20px;
}

.leaf-2 {
    left: 15%;
    animation-duration: 22s;
    animation-delay: 4s;
    color: #5CD65C;
    /* Bright Green */
    font-size: 28px;
}

.leaf-3 {
    left: 25%;
    animation-duration: 18s;
    animation-delay: 2s;
    color: var(--secondary-color);
    font-size: 24px;
}

.leaf-4 {
    left: 40%;
    animation-duration: 20s;
    animation-delay: 8s;
    color: var(--highlight-color);
    font-size: 32px;
}

.leaf-5 {
    left: 55%;
    animation-duration: 25s;
    animation-delay: 1s;
    color: var(--primary-color);
    font-size: 22px;
}

.leaf-6 {
    left: 70%;
    animation-duration: 19s;
    animation-delay: 6s;
    color: var(--text-muted);
    font-size: 30px;
}

.leaf-7 {
    left: 85%;
    animation-duration: 24s;
    animation-delay: 3s;
    color: var(--highlight-color);
    font-size: 26px;
}

.leaf-8 {
    left: 95%;
    animation-duration: 17s;
    animation-delay: 9s;
    color: var(--secondary-color);
    font-size: 18px;
}

.leaf-9 {
    left: 10%;
    animation-duration: 28s;
    animation-delay: 12s;
    color: var(--primary-color);
    font-size: 25px;
}

.leaf-10 {
    left: 60%;
    animation-duration: 21s;
    animation-delay: 5s;
    color: var(--secondary-color);
    font-size: 29px;
}


.product-category {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    /* Keep content above leaves */
}

.category-title {
    text-align: center;
    margin-bottom: 30px;
}

.category-title h3 {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    /* Fixed max width prevents stretching */
    gap: 20px;
    justify-content: center;
    /* Centers the grid tracks horizontally */
}

.product-card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    transition: 0.8s;
    z-index: 1;
}

.product-card:hover::before {
    left: 150%;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 77, 37, 0.2);
    border-color: var(--secondary-color);
}

.product-img {
    height: 220px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--bg-white);
    background-position: center;
    position: relative;
    /* For badge */
}

/* New Product Badge */
.indication-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #004D25;
    /* Deep green tag */
    color: #FFD700;
    /* Bright gold text */
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #FFD700;
}

.product-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-tag {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Key Benefit Item */
.key-benefit {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    align-self: center;
}

.key-benefit i {
    color: var(--highlight-color);
}

.product-btn {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.product-btn a {
    display: inline-block;
    padding: 12px 30px;
    background: var(--vibrant-gradient);
    color: white !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(49, 134, 63, 0.3);
    width: 85%;
}

.product-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(49, 134, 63, 0.4);
    filter: brightness(1.1);
}


/* Gallery - keeping similar but refining */
.gallery {
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Contact */
.contact {
    background-color: var(--bg-light);
}

.contact-container {
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    color: white;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-form {
    padding: 35px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

/* 3D Glassmorphism Footer Design */
footer {
    background: linear-gradient(135deg, #1B4332 0%, #081C15 100%);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 8%, 100% 0%, 100% 100%, 0% 100%);
    margin-top: -50px;
}

/* Footer Background Pattern */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h2v2H1V1zm4 0h2v2H5V1zm4 0h2v2H9V1z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

/* Footer specific logo styling */
.footer-logo-img {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-img img {
    height: 70px;
    margin-right: 15px;
    background: var(--bg-white);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    filter: var(--logo-filter, none);
}

.footer-logo-text h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}

.footer-logo-text small {
    color: #ddd;
    font-size: 0.8rem;
    display: block;
}

.footer-logo p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: #FFD700;
    /* Lighter gold for dark footer */
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    margin-top: 5px;
    transform: scaleX(0.5);
    transform-origin: left;
    transition: transform 0.3s;
}

.footer-links:hover h4::after {
    transform: scaleX(1);
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-disclaimer {
    margin-top: 40px;
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #bbb;
}

/* Float WhatsApp Style */
.float-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 2000;
    transition: all 0.3s;
    animation: pulseBtn 2s infinite;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background-color: #20b85a;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .about-grid,
    .contact-container,
    .about-features {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-grid {
        gap: 10px;
    }

    .quality-item {
        width: 45%;
        font-size: 0.9rem;
    }

    .experience-badge {
        right: 10px;
        bottom: -15px;
        padding: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        padding: 30px;
    }

    .footer-logo,
    .footer-links {
        min-width: 100%;
        text-align: center;
    }

    .float-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .footer-logo-img {
        justify-content: center;
    }

    .footer-links h4::after {
        margin-left: auto;
        margin-right: auto;
        transform-origin: center;
    }
}

/* Herbal Grid Styles - Enhanced */
.herbal-ingredients {
    position: relative;
    padding-bottom: 80px;
    background: radial-gradient(circle at center, var(--bg-white) 0%, var(--bg-light) 100%);
    /* Subtle radial glow */
    overflow: hidden;
}

/* Background Pattern (Subtle Geometry) */
.herbal-ingredients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a7c2c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.herbal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.herb-card {
    text-align: center;
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    padding: 30px 20px;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Gold Top Accent */
.herb-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.herb-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 77, 37, 0.1);
    background: var(--bg-white);
}

.herb-card:hover::after {
    transform: scaleX(1);
}

.herb-img {
    width: 130px;
    height: 130px;
    margin: 0 auto 25px;
    background: var(--bg-white);
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    /* Gold Ring */
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Inner Dotted Ring */
.herb-img::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed rgba(184, 134, 11, 0.3);
    border-radius: 50%;
    z-index: 0;
}

.herb-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.herb-card:hover .herb-img img {
    transform: scale(1.1) rotate(8deg);
}

.herb-info h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-family: 'Merriweather', serif;
    letter-spacing: 0.5px;
}

.herb-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Decorative Lotus Divider */
.lotus-divider {
    position: absolute;
    bottom: -40px;
    /* Overlaps downwards */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 10;
    border: 5px solid var(--bg-light);
    /* Creates a ring effect matching bg */
}

.lotus-divider img {
    width: 60px;
    opacity: 0.8;
    filter: var(--logo-filter, none);
}

/* Siddhar Lineage Section */
.siddhar-lineage {
    background: var(--bg-light);
    padding-top: 40px;
    position: relative;
}

.siddhar-lineage::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(49, 134, 63, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.siddhar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.siddhar-card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.siddhar-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 77, 37, 0.15);
    border-color: var(--secondary-color);
}

.siddhar-img {
    height: 240px;
    background-size: cover;
    background-position: top center;
    position: relative;
    background-color: var(--bg-white);
    border-bottom: 4px solid var(--accent-color);
    /* Separator */
}

/* Removed gradient overlay for clarity */

.siddhar-info {
    padding: 20px;
    flex-grow: 1;
    background: var(--bg-white);
    /* Ensure distinct background */
    text-align: center;
    /* Center align for better presentation */
}

.siddhar-info h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-family: 'Jost', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.siddhar-info p {
    color: var(--text-dark);
}

.siddhar-title {
    color: var(--highlight-color);
    /* Use brightest gold for these titles */
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
    text-shadow: none;
    /* Shadow removed for cleaner look in dark mode if needed, or stick to variables */
    font-family: 'Jost', sans-serif;
}

.siddhar-info p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    /* Removed redundant card-in-card styles */
    font-family: 'Jost', sans-serif;
}

/* Doctors / Clinic Profile Section */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.vector-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: var(--primary-color);
    font-size: 6rem;
    height: 280px;
}

[data-theme="dark"] .vector-avatar {
    background: linear-gradient(135deg, #052e16 0%, #064e3b 100%);
    color: var(--accent-color);
}

.doctor-card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 77, 37, 0.2);
    border-color: var(--secondary-color);
}

.doctor-img {
    height: 280px;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-light);
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 20px;
}

.doctor-info h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
}

.doctor-designation {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.doctor-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Gallery Bento Grid Layout */
.gallery-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.item-tall {
    grid-row: span 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 37, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 992px) {
    .gallery-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item.item-large,
    .gallery-item.item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* FINAL OVERRIDES FOR DARK MODE LOGO VISIBILITY */
[data-theme="dark"] .logo {
    color: #ffffff !important;
}

[data-theme="dark"] .logo div {
    color: #ffffff !important;
}

[data-theme="dark"] .logo small {
    color: #FFD700 !important;
}

[data-theme="dark"] .logo img {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)) !important;
}

[data-theme="dark"] .footer-logo-text h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-logo-text small {
    color: #FFD700 !important;
}

[data-theme="dark"] .footer-logo-img img {
    filter: brightness(1.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    /* Subtle backing */
}

[data-theme="dark"] .lotus-divider img {
    filter: brightness(1.2) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .lotus-divider {
    background: #052E16 !important;
    /* Matches moss panel */
    border-color: #001A0E !important;
    /* Matches deep jungle */
}


/* --- Heritage Welcome Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 14, 0.85);
    /* Dark Green Tint */
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.heritage-modal {
    background: #002A16;
    max-width: 400px;
    width: 90%;
    border-radius: 25px;
    position: relative;
    padding: 20px 15px;
    border: 2px solid #FFD700;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    text-align: center;
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 480px) {
    .heritage-modal {
        width: 85%;
        padding: 20px 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-body h3 {
        font-size: 1.2rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }
}

.modal-overlay.active .heritage-modal {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* Reduced gap */
    margin-bottom: 15px;
    /* Reduced margin */
}

.modal-logo {
    height: 60px;
    /* Significantly smaller */
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #FFD700;
    padding: 3px;
    background: white;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.modal-body h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-family: 'Jost', sans-serif;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.modal-highlights {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-highlights span {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.btn-modal {
    width: 100%;
    padding: 12px;
    /* Smaller button */
    font-size: 1rem;
    border-radius: 15px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    background: #FFD700 !important;
    /* Brilliant Gold */
    background-image: none !important;
    /* Remove any gradient */
    color: #002A16 !important;
    /* Deep Green Text */
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

.btn-modal:hover {
    background: #FFC000 !important;
    /* Slightly richer gold */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}


@media (max-width: 576px) {
    .side-panel {
        width: 100%;
    }

    .scroll-contact-popup {
        width: 90%;
    }
}

/* Factory Tour Section - Bento Grid */
.factory-tour {
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
    padding-top: 40px;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 25px;
    margin-top: 50px;
}

.factory-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 77, 37, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.factory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.factory-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.factory-item.item-tall {
    grid-row: span 2;
}

.factory-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 42, 22, 0.25);
    z-index: 10;
}

.factory-item:hover img {
    transform: scale(1.15);
}

.factory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 42, 22, 0.95));
    color: white;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: flex-end;
}

.factory-item:hover .factory-overlay {
    transform: translateY(0);
}

.overlay-content span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #FFD700; /* Gold Accent */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.overlay-content small {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    display: block;
}

/* Responsive Factory Grid */
@media (max-width: 1200px) {
    .factory-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 300px);
    }
}

@media (max-width: 992px) {
    .factory-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }
    .factory-item.item-large, 
    .factory-item.item-tall {
        grid-column: span 2;
        grid-row: span 1;
        height: 350px;
    }
    .factory-item {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .factory-grid {
        grid-template-columns: 1fr;
    }
    .factory-item.item-large, 
    .factory-item.item-tall {
        grid-column: span 1;
        height: 300px;
    }
    .factory-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 42, 22, 0.8));
        padding: 20px;
    }
    .overlay-content span {
        font-size: 1.2rem;
    }
}

/* --- Guide Images Grid & Lightbox --- */
.guide-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    .guide-images-grid {
        grid-template-columns: 1fr;
    }
}

.guide-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--accent-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-white);
}

.guide-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.guide-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-color);
}

.guide-img-wrapper:hover img {
    transform: scale(1.02);
}

/* Shine Effect */
.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: left 0.7s;
    pointer-events: none;
    z-index: 2;
}

.guide-img-wrapper:hover .shine {
    left: 150%;
}

/* Lightbox Styling */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 20px;
    padding-bottom: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
