/* =============================================================================
   IMPORTS
============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Cousine:wght@400;700&display=swap');

/* =============================================================================
   CSS VARIABLES
============================================================================= */

:root {
    --accent:        rgba(120, 190, 255, 0.85);
    --accent-dim:    rgba(120, 190, 255, 0.18);
    --accent-border: rgba(120, 190, 255, 0.14);
    --glass-bg:      linear-gradient(135deg, rgba(18, 30, 52, 0.72), rgba(8, 16, 30, 0.82));
    --glass-border:  1px solid rgba(120, 190, 255, 0.10);
    --text:          rgba(220, 235, 255, 0.92);
    --text-dim:      rgba(120, 190, 255, 0.55);
    --glow-sm:       0 0 12px rgba(80, 160, 255, 0.18);
    --glow-md:       0 0 24px rgba(80, 160, 255, 0.22);
}

/* =============================================================================
   RESET & BASE
============================================================================= */

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: #050b14;
    font-family: Cousine, monospace;
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { display: none; }

/* =============================================================================
   LAYOUT
============================================================================= */

.container {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* =============================================================================
   SPACE BACKGROUND
============================================================================= */

.space-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(80, 140, 255, 0.22), transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(0, 180, 255, 0.16), transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(0, 70, 140, 0.22), transparent 60%),
        linear-gradient(180deg, #07111f 0%, #050c17 35%, #030811 100%);
}

/* =============================================================================
   STARS
============================================================================= */

.stars {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    animation: driftStars linear infinite;
}

.stars-small {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(rgba(120, 220, 255, 0.5) 1px, transparent 1px);
    background-size: 140px 140px, 210px 210px, 320px 320px;
    background-position: 0 0, 40px 70px, 130px 40px;
    opacity: 0.85;
    animation-duration: 220s;
}

.stars-medium {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px),
        radial-gradient(rgba(120, 220, 255, 0.4) 2px, transparent 2px);
    background-size: 260px 260px, 420px 420px;
    background-position: 100px 40px, 220px 180px;
    opacity: 0.35;
    animation-duration: 340s;
    animation-direction: reverse;
}

/* =============================================================================
   NEBULA
============================================================================= */

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.65;
}

.nebula-1 {
    width: 900px;
    height: 900px;
    left: -250px;
    top: -200px;
    background: radial-gradient(circle,
        rgba(90, 160, 255, 0.50),
        rgba(0, 180, 255, 0.18),
        transparent 72%
    );
}

.nebula-2 {
    width: 750px;
    height: 750px;
    right: -180px;
    bottom: -180px;
    background: radial-gradient(circle,
        rgba(0, 180, 255, 0.30),
        rgba(120, 220, 255, 0.10),
        transparent 70%
    );
}

/* =============================================================================
   SPACE TEXTURE
============================================================================= */

.space-texture {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    opacity: 0.28;
    mix-blend-mode: screen;
    filter: brightness(1.4) contrast(1.2);
    pointer-events: none;
}

/* =============================================================================
   CLOUDS 
============================================================================= */

.space-clouds {
    position: absolute;
    right: -45%;
    bottom: 0%;
    width: 1600px;
    height: 2200px;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    mix-blend-mode: plus-lighter;
    filter: blur(10px) saturate(1.25) brightness(1.08);
    animation: cloudDrift 15s ease-in-out infinite, cloudPulse 8s ease-in-out infinite;
}

.space-clouds::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 72%, rgba(80, 220, 255, 0.42) 0%, rgba(40, 160, 255, 0.22) 12%, rgba(0, 110, 255, 0.10) 24%, transparent 42%),
        radial-gradient(ellipse at 88% 78%, rgba(120, 240, 255, 0.20) 0%, rgba(60, 170, 255, 0.12) 18%, transparent 38%),
        radial-gradient(circle at 78% 52%, rgba(120, 220, 255, 0.30) 0%, rgba(80, 170, 255, 0.20) 16%, rgba(40, 110, 255, 0.12) 30%, transparent 52%),
        radial-gradient(circle at 82% 68%, rgba(120, 255, 255, 0.18) 0%, rgba(80, 200, 255, 0.10) 22%, transparent 48%),
        radial-gradient(circle at 72% 88%, rgba(255, 240, 220, 0.90) 0%, rgba(255, 200, 160, 0.40) 18%, rgba(255, 170, 120, 0.18) 34%, transparent 58%),
        radial-gradient(circle at 86% 95%, rgba(255, 220, 190, 0.45) 0%, rgba(255, 180, 120, 0.20) 24%, transparent 50%),
        radial-gradient(ellipse at 92% 80%, rgba(90, 170, 255, 0.16) 0%, rgba(40, 100, 220, 0.08) 30%, transparent 65%);
    filter: blur(70px);
}

