/* ============================================================
   luminous.day - Bioluminescent Botanical-Tech Design
   Fonts: "Inter" (Google Fonts), "Cormorant Garamond", "Space Mono" (Google Fonts)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --deep-forest: #0A1A12;
    --night-garden: #0F2318;
    --neon-green: #39FF14;
    --soft-leaf: #C8E0D0;
    --warm-glow: #A8E6CF;
    --deep-moss: #1A3A28;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --neon-glow-sm: drop-shadow(0 0 3px rgba(57, 255, 20, 0.4)) drop-shadow(0 0 8px rgba(57, 255, 20, 0.2));
    --neon-text-shadow: 0 0 4px rgba(57, 255, 20, 0.5), 0 0 12px rgba(57, 255, 20, 0.2);
}

/* --- Reset and Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.7;
    color: var(--soft-leaf);
    background-color: var(--deep-forest);
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
}

h2 {
    font-weight: 500;
    font-size: clamp(24px, 4vw, 52px);
    line-height: 1.2;
    color: var(--soft-leaf);
}

h3 {
    font-weight: 500;
    font-size: clamp(20px, 2.5vw, 34px);
    line-height: 1.3;
    color: var(--warm-glow);
    margin-bottom: 0.8em;
}

p {
    margin-bottom: 1.2em;
}

/* --- Neon Green Accent Text --- */
.neon-text {
    color: var(--neon-green);
    text-shadow: var(--neon-text-shadow);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: var(--deep-forest);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Botanical SVGs in Hero --- */
.botanical-svg {
    position: absolute;
    fill: none;
    stroke: var(--neon-green);
    stroke-width: 1.5px;
    filter: var(--neon-glow-sm);
    opacity: 0.4;
    pointer-events: none;
}

.botanical-fern {
    width: 280px;
    height: auto;
    left: 5%;
    top: 10%;
}

.botanical-monstera {
    width: 320px;
    height: auto;
    right: 3%;
    bottom: 5%;
}

.botanical-ivy {
    width: 120px;
    height: auto;
    left: 35%;
    top: 0;
}

/* SVG drawing animation */
.draw-in path,
.draw-in ellipse,
.draw-in circle,
.draw-in line,
.draw-in rect {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 2s ease-out forwards;
}

.draw-in .fern-stem { animation-delay: 0s; }
.draw-in .fern-pinna:nth-child(2) { animation-delay: 0.1s; }
.draw-in .fern-pinna:nth-child(3) { animation-delay: 0.15s; }
.draw-in .fern-pinna:nth-child(4) { animation-delay: 0.2s; }
.draw-in .fern-pinna:nth-child(5) { animation-delay: 0.25s; }
.draw-in .fern-pinna:nth-child(6) { animation-delay: 0.3s; }
.draw-in .fern-pinna:nth-child(7) { animation-delay: 0.35s; }
.draw-in .fern-pinna:nth-child(8) { animation-delay: 0.4s; }
.draw-in .fern-pinna:nth-child(9) { animation-delay: 0.45s; }
.draw-in .fern-pinna:nth-child(10) { animation-delay: 0.5s; }
.draw-in .fern-pinna:nth-child(11) { animation-delay: 0.1s; }
.draw-in .fern-pinna:nth-child(12) { animation-delay: 0.15s; }
.draw-in .fern-pinna:nth-child(13) { animation-delay: 0.2s; }
.draw-in .fern-pinna:nth-child(14) { animation-delay: 0.25s; }
.draw-in .fern-pinna:nth-child(15) { animation-delay: 0.3s; }
.draw-in .fern-pinna:nth-child(16) { animation-delay: 0.35s; }
.draw-in .fern-pinna:nth-child(17) { animation-delay: 0.4s; }
.draw-in .fern-pinna:nth-child(18) { animation-delay: 0.45s; }
.draw-in .fern-pinna:nth-child(19) { animation-delay: 0.5s; }

.draw-in .monstera-stem { animation-delay: 0s; }
.draw-in .monstera-leaf { animation-delay: 0.3s; }
.draw-in .monstera-hole { animation-delay: 0.8s; }
.draw-in .monstera-split { animation-delay: 1s; }

.draw-in .ivy-vine { animation-delay: 0s; }
.draw-in .ivy-leaf { animation-delay: 0.4s; }

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

/* Neon pulse animation for botanical SVGs */
.botanical-svg {
    animation: neonPulse 4s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.55; }
}

/* Override pulse for draw-in children (they have their own animation) */
.draw-in path,
.draw-in ellipse {
    opacity: 1;
}

/* --- Logotype --- */
#logotype {
    position: absolute;
    top: 8vh;
    left: 6vw;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1.2s ease-out 1s forwards;
}

#logotype h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(32px, 5vw, 64px);
    color: var(--soft-leaf);
    letter-spacing: -0.02em;
    line-height: 1;
}

#logotype h1 em {
    font-style: italic;
}

#logotype h1 .dot {
    color: var(--neon-green);
    text-shadow: var(--neon-text-shadow);
}

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

/* --- Hero Cards Cluster --- */
#hero-cards {
    position: absolute;
    right: 8vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
    max-width: 380px;
    width: 90%;
}

.hero-card {
    opacity: 0;
    transform: translateX(60px);
    animation: slideInCard 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-card[data-delay="0"] { animation-delay: 1.5s; }
.hero-card[data-delay="1"] { animation-delay: 1.7s; }
.hero-card[data-delay="2"] { animation-delay: 1.9s; }

@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Scroll Indicator --- */
#scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.5s forwards;
}

