/* ==========================================================================
   WatchTheStars.co.uk — Main Stylesheet
   Source of truth: this file. Do not store minified CSS as source.
   For production minification add a build step (e.g. clean-css).
   ========================================================================== */


/* ── Web Fonts ─────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Lora';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/lora-italic-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/lora-normal-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/montserrat-normal-400.woff2') format('woff2');
}


/* ── CSS Custom Properties ─────────────────────────────────────────────── */

:root {
    --primary-color: #4ecdc4;
    --primary-dark: #3db8b0;
    --secondary-color: #45b7af;
    --accent-color: #7ec8e3;
    --dark-blue: #0d1117;
    --dark-blue-light: #111820;
    --night-sky: #080c12;
    --text-primary: #c8d4de;
    --text-secondary: #8ea0b0;
    --text-muted: #506070;
    --background-light: #111820;
    --background-white: #0d1117;
    --background-card: #111820;
    --border-light: #1c2530;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --transition: all .3s ease;
}


/* ── Reset / Base ──────────────────────────────────────────────────────── */

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    background-color: var(--background-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ── Navigation ────────────────────────────────────────────────────────── */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg,
        rgba(10, 14, 20, 0.88) 0%,
        rgba(10, 14, 20, 0.45) 65%,
        transparent 100%);
    -webkit-backdrop-filter: blur(6px) saturate(1.2);
    backdrop-filter: blur(6px) saturate(1.2);
    box-shadow: none;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s ease, box-shadow 0.4s ease,
        backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease,
        border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.nav-scrolled {
    background: linear-gradient(180deg,
        rgba(30, 38, 50, 0.78) 0%,
        rgba(16, 22, 30, 0.72) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(78, 205, 196, 0.18);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: .5rem 0;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width .3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* ── OBSERVE Dropdown ──────────────────────────────────────────────────── */

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    cursor: pointer;
}

.dropdown-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.nav-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 170px;
    background: rgba(16, 22, 30, 0.96);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(78, 205, 196, 0.18);
    border-radius: 6px;
    padding: 0.7rem 0 0.4rem 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.55rem 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    text-transform: uppercase;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    color: var(--primary-color);
    background: rgba(78, 205, 196, 0.07);
}

.dropdown-menu li a::after {
    display: none !important;
}

@media (max-width: 968px) {
    .nav-dropdown {
        text-align: center;
    }
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }
    .nav-dropdown.dropdown-open .dropdown-chevron {
        transform: rotate(180deg);
    }
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        min-width: auto !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block !important;
    }
    .nav-dropdown.dropdown-open .dropdown-menu {
        max-height: 300px;
    }
    .dropdown-menu li {
        text-align: center;
    }
    .dropdown-menu li a {
        padding: 0.45rem 1rem;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.6);
    }
    .dropdown-menu li a:hover {
        color: var(--primary-color);
    }
}


/* ── Hero Section ──────────────────────────────────────────────────────── */

.hero-section {
    position: relative;
    height: 600px;
    background-image: url('/images/starfield-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    background-color: var(--night-sky);
    overflow: hidden;
}

#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 10, 25, 0.3), rgba(15, 20, 35, 0.35));
    z-index: 1;
    pointer-events: none;
}

.hero-overlay::before {
    display: none;
}

@keyframes twinkle {
    0%, 100% { opacity: .85; }
    50%       { opacity: 1; }
}

.hero-overlay::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 2rem;
    opacity: .95;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #5eead4;
    border: 2px solid #5eead4;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: #0d1117;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.cta-button--secondary {
    background-color: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.4);
    margin-left: 12px;
}

.cta-button--secondary:hover {
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}

@media (max-width: 480px) {
    .cta-button--secondary {
        margin-left: 0;
        margin-top: 12px;
    }
}


/* ── Main Sections ─────────────────────────────────────────────────────── */

.main-section {
    padding: 62px 0;
    background-color: var(--background-light);
}

.main-section.bottom-padding {
    padding-bottom: 89px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 3rem;
}


/* ── Featured Cards ────────────────────────────────────────────────────── */

