:root {
    --deep-green: #054034;
    --mint-green: #b3dac7;
    --black: #0a0a0a;
    --black-light: #161616;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #888888;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Disabled for GSAP/Lenis */
    font-size: 16px;
}

html.lenis,
html.lenis body {
    height: auto;
    width: 100%;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    color: var(--white);
    background-color: var(--black);
    line-height: 1.5;
    overflow-x: hidden;
}

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

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

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

.text-light {
    color: var(--white);
}

.text-dark {
    color: var(--black);
}

/* Layout Helpers */
.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 5%;
}

.section-heading {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 3rem;
    color: var(--black);
}

.technology-heading {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    margin-bottom: 2.5rem;
}

.why-choose-heading {
    color: #ffffff !important;
    position: relative;
    z-index: 2;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 64, 52, 0);
    backdrop-filter: blur(0px);
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(5, 64, 52, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--mint-green);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--mint-green);
    color: var(--black);
    border: 2px solid var(--mint-green);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--mint-green);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 10;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 64, 52, 0.6);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    background-attachment: fixed;
    opacity: 0.5;
    z-index: 1;
}



.hero-content {
    position: relative;
    z-index: 2;
    /* Ensures text stays sharp over the blurred backdrop */
    text-align: center;
    max-width: 1000px;
    padding: 0 5%;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-title {
    font-size: clamp(2rem, 4vw + 0.8rem, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: #FFF;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Overview Section */
.overview {
    position: relative;
    background-color: var(--white);
    color: var(--deep-green);
    z-index: 20;
    padding: 8rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.overview-heading-col {
    position: sticky;
    top: 120px;
}

.overview-title {
    font-size: clamp(3rem, 4vw, 4.5rem);
    color: var(--deep-green);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.overview-content-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.overview-text {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--black);
    font-weight: 400;
}

/* Technology (Bento Grid) Section */
.technology {
    background-color: #000000;
    padding: 5rem 0;
    position: relative;
    z-index: 20;
}

.horizontal-scroll-wrapper {
    width: 100%;
    margin: 0 !important;
    max-width: 1400px;
    padding: 0 !important;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.bento-item {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.6s ease;
}

.bento-item:hover {
    box-shadow: 0 20px 40px rgba(5, 64, 52, 0.6);
    z-index: 10;
}

.bento-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    z-index: 2;
}

.bento-item p {
    font-size: 15px;
    opacity: 0.9;
    z-index: 2;
    max-width: 90%;
}



.bento-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
    transition: transform 0.8s ease;
}

.bento-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-deep-green .bento-overlay {
    background: linear-gradient(to bottom, rgba(5, 64, 52, 0.95) 0%, rgba(5, 64, 52, 0) 100%);
}

.bg-mint .bento-overlay {
    background: linear-gradient(to bottom, rgba(179, 218, 199, 0.95) 0%, rgba(179, 218, 199, 0) 100%);
}

.bg-black .bento-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
}

.bento-item:hover .bento-bg-img {
    transform: scale(1.05);
}

.bento-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-item h3 {
    position: relative;
}

.bento-item p {
    position: relative;
}

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

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

.bg-black {
    background-color: var(--black);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}




/* Stats Section */
/* CRITICAL FIX: Remove margins that cause layout jumping */
.stats {
    margin-top: 0 !important;
    color: var(--white);
    border-top: 1px solid rgba(179, 218, 199, 0.2);
    border-bottom: 1px solid rgba(179, 218, 199, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

.stats-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.stats-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 64, 52, 0.4);
    z-index: 1;
}

.stats .section-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.stats .section-heading {
    text-align: center;
    color: var(--mint-green);
}

.why-choose-heading {
    text-align: left !important;
    font-style: normal !important;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.why-choose-item {
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.why-choose-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #b3dac7;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.why-choose-item:hover {
    border-color: #b3dac7;
}

.why-choose-item:hover::before {
    top: 0;
}

.why-choose-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.4);
    color: #b3dac7;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.why-choose-item:hover .why-choose-icon {
    top: 2.5rem;
    left: 2rem;
    transform: translate(0, 0) scale(1);
    color: #054034;
}

.why-choose-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.why-choose-content h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(20px);
}

.why-choose-item:hover .why-choose-content h3 {
    color: #054034;
    transform: translateY(0);
    margin-bottom: 1rem;
}

.why-choose-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #054034;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.why-choose-item:hover .why-choose-content p {
    opacity: 1;
    max-height: 300px;
    transform: translateY(0);
}

/* Custom Icon Micro-Animations */

/* Card 1: Pulse outer nodes and let lines flow */
.icon-partnership .node-outer {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.5s ease;
    animation: pulseNode 1.5s infinite ease-in-out;
}

.icon-partnership .network-line {
    stroke-dasharray: 10;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease, opacity 0.5s ease;
    animation: flowData 1.5s infinite linear;
}

@keyframes pulseNode {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

@keyframes flowData {
    0% {
        stroke-dashoffset: 20;
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0.5;
    }
}

/* Card 2: Smooth rotating gear */
.icon-operations .gear-spin {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.5s ease;
    animation: spinGear 3s infinite linear;
}

@keyframes spinGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Card 3: Shield radar sweep/pulse */
.icon-experience .shield-pulse {
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    animation: pulseShield 2s infinite ease-out;
}

@keyframes pulseShield {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Footer Video Wrapper */
.footer-video-wrapper {
    position: relative;
    overflow: hidden;
}

.footer-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Contact Section */
.contact {
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-info h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-form {
    background-color: var(--black-light);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-medium);
}

.form-group input {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.25rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--mint-green);
}

/* Footer */
.footer {
    background-color: transparent !important;
    position: relative;
    z-index: 1;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo-link {
    display: flex;
    align-items: center;
}

.footer-logo {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-medium);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 2rem;
    color: var(--gray-medium);
    font-size: 0.875rem;
}

/* Scroll Animations */
html.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback if JS fails */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

html.js .reveal.is-visible:hover {
    transition-delay: 0s !important;
}

/* Parallax Helpers */
[data-parallax],
.parallax-layer {
    will-change: transform;
}

/* Responsive Constraints */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .overview-heading-col {
        position: relative;
        top: 0;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-item:nth-child(2) {
        grid-column: span 1;
    }

    .bento-item:nth-child(3) {
        grid-column: span 1;
    }

    .bento-item:nth-child(4) {
        grid-column: span 1;
    }

    .bento-item:nth-child(5) {
        grid-column: span 1;
    }

    .bento-item:nth-child(6) {
        grid-column: span 1;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--deep-green);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-ctas {
        flex-direction: column;
    }

    /* Simple vertical stack for mobile grid */
    .bento-grid {
        grid-template-columns: 1fr;
        width: 100%;
        height: auto;
    }

    .bento-item {
        width: 100% !important;
        height: 60vh;
        margin-bottom: 2rem;
    }

    .horizontal-scroll-wrapper {
        padding-right: 5%;
        display: block;
    }

    .technology {
        height: auto;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }


}