/* ===================================================
   GGOGGL.com - Surrealist Aurora Portal
   ===================================================
   Palette: Aurora Gradient + Marble Classical
   Fonts: Bebas Neue, DM Sans, Space Grotesk
   =================================================== */

/* CSS Custom Properties */
:root {
    --deep-bg: #0d0a1a;
    --section-bg: #1a0a2e;
    --surface: #16213e;
    --aurora-green: #00d4aa;
    --aurora-violet: #7b2ff7;
    --aurora-pink: #ff2e97;
    --aurora-cyan: #00e5ff;
    --warm-accent: #ffc857;
    --marble-white: #f0ece2;
    --text-primary: #e8e0d4;
    --text-secondary: #9b8ec4;

    --aurora-gradient: linear-gradient(135deg, var(--aurora-green) 0%, var(--aurora-violet) 35%, var(--aurora-pink) 70%, var(--aurora-cyan) 100%);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--deep-bg);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--deep-bg);
    overflow-x: hidden;
}

/* Main Container */
.main-container {
    scroll-snap-type: y proximity;
    position: relative;
}

/* Zone Base */
.zone {
    position: relative;
    overflow: hidden;
}

/* ===================================================
   Marble Texture Overlay (CSS-only veining)
   =================================================== */
.marble-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(240,236,226,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(240,236,226,0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(240,236,226,0.03) 0%, transparent 45%),
        radial-gradient(ellipse at 10% 90%, rgba(155,142,196,0.03) 0%, transparent 35%),
        radial-gradient(ellipse at 90% 70%, rgba(155,142,196,0.02) 0%, transparent 40%);
}

/* ===================================================
   Aurora Animated Background
   =================================================== */
.aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-violet), var(--aurora-pink), var(--aurora-cyan));
    background-size: 400% 400%;
    animation: aurora-shift 12s ease infinite;
    opacity: 0.08;
}

@keyframes aurora-shift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* ===================================================
   Floating Particles
   =================================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particle-drift linear infinite;
}

@keyframes particle-drift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(30px);
        opacity: 0;
    }
}

/* ===================================================
   HERO ZONE
   =================================================== */
.hero-zone {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--deep-bg);
    scroll-snap-align: start;
    position: relative;
}

.hero-goggle-wrap {
    position: relative;
    z-index: 2;
    width: min(70vw, 500px);
    animation: goggle-float 6s ease-in-out infinite;
}

@keyframes goggle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-goggle-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(123, 47, 247, 0.3)) drop-shadow(0 0 60px rgba(0, 212, 170, 0.15));
}

/* Marble crack animation */
.crack-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: crack-draw 3s ease forwards;
}

.crack-line:nth-child(1) { animation-delay: 0.2s; }
.crack-line:nth-child(2) { animation-delay: 0.6s; }
.crack-line:nth-child(3) { animation-delay: 1.0s; }
.crack-line:nth-child(4) { animation-delay: 1.4s; }
.crack-line:nth-child(5) { animation-delay: 1.8s; }

@keyframes crack-draw {
    to { stroke-dashoffset: 0; }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--marble-white);
    mix-blend-mode: difference;
    position: relative;
    z-index: 3;
    margin-top: -20px;
    text-align: center;
    line-height: 1;
}

/* Hero Tagline */
.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    margin-top: 10px;
    position: relative;
    z-index: 3;
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: pulse-glow 3s ease-in-out infinite;
}

.scroll-eye {
    width: 40px;
    height: auto;
}

.scroll-text {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* ===================================================
   DISCOVERY ZONE
   =================================================== */
.discovery-zone {
    min-height: 200vh;
    background: linear-gradient(180deg, var(--deep-bg) 0%, var(--section-bg) 30%, var(--section-bg) 100%);
    padding: 10vh 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.discovery-panels {
    display: flex;
    flex-direction: column;
    gap: 8vh;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.discovery-panel {
    width: min(420px, 85vw);
    transition: transform 0.3s ease;
}

.discovery-panel.panel-1 {
    align-self: flex-start;
}

.discovery-panel.panel-2 {
    align-self: flex-end;
}

.discovery-panel.panel-3 {
    align-self: flex-start;
    margin-left: 5vw;
}

/* Aurora Border Wrapper */
.aurora-border {
    position: relative;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-violet), var(--aurora-pink), var(--aurora-cyan));
    background-size: 300% 300%;
    animation: border-flow 6s ease infinite;
    transition: padding 0.3s ease;
}

.aurora-border:hover {
    padding: 3px;
    animation-duration: 3s;
}

@keyframes border-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.panel-inner {
    background: var(--surface);
    border-radius: 14px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* Goggle Lens Circular Mask */
.goggle-lens {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    clip-path: circle(50%);
    background: radial-gradient(circle, var(--section-bg) 0%, var(--deep-bg) 100%);
    position: relative;
}

.panel-illustration {
    width: 100%;
    height: 100%;
}

.panel-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--marble-white);
    text-align: center;
    margin-bottom: 8px;
}