.featured-section {
    background-color: var(--background-white);
}

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

.featured-card {
    background-color: var(--background-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: block;
    border: 1px solid var(--border-light);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary-color);
    border: 1px solid rgba(78, 205, 196, 0.3);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 4px;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: .75rem;
    color: var(--text-primary);
}

.card-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
}

.card-meta .author {
    font-weight: 500;
}


/* ── Planets Grid ──────────────────────────────────────────────────────── */

.planets-section {
    background-color: var(--background-light);
}

.planets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.planet-card {
    background-color: var(--background-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    border: 1px solid var(--border-light);
}

.planet-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.planet-image {
    position: relative;
    padding-top: 100%;
    background-color: #000;
    overflow: hidden;
}

.planet-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.planet-info {
    padding: 1.5rem;
}

.planet-info h3 {
    font-size: 22px;
    margin-bottom: .5rem;
    color: var(--text-primary);
}

.planet-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}


/* ── Recent Posts ──────────────────────────────────────────────────────── */

.recent-posts {
    background-color: var(--background-light);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: var(--background-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: block;
    border: 1px solid var(--border-light);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    position: relative;
    aspect-ratio: 5 / 3;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 20px;
    margin-bottom: .75rem;
    color: var(--text-primary);
}

.post-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
}

.post-meta .author {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
}

.post-meta .author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}


/* ── Newsletter Section ────────────────────────────────────────────────── */