.space-clouds::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    width: 240px;
    height: 700px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 240, 200, 0.75) 12%,
        rgba(255, 210, 160, 0.38) 30%,
        rgba(120, 180, 255, 0.12) 58%,
        transparent 80%
    );
    filter: blur(45px);
    opacity: 0.6;
}

/* =============================================================================
   SKY TRAILS
============================================================================= */

.sky-trail {
    position: absolute;
    height: 1px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(180, 230, 255, 0.95), transparent);
    box-shadow: 0 0 6px rgba(120, 220, 255, 0.25);
    transform-origin: left center;
    animation-name: satelliteTrail;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    filter: blur(0.4px);
}

.t1 { top: 12%; left: 8%;  width: 120px; transform: rotate(-12deg); animation-duration: 11s; animation-delay: 1s; }
.t2 { top: 24%; left: 58%; width: 280px; transform: rotate(-18deg); animation-duration: 17s; animation-delay: 4s; }
.t3 { top: 42%; left: 18%; width: 180px; transform: rotate(-8deg);  animation-duration: 13s; animation-delay: 2s; }
.t4 { top: 65%; left: 62%; width: 360px; transform: rotate(-22deg); animation-duration: 21s; animation-delay: 7s; }
.t5 { top: 72%; left: 10%; width: 140px; transform: rotate(-15deg); animation-duration: 15s; animation-delay: 3s; }
.t6 { top: 84%; left: 52%; width: 240px; transform: rotate(-10deg); animation-duration: 19s; animation-delay: 8s; }
.t7 { top: 36%; left: 74%; width: 110px; transform: rotate(-28deg); animation-duration: 12s; animation-delay: 5s; }
.t8 { top: 54%; left: 38%; width: 320px; transform: rotate(-16deg); animation-duration: 23s; animation-delay: 9s; }

/* =============================================================================
   RIGHT HAZE
============================================================================= */

.right-haze {
    position: absolute;
    top: -10%;
    right: -15%;
    width: 900px;
    height: 1400px;
    background: radial-gradient(circle at 40% 50%,
        rgba(90, 190, 255, 0.12),
        rgba(0, 120, 255, 0.04),
        transparent 70%
    );
    filter: blur(90px);
    opacity: 0.7;
    pointer-events: none;
    animation: hazeFloat 16s ease-in-out infinite, hazePulse 9s ease-in-out infinite;
    z-index: 0;
}

/* =============================================================================
   HEADER
============================================================================= */

.site-header {
    position: absolute;
    top: 5vh;
    left: 7vw;
    right: 7vw;
    z-index: 30;
}

.header-ui {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 38px;
}

/* =============================================================================
   LOGO
============================================================================= */

.spaceflight-logo {
    position: relative;
    display: inline-block;
    font-family: 'Michroma', sans-serif;
    font-size: clamp(34px, 5.8vw, 74px);
    letter-spacing: 0.045em;
    color: #d7ecff;
    transform: scaleY(0.94);
    text-shadow:
        0 0 10px rgba(120, 190, 255, 0.35),
        0 0 25px rgba(0, 140, 255, 0.25);
    isolation: isolate;
    overflow: visible;
}

/* =============================================================================
   HORIZON
============================================================================= */

.horizon-core {
    position: absolute;
    left: 50%;
    bottom: -27px;
    transform: translateX(-50%);
    width: 96%;
    height: 2px;
    overflow: visible;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(
        to right,
        transparent 0%,
        #0d4a8a 15%,
        #2a8ad4 35%,
        #f7fdff 46%,
        #ffffff 50%,
        #f7fdff 54%,
        #2a8ad4 65%,
        #0d4a8a 85%,
        transparent 100%
    );
}

.horizon-core::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 500px;
    pointer-events: none;
    background: radial-gradient(
        ellipse 50% 50% at center,
        rgba(100, 180, 255, 0.20) 0%,
        rgba(80, 155, 240, 0.13) 12%,
        rgba(60, 130, 220, 0.07) 28%,
        rgba(40, 100, 200, 0.03) 50%,
        transparent 70%
    );
}