.panel-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.7;
}

/* Panel tilt effect base */
.discovery-panel .aurora-border {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
    transition: transform 0.3s ease, padding 0.3s ease;
}

/* ===================================================
   REVEAL ANIMATIONS
   =================================================== */
.reveal-element {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element[data-direction="left"] {
    transform: translateX(-60px);
}

.reveal-element[data-direction="right"] {
    transform: translateX(60px);
}

.reveal-element[data-direction="up"] {
    transform: translateY(40px);
}

.reveal-element.in-view {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ===================================================
   NARRATIVE ZONE
   =================================================== */
.narrative-zone {
    min-height: 200vh;
    background: linear-gradient(180deg, var(--section-bg) 0%, #16213e 100%);
    padding: 12vh 5vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6vh;
}

/* Decorative Ionic Columns */
.column-left,
.column-right {
    position: absolute;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 1;
    pointer-events: none;
}

.column-left {
    left: 2vw;
}

.column-right {
    right: 2vw;
}

.column-left svg,
.column-right svg {
    width: 100%;
    height: 100%;
}

/* Laurel Wreath Marker */
.laurel-marker {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 2vh;
}

.laurel-svg {
    width: 80px;
    height: auto;
}

/* Marble Divider */
.marble-divider {
    width: min(600px, 80vw);
    height: 2px;
    position: relative;
    z-index: 2;
    background:
        linear-gradient(90deg, transparent 0%, rgba(240,236,226,0.15) 20%, rgba(240,236,226,0.25) 50%, rgba(240,236,226,0.15) 80%, transparent 100%);
    border-radius: 1px;
}

.marble-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(155,142,196,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(155,142,196,0.1) 0%, transparent 50%);
}

/* Narrative Blocks */
.narrative-block {
    width: min(700px, 85vw);
    position: relative;
    z-index: 2;
}

.narrative-content {
    padding: 40px;
    border-radius: 12px;
    position: relative;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(240,236,226,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 30%, rgba(240,236,226,0.03) 0%, transparent 40%),
        rgba(22, 33, 62, 0.3);
}

.narrative-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--marble-white);
    margin-bottom: 16px;
}

.narrative-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 400;
}

/* Pull Quotes */
.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: 0.12em;
    text-align: center;
    background: var(--aurora-gradient);
    background-size: 300% 300%;
    animation: aurora-shift 12s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    padding: 20px 0;
    font-style: normal;
    border: none;
}

/* ===================================================
   CLOSING ZONE
   =================================================== */
.closing-zone {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--deep-bg);
    scroll-snap-align: end;
    position: relative;
    gap: 30px;
}

.closing-goggle-wrap {
    position: relative;
    z-index: 2;
    width: min(60vw, 450px);
    animation: closing-glow-pulse 4s ease-in-out infinite;
}

@keyframes closing-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0,212,170,0.4)) drop-shadow(0 0 40px rgba(123,47,247,0.3));
    }
    33% {
        filter: drop-shadow(0 0 25px rgba(123,47,247,0.5)) drop-shadow(0 0 50px rgba(255,46,151,0.3));
    }
    66% {
        filter: drop-shadow(0 0 25px rgba(255,46,151,0.4)) drop-shadow(0 0 50px rgba(0,229,255,0.3));
    }
}

.closing-goggle-svg {
    width: 100%;
    height: auto;
}

.closing-phrase {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
    .discovery-panel {
        width: 90vw;
    }

    .discovery-panel.panel-1,
    .discovery-panel.panel-2,
    .discovery-panel.panel-3 {
        align-self: center;
        margin-left: 0;
    }

    .column-left,
    .column-right {
        display: none;
    }

    .narrative-content {
        padding: 24px;
    }

    .goggle-lens {
        width: 140px;
        height: 140px;
    }
}

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

    .panel-inner {
        padding: 20px;
    }

    .goggle-lens {
        width: 120px;
        height: 120px;
    }

    .narrative-content {
        padding: 18px;
    }
}
