:root {
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --secondary: #d4a373;
    --accent: #ffb703;
    --dark: #1b4332;
    --light: #f8f9fa;
    --white: #ffffff;
    --text: #212529;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary);
}

.bg-light {
    background-color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
}

.bg-primary {
    background-color: var(--primary);
}

.text-white {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.touch-active {
    background: var(--primary-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 20px rgba(64, 145, 108, 0.6), 0 15px 30px rgba(45, 106, 79, 0.4);
    filter: brightness(1.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:active,
.btn-secondary.touch-active {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}


header.scrolled .nav-links a {
    color: var(--dark);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled .brand-logo {
    border-color: rgba(0, 0, 0, 0.1);
}

.logo-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary) !important;
    /* Force initial color consistency */
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.logo-slogan {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}

header.scrolled .logo-text {
    color: var(--primary) !important;
}

header.scrolled .logo-slogan {
    color: var(--dark);
    opacity: 0.6;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--dark);
}

.mobile-nav {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Gallery Slider */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.gallery-item {
    flex: 0 0 calc(33.333% - 1rem);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .gallery-item {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 100%;
    }
}

.slider-btn {
    background: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--primary);
}

.slider-btn:hover,
.slider-btn:active,
.slider-btn.touch-active {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(45, 106, 79, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Split Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-layout.rev {
    direction: rtl;
}

.split-layout.rev .split-content {
    direction: ltr;
}

.split-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Problem Section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.problem-card:hover,
.problem-card.touch-active {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.problem-card i {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.problem-card.highlight {
    background: var(--primary);
    color: var(--white);
}

.problem-card.highlight i,
.problem-card.highlight h3 {
    color: var(--white);
}

/* Innovation Features */
.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Uniqueness Section */
.unique-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.unique-item {
    text-align: center;
    transition: var(--transition);
}

.unique-item:hover,
.unique-item.touch-active {
    transform: translateY(-10px);
}

.unique-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.unique-item:hover img,
.unique-item.touch-active img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Working Principle */
.steps-container {
    display: flex;
    gap: 2rem;
    counter-reset: steps;
}

.step-card {
    flex: 1;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(45, 106, 79, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* Impact Section - Linear */
.impact-linear {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.5fr;
    gap: 3rem;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-val.nowrap {
    white-space: nowrap;
    font-size: 2.2rem;
    /* Slightly smaller to ensure single line fit */
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Development Journey */
.dev-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
}

.dev-carousel::-webkit-scrollbar {
    display: none;
}

.dev-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 300px;
}

@media (max-width: 992px) {
    .dev-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .dev-card {
        flex: 0 0 100%;
    }
}

.dev-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.dev-card p {
    text-align: center;
    font-weight: 600;
}

/* Vision */
.vision {
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.vision-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 106, 79, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vision-text {
    font-size: 2.5rem;
    color: var(--white);
    font-weight: 300;
    font-style: italic;
    max-width: 800px;
}

/* Contact Section */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top:hover,
.back-to-top:active,
.back-to-top.touch-active {
    background: var(--primary-light);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 0 20px rgba(64, 145, 108, 0.6);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
}

.modal video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {

    .split-layout,
    .impact-linear {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problem-grid,
    .unique-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .dev-card {
        flex: 0 0 calc(100% - 1rem);
        /* Full width minus a bit for the gap/peak */
    }

    .split-image {
        order: -1;
        /* Ensure image is always on top on mobile */
        height: 300px;
        overflow: hidden;
        border-radius: 20px;
    }

    .split-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .vision-text {
        font-size: 1.5rem;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-val {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Nav Dropdown */
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 2rem;
        border-top: 1px solid #eee;
        animation: slideDown 0.3s ease-out;
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-links a {
        color: var(--dark);
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 600;
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .steps-container {
        flex-direction: column;
    }

    .cta-group {
        flex-direction: column;
    }
}