@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Logo-based - Refinement */
    --primary-green: #008000;
    --primary-green-dark: #006000;
    --primary-green-light: #2e7d32;
    --secondary-brown: #3d1f05;
    --secondary-brown-light: #5d4037;
    --accent-gold: #ffcc00;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --light-gray: #F8FAFB;
    --dark-gray: #333333;
    --footer-black: #0F0F0F;
    --text-primary: #2C3E50;
    --text-muted: #7F8C8D;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1240px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px;
}

/* Utilities */
.text-green {
    color: var(--primary-green);
}

.text-brown {
    color: var(--secondary-brown);
}

.bg-green {
    background-color: var(--primary-green);
}

.bg-brown {
    background-color: var(--secondary-brown);
}

.bg-dark {
    background-color: var(--footer-black);
    color: var(--white);
}

.bg-light {
    background-color: #fcfcfc;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.intro-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.intro-flex.flex-reverse {
    flex-direction: row-reverse;
}

.intro-content-side {
    flex: 1.2;
}

.intro-image-side {
    flex: 1;
}

.intro-body-text p {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.intro-body-text strong {
    color: #333;
}

.intro-bullets {
    padding-left: 20px;
    list-style: none;
}

.intro-bullets li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #555;
    font-size: 15.5px;
    line-height: 1.6;
}

.intro-bullets li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--secondary-brown);
    font-size: 14px;
}

@media (max-width: 992px) {

    .intro-flex,
    .intro-flex.flex-reverse {
        flex-direction: column;
        gap: 40px;
    }
}

/* Stats Progress Bars */
.stat-progress {
    margin-bottom: 25px;
}

.stat-info {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #444;
}

.progress-bar {
    width: 100%;
    height: 35px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    transition: width 1.5s ease-out;
}

/* Lab Gallery Row */
.lab-gallery-row {
    margin-top: 60px;
}

.gallery-img-container {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-img-container img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-img-container:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lab-gallery-row {
        grid-template-columns: 1fr !important;
    }
}

.section-padding {
    padding: 100px 0;
}

/* Entrance Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 42px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 14px;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover {
    transform: translateY(-5px);
    letter-spacing: 2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), #00A300);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00A300, var(--primary-green));
    box-shadow: 0 8px 25px rgba(0, 128, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-4px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-brown), var(--secondary-brown-light));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(61, 31, 5, 0.2);
}

.btn-secondary:hover {
    box-shadow: 0 20px 40px rgba(61, 31, 5, 0.3);
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
    }
}

.hero-badges {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-banner {
    min-height: 40vh;
    height: auto;
    padding: 60px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/hero.png');
}

.responsive-h1 {
    font-size: clamp(32px, 8vw, 65px);
    line-height: 1.1;
}

.responsive-h2 {
    font-size: clamp(28px, 6vw, 45px);
    line-height: 1.2;
    margin-bottom: 25px;
}

.intro-text-center {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.cta-box {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    padding: 60px;
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    box-shadow: 0 30px 60px rgba(0, 128, 0, 0.25);
}

.cta-content {
    flex: 2;
    min-width: 300px;
}

.cta-action {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cta-box {
        padding: 40px 30px;
        text-align: center;
        border-radius: 20px;
    }

    .cta-action {
        justify-content: center;
        width: 100%;
    }

    .cta-action .btn {
        width: 100%;
    }

    .hero-banner {
        padding: 40px 0;
    }
}

/* Header & Top Bar */
.top-header {
    background-color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.site-tagline {
    font-size: 11px;
    color: var(--text-muted);
    text-align: left;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    line-height: 1.4;
    white-space: normal;
    max-width: 100%;
}

.footer-widget .site-tagline {
    color: #999;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .site-tagline {
        font-size: 10px;
        letter-spacing: 0px;
    }
}

@media (max-width: 768px) {
    .site-tagline {
        font-size: 8.5px;
        margin-top: 5px;
    }

    .footer-widget .site-tagline {
        margin-top: 0px;
        margin-bottom: 25px;
    }
}

@media (max-width: 400px) {
    .site-tagline {
        font-size: 7.5px;
    }
}

.logo {
    max-width: 100%;
}

.header-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 20px;
    transition: var(--transition);
}

.header-info-item:hover .header-info-icon {
    background-color: var(--primary-green);
    color: var(--white);
    transform: rotateY(180deg);
}

