/* ==========================================================
   nonri.net - Dreamy-Ethereal Cyberpunk
   Palette: #0F0F1F, #1A1A3E, #00FFFF, #FF00AA, #00FFAA,
            #BB00FF, #E8E8FF, #B0B0D8, #FFB000, #1A1F2E, #E0F0FF
   Fonts: Poppins (600), Inter (300/500), JetBrains Mono (400)
   ========================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background-color: #0F0F1F;
    color: #B0B0D8;
    line-height: 1.8;
    overflow-x: hidden;
    animation: atmosphereShift 8s ease-in-out infinite;
}

@keyframes atmosphereShift {
    0%, 100% { background-color: #0F0F1F; }
    50% { background-color: #1A1F2E; }
}

/* ==========================================================
   Labels (JetBrains Mono accent)
   ========================================================== */

.label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00FFFF;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* ==========================================================
   Section 1: Hero (120vh)
   ========================================================== */

.hero {
    position: relative;
    height: 120vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0F0F1F;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    will-change: transform;
}

.hero-network {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-title {
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.08em;
    color: #E8E8FF;
    text-shadow:
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(0, 255, 255, 0.2),
        0 0 80px rgba(0, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    animation: heroReveal 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    letter-spacing: 0.05em;
    color: #B0B0D8;
    margin-top: 1.5rem;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    animation: heroReveal 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================
   Section 2: Atmospheric Manifesto
   ========================================================== */

.manifesto {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: #0F0F1F;
    background-image: radial-gradient(circle, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.manifesto-column {
    max-width: 480px;
    width: 100%;
    text-align: center;
}

.manifesto-column .label {
    color: #FF00AA;
    text-shadow: 0 0 8px rgba(255, 0, 170, 0.5);
}

.reveal-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    letter-spacing: 0.01em;
    color: #D0D0E8;
    margin-bottom: 2rem;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-text:last-of-type {
    color: #E0F0FF;
    font-weight: 500;
}

/* Floating geometric accents */
.float-accent {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

.float-accent.visible {
    opacity: 1;
}

.float-accent-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.08), transparent 70%);
    top: 15%;
    left: 5%;
    animation: floatDrift 12s ease-in-out infinite;
}

.float-accent-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 0, 170, 0.06), transparent 70%);
    top: 55%;
    right: 8%;
    animation: floatDrift 10s ease-in-out infinite reverse;
}

.float-accent-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(187, 0, 255, 0.07), transparent 70%);
    bottom: 20%;
    left: 12%;
    animation: floatDrift 14s ease-in-out infinite;
}

@keyframes floatDrift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-10px, 10px); }
    75% { transform: translate(20px, 15px); }
}

/* ==========================================================
   Section 3: Candle-Lit Gallery
   ========================================================== */

.gallery {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: #0F0F1F;
}

.gallery .label {
    color: #00FFAA;
    text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

.gallery-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 600px;
    width: 100%;
}

.gallery-card {
    position: relative;
    width: 100%;
    padding: 2.5rem;
    border-radius: 4px;
    background: #1A1A3E;
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.1), 0 0 15px rgba(0, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.6s ease-in-out,
                box-shadow 0.6s ease-in-out;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.6s ease-in-out,
                box-shadow 0.6s ease-in-out;
    overflow: hidden;
}

.gallery-card.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 176, 0, 0.08) 0%, rgba(0, 255, 170, 0.04) 40%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    opacity: 0.5;
}

.gallery-card:hover {
    border-color: rgba(0, 255, 255, 0.9);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2), 0 0 30px rgba(0, 255, 255, 0.8);
}

.gallery-card:hover .card-glow {
    opacity: 1;
}

.gallery-card:hover .card-svg {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.9));
}

.card-svg {
    width: 160px;
    height: 160px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.4));
    transition: filter 0.6s ease-in-out;
}

.card-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00FFFF;
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.5);
}

/* ==========================================================
   Section 4: Memory Fragments
   ========================================================== */

.memories {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: #0F0F1F;
}

.memories .label {
    color: #BB00FF;
    text-shadow: 0 0 8px rgba(187, 0, 255, 0.5);
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 700px;
    width: 100%;
}

.memory-fragment {
    padding: 1.5rem 2rem;
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 2px;
    background: rgba(26, 26, 62, 0.6);
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.memory-fragment.visible {
    opacity: var(--fragment-opacity, 0.7);
    transform: scale(1) translateY(0);
}

.memory-fragment p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.7;
    color: #E8E8FF;
    letter-spacing: 0.01em;
}

.memory-fragment:nth-child(odd) {
    border-color: rgba(187, 0, 255, 0.3);
}

.memory-fragment:nth-child(even) {
    border-color: rgba(255, 0, 170, 0.25);
}

.memory-fragment:nth-child(3) {
    border-color: rgba(0, 255, 170, 0.3);
}

/* ==========================================================
   Section 5: Immersive Closer (100vh)
   ========================================================== */

.closer {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0F0F1F;
}

.closer-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
    animation: chromaticShift 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes chromaticShift {
    0%, 100% {
        background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
    }
    33% {
        background: radial-gradient(ellipse at center, rgba(187, 0, 255, 0.06) 0%, transparent 60%);
    }
    66% {
        background: radial-gradient(ellipse at center, rgba(255, 0, 170, 0.05) 0%, transparent 60%);
    }
}

.orbital-svg {
    position: relative;
    z-index: 2;
    width: clamp(250px, 40vw, 400px);
    height: clamp(250px, 40vw, 400px);
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.6));
    will-change: transform;
    animation: slowRotate 30s linear infinite;
}

@keyframes slowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.closer-watermarks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 0;
}

.watermark {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.08em;
    color: #E8E8FF;
    opacity: 0.05;
    white-space: nowrap;
    user-select: none;
}

/* ==========================================================
   Neon Glow Utilities
   ========================================================== */

.neon-text-cyan {
    color: #00FFFF;
    text-shadow:
        0 0 10px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.4),
        0 0 40px rgba(0, 255, 255, 0.2);
}

.neon-text-magenta {
    color: #FF00AA;
    text-shadow:
        0 0 10px rgba(255, 0, 170, 0.8),
        0 0 20px rgba(255, 0, 170, 0.4),
        0 0 40px rgba(255, 0, 170, 0.2);
}

/* ==========================================================
   Corner ornaments (rotating SVG-like elements)
   ========================================================== */

body::before,
body::after {
    content: '';
    position: fixed;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    z-index: 100;
    pointer-events: none;
    animation: cornerRotate 20s linear infinite;
}

body::before {
    top: 20px;
    right: 20px;
    border-radius: 2px;
    transform-origin: center;
}

body::after {
    bottom: 20px;
    left: 20px;
    border-radius: 50%;
    animation-direction: reverse;
}

@keyframes cornerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 768px) {
    .memory-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 100vh;
    }

    .manifesto {
        padding: 4rem 1.5rem;
    }

    .gallery {
        padding: 4rem 1.5rem;
    }

    .memories {
        padding: 4rem 1.5rem;
    }

    .gallery-card {
        padding: 2rem 1.5rem;
    }
}
