/* ============================================================
   amamya.bar — Neubrutalism × Glassmorphism × Dopamine Neon
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Boogaloo&family=Nunito:wght@400;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   CSS Custom Properties — Palette
   ============================================================ */
:root {
    --yellow: #FFEE00;
    --coral: #FF3CAC;
    --violet: #784BA0;
    --blue: #2B86C5;
    --cyan: #00F5FF;
    --black: #0D0D0D;
    --shadow: #000000;
    --white-soft: #F5F5F0;
    --lime: #CCFF00;
    --magenta: #FF006E;
    --grape: #3A0CA3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--black);
    color: var(--white-soft);
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--black);
    border-right: 4px solid var(--yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
    z-index: 100;
    overflow: hidden;
}

/* Ghost monstera leaf behind nav */
.sidebar-ghost-leaf {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 240px;
    opacity: 0.15;
    pointer-events: none;
}

.sidebar-ghost-leaf svg {
    width: 100%;
    height: 100%;
}

/* Pulsing neon dots strip */
.sidebar-dots {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    animation: dot-pulse 1.6s ease-in-out var(--delay) infinite;
}

@keyframes dot-pulse {
    0%, 100% {
        background: var(--yellow);
        box-shadow: 0 0 4px var(--yellow);
        transform: scale(1);
    }
    16% {
        background: var(--coral);
        box-shadow: 0 0 8px var(--coral);
        transform: scale(1.3);
    }
    33% {
        background: var(--violet);
        box-shadow: 0 0 8px var(--violet);
        transform: scale(1);
    }
    50% {
        background: var(--blue);
        box-shadow: 0 0 8px var(--blue);
        transform: scale(1.2);
    }
    66% {
        background: var(--cyan);
        box-shadow: 0 0 8px var(--cyan);
        transform: scale(1);
    }
    83% {
        background: var(--lime);
        box-shadow: 0 0 8px var(--lime);
        transform: scale(1.15);
    }
}

/* Rotated site title — vertical spine */
.sidebar-title {
    font-family: 'Boogaloo', cursive;
    font-size: 96px;
    color: var(--yellow);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: -0.02em;
    line-height: 1;
    flex: 1;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 0 var(--black), 4px 4px 0 rgba(255, 238, 0, 0.3);
}

/* Navigation */
.sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.nav-item {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 16px;
    border-left: 4px solid transparent;
    color: var(--white-soft);
    transition: none;
    cursor: pointer;
    display: block;
    width: 100%;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-item:hover {
    background: var(--yellow);
    color: var(--black);
    border-left-color: var(--coral);
}

/* Bottom tag */
.sidebar-tag {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--violet);
    letter-spacing: 0.15em;
    position: relative;
    z-index: 1;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    border: 6px solid var(--yellow);
    animation: border-cycle 3s linear infinite;
    position: relative;
}

@keyframes border-cycle {
    0%   { border-color: var(--yellow); }
    20%  { border-color: var(--coral); }
    40%  { border-color: var(--violet); }
    60%  { border-color: var(--blue); }
    80%  { border-color: var(--cyan); }
    100% { border-color: var(--yellow); }
}

/* ============================================================
   HERO BAND
   ============================================================ */
.hero-band {
    background: var(--black);
    border-bottom: 4px solid var(--black);
    padding: 80px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.hero-wordmark {
    text-align: center;
    flex: 1;
}

.hero-title {
    font-family: 'Boogaloo', cursive;
    font-size: clamp(80px, 10vw, 160px);
    color: var(--yellow);
    letter-spacing: -0.02em;
    line-height: 0.9;
    text-shadow: 5px 5px 0 var(--coral), 10px 10px 0 rgba(255, 60, 172, 0.3);
    animation: title-flicker 8s ease-in-out infinite;
}

@keyframes title-flicker {
    0%, 95%, 100% { text-shadow: 5px 5px 0 var(--coral), 10px 10px 0 rgba(255, 60, 172, 0.3); }
    96% { text-shadow: 5px 5px 0 var(--cyan), 10px 10px 0 rgba(0, 245, 255, 0.3); }
    97% { text-shadow: 5px 5px 0 var(--coral), 10px 10px 0 rgba(255, 60, 172, 0.3); }
    98% { text-shadow: 3px 3px 0 var(--lime), 6px 6px 0 rgba(204, 255, 0, 0.3); }
    99% { text-shadow: 5px 5px 0 var(--coral), 10px 10px 0 rgba(255, 60, 172, 0.3); }
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--white-soft);
    margin-top: 16px;
    letter-spacing: 0.05em;
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
}

