/* ===========================
   riron.xyz - Vaporwave Theory Ocean
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #1A0A05;
    background-color: #FFF0E0;
    overflow-x: hidden;
    position: relative;
}

/* --- Scanlines Overlay --- */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(26, 10, 5, 0.03) 3px,
        rgba(26, 10, 5, 0.03) 4px
    );
}

/* --- Geometric Shapes --- */
.geo-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.geo-shape {
    position: absolute;
    opacity: 0.3;
    animation: drift 20s ease-in-out infinite;
}

.geo-circle {
    border-radius: 50%;
    border: 2px solid #E8734A;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid #FF6B9D;
    opacity: 0.2;
}

.geo-square {
    border: 2px solid #D4A0E8;
    transform: rotate(15deg);
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(-3deg);
    }
    75% {
        transform: translate(10px, 25px) rotate(7deg);
    }
}

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

.bubble {
    position: absolute;
    bottom: -50px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 115, 74, 0.15), transparent);
    border: 1px solid rgba(232, 115, 74, 0.1);
    animation: bubbleRise linear infinite;
}

@keyframes bubbleRise {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110vh;
        opacity: 0;
        transform: translateX(40px) scale(1.2);
    }
}

/* --- Sections (Immersive Scroll) --- */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 4rem 2rem;
}

.section-content {
    max-width: 1100px;
    width: 100%;
    position: relative;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #1A0A05;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* --- Glitch Text Effect --- */
.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitchFlicker 4s ease-in-out infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.glitch-text::before {
    text-shadow: 3px 0 #FF6B9D;
    clip-path: inset(0 0 65% 0);
    animation: glitchTop 4s ease-in-out infinite;
}

.glitch-text::after {
    text-shadow: -3px 0 #D4A0E8;
    clip-path: inset(65% 0 0 0);
    animation: glitchBottom 4s ease-in-out infinite;
}

@keyframes glitchFlicker {
    0%, 90%, 100% {
        text-shadow: none;
    }
    92% {
        text-shadow: 3px 0 #FF6B9D, -3px 0 #D4A0E8;
    }
    94% {
        text-shadow: -2px 0 #FF6B9D, 2px 0 #D4A0E8;
    }
    96% {
        text-shadow: 1px 0 #E8734A;
    }
}

@keyframes glitchTop {
    0%, 88%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    90% {
        transform: translate(4px, -2px);
        opacity: 1;
    }
    92% {
        transform: translate(-3px, 1px);
        opacity: 1;
    }
    94% {
        transform: translate(2px, 0);
        opacity: 0;
    }
}

@keyframes glitchBottom {
    0%, 88%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    91% {
        transform: translate(-4px, 2px);
        opacity: 1;
    }
    93% {
        transform: translate(3px, -1px);
        opacity: 1;
    }
    95% {
        transform: translate(-1px, 0);
        opacity: 0;
    }
}

/* --- Hero Section --- */
.section-hero {
    text-align: center;
    flex-direction: column;
    background: linear-gradient(180deg, #FFF0E0 0%, #FFF5F0 100%);
}

.section-hero .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: #E8734A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #1A0A05;
    opacity: 0.7;
    max-width: 500px;
}

.scroll-indicator {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid #E8734A;
    border-bottom: 2px solid #E8734A;
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.4;
    }
    50% {
        transform: rotate(45deg) translate(5px, 5px);
        opacity: 1;
    }
}

/* --- Theory Section --- */
.section-theory {
    background: linear-gradient(180deg, #FFF5F0 0%, #FFF0E0 50%, #FFF5F0 100%);
}

.theory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.theory-card {
    background: #FFF5F0;
    border: 1px solid rgba(232, 115, 74, 0.15);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(232, 115, 74, 0.12);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #E8734A, #FF6B9D, #D4A0E8);
}

.theory-card h3 {
    color: #E8734A;
}

.theory-card p {
    color: #1A0A05;
    opacity: 0.8;
}

/* --- Seascape Section --- */
.section-seascape {
    background: linear-gradient(180deg, #FFF5F0 0%, #FFF0E0 100%);
}

.seascape-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.seascape-block {
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid #D4A0E8;
    position: relative;
}

.seascape-block:last-child {
    margin-bottom: 0;
}

.block-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #FF6B9D;
    opacity: 0.2;
    position: absolute;
    top: -0.5rem;
    right: 0;
    line-height: 1;
}

.seascape-block h3 {
    color: #1A0A05;
}

.seascape-block p {
    color: #1A0A05;
    opacity: 0.8;
}

/* --- Manifest Section --- */
.section-manifest {
    background: linear-gradient(180deg, #FFF0E0 0%, #FFF5F0 100%);
}

.manifest-items {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.manifest-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: #FFF5F0;
    border: 1px solid rgba(212, 160, 232, 0.2);
    transition: transform 0.3s ease;
}

.manifest-item:hover {
    transform: translateX(8px);
}

.manifest-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.manifest-text h3 {
    color: #FF6B9D;
}

.manifest-text p {
    color: #1A0A05;
    opacity: 0.8;
}

/* --- Abyss Section --- */
.section-abyss {
    text-align: center;
    background: linear-gradient(180deg, #FFF5F0 0%, #FFF0E0 60%, rgba(232, 115, 74, 0.05) 100%);
    min-height: 80vh;
}

.section-abyss .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.abyss-text {
    max-width: 600px;
    color: #1A0A05;
    opacity: 0.7;
    font-size: 1.1rem;
}

.abyss-sigil {
    margin: 2rem 0;
    animation: sigilSpin 30s linear infinite;
}

@keyframes sigilSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.abyss-footer {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #E8734A;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-top: 2rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .theory-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .seascape-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .manifest-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .geo-shape {
        opacity: 0.15;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }

    .theory-card {
        padding: 1.5rem;
    }

    .seascape-block {
        padding: 1.5rem;
    }
}
