/* --- RESET & VARIABLES --- */
:root {
    --bg-dark: #050505;
    --eco-green: #10B981;
    --eco-green-glow: rgba(16, 185, 129, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- CUSTOM TEXT SELECTION --- */
::selection {
    background-color: var(--eco-green);
    color: #000;
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark); 
}
::-webkit-scrollbar-thumb {
    background: #222; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--eco-green); 
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--eco-green);
    text-shadow: 0 0 20px var(--eco-green-glow);
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000; /* Ensure nav is above everything */
}

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--eco-green);
    box-shadow: 0 0 10px var(--eco-green);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--eco-green);
}

.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nav-cta:hover {
    background: rgba(255,255,255,0.1);
}

/* Hamburger Menu Button */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5,5,5,0.98);
    backdrop-filter: blur(15px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}
.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.mobile-nav-overlay a {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.mobile-nav-overlay a:hover, .mobile-nav-overlay a.active-link {
    color: var(--eco-green);
}

/* --- BUTTONS --- */
.primary-btn {
    background: var(--eco-green);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Interactive Cursor Glow in Hero */
.cursor-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.hero:hover .cursor-glow {
    opacity: 1;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- HOW IT WORKS & HOVER CARDS --- */
.how-it-works {
    padding: 6rem 5%;
    background: rgba(16, 185, 129, 0.02);
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.glass-card {
    background: rgba(10, 15, 12, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease !important;
}
.glass-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}
.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.glass-card.delay-1 {
    background: rgba(10, 15, 12, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
}
.glass-card.delay-1 .card-icon {
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}
.glass-card.delay-1 h3 {
    color: var(--eco-green);
}
.glass-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.glass-card p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- FEATURE SHOWCASE --- */
.feature-page-header {
    text-align: center;
    padding: 4rem 5% 2rem;
}
.feature-page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.feature-page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 5rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-text {
    flex: 1;
}
.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--eco-green);
}
.feature-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.feature-list li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-list .check {
    color: var(--eco-green);
    font-weight: bold;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 650px;
    background: #111;
    border: 12px solid #222;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.15);
    overflow: hidden;
}
.phone-mockup.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Scanner Screen inside Phone Mockup */
.scanner-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--eco-green);
    box-shadow: 0 0 15px var(--eco-green);
    opacity: 0;
    z-index: 10;
}
.start-scan .scanner-laser {
    animation: scan-play 2.5s linear forwards;
}
@keyframes scan-play {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scan-phase {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.scan-phase-1 {
    background: rgba(0,0,0,0.6);
}
.start-scan .scan-phase-1 {
    animation: phase1-play 3s forwards;
}
@keyframes phase1-play {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; }
}

.scan-phase-2 {
    background: rgba(0,0,0,0.2);
}
.start-scan .scan-phase-2 {
    animation: phase2-play 3s 2.5s forwards;
}
@keyframes phase2-play {
    0% { opacity: 0; }
    10%, 80% { opacity: 1; }
    100% { opacity: 0; }
}

.scan-phase-3 {
    background: rgba(0,0,0,0.6);
    justify-content: flex-end;
    padding-bottom: 2rem;
}
.start-scan .scan-phase-3 {
    animation: phase3-play 1s 5.5s forwards;
    pointer-events: auto; /* Allow clicking the button after it slides up */
}
@keyframes phase3-play {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.glass-loader {
    background: rgba(0,0,0,0.6);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    width: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(16, 185, 129, 0.3);
    border-top-color: var(--eco-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.bounding-box {
    position: absolute;
    border: 2px solid var(--eco-green);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
}
.box-1 { top: 30%; left: 20%; width: 40%; height: 20%; }
.box-2 { top: 60%; left: 50%; width: 30%; height: 25%; border-color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.bounding-box span {
    position: absolute; top: -25px; left: -2px;
    background: var(--eco-green); color: #000;
    font-size: 0.7rem; padding: 2px 6px; font-weight: bold; border-radius: 4px;
}
.box-2 span { background: #ef4444; color: #fff; }

.report-card {
    background: rgba(10, 15, 12, 0.95);
    backdrop-filter: blur(10px);
    width: 90%;
    height: auto;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.report-header {
    color: var(--eco-green); font-size: 0.8rem; font-weight: bold; margin-bottom: 1rem; letter-spacing: 1px;
}
.report-stat {
    display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 0.9rem; color: #d1d5db;
}
.report-stat span { font-weight: bold; color: #fff; }
.report-stat span.warning { color: #eab308; }
.generate-roadmap-btn {
    width: 100%; padding: 0.8rem; background: var(--eco-green); color: #000; border: none; border-radius: 8px; font-weight: bold; margin-top: 1rem; cursor: pointer;
}

/* Roadmap UI */
.roadmap-ui { padding: 1.5rem; }
.roadmap-top { margin-bottom: 1.5rem; border-bottom: 1px solid #333; padding-bottom: 1rem; }
.roadmap-brand { font-size: 0.7rem; color: var(--eco-green); font-weight: bold; margin-bottom: 0.5rem; }
.roadmap-title { font-size: 1.2rem; font-weight: 800; }
.roadmap-subtitle { font-size: 0.8rem; color: #9ca3af; }
.roadmap-stats { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: rgba(255,255,255,0.05); padding: 0.8rem; border-radius: 8px; flex: 1; border: 1px solid #222; }
.stat-label { font-size: 0.6rem; color: #9ca3af; margin-bottom: 0.2rem; }
.stat-val { font-size: 1.2rem; font-weight: bold; }
.green-text { color: var(--eco-green); }
.yellow-text { color: #eab308; }
.stat-sub { font-size: 0.6rem; color: #6b7280; }

.roadmap-timeline { position: relative; padding-left: 20px; }
.timeline-line { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: #333; }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-dot { position: absolute; left: -26px; top: 0; width: 24px; height: 24px; background: #111; border: 2px solid var(--eco-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; color: var(--eco-green); z-index: 2; }
.task-card { background: rgba(255,255,255,0.03); border: 1px solid #333; border-radius: 12px; padding: 1rem; }
.task-head { display: flex; align-items: center; gap: 10px; margin-bottom: 0.5rem; }
.task-icon { font-size: 1.5rem; }
.task-name { font-size: 0.8rem; font-weight: bold; color: #fff; }
.task-time { font-size: 0.7rem; color: var(--eco-green); }
.task-desc { font-size: 0.8rem; color: #9ca3af; line-height: 1.4; }

/* --- MAP COMPONENT --- */
.full-map-container { position: relative; width: 100%; height: 80vh; background: #000; overflow: hidden; }
.map-bg { width: 100%; height: 100%; background: url('map_bg.png') center/cover; opacity: 0.4; }
.map-instruction { position: absolute; top: 2rem; left: 50%; transform: translateX(-50%); text-align: center; background: rgba(5,5,5,0.8); backdrop-filter: blur(10px); padding: 1rem 2rem; border-radius: 50px; border: 1px solid rgba(16, 185, 129, 0.3); z-index: 10; }
.map-instruction h3 { color: var(--eco-green); margin-bottom: 0.2rem; }
.map-instruction p { color: #d1d5db; font-size: 0.9rem; margin: 0; }

.map-detail-modal { position: absolute; right: -400px; top: 0; bottom: 0; width: 400px; background: rgba(10, 15, 12, 0.95); backdrop-filter: blur(20px); border-left: 1px solid rgba(16, 185, 129, 0.3); transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 20; overflow-y: auto; }
.map-detail-modal.open { right: 0; }
.close-modal { position: absolute; top: 1rem; right: 1rem; background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 30; }

.modal-image { height: 200px; background: url('hazard_bg.png') center/cover; position: relative; }
.modal-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 15, 12, 1), transparent); }
.modal-content { padding: 2rem; }
.modal-pre-title { font-size: 0.8rem; color: var(--eco-green); font-weight: bold; text-transform: uppercase; margin-bottom: 0.5rem; }
.modal-title { font-size: 1.5rem; margin-bottom: 1rem; }
.modal-meta p { color: #9ca3af; font-size: 0.9rem; margin-bottom: 0.5rem; }

.volunteer-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; }
.volunteer-header { display: flex; justify-content: space-between; font-size: 0.75rem; color: #9ca3af; font-weight: bold; margin-bottom: 0.8rem; }
.progress-bar-bg { width: 100%; height: 8px; background: #222; border-radius: 4px; overflow: hidden; margin-bottom: 0.8rem; }
.progress-bar-fill { height: 100%; background: var(--eco-green); border-radius: 4px; box-shadow: 0 0 10px var(--eco-green); }
.pledged-count { font-size: 1rem; color: #fff; margin-bottom: 1rem; }

.avatar-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.avatar { position: relative; width: 40px; height: 40px; border-radius: 50%; }
.avatar img, .avatar-placeholder { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #111; }
.avatar-placeholder { background: #333; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; color: #fff; }
.status-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: var(--eco-green); border: 2px solid #111; border-radius: 50%; }
.avatar-name { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; color: #9ca3af; white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.avatar:hover .avatar-name { opacity: 1; }

.pledge-btn { width: 100%; padding: 1rem; background: var(--eco-green); color: #000; border: none; border-radius: 50px; font-weight: bold; font-size: 1rem; cursor: pointer; margin-bottom: 2rem; box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); transition: transform 0.2s; }
.pledge-btn:hover { transform: translateY(-2px); }

.event-desc h4, .items-provided h4 { color: #fff; margin-bottom: 0.8rem; font-size: 1rem; }
.event-desc p { color: #9ca3af; font-size: 0.9rem; line-height: 1.6; margin-bottom: 2rem; }
.read-more { color: var(--eco-green); cursor: pointer; }

.items-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.items-list span { background: rgba(255,255,255,0.05); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.1); }

/* --- ABOUT SECTION --- */
.about-header { text-align: center; margin-bottom: 3rem; }
.about-header h1 { font-size: 3.5rem; }
.about-content { max-width: 800px; margin: 0 auto; text-align: left; }
.about-content p { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.8; }

.developer-profile {
    background: rgba(10, 15, 12, 0.6);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
}

.developer-profile .avatar-placeholder {
    width: 120px;
    height: 120px;
    font-size: 2.5rem;
    border: 3px solid var(--eco-green);
    margin-bottom: 1.5rem;
}

.developer-profile h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.developer-profile .role {
    color: var(--eco-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.developer-profile .bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--eco-green);
    color: var(--eco-green);
}

.site-footer, .footer-cta {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #222;
    margin-top: 4rem;
}
.site-footer strong { color: #fff; display: block; margin-bottom: 0.5rem; font-size: 1.2rem; }
.site-footer span, .footer-cta p { color: #6b7280; font-size: 0.9rem; }

/* --- BLOOM ENTRANCE ANIMATION (OPTIMIZED FOR PERFORMANCE) --- */
.bloom-bg { position: fixed; inset: 0; z-index: 0; display: none; align-items: center; justify-content: center; overflow: hidden; pointer-events: none; }
.run-bloom .bloom-bg { display: flex; }
.run-bloom .main-content-wrapper {
    opacity: 0; clip-path: circle(0% at 50% 50%);
    will-change: clip-path, opacity, transform;
    animation: content-bloom 1.2s 1.2s cubic-bezier(0.25, 1, 0.3, 1) forwards;
}

.bloom-leaf {
    width: 250px; height: auto; opacity: 0; 
    will-change: transform, opacity;
    animation: 
        leaf-appear 0.4s 0s cubic-bezier(0.16, 1, 0.3, 1) forwards,
        leaf-pulse-faint 0.3s 0.4s 2 alternate ease-in-out,
        leaf-spread-stay 1.0s 1.0s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes leaf-appear { 
    0% { opacity: 0; transform: scale(0.3) translateZ(0); } 
    100% { opacity: 1; transform: scale(1) translateZ(0); } 
}
@keyframes leaf-pulse-faint { 
    0% { transform: scale(1) translateZ(0); opacity: 0.8; } 
    100% { transform: scale(1.1) translateZ(0); opacity: 1; } 
}
@keyframes leaf-spread-stay {
    0% { transform: scale(1.1) translateZ(0); opacity: 1; }
    30% { transform: scale(0.9) translateZ(0); opacity: 1; }
    100% { transform: scale(25) translateZ(0); opacity: 0; }
}
@keyframes content-bloom {
    0% { opacity: 0; clip-path: circle(0% at 50% 50%); transform: scale(0.9) translateZ(0); }
    10% { opacity: 1; }
    100% { opacity: 1; clip-path: circle(150% at 50% 50%); transform: scale(1) translateZ(0); }
}

/* --- FLOATING LEAVES AMBIENCE --- */
#floating-leaves-container {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: -1; overflow: hidden;
}
.floating-leaf {
    position: absolute; opacity: 0;
    filter: drop-shadow(0 0 10px rgba(16,185,129,0.8));
    animation: float-down linear infinite;
}
@keyframes float-down {
    0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
    5% { opacity: 0.4; }
    95% { opacity: 0.4; }
    100% { transform: translateY(110vh) rotate(360deg) translateX(var(--drift)); opacity: 0; }
}

/* --- WAITLIST MODAL --- */
.waitlist-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.waitlist-modal-overlay.open { opacity: 1; pointer-events: auto; }

.waitlist-modal-content {
    background: rgba(20,20,20,0.95);
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: 20px; padding: 2.5rem; width: 90%; max-width: 450px;
    position: relative; text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(16,185,129,0.05);
    transform: translateY(20px); transition: transform 0.3s ease;
}
.waitlist-modal-overlay.open .waitlist-modal-content { transform: translateY(0); }

.waitlist-modal-content h2 { font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.waitlist-modal-content p { color: #9ca3af; margin-bottom: 2rem; line-height: 1.5; }

#waitlist-form { display: flex; flex-direction: column; gap: 1rem; }
#waitlist-email {
    padding: 1rem; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; font-size: 1rem; font-family: 'Inter', sans-serif;
    outline: none; transition: border-color 0.3s ease;
}
#waitlist-email:focus { border-color: var(--eco-green); }
#waitlist-form .primary-btn { width: 100%; justify-content: center; }

.waitlist-status { margin-top: 1rem; font-size: 0.9rem; min-height: 1.5rem; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .feature-showcase {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .cta-group {
        flex-direction: column;
    }

    .nav-links, .nav-cta {
        display: none; /* Hide desktop nav and waitlist btn on mobile header */
    }

    .hamburger-btn {
        display: block; /* Show hamburger menu */
    }

    /* Fix Mission Section */
    #about {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
    .about-header h1 {
        font-size: 2.5rem;
    }
    .about-content {
        text-align: left;
    }

    .developer-profile {
        padding: 2rem;
    }
    
    /* Performance & Scaling */
    .floating-leaf {
        filter: none; /* Disable expensive drop-shadow on mobile */
    }
    .phone-mockup {
        width: 100%;
        max-width: 320px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