.horizon-core::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 600px;
    pointer-events: none;
    background: radial-gradient(
        ellipse 45% 38% at center,
        rgba(255, 255, 255, 1) 0%,
        rgba(240, 248, 255, 0.96) 2%,
        rgba(215, 238, 255, 0.88) 5%,
        rgba(180, 222, 255, 0.76) 9%,
        rgba(145, 207, 255, 0.62) 14%,
        rgba(115, 190, 255, 0.47) 20%,
        rgba(88, 172, 255, 0.33) 28%,
        rgba(65, 150, 245, 0.20) 38%,
        rgba(45, 122, 230, 0.11) 50%,
        rgba(28, 90, 210, 0.05) 63%,
        transparent 88%
    );
}

/* =============================================================================
   ORBITALPEDIA BUTTON — GLASSMORPHISM
============================================================================= */

.orbitalpedia-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 28px;
    margin-left: 0;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(180deg,
        rgba(18, 30, 52, 0.82),
        rgba(8, 16, 30, 0.90)
    );
    border: 1px solid rgba(120, 190, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 30px rgba(80, 160, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.35),
        var(--glow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    width: fit-content;
}

.orbitalpedia-link::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(120, 190, 255, 0.35),
        transparent
    );
}

/* Corner accent lines */
.orbitalpedia-link::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, rgba(120, 190, 255, 0.7), transparent);
}

.orbitalpedia-link:hover {
    transform: translateY(-2px);
    border-color: rgba(120, 190, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.35),
        var(--glow-md);
}

.orbitalpedia-text {
    font-family: Cousine, monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(180, 220, 255, 0.85);
}

.button-line {
    display: block;
    width: 1px;
    height: 18px;
    background: rgba(120, 190, 255, 0.25);
}

.orbitalpedia-arrows {
    display: flex;
    gap: 2px;
    align-items: center;
}

.orbitalpedia-arrows span {
    color: rgba(120, 190, 255, 0.7);
    opacity: 0;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(120, 210, 255, 0.7);
    animation: orbitalArrow 1.5s infinite;
}

.orbitalpedia-arrows span:nth-child(2) { animation-delay: 0.2s; }
.orbitalpedia-arrows span:nth-child(3) { animation-delay: 0.4s; }

/* =============================================================================
   SOCIAL BUTTONS — GLASSMORPHISM
============================================================================= */

.social-buttons {
    position: fixed;
    top: 120px;
    right: 1.5vw;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
}

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(180, 220, 255, 0.65);
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(120, 190, 255, 0.10);
    background: linear-gradient(180deg,
        rgba(18, 28, 48, 0.72),
        rgba(8, 14, 24, 0.60)
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(120, 190, 255, 0.35);
    box-shadow: var(--glow-sm);
}

.social-btn i { font-size: 15px; }

/* =============================================================================
   LAUNCH STACK
============================================================================= */

.launch-stack {
    position: absolute;
    top: 30vh;
    left: 16vw;
    width: 760px;
    height: 700px;
    z-index: 10;
}

/* =============================================================================
   LAUNCH CARDS — GLASSMORPHISM
============================================================================= */

.launch-card {
    position: absolute;
    min-height: 240px;
    border-radius: 24px;
    background: linear-gradient(135deg,
        rgba(18, 30, 52, 0.72),
        rgba(8, 16, 30, 0.82)
    );
    border: 1px solid rgba(120, 190, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 60px rgba(80, 160, 255, 0.04),
        0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Corner accent — top left */
.launch-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 48px; height: 2px;
    background: linear-gradient(90deg, rgba(120, 190, 255, 0.5), transparent);
}

.launch-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 48px;
    background: linear-gradient(180deg, rgba(120, 190, 255, 0.5), transparent);
}

/* Inner shine */
.card-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 50%, rgba(120, 190, 255, 0.08), transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(80, 160, 255, 0.05), transparent 40%);
    pointer-events: none;
}

.main-card {
    top: 184px;
    left: 12px;
    width: min(760px, 46vw);
    transform: scale(0.8);
    transform-origin: top left;
    z-index: 10;
    border-color: rgba(120, 190, 255, 0.12);
}

.main-card .rocket-panel {
    padding-top: 15px;
    justify-content: center;
}