.hero-leaf {
    width: 100px;
    height: 180px;
    flex-shrink: 0;
}

.hero-leaf svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(4px 4px 0 var(--black));
}

.hero-leaf-left {
    animation: leaf-sway 4s ease-in-out infinite;
}

.hero-leaf-right {
    animation: leaf-sway 4s ease-in-out 2s infinite;
}

@keyframes leaf-sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ============================================================
   BOTANICAL DIVIDER
   ============================================================ */
.botanical-divider {
    width: 100%;
    height: 40px;
    background: var(--white-soft);
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
    overflow: hidden;
}

.botanical-divider svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   CONTENT BANDS
   ============================================================ */
.content-band {
    padding: 48px 32px;
    border-top: 4px solid var(--black);
    border-bottom: 4px solid var(--black);
    position: relative;
    overflow: hidden;
}

.band-1 {
    background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 100%);
}

.band-2 {
    background: linear-gradient(135deg, var(--magenta) 0%, var(--violet) 100%);
}

.band-3 {
    background: linear-gradient(135deg, var(--grape) 0%, var(--blue) 100%);
}

/* Band leaf texture */
.band-leaf-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.band-leaf-texture svg {
    width: 100%;
    height: 100%;
}

/* Band header */
.band-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.band-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--coral);
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
    letter-spacing: -0.01em;
    line-height: 1;
}

.band-tag {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--black);
    border: 2px solid var(--black);
    padding: 4px 12px;
    letter-spacing: 0.05em;
}

/* ============================================================
   CARD GRIDS
   ============================================================ */
.cards-grid {
    display: grid;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.cards-grid-3 {
    grid-template-columns: 1.8fr 1fr 1fr;
}

.cards-grid-2 {
    grid-template-columns: 1.5fr 1fr;
}

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

/* ============================================================
   GLASSMORPHIC CARDS
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 8px 8px 0 #000000;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.1s, box-shadow 0.1s;
}

.glass-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0 #000000;
}

/* Glow blob behind card */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--glow-color, rgba(255, 238, 0, 0.4));
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* Card corner leaf */
.card-corner-leaf {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 50px;
    height: 50px;
    z-index: 2;
}

.card-corner-leaf svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(2px 2px 0 var(--black));
}

/* Card content z-index */
.card-label,
.card-heading,
.card-body,
.card-fern,
.full-card-inner,
.card-bg-leaf {
    position: relative;
    z-index: 1;
}

/* Card label */
.card-label {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--black);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Card heading */
.card-heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 16px;
    text-decoration: none;
}

.card-heading-large {
    font-size: 36px;
    line-height: 1.1;
    color: var(--white-soft);
}

/* Card body */
.card-body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--black);
}

/* Wide card */
.card-wide {
    /* inherits grid spanning from parent */
}

/* Fern decoration on card */
.card-fern {
    width: 60px;
    height: 90px;
    position: absolute;
    bottom: 24px;
    right: 32px;
    opacity: 0.7;
}

/* Background leaf in full card */
.card-bg-leaf {
    position: absolute;
    right: -20px;
    top: -20px;
    width: 300px;
    height: 360px;
    pointer-events: none;
    z-index: 0;
}

.card-bg-leaf svg {
    width: 100%;
    height: 100%;
}

/* Full card layout */
.card-full {
    min-height: 320px;
}

.full-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Tag pills */
.full-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.tag-pill {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--lime);
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--lime);
    border-radius: 100px;
    padding: 4px 12px;
    letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER BAND
   ============================================================ */
.footer-band {
    background: var(--black);
    border-top: 4px solid var(--black);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-domain {
    font-family: 'Boogaloo', cursive;
    font-size: 32px;
    color: var(--yellow);
    letter-spacing: -0.01em;
}

.footer-year {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--violet);
    letter-spacing: 0.1em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 4px solid var(--yellow);
        padding: 16px 24px;
    }

    .sidebar-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 48px;
        flex: none;
    }

    .sidebar-dots {
        flex-direction: row;
        position: relative;
        top: auto;
        right: auto;
        transform: none;
    }

    .sidebar-ghost-leaf {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .cards-grid-3 {
        grid-template-columns: 1fr;
    }

    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-band {
        flex-direction: column;
        padding: 48px 24px;
    }

    .hero-leaf {
        width: 60px;
        height: 100px;
    }
}
