/* 
   WNT — Waste Neutral Technologies
   Ultra-Modern Landing Page
   Inspired by The Ocean Cleanup, pushed further with life & motion
*/

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

:root {
    --navy: #001B2E;
    --navy-deep: #00101C;
    --navy-mid: #002D42;
    --cyan: #00D4E8;
    --cyan-mint: #00ff88; /* Added for the shimmer effect */
    --cyan-glow: rgba(0, 212, 232, 0.25);
    --white: #FFFFFF;
    --white-dim: rgba(255,255,255, 0.7);
    --white-muted: rgba(255,255,255, 0.5);

    --header-h: 120px; /* Increased to match logo */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ======== RESET ======== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--navy-deep);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    
    /* Animated Background Aura */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    width: 200vw; height: 200vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(0, 212, 232, 0.04) 0%, transparent 60%);
    z-index: -2;
    animation: auraMove 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes auraMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-45%, -55%) rotate(5deg); }
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); }

/* ======== HEADER ======== */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--header-h);
    display: flex; align-items: center;
    padding: 0 48px;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 16, 28, 0.8) 0%, rgba(0, 16, 28, 0.3) 50%, transparent 100%);
    transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.header.scrolled {
    background: rgba(0, 16, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.logo-container {
    display: flex; align-items: center;
    margin-right: 48px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.1;
    background: linear-gradient(
        300deg, 
        var(--white) 0%, 
        var(--cyan) 25%, 
        var(--white) 50%, 
        var(--cyan-mint) 75%,
        var(--white) 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientFlow 6s linear infinite;
}

.logo-main {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    transition: font-size 0.3s var(--ease-out);
}

.logo-slogan {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-top: -2px;
    text-transform: uppercase;
    display: block;
    white-space: nowrap;
    transition: font-size 0.3s var(--ease-out);
}

/* Nav */
.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 40px; align-items: center; }
.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--white);
    opacity: 0.85;
    transition: opacity 0.25s;
    display: flex; align-items: center; gap: 6px;
    padding: 28px 0;
}
.main-nav > ul > li > a:hover { opacity: 1; }
.main-nav > ul > li > a i {
    font-size: 8px; opacity: 0.5;
    transition: transform 0.3s var(--ease-out);
}
.main-nav > ul > li:hover > a i { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
    position: absolute; top: 100%; left: -20px;
    min-width: 240px;
    background: var(--navy);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.main-nav > ul > li:hover .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
    display: block; padding: 12px 24px;
    font-size: 14px; font-weight: 500;
    color: var(--white-dim);
    transition: all 0.2s;
}
.dropdown li a:hover {
    color: var(--cyan);
    background: rgba(0, 212, 232, 0.06);
    padding-left: 28px;
}

/* Secondary nav */
.secondary-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--white); opacity: 0.75;
    transition: opacity 0.25s;
    display: flex; align-items: center; gap: 5px;
}
.nav-link:hover { opacity: 1; }
.nav-link i { font-size: 8px; opacity: 0.5; }

/* CTA Button */
.btn-donate {
    display: inline-flex; align-items: center;
    background: var(--cyan);
    color: var(--navy-deep) !important;
    font-size: 12px !important; font-weight: 800 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 0;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.btn-donate::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-donate:hover::before { transform: translateX(100%); }
.btn-donate:hover {
    background: #FFF;
    box-shadow: 0 0 40px var(--cyan-glow);
}

.btn-search {
    background: none; border: none;
    color: var(--white); cursor: pointer;
    font-size: 16px; opacity: 0.75;
    transition: opacity 0.25s;
    padding: 8px;
}
.btn-search:hover { opacity: 1; }

.mobile-menu-toggle {
    display: none;
    background: none; border: none;
    color: var(--white); font-size: 24px;
    cursor: pointer; padding: 8px;
}

/* ======== HERO ======== */
.hero {
    position: relative;
    height: 100vh; min-height: 700px;
    display: flex; align-items: flex-end;
    padding: 0 0 40px 80px; /* Further lowered to baseline */
    overflow: hidden;
}

.hero-video-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-bg-media {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,16,28,0.3) 0%, rgba(0,16,28,0.1) 40%, rgba(0,16,28,0.7) 100%),
        linear-gradient(90deg, rgba(0,16,28,0.6) 0%, transparent 60%);
}

.hero-content {
    position: relative; z-index: 2;
    max-width: 900px;
}
.hero-center-logo { display: none; }

/* Logo overlay — large watermark behind hero text */
.hero-logo-overlay {
    position: absolute;
    z-index: 1;
    top: 25%; left: 50%; /* Lowered from 22% to avoid navbar crowding */
    transform: translate(-50%, -50%);
    width: clamp(300px, 40vw, 550px);
    height: auto;
    opacity: 1; /* More visible */
    pointer-events: none;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8));
    animation: logo-float-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-float-glow {
    0% { 
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    }
    100% { 
        transform: translate(-50%, -53%) scale(1.05);
        filter: drop-shadow(0 0 35px rgba(255, 255, 255, 0.9));
    }
}

