:root {
    --forest: #0b3d2e;
    --amber: #f97316;
    --white: #ffffff;
    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
.display {
    font-family: 'Cormorant Garamond', serif;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f8faf9;
}

::-webkit-scrollbar-thumb {
    background: var(--forest);
    border-radius: 99px;
}

/* ── Utility Classes ── */
.text-amber {
    color: var(--amber) !important;
}

.text-amber-light {
    color: #fdb981 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-forest {
    color: var(--forest) !important;
}

.text-slate-500 {
    color: #64748b !important;
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-32px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes lineGrow {
    from {
        width: 0;
    }

    to {
        width: var(--target-w);
    }
}

.animate-fadeUp,
.animate-fadeIn,
.animate-slideRight,
.animate-scaleIn {
    animation: none !important;
}

.animate-float {
    animation: float 4s ease-in-out infinite; /* Kept float as it doesn't delay loading */
}

.delay-100,
.delay-200,
.delay-300,
.delay-400,
.delay-500,
.delay-600 {
    animation-delay: 0s !important;
}

/* Reveal on scroll - Disabled for instant load */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: none;
}

/* Marquee strip */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* Hero */
.hero-section {
    background: linear-gradient(160deg, #03180f 0%, #0b3d2e 55%, #1d7a60 100%);
    position: relative;
    overflow: hidden;
}

/* Home hero specifically needs full height */
.home-hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%23ffffff' 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");
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* ══════════════════════════════════════════════
   HEADER (WHITE & LARGE LOGO)
   ══════════════════════════════════════════════ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    /* Explicit white background */
    box-shadow: 0 1px 32px rgba(11, 61, 46, 0.06);
    transition: var(--transition);
}

header.scrolled {
    padding: 0;
    box-shadow: 0 4px 40px rgba(11, 61, 46, 0.12);
}

/* Align with body: max-w-7xl (1280px) + px-5/8 padding */
header .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    /* px-5 default */
}

@media (min-width: 640px) {
    header .container {
        padding: 0 2rem;
        /* sm:px-8 */
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled .header-container {
    padding: 0.6rem 0;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 52px;
}

/* ══════════════════════════════════════════════
   MENU BAR
   ══════════════════════════════════════════════ */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--forest);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 0;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: var(--transition);
    border-radius: 99px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--amber);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--forest);
    position: relative;
    z-index: 1100;
    /* Ensure it stays above the nav drawer */
}

/* Video Play Button Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    z-index: 25;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.gallery-item:hover .play-icon {
    transform: scale(1.15);
    background: var(--amber);
    border-color: var(--amber);
}

@media (max-width: 992px) {
    .header-container {
        padding: 1rem 0;
    }

    .logo img {
        height: 60px;
    }

    nav ul {
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        margin-right: -5px;
        /* Offset for alignment */
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--white);
        z-index: 1050;
        /* Below toggle button */
        transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        padding: 7rem 2.5rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 2.2rem;
    }

    nav ul li a {
        font-size: 1.4rem;
        font-weight: 600;
    }
}

/* Cards */
.program-card {
    background: #fff;
    border: 1px solid rgba(11, 61, 46, 0.07);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b3d2e, #f97316);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px -12px rgba(11, 61, 46, 0.18);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
    border-color: rgba(249, 115, 22, 0.4);
    transform: translateY(-4px);
}

/* Impact bars */
.impact-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

.impact-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #fdba74);
    border-radius: 99px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Testimonial */
.testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px -8px rgba(11, 61, 46, 0.10);
    border: 1px solid rgba(11, 61, 46, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -12px rgba(11, 61, 46, 0.18);
}

/* Pulse dot */
.pulse-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f97316;
    animation: pulse-ring 2s ease-out infinite;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #1a3a2d;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    background: #fafcfb;
}

.form-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.10);
    background: #fff;
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobileMenu.open {
    max-height: 500px;
}

/* Mobile Menu Visibility Fixes */
.glass-header.menu-open:not(.scrolled) {
    background: #0b3d2e;
}

.glass-header.scrolled #mobileMenu a.block {
    color: #1a3a2d !important;
}

.glass-header.scrolled #mobileMenu a.block:hover {
    background-color: rgba(11, 61, 46, 0.08) !important;
}

.glass-header.scrolled #mobileMenu .border-t {
    border-color: rgba(11, 61, 46, 0.1) !important;
}

/* Hamburger to Cross Animation */
.glass-header.menu-open #menuToggle .menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.glass-header.menu-open #menuToggle .menu-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.glass-header.menu-open #menuToggle .menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.25rem !important;
    align-self: center !important;
}

/* Image shimmer placeholder */
.img-shimmer {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Gallery hover */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 38, 29, 0.75) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Divider wave */
.wave-divider {
    line-height: 0;
}

/* Partner strip */
.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #0b3d2e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    transition: all 0.3s;
}

.partner-badge:hover {
    background: #0b3d2e;
    color: #fff;
    transform: translateY(-2px);
}

/* Badge tag */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-amber {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.badge-white {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-forest {
    background: rgba(11, 61, 46, 0.08);
    color: #0b3d2e;
    border: 1px solid rgba(11, 61, 46, 0.15);
}

/* CTA buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: #f97316;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}

.btn-primary:hover {
    background: #ea6000;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.35);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-forest {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: #0b3d2e;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}

.btn-forest:hover {
    background: #155e4b;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(11, 61, 46, 0.25);
}

/* Section headings */
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Sticky CTA mobile */
#stickyCta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#stickyCta.visible {
    transform: translateY(0);
}

/* Number highlight in About */
.year-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 130px;
    height: 130px;
    background: #f97316;
    border-radius: 50%;
    border: 8px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.4);
    text-align: center;
    line-height: 1.1;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-body {
    max-height: 200px;
}

.faq-icon {
    transition: transform 0.4s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background: linear-gradient(160deg, #03180f 0%, #06261d 100%);
}

/* Responsive table fix */
@media (max-width: 640px) {
    .hero-section {
        min-height: 100svh;
    }
}

/* Noise panel effect */
.noise-panel {
    position: relative;
    overflow: hidden;
}

.noise-panel::after {
    display: none;
}

/* Skeleton loader */
.skeleton {
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer-effect 1.2s infinite ease-in-out;
}

@keyframes shimmer-effect {
    100% {
        transform: translateX(100%);
    }
}

/* Project Card specifically for dynamic grid */
.dynamic-project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 40px -8px rgba(11, 61, 46, 0.12);
    border: 1px solid #f1f5f9;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.dynamic-project-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0b3d2e, #f97316);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dynamic-project-card:hover::before {
    transform: scaleX(1);
}

.dynamic-project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px -12px rgba(11, 61, 46, 0.25);
}