/* ============================================
   ncbd.dev — Seapunk Developer Reef
   Palette:
     Deep Sepia:   #2A2010 (headings)
     Warm Sepia:   #5A4830 (body text)
     Aged Brass:   #8A7850 (code labels, accents)
     Current Sand: #B8A880 (flowing curves, dividers)
     Reef Light:   #F0E8D4 (primary background)
     Bokeh Glow:   rgba(200,180,140,0.12)
     Deep Water:   #A89878 (hero gradient endpoint)
     Coral Accent: #C08850 (rare warm highlight)
     Surface:      #E8DCC8 (hero gradient start)
     Mid Water:    #C8B8A0 (hero gradient mid)
   Fonts: Albert Sans, Inter, Fira Code
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: #5A4830;
    background-color: #F0E8D4;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Albert Sans', sans-serif;
    color: #2A2010;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.08em;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

code, .tool-command, .card-label, .footer-depth code {
    font-family: 'Fira Code', monospace;
    color: #8A7850;
}

/* --- Bokeh Layer --- */
#bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,180,140,0.12), transparent);
    animation: float ease-in-out infinite;
}

.bokeh-1  { width: 80px; height: 80px; top: 10%; left: 15%; animation-duration: 14s; }
.bokeh-2  { width: 50px; height: 50px; top: 25%; left: 70%; animation-duration: 11s; animation-delay: -3s; }
.bokeh-3  { width: 65px; height: 65px; top: 40%; left: 30%; animation-duration: 16s; animation-delay: -5s; }
.bokeh-4  { width: 35px; height: 35px; top: 55%; left: 85%; animation-duration: 12s; animation-delay: -2s; }
.bokeh-5  { width: 70px; height: 70px; top: 70%; left: 50%; animation-duration: 13s; animation-delay: -7s; }
.bokeh-6  { width: 45px; height: 45px; top: 15%; left: 55%; animation-duration: 15s; animation-delay: -4s; }
.bokeh-7  { width: 55px; height: 55px; top: 80%; left: 20%; animation-duration: 10s; animation-delay: -1s; }
.bokeh-8  { width: 40px; height: 40px; top: 35%; left: 90%; animation-duration: 17s; animation-delay: -6s; }
.bokeh-9  { width: 75px; height: 75px; top: 60%; left: 10%; animation-duration: 14s; animation-delay: -8s; }
.bokeh-10 { width: 30px; height: 30px; top: 5%;  left: 40%; animation-duration: 11s; animation-delay: -2s; }
.bokeh-11 { width: 60px; height: 60px; top: 50%; left: 65%; animation-duration: 18s; animation-delay: -9s; }
.bokeh-12 { width: 25px; height: 25px; top: 90%; left: 75%; animation-duration: 12s; animation-delay: -3s; }
.bokeh-13 { width: 48px; height: 48px; top: 20%; left: 5%;  animation-duration: 15s; animation-delay: -10s; }
.bokeh-14 { width: 38px; height: 38px; top: 75%; left: 38%; animation-duration: 13s; animation-delay: -4.5s; }
.bokeh-15 { width: 58px; height: 58px; top: 45%; left: 78%; animation-duration: 16s; animation-delay: -7.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.05);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.95);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-25px) translateX(5px) scale(1.08);
        opacity: 0.6;
    }
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(180deg, #E8DCC8 0%, #C8B8A0 50%, #A89878 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-tagline {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #5A4830;
    margin-top: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    color: #8A7850;
    margin-top: 1.2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-depth-indicator {
    position: absolute;
    bottom: 2.5rem;
    z-index: 2;
}

.hero-depth-indicator code {
    font-size: 0.78rem;
    color: #8A7850;
    letter-spacing: 0.12em;
    opacity: 0.6;
}

/* --- Curve Dividers --- */
.curve-divider {
    position: relative;
    z-index: 1;
    margin-top: -1px;
    line-height: 0;
}

.curve-divider svg {
    display: block;
    width: 100%;
    height: 120px;
}

.flowing-wave {
    fill: #B8A880;
    opacity: 0.35;
    animation: waveOscillate 8s ease-in-out infinite;
    transform-origin: center;
}

.wave-2, .wave-4, .wave-6 {
    opacity: 0.2;
}

.wave-2 { animation-delay: -2s; }
.wave-3 { animation-delay: -1s; }
.wave-4 { animation-delay: -4s; }
.wave-5 { animation-delay: -3s; }
.wave-6 { animation-delay: -5s; }
.wave-7 { animation-delay: -2.5s; }

@keyframes waveOscillate {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-15px);
    }
}

/* --- Sections --- */
section {
    position: relative;
    z-index: 1;
}

#about {
    background: #F0E8D4;
}

#tools {
    background: linear-gradient(180deg, #F0E8D4 0%, #E8DCC8 100%);
}

#philosophy {
    background: #E8DCC8;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-intro {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.section-inner > p {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

/* --- Reef Cards --- */
.reef-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.reef-card {
    background: rgba(232, 220, 200, 0.6);
    border: 1px solid rgba(184, 168, 128, 0.4);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reef-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(42, 32, 16, 0.08);
}

.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.8rem;
}

.reef-card p {
    color: #5A4830;
    font-weight: 300;
    line-height: 1.75;
}

/* --- Tools Grid --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.tool-item {
    padding: 2rem;
    background: rgba(240, 232, 212, 0.7);
    border: 1px solid rgba(184, 168, 128, 0.3);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-3px);
    border-color: #C08850;
}

.tool-command {
    display: inline-block;
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(42, 32, 16, 0.06);
    border-radius: 6px;
    margin-bottom: 1rem;
    color: #C08850;
}

.tool-desc {
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #5A4830;
}

/* --- Philosophy --- */
.philosophy-text {
    max-width: 680px;
}

blockquote {
    border-left: 3px solid #C08850;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
}

blockquote p {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #2A2010;
    line-height: 1.8;
}

.philosophy-text > p {
    margin-bottom: 1.4rem;
    font-weight: 300;
}

/* --- Footer --- */
#footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #E8DCC8 0%, #C8B8A0 60%, #A89878 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #2A2010;
    letter-spacing: 0.06em;
}

.footer-note {
    color: #5A4830;
    font-weight: 300;
    font-size: 0.9rem;
    margin-top: 0.8rem;
}

.footer-depth {
    margin-top: 2rem;
}

.footer-depth code {
    font-size: 0.8rem;
    color: #8A7850;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* --- Bounce-Enter Animation --- */
.bounce-enter {
    opacity: 0;
    transform: translateY(30px);
}

.bounce-enter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 500ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Curve Divider Final --- */
.curve-divider-final .flowing-wave {
    opacity: 0.25;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-inner {
        padding: 3.5rem 1.5rem;
    }

    .reef-cards,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .bokeh-circle {
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .section-inner {
        padding: 2.5rem 1.2rem;
    }

    .hero-content {
        padding: 1.5rem;
    }
}
