@font-face {
    font-family: 'Nautica';
    src: url('nautica-font/Nautica-E4BVW.ttf') format('truetype');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #000;
    color: #fff;
    font-family: 'Nautica', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 400vh; /* Long scroll range */
}

/* ================================================
   MOON SURFACE - FIXED BACKGROUND
   ================================================ */
.video-container { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: black;
}

#moon-surface { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ================================================
   ASTRONAUT - STAYS ON MOON
   ================================================ */
.foreground-layer { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    pointer-events: none;
}

#foreground-image { 
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.2) brightness(1.1) saturate(1.2);
}

/* ================================================
   EQUATIONS - STAY ON MOON
   ================================================ */
.rocks-layer { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
    pointer-events: none;
}

.eq-container {
    position: absolute;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.eq-glyph {
    font-family: 'Nautica', sans-serif;
    font-size: 2.2rem;
    color: #a8d5ff;
    text-shadow: 0 0 6px #00cfff, 0 0 12px #00cfff;
    margin-bottom: 0.5rem;
    transition: transform 0.3s;
}

.eq-container:hover .eq-glyph {
    transform: scale(1.1);
    text-shadow: 0 0 10px #00cfff, 0 0 20px #00cfff, 0 0 30px #0652DD;
}

/* ================================================
   SOCIAL ICONS - STAY ON MOON
   ================================================ */
.socials-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    pointer-events: none;
    overflow: visible;
}

.social-rock {
    position: absolute;
    width: 130px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
    text-decoration: none;
    overflow: visible;
}

.social-rock:hover {
    transform: scale(1.1);
}

.social-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

/* beam CSS removed — handled by JS */

/* ================================================
   BLACK HOLE - LANDING SECTION
   ================================================ */
#landing-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

#blackhole-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 5;
}

/* ================================================
   TEXT - TOP LEFT
   ================================================ */
.name-block {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    z-index: 20;
    pointer-events: none;
    line-height: 2;
}

.text-container {
    display: block;
}

.name-line {
    font-family: 'Nautica', sans-serif;
    font-size: clamp(1rem, 2.2vw, 2.2rem);
    font-weight: bold;
    letter-spacing: 0.28em;
    color: #fff;
    text-shadow: 0 0 6px #fff, 0 0 18px #fff, 0 0 40px rgba(100,200,255,0.9), 0 0 80px rgba(0,150,255,0.6);
}

.sub-line {
    font-family: 'Nautica', sans-serif;
    font-size: clamp(0.75rem, 1.4vw, 1.3rem);
    letter-spacing: 0.28em;
    color: #fff;
    text-shadow: 0 0 6px #fff, 0 0 16px #7dd4ff, 0 0 35px rgba(0,180,255,0.9), 0 0 60px rgba(0,120,255,0.5);
    margin-top: 0.4rem;
}

.loc-line {
    font-family: 'Nautica', sans-serif;
    font-size: clamp(0.65rem, 1.1vw, 1rem);
    letter-spacing: 0.28em;
    color: #c8e8ff;
    text-shadow: 0 0 6px #c8e8ff, 0 0 16px rgba(100,200,255,0.9), 0 0 35px rgba(0,150,255,0.6);
    margin-top: 0.3rem;
}

.text-container span {
    display: inline-block;
}

/* ================================================
   HUD - TOP RIGHT
   ================================================ */
.hud-right {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    z-index: 20;
    pointer-events: none;
    text-align: right;
    line-height: 2;
    font-family: 'Nautica', sans-serif;
    font-size: 1rem;
    color: #4a7fa8;
    letter-spacing: 0.18em;
    text-shadow: 0 0 6px rgba(0,180,255,0.3);
}

.hud-row { 
    display: block; 
}

.hud-val { 
    color: #ffffff; 
    text-shadow: 0 0 4px #fff, 0 0 18px #00cfff, 0 0 40px #0652DD; 
}

.hud-temp { 
    font-size: 0.95rem; 
    font-weight: 400; 
    margin-top: 0.2rem; 
}

/* ================================================
   PROJECTION CANVAS - centered in black hole
   ================================================ */
#proj-canvas {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55vmin;
    height: 55vmin;
    z-index: 15;
    pointer-events: none;
}

#astronaut-zone {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 22vmin;
    height: 25vmin;
    z-index: 200;
    cursor: pointer;
}


/* ================================================
   QR CODE OVERLAY
   ================================================ */
#qr-overlay {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55vmin;
    height: 55vmin;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0,10,20,0.92) 60%, rgba(0,207,255,0.1) 100%);
    box-shadow: 0 0 60px rgba(0,207,255,0.4), inset 0 0 40px rgba(0,207,255,0.1);
}

#qr-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: qr-appear 0.8s ease forwards;
}

@keyframes qr-appear {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.qr-label {
    font-family: 'Nautica', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: #00cfff;
    text-shadow: 0 0 10px #00cfff, 0 0 20px #00cfff;
}

#qr-img {
    width: 220px;
    height: 220px;
    border: 2px solid rgba(0,207,255,0.6);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,207,255,0.5);
    image-rendering: pixelated;
}

.qr-sub {
    font-family: 'Nautica', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(0,207,255,0.5);
}

/* ================================================
   SCROLL TRANSITION LAYERS
   ================================================ */

/* The blackout overlay for the "event horizon" */
#blackout-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
}

/* The deep space destination (slide1.png) */
#deep-space {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 500;
    opacity: 0;
    pointer-events: none; /* enabled via JS when visible */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5vh;
    overflow: hidden;
}

/* Spline Canvas */
#canvas3d {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* Content inside deep space */
.deep-content {
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Floating Images */
.floating-card {
    position: absolute;
    width: clamp(120px, 15vw, 220px); /* "Way small" */
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
    border: 1px solid rgba(100, 200, 255, 0.4);
    transition: transform 0.1s ease-out;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.9;
}

.floating-card:hover { 
    z-index: 100; 
    box-shadow: 0 0 40px rgba(0, 200, 255, 0.8);
    border-color: #fff;
    opacity: 1;
}

/* Positions */
.c1 { top: 20%; left: 15%; }
.c2 { bottom: 25%; right: 15%; }
.c3 { top: 25%; right: 20%; }

.deep-title {
    font-family: 'Nautica', sans-serif;
    font-size: clamp(2rem, 5vw, 5rem);
    letter-spacing: 0.3em;
    color: #fff;
    text-shadow: 0 0 20px rgba(100,200,255,0.8);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.deep-text {
    font-family: 'Nautica', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: #a8d5ff;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ================================================
   SCROLL HINT
   ================================================ */
.scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-family: 'Nautica', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    z-index: 100;
    pointer-events: none;
    animation: fade-hint 2s infinite;
    transition: opacity 0.5s;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    margin: 0.5rem auto 0;
}

@keyframes fade-hint {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