.newsletter-section {
    background: linear-gradient(135deg, var(--dark-blue-light), var(--dark-blue));
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

.newsletter-content h2 {
    font-size: 36px;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 16px;
    margin-bottom: 2rem;
    opacity: .95;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-family: 'Lora', serif;
    font-size: 14px;
}

.newsletter-form button {
    padding: 14px 32px;
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: white;
    color: var(--primary-color);
}


/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
    background-color: var(--dark-blue-light);
    color: var(--text-secondary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 24px;
    color: white;
    margin-bottom: .5rem;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: white;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: .5rem;
}

.footer-column ul li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #94a3b8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}


/* ── Breadcrumb ────────────────────────────────────────────────────────── */

.breadcrumb {
    background-color: var(--dark-blue-light);
    min-height: 44px;
    margin-top: 72px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.breadcrumb-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    flex-wrap: wrap;
    line-height: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb-nav a:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.breadcrumb-nav [aria-current="page"] {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.bc-sep,
.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    line-height: 1;
}


/* ── Blog Post Figures ─────────────────────────────────────────────────── */

.post-figure {
    margin: 2.2rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.post-figure figcaption {
    padding: .65rem 1rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* ── Share Block ───────────────────────────────────────────────────────── */

.share-block {
    margin: 2.5rem 0 1rem;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.share-label {
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 .85rem;
}

.share-buttons {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, transform .15s;
    padding: 0;
    flex-shrink: 0;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    color: #fff;
}

.share-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    pointer-events: none;
}

.share-twitter:hover   { background: #000; }
.share-facebook:hover  { background: #1877f2; }
.share-whatsapp:hover  { background: #25d366; }
.share-reddit:hover    { background: #ff4500; }
.share-instagram:hover {
    background: radial-gradient(circle at 30% 107%,
        #fdf497 0, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.share-copied {
    font-size: .78rem;
    font-family: 'Montserrat', sans-serif;
    color: #4ade80;
    opacity: 0;
    transition: opacity .25s;
    margin-left: .25rem;
    pointer-events: none;
}

.share-copied.visible {
    opacity: 1;
}


/* ── Lightbox ──────────────────────────────────────────────────────────── */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    cursor: zoom-out;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    touch-action: none;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: contain;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform .25s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

.lightbox-caption {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: .85rem;
    text-align: center;
    max-width: 80vw;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.6);
    padding: .5rem 1rem;
    border-radius: 6px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #e2e8f0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    opacity: .7;
    transition: opacity .2s;
    z-index: 10000;
}

.lightbox-close:hover {
    opacity: 1;
}

.blog-content figure img,
.post-content figure img {
    cursor: zoom-in;
    transition: filter .2s ease;
}

.blog-content figure img:hover,
.post-content figure img:hover {
    filter: brightness(1.08);
}


/* ── Section Footer / View More ────────────────────────────────────────── */

.section-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-view-more {
    display: inline-block;
    padding: .75rem 2rem;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: .88rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.btn-view-more:hover {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--text-primary);
}


/* ── Planet Card State ─────────────────────────────────────────────────── */

.planet-card.hidden-body {
    display: none;
}


/* ── Preview Grid (Solar System / Hub Preview) ─────────────────────────── */

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.preview-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    border-color: rgba(244, 208, 63, 0.40);
}

.preview-card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--dark-blue);
}

.preview-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 45%, rgba(10, 15, 35, 0.85) 100%);
}

.preview-badge {
    position: absolute;
    top: .7rem;
    left: .7rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(244, 208, 63, 0.65);
    color: #f4d03f;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .70rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    z-index: 1;
}

.preview-card-body {
    padding: 1rem 1.1rem 1.2rem;
}

.preview-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .3rem;
}

.preview-card-desc {
    font-size: .82rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.60;
    margin: 0;
}

.badge-uap {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.40);
    color: #ff9090;
}

.section-label {
    font-family: 'Courier New', monospace;
    font-size: .72rem;
    letter-spacing: 3px;
    color: #f4d03f;
    text-transform: uppercase;
    display: block;
    margin-bottom: .5rem;
}


/* ── Contact Form ──────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.form-group label {
    font-size: .80rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted, #89a);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary, #e8eaf6);
    font-family: inherit;
    font-size: .95rem;
    padding: .65rem .85rem;
    transition: border-color .2s, background .2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--background-light);
}

.contact-form select option {
    background: var(--dark-blue);
    color: #e8eaf6;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    align-self: flex-start;
    padding: .75rem 2.2rem;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: .88rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.btn-submit:hover:not(:disabled) {
    background: var(--background-light);
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.btn-submit:disabled {
    opacity: .55;
    cursor: default;
}

.form-feedback {
    padding: .75rem 1rem;
    border-radius: 6px;
    font-size: .90rem;
}

.form-success {
    background: rgba(72, 199, 142, 0.12);
    border: 1px solid rgba(72, 199, 142, 0.40);
    color: #7ee8b8;
}

.form-error {
    background: rgba(255, 100, 100, 0.10);
    border: 1px solid rgba(255, 100, 100, 0.35);
    color: #faa;
}

.contact-aside {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.6rem 1.4rem;
}

.contact-aside h3 {
    font-size: 1rem;
    color: var(--accent-color);
    margin: 0 0 .8rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-aside p {
    font-size: .92rem;
    margin: 0 0 .6rem;
}

.contact-email-wrap {
    margin: .4rem 0 1rem;
}

.contact-email-link {
    color: var(--accent-color);
    word-break: break-all;
}

.contact-aside-note {
    color: var(--text-muted, #89a);
    font-size: .84rem !important;
}

.contact-aside a {
    color: var(--accent-color);
}

.contact-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 1rem 0;
}


/* ── Scroll Reveal Animations ──────────────────────────────────────────── */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }
[data-reveal="delay-4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ── Ambient Stars Canvas ──────────────────────────────────────────────── */

.ambient-stars {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}


/* ── Hero Shimmer Canvas ───────────────────────────────────────────────── */

.hero-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}


/* ── Responsive: Tablet (≤968px) ───────────────────────────────────────── */

@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .planets-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-aside {
        order: -1;
    }
}


/* ── Responsive: Mobile (≤640px) ───────────────────────────────────────── */

@media (max-width: 640px) {
    .hero-section {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .section-title {
        font-size: 26px;
    }

    .planets-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-content h2 {
        font-size: 28px;
    }
}


/* ── Responsive: Small (≤520px) ────────────────────────────────────────── */

@media (max-width: 520px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ── Responsive: Extra Small (≤500px) ──────────────────────────────────── */

@media (max-width: 500px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }
}