.hero-title {
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 48px;
    text-transform: uppercase;
    
    /* Animated Gradient Shimmer */
    background: linear-gradient(
        300deg, 
        var(--white) 0%, 
        var(--cyan) 25%, 
        var(--white) 50%, 
        var(--cyan-mint) 75%,
        var(--white) 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 212, 232, 0.25));
    animation: gradientFlow 6s linear infinite, heroFloat 5s ease-in-out infinite alternate;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes heroFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.hero-link {
    display: inline-flex; align-items: center; gap: 16px;
    color: var(--white);
    font-size: 16px; font-weight: 500;
    transition: gap 0.4s var(--ease-spring);
}
.hero-link:hover { gap: 22px; }

.circle-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--cyan);
    display: flex; align-items: center; justify-content: center;
    color: var(--navy-deep);
    font-size: 14px;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
    position: relative;
}
.circle-icon::after {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0.4;
    animation: pulse-ring 2.5s ease-out infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2); opacity: 0; }
}
.hero-link:hover .circle-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--cyan-glow);
}

/* ======== MISSION ======== */
.mission-section {
    background: var(--navy); /* Keep it as fallback while video loads */
    padding: 140px 80px;
    position: relative;
    overflow: hidden;
}

.mission-header {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.mission-text-side {
    flex: 1;
}

.mission-video-aside {
    flex: 1.4;
    display: flex;
    justify-content: flex-end;
}

.video-window {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.mission-aside-media {
    width: 100%; height: 100%;
    object-fit: cover;
}

.video-window-overlay {
    display: none;
}

.mission-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    position: relative;
}

.section-heading {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 40px; /* Reduced margin in flex side */
    letter-spacing: -0.5px;
}

.accent-text { 
    color: var(--cyan); 
    font-weight: 700;
    background: linear-gradient(
        300deg, 
        var(--cyan) 0%, 
        var(--white) 33%, 
        var(--cyan) 66%,
        var(--white) 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s linear infinite;
}

/* Separator bar (like TOC) */
.section-bar {
    width: 64px; height: 3px;
    background: var(--cyan);
    margin-bottom: 32px;
    border-radius: 2px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.mission-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.mission-item.visible {
    opacity: 1; transform: translateY(0);
}

.subsection-heading {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.15;
}

.mission-text {
    font-size: 16px;
    color: var(--white-dim);
    line-height: 1.8;
    font-weight: 400;
}

/* ======== SPLIT SECTION ======== */
.split-section {
    display: flex;
    height: 80vh; min-height: 550px;
}

.split-block {
    flex: 1; position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 64px 56px;
    cursor: pointer;
}

.split-bg {
    position: absolute; inset: 0; z-index: 1;
    background: var(--navy-deep);
}
.split-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out), filter 1s var(--ease-out);
    filter: brightness(0.35);
}
.split-block:hover .split-bg img {
    transform: scale(1.08);
    filter: brightness(0.55);
}
.split-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(0deg,
        rgba(0, 16, 28, 0.92) 0%,
        rgba(0, 16, 28, 0.4) 50%,
        rgba(0, 16, 28, 0.15) 100%
    );
    z-index: 1;
}

.split-content {
    position: relative; z-index: 5;
    max-width: 500px;
}

.split-content h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--white);
}

.split-content p {
    font-size: 15px;
    color: var(--white-dim);
    line-height: 1.7;
    margin-bottom: 28px;
}

.learn-more {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--cyan);
    font-size: 14px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: gap 0.3s var(--ease-spring);
    text-decoration: none;
}
.learn-more::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s var(--ease-spring);
}
.split-block:hover .learn-more { gap: 16px; }
.split-block:hover .learn-more::after { transform: translateX(6px); }

/* ======== ANIMATIONS (scroll-triggered via JS) ======== */
.fade-up {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.fade-up.visible {
    opacity: 1; transform: translateY(0);
}

/* Staggered children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }

@media (max-width: 1100px) {
    .main-nav, .secondary-nav { display: none; }
    .mobile-menu-toggle { 
        display: block; 
        margin-left: auto; 
        z-index: 1001;
        position: relative;
    }
    .header { padding: 0 24px; justify-content: space-between; }
    
    .logo-main { font-size: 24px; letter-spacing: 1px; }
    .logo-slogan { font-size: 7px; letter-spacing: 1.5px; opacity: 0.8; }
    .logo-container { margin-right: 0; }

    .hero { padding: 0 0 80px 40px; }
    .mission-section { padding: 100px 40px; }
    .mission-header { flex-direction: column; gap: 40px; text-align: left; }
    .mission-video-aside { width: 100%; justify-content: center; }
    .video-window { max-width: 100%; }

    /* Mobile Menu Overlay Styles */
    body.menu-open { overflow: hidden; }
    
    body.menu-open .main-nav {
        display: flex;
        position: fixed; inset: 0;
        background: rgba(0, 16, 28, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        animation: fadeIn 0.4s var(--ease-out);
    }

    body.menu-open .main-nav > ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    body.menu-open .main-nav > ul > li > a {
        font-size: 24px;
        padding: 10px 0;
    }

    body.menu-open .secondary-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 60px;
        left: 0; width: 100%;
        align-items: center;
        z-index: 1001;
        gap: 20px;
        animation: slideUp 0.5s var(--ease-out) 0.1s both;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes slideUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: clamp(2.4rem, 9vw, 3.5rem); }
    .hero { padding: 0 0 60px 24px; }
    .mission-section { padding: 80px 24px; }
    .mission-grid { grid-template-columns: 1fr; gap: 48px; }
    .split-section { flex-direction: column; height: auto; }
    .split-block { height: 50vh; min-height: 380px; padding: 40px 24px; }
}