#scroll-indicator span {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--neon-green);
    opacity: 0.7;
    text-shadow: var(--neon-text-shadow);
}

#scroll-indicator svg {
    color: var(--neon-green);
    filter: var(--neon-glow-sm);
    animation: bounceDown 2s ease-in-out infinite 3s;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================================
   GLASSMORPHIC CARDS
   ============================================================ */
.glass-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    overflow: hidden;
    transition: transform 0.1s ease-out;
    transform: perspective(800px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    will-change: transform;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--light-x, 50%) var(--light-y, 50%),
        rgba(255, 255, 255, 0.1) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.card-label {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--neon-green);
    opacity: 0.7;
    text-shadow: var(--neon-text-shadow);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--neon-green);
    filter: var(--neon-glow-sm);
    display: block;
    margin-top: 8px;
}

.glass-card p {
    font-size: clamp(13px, 0.9vw, 15px);
    line-height: 1.6;
    color: var(--soft-leaf);
    opacity: 0.85;
    margin-bottom: 0;
}

/* Hover state for cards */
.glass-card:hover {
    border-color: rgba(57, 255, 20, 0.2);
    box-shadow: 0 8px 32px rgba(10, 26, 18, 0.4), 0 0 20px rgba(57, 255, 20, 0.05);
}

/* ============================================================
   CONTENT SECTION
   ============================================================ */
#content {
    background-color: var(--night-garden);
    position: relative;
    padding-bottom: 100px;
}

/* --- Headline Bar --- */
.headline-bar {
    position: relative;
    width: 100%;
    padding: 80px 6vw 60px;
    border-bottom: 1px solid rgba(57, 255, 20, 0.1);
}

.headline-bar h2 {
    max-width: 700px;
}

.headline-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 18px);
    color: var(--warm-glow);
    margin-top: 16px;
    opacity: 0.8;
}

/* Section botanical illustration in headline */
.section-botanical {
    position: absolute;
    right: 6vw;
    top: 50%;
    transform: translateY(-50%);
    height: 280px;
    width: auto;
    fill: none;
    stroke: var(--neon-green);
    stroke-width: 1.5px;
    filter: var(--neon-glow-sm);
    opacity: 0.3;
    pointer-events: none;
}

.euc-stem {
    stroke-width: 2px;
}

.euc-leaf-shape {
    fill: none;
    stroke: var(--neon-green);
    stroke-width: 1.5px;
}

/* Draw-in for scroll-triggered elements */
.draw-in-scroll path,
.draw-in-scroll ellipse {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 2s ease-out;
}

.draw-in-scroll.visible path,
.draw-in-scroll.visible ellipse {
    stroke-dashoffset: 0;
}

/* --- F-Pattern Grid --- */
.f-pattern-grid {
    display: flex;
    gap: 4vw;
    padding: 60px 6vw;
    align-items: flex-start;
}

.reading-column {
    flex: 0 0 60%;
    max-width: 60%;
}

.card-column {
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 40px;
}

/* --- Content Blocks --- */
.content-block {
    margin-bottom: 60px;
    position: relative;
}

.content-block p {
    color: var(--soft-leaf);
    opacity: 0.9;
}

/* Inline botanical illustration in content */
.botanical-fern-inline {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 20px 0 30px;
    fill: none;
    stroke: var(--neon-green);
    stroke-width: 1.5px;
    filter: var(--neon-glow-sm);
    opacity: 0.35;
}

.fern-arc { stroke-width: 2px; }
.fern-frondlet { stroke-width: 1.5px; }

/* --- Content Cards --- */
.content-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    position: relative;
    background-color: var(--deep-forest);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.footer-garden {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    pointer-events: none;
}

.footer-botanical {
    width: 100%;
    height: 100%;
    fill: var(--neon-green);
    stroke: var(--neon-green);
    filter: var(--neon-glow-sm);
}

.footer-plants path {
    stroke: var(--neon-green);
    fill: none;
}

.footer-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 6vw 50px;
}

.footer-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 40px);
    color: var(--soft-leaf);
    margin-bottom: 8px;
}

.footer-title em {
    font-style: italic;
}

.footer-title .dot {
    color: var(--neon-green);
    text-shadow: var(--neon-text-shadow);
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1vw, 16px);
    color: var(--warm-glow);
    opacity: 0.7;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tech-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--neon-green);
    opacity: 0.7;
    text-shadow: var(--neon-text-shadow);
}

.footer-sep {
    color: var(--neon-green);
    opacity: 0.3;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .f-pattern-grid {
        flex-direction: column;
    }

    .reading-column,
    .card-column {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-column {
        position: static;
        margin-top: 40px;
    }

    #hero-cards {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        max-width: 100%;
        padding: 0 6vw;
        margin-top: 20vh;
    }

    #logotype {
        top: 5vh;
        left: 6vw;
    }

    .botanical-fern {
        width: 180px;
        left: 2%;
    }

    .botanical-monstera {
        width: 200px;
        right: 0;
    }

    .botanical-ivy {
        display: none;
    }

    .section-botanical {
        display: none;
    }

    #hero {
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    #hero-cards {
        margin-top: 18vh;
    }

    .glass-card {
        padding: 20px;
    }

    .headline-bar {
        padding: 60px 5vw 40px;
    }

    .f-pattern-grid {
        padding: 40px 5vw;
    }

    .botanical-fern {
        width: 140px;
        opacity: 0.25;
    }

    .botanical-monstera {
        width: 150px;
        opacity: 0.25;
    }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-card.reveal {
    transform: translateX(30px);
}

.content-card.reveal.visible {
    transform: perspective(800px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}