.header-info-text h6 {
    font-size: 12px;
    margin-bottom: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.header-info-text p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-menu {
    display: none;
}

.mobile-call-cta {
    display: none;
}

/* Navigation */
nav {
    background-color: var(--primary-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    height: 70px;
    display: flex;
    align-items: center;
}

nav.sticky {
    background: rgba(0, 128, 0, 0.9);
    backdrop-filter: blur(15px);
    height: 60px;
}

.nav-links {
    display: flex;
}

.nav-links li a {
    color: var(--white);
    padding: 22px 25px;
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 25px;
    right: 25px;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: scaleX(1);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px 15px;
    margin-right: -10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background: #000;
    /* Fallback */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    transform: scale(1.1);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    text-align: left;
}

.hero-content h4 {
    color: var(--accent-gold);
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

.hero-content h1 {
    font-size: clamp(36px, 8vw, 75px);
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-content p {
    font-size: clamp(16px, 4vw, 19px);
    max-width: 650px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #f1f1f1;
}

/* Service Grid & Cards */
.core-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .core-services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-green) rgba(0, 0, 0, 0.05);
        gap: 20px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .core-services-grid>div {
        flex: 0 0 auto;
        width: 160px;
        scroll-snap-align: start;
    }
}

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

.service-card {
    padding: 60px 40px;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card>i,
.card-icon {
    font-size: 40px;
    margin-bottom: 30px;
    display: inline-block;
    color: var(--primary-green);
    transition: transform 0.4s ease;
}

.service-card:hover>i,
.service-card:hover .card-icon {
    transform: scale(1.1);
}

/* Product Tables Styling */
.table-container {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    background: var(--white);
    padding: 5px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.product-table th {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 22px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-table td {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 15px;
    color: #444;
}

.product-table tr:last-child td {
    border-bottom: none;
}

.product-table tr:hover {
    background-color: #f8fbff;
}

/* Contact Form Styling */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-info-box {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.contact-info-box h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.contact-info-item i {
    font-size: 20px;
    color: var(--accent-gold);
    min-width: 25px;
    text-align: center;
    margin-top: 6px;
}

.contact-form {
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    font-size: 15px;
    background: #fcfcfc;
}

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

/* Footer */
footer {
    background-color: var(--footer-black);
    color: #888;
    padding: 100px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.8fr;
    gap: 40px;
    margin-bottom: 60px;
    width: 100%;
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 35px;
    font-size: 18px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-green);
}

.footer-widget p {
    font-size: 15px;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 18px;
}

.footer-links li a {
    font-size: 15px;
}

.footer-links li a:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-green);
    transform: translateY(-5px) rotate(360deg);
}

.footer-bottom {
    background: #000;
    padding: 35px 0;
    color: #555;
    font-size: 14px;
    border-top: 1px solid #111;
}

/* Responsive Handling */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .hero-ctas,
    .hero-badges {
        justify-content: center;
    }

    .hero-badges {
        flex-wrap: wrap;
    }

    .mobile-call-cta {
        display: block;
        margin-left: auto;
    }

    .btn-call-mobile {
        background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
        color: white;
        padding: 10px 18px;
        border-radius: 50px;
        font-size: 13px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(0, 128, 0, 0.3);
        text-transform: uppercase;
        animation: pulseCTA 2s infinite;
    }

    @keyframes pulseCTA {
        0% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(0, 128, 0, 0.3);
        }

        50% {
            transform: scale(1.05);
            box-shadow: 0 4px 25px rgba(0, 128, 0, 0.5);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(0, 128, 0, 0.3);
        }
    }

    .header-info-grid {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    nav .container {
        justify-content: space-between;
        width: 100%;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-green);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        transition: 0.5s ease-in-out;
        z-index: 999;
        visibility: hidden;
    }

    .nav-links.active {
        left: 0;
        visibility: visible;
    }

    .nav-links .close-menu {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        color: white;
        background: var(--secondary-brown);
        width: 45px !important;
        height: 45px !important;
        align-items: center;
        justify-content: center;
        border-radius: 50% !important;
        cursor: pointer;
        font-size: 18px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        z-index: 2000;
        transition: var(--transition);
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .close-menu:hover {
        transform: rotate(90deg) scale(1.1);
        background: var(--secondary-brown-light);
    }

    .nav-links li:not(.close-menu) {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 25px;
        font-size: 20px;
    }

    .nav-links li a::after {
        display: none;
    }

    .hero {
        height: 70vh;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .hero-banner {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
    }

    .logo h1,
    .logo h2 {
        font-size: 1.4rem !important;
    }

    .logo img {
        height: 45px;
        width: auto;
    }
}

/* Global Responsive Adjustments */
@media (max-width: 992px) {
    .section-padding {
        padding: 60px 0;
    }

    .intro-flex {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        height: auto;
        min-height: 60vh;
        padding: 80px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: clamp(28px, 9vw, 45px) !important;
    }

    .responsive-h1 {
        font-size: clamp(26px, 8vw, 42px) !important;
    }

    .responsive-h2 {
        font-size: clamp(22px, 7vw, 32px) !important;
    }

    .cta-box {
        padding: 35px 25px;
        margin-top: 50px;
    }

    .cta-action .btn {
        width: 100% !important;
        display: flex !important;
    }

    .intro-flex {
        flex-direction: column !important;
        text-align: center;
    }

    .flex-reverse {
        flex-direction: column !important;
    }

    .intro-image-side {
        order: -1;
        width: 100%;
    }

    .lab-gallery-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px !important;
    }

    .btn {
        padding: 14px 25px;
        font-size: 12px;
    }

    .logo h2 {
        font-size: 1.2rem;
    }
}

/* Image Gallery Gallery - Horizontal Scroll */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 20px 0 40px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) #f1f1f1;
}

/* Custom Scrollbar for Chrome/Safari */
.gallery-grid::-webkit-scrollbar {
    height: 6px;
}

.gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    flex: 0 0 350px;
    /* Fixed width for better layout */
    scroll-snap-align: start;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.6));
    z-index: 1;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-item:hover::before {
    opacity: 0.8;
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-grid {
        gap: 15px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        scroll-snap-type: x mandatory;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none;
        /* Hide on mobile for app-like feel */
    }

    .gallery-item {
        flex: 0 0 280px;
        height: 320px;
        scroll-snap-align: center;
    }

    .gallery-caption {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.5);
        padding: 8px 15px;
        border-radius: 5px;
        font-size: 14px;
        backdrop-filter: blur(5px);
    }
}