/* nonri.org - Vaporwave / Modular Blocks / Bold-Confident */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1A002E;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #D0C0E8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Blobs */
#background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-blob {
    position: absolute;
    opacity: 0;
    animation: blobFadeIn 1.5s ease forwards;
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: -50px;
    left: -100px;
    animation-delay: 0s;
    --drift-x: 20px;
    --drift-y: 15px;
    --duration: 18s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: -80px;
    animation-delay: 0s;
    --drift-x: -15px;
    --drift-y: 20px;
    --duration: 22s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    left: 20%;
    animation-delay: 0s;
    --drift-x: 18px;
    --drift-y: -12px;
    --duration: 25s;
}

@keyframes blobFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(var(--drift-x), var(--drift-y)); }
    50% { transform: translate(calc(var(--drift-x) * -0.5), calc(var(--drift-y) * 1.2)); }
    75% { transform: translate(calc(var(--drift-x) * -1), calc(var(--drift-y) * -0.8)); }
}

.bg-blob.drifting {
    animation: blobFadeIn 1.5s ease forwards, blobDrift var(--duration) ease-in-out infinite;
}

/* Bubbles */
#bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: bubblePulse 3s ease-in-out infinite;
    transition: transform 200ms ease, background-color 200ms ease;
    pointer-events: auto;
    cursor: pointer;
}

.bubble:hover {
    transform: scale(1.3);
}

.bubble.purple {
    background-color: #8B00FF;
}

.bubble.purple:hover {
    background-color: #ADFF2F;
}

.bubble.green {
    background-color: #ADFF2F;
}

.bubble.green:hover {
    background-color: #8B00FF;
}

@keyframes bubblePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero */
#hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 20px 40px;
    text-align: center;
}

.hero-title {
    font-family: 'Bungee', cursive;
    font-weight: 400;
    font-size: 72px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: -1px 0 #8B00FF, 1px 0 #ADFF2F;
    margin-bottom: 20px;
}

.hero-tagline {
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 18px;
    color: #ADFF2F;
    letter-spacing: 0.05em;
}

.cursor-blink {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Glitch text effect */
.glitch-text {
    transition: text-shadow 100ms ease;
}

.glitch-text:hover {
    text-shadow: -2px 0 #8B00FF, 2px 0 #ADFF2F;
}

.glitch-text.glitching {
    text-shadow: -2px 0 #8B00FF, 2px 0 #ADFF2F;
}

/* Grid */
#grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    padding: 40px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 0;
    animation: gridFadeIn 800ms ease forwards;
    animation-delay: 1.5s;
}

@keyframes gridFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Blocks */
.block {
    background: #2A0048;
    border: 3px solid #8B00FF;
    box-shadow: 4px 4px 0 #ADFF2F;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: box-shadow 150ms ease, transform 150ms ease;
}

.block:hover {
    background: #4A0080;
    box-shadow: 6px 6px 0 #ADFF2F;
    transform: translate(-2px, -2px);
}

.block-emphasis {
    border-color: #FF69B4;
}

.block h2 {
    font-family: 'Bungee', cursive;
    font-weight: 400;
    font-size: 56px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 12px;
    line-height: 1.1;
}

.block h3.tag-label {
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 18px;
    color: #ADFF2F;
    margin-bottom: 8px;
}

.block p {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #D0C0E8;
}

/* Block spans */
.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.row-1 { grid-row: span 1; }
.row-2 { grid-row: span 2; }

/* Visual blocks */
.block-visual {
    align-items: center;
    justify-content: center;
}

.block-blob {
    width: 80%;
    height: auto;
    max-width: 250px;
}

/* Hybrid blocks */
.block-hybrid {
    position: relative;
}

.block-blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    z-index: 0;
}

.block-hybrid h2,
.block-hybrid p {
    position: relative;
    z-index: 1;
}

/* Footer */
#footer {
    position: relative;
    z-index: 2;
    background: #2A0048;
    border-top: 3px solid #8B00FF;
    padding: 40px 20px;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
}

.footer-text {
    font-family: 'VT323', monospace;
    font-weight: 400;
    font-size: 18px;
    color: #ADFF2F;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.glitch-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ADFF2F;
    opacity: 0;
    z-index: 2;
    top: 50%;
}

@keyframes glitchBarFlicker {
    0% { opacity: 0; }
    5% { opacity: 1; }
    10% { opacity: 0; }
    100% { opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    #grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
    }

    .span-1, .span-2, .span-3 {
        grid-column: span 1;
    }

    .row-2 {
        grid-row: span 1;
    }

    .block h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .block h2 {
        font-size: 28px;
    }

    #grid {
        padding: 12px;
    }
}