.main-card:hover {
    border-color: rgba(120, 190, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 0 60px rgba(80, 160, 255, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.45),
        var(--glow-sm);
}

.main-card .rocket-panel { width: 250px; }
.main-card .rocket-image { width: 190px; height: 190px; }

.last-card {
    top: -42px;
    left: -22px;
    width: min(680px, 50vw);
    transform: scale(0.7);
    opacity: 0.55;
    filter: blur(0.6px);
    z-index: 5;
}

.future-card {
    top: 370px;
    left: -22px;
    width: min(680px, 50vw);
    transform: scale(0.7);
    opacity: 0.55;
    filter: blur(0.6px);
    z-index: 5;
}

.card-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 220px;
    z-index: 2;
}




/* =============================================================================
   ROCKET PANEL
============================================================================= */

.rocket-panel {
    position: relative;
    width: 260px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rocket-panel::after {
    content: "";
    position: absolute;
    right: 0; top: 15%;
    width: 1px; height: 70%;
    background: linear-gradient(to bottom,
        transparent,
        rgba(120, 190, 255, 0.12),
        transparent
    );
}

.rocket-glow {
    position: absolute;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(120, 190, 255, 0.18), transparent 70%);
    filter: blur(20px);
}

.rocket-image {
    position: relative;
    width: 170px; height: 170px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.rocket-name {
    margin-top: 10px;
    font-family: Cousine, monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* =============================================================================
   CARD CONTENT
============================================================================= */

.launch-content {
    flex: 1;
    padding: 28px 32px 28px 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-label {
    font-family: Cousine, monospace;
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.launch-line {
    font-family: Cousine, monospace;
    font-size: clamp(12px, 0.85vw, 15px);
    line-height: 1.6;
    color: var(--text);
}

.countdown-line {
    margin-top: 6px;
    color: rgba(120, 190, 255, 0.85);
    font-weight: 700;
    letter-spacing: 1px;
}

.launch-status { color: rgba(120, 190, 255, 0.8); }

/* =============================================================================
   STATUS INDICATORS
============================================================================= */

.success, .fail, .gray, .part {
    display: inline-block;
    width: 8px; height: 8px;
    margin-left: 6px;
    border-radius: 2px;
    vertical-align: middle;
    flex-shrink: 0;
}

.success { background: #1d9800; box-shadow: 0 0 6px rgba(29, 152, 0, 0.7); }
.fail    { background: #e60000; box-shadow: 0 0 6px rgba(230, 0, 0, 0.7); }
.gray    { background: #8d8d8d; box-shadow: 0 0 4px rgba(140, 140, 140, 0.3); }
.part    { background: #dfa027; box-shadow: 0 0 6px rgba(223, 160, 39, 0.7); }



/* =============================================================================
   MISC
============================================================================= */

.version-tag {
    position: absolute;
    right: 7px;
    bottom: -5px;
    font-family: Cousine, monospace;
    font-size: 11px;
    letter-spacing: 0px;
    color: var(--text-dim);
    opacity: 0.7;
    pointer-events: none;
}

.site-copyright {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 50;
    font-family: Cousine, monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(180, 220, 255, 0.3);
    text-transform: uppercase;
    user-select: none;
    pointer-events: none;
}

.mobile-orbitalpedia { display: none; }

/* =============================================================================
   SPINNING GLOBE
============================================================================= */

.globe-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    
    
}

#globe {
    opacity: 0.5;
}

.globe-site-label {
    position: absolute;
    font-family: Cousine, monospace;
    font-size: 9px;
    letter-spacing: 1px;
    color: rgba(120, 190, 255, 0.85);
    /* text-shadow: 0 0 6px rgba(80, 160, 255, 0.8); */
    white-space: nowrap;
    pointer-events: none;
}

#globe-labels {
    opacity: 1; /* full opacity for labels */
}

.globe-site-label--active {
    color: #ff3333;
    font-weight: bold;
}



/* =============================================================================
   ANIMATIONS
============================================================================= */

@keyframes driftStars {
    from { transform: translateY(0); }
    to   { transform: translateY(-200px); }
}

@keyframes satelliteTrail {
    0%   { opacity: 0; clip-path: inset(0 100% 0 0); }
    4%   { opacity: 0.9; clip-path: inset(0 0 0 0); }
    10%  { opacity: 0; clip-path: inset(0 0 0 100%); }
    100% { opacity: 0; }
}

@keyframes orbitalArrow {
    0%   { opacity: 0; transform: translateX(-4px); }
    40%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(6px); }
}

@keyframes cloudDrift {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    30%  { transform: translate3d(-18px, -10px, 0) rotate(0.4deg); }
    65%  { transform: translate3d(-22px, -14px, 0) rotate(-0.3deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes cloudPulse {
    0%, 100% { opacity: 0.85; }
    40%       { opacity: 1; }
    70%       { opacity: 0.90; }
}

@keyframes hazeFloat {
    0%   { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(-20px, 15px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes hazePulse {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 0.75; }
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* =============================================================================
   RESPONSIVE — LANDSCAPE NARROW
============================================================================= */

@media (max-aspect-ratio: 1/1) {
    .launch-stack {
        top: 24vh;
        left: 6vw;
        transform: scale(0.82);
        transform-origin: top left;
    }

    .site-header {
        top: 3vh;
        left: 5vw;
    }

    .social-buttons {
        right: 2vw;
        top: 90px;
    }
}

/* =============================================================================
   RESPONSIVE — PORTRAIT
============================================================================= */

@media (orientation: portrait) {
    .site-header {
        top: 3vh;
        left: 5vw;
    }

    .launch-stack {
        top: 22vh;
        left: 180px;
        transform: translateX(-10vw) scale(1.4);
        transform-origin: top left;
    }

    .main-card  { top: 210px; }
    .future-card { top: 372px; }

    .last-card {
        top: 2px;
        left: -70px;
        width: min(680px, 50vw);
        transform: scale(0.65);
        opacity: 0.5;
        filter: blur(0.6px);
    }

    .future-card {
        left: -70px;
        width: min(680px, 50vw);
        transform: scale(0.65);
        opacity: 0.5;
        filter: blur(0.6px);
    }
}

/* =============================================================================
   RESPONSIVE — MOBILE (≤ 900px)
============================================================================= */

@media (max-width: 1080px) {
    html, body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .container {
        position: relative;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .image-wrapper {
        position: relative;
        min-height: 100vh;
        padding-bottom: 120px;
    }

    .site-header {
        position: relative;
        top: auto; left: auto; right: auto;
        padding-top: 36px;
        display: flex;
        justify-content: center;
    }

    .spaceflight-logo {
        font-size: clamp(28px, 7vw, 42px);
        letter-spacing: 0.03em;
    }

    .header-ui {
        align-items: center;
        gap: 26px;
    }

 

    .orbitalpedia-link {
        padding: 10px 24px;
        gap: 14px;
    }

    .launch-stack {
        position: relative;
        top: auto; left: auto;
        width: 100%;
        height: auto;
        transform: none;
        padding-top: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .launch-card,
    .main-card,
    .last-card,
    .future-card {
        position: relative;
        top: auto; left: auto;
        width: min(92vw, 680px);
        transform: none;
        opacity: 1;
        filter: none;
    }

    .card-inner {
        flex-direction: column;
        align-items: center;
    }

    .rocket-panel {
        width: 100%;
        min-height: auto;
        padding-top: 24px;
    }

    .rocket-panel::after { display: none; }

    .rocket-image { width: 130px; height: 130px; }

    .launch-content {
        width: 100%;
        padding: 20px 24px;
    }

    .launch-line { font-size: 13px; }

    .space-clouds {
        opacity: 0.55;
        right: -120%;
        bottom: -20%;
        transform: scale(0.8);
    }

    .social-buttons {
        position: relative;
        top: auto; right: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 32px;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .mobile-orbitalpedia {
        display: flex;
        justify-content: center;
        margin-bottom: 24px;
        position: relative;
        top: 300px;
        z-index: 2;
    }

    .mobile-orbitalpedia a {
        display: inline-block;
        padding: 12px 24px;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(18, 28, 48, 0.82), rgba(8, 14, 24, 0.68));
        color: rgba(180, 220, 255, 0.85);
        text-decoration: none;
        font-family: Cousine, monospace;
        font-size: 11px;
        letter-spacing: 3px;
        text-transform: uppercase;
        backdrop-filter: blur(12px);
        border: 1px solid rgba(120, 190, 255, 0.14);
        box-shadow: var(--glow-sm);
    }

    .site-copyright {
        position: relative;
        left: auto; bottom: auto;
        text-align: center;
        margin-top: 30px;
        padding-bottom: 30px;
    }

    .recent-feed {
        width: min(92vw, 400px);
    }

    #globe-container {
        display: none !important;
    }
}

/* =============================================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
============================================================================= */

@media (max-width: 480px) {
    .social-btn { width: 40px; height: 40px; }
}
