/* ========================================
   ronri.net - Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0D0B1E;
    color: #F0F0FA;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0D0B1E 0%, #1A0E2E 50%, #0D0B1E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.isometric-svg {
    width: 100%;
    height: 100%;
    animation: rotateCity 45s linear infinite;
}

@keyframes rotateCity {
    from {
        transform: rotateZ(0deg);
    }
    to {
        transform: rotateZ(360deg);
    }
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(10px);
    padding: 3rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 8px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #00F0FF;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: #F0F0FA;
    letter-spacing: 0.01em;
}

/* ========================================
   GLITCH BANDS
   ======================================== */

.glitch-band {
    height: 40px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        #FF2D78,
        #FF2D78 2px,
        #00F0FF 2px,
        #00F0FF 4px,
        #6B6B8D 4px,
        #6B6B8D 6px
    );
    opacity: 0.7;
    clip-path: polygon(
        0% 0%,
        2% 0%,
        3% 20%,
        5% 0%,
        8% 0%,
        10% 15%,
        15% 0%,
        17% 10%,
        20% 0%,
        25% 0%,
        27% 25%,
        30% 0%,
        35% 0%,
        37% 18%,
        40% 0%,
        45% 0%,
        47% 22%,
        50% 0%,
        55% 0%,
        57% 20%,
        60% 0%,
        65% 0%,
        67% 16%,
        70% 0%,
        75% 0%,
        77% 24%,
        80% 0%,
        85% 0%,
        87% 19%,
        90% 0%,
        95% 0%,
        97% 21%,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

.glitch-1 {
    animation: glitchFlicker 0.15s ease-in-out;
}

.glitch-2 {
    animation: glitchFlicker 0.18s ease-in-out;
}

.glitch-3 {
    animation: glitchFlicker 0.16s ease-in-out;
}

.glitch-4 {
    animation: glitchFlicker 0.17s ease-in-out;
}

.glitch-5 {
    animation: glitchFlicker 0.19s ease-in-out;
}

@keyframes glitchFlicker {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
}

/* ========================================
   CHAPTERS
   ======================================== */

.chapter {
    padding: 6rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0D0B1E;
    border-top: 2px solid #1F1A3D;
    opacity: 0;
    animation: fadeInChapter 1s ease-out forwards;
    animation-fill-mode: both;
}

.chapter-1 { animation-delay: 0.2s; }
.chapter-2 { animation-delay: 0.3s; }
.chapter-3 { animation-delay: 0.4s; }
.chapter-4 { animation-delay: 0.5s; }
.chapter-5 { animation-delay: 0.6s; }

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

.chapter-content {
    max-width: 800px;
    margin: 0 auto;
}

.chapter h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #00F0FF;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.chapter p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 400;
    color: #F0F0FA;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.chapter p:last-child {
    margin-bottom: 0;
}

/* Alternating chapter backgrounds */
.chapter-1,
.chapter-3,
.chapter-5 {
    background-color: #0D0B1E;
}

.chapter-2,
.chapter-4 {
    background-color: #1A0E2E;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: #0D0B1E;
    border-top: 2px solid #1F1A3D;
    padding: 2rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #6B6B8D;
    letter-spacing: 0.01em;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .hero-overlay {
        padding: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .chapter {
        padding: 4rem 1.5rem;
        min-height: 60vh;
    }

    .chapter h2 {
        font-size: 1.75rem;
    }

    .chapter p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 0.015em;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .chapter {
        padding: 3rem 1rem;
        min-height: 50vh;
    }

    .chapter h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .chapter p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .glitch-band {
        height: 30px;
    }
}

/* ========================================
   COLOR PALETTE REFERENCE
   ======================================== */
/* Primary Colors:
   - Deep Indigo: #0D0B1E (background)
   - Darker Indigo: #1A0E2E (alternate background)
   - Electric Cyan: #00F0FF (accents, gates, glow)
   - Neon Pink/Magenta: #FF2D78 (input towers)
   - Bright Orange: #FF6B35 (not directly used but available)
   - Light Lavender: #F0F0FA (text, outputs)
   - Mid-Tone Purple: #6B6B8D (secondary text)
   - Dark Purple: #1F1A3D (borders)
*/

/* ========================================
   TYPOGRAPHY REFERENCE
   ======================================== */
/* Fonts:
   - Playfair Display (serif headings)
   - Inter (body/UI text)
   - JetBrains Mono (code, if needed)
*/
