/* ========================================
   BLACK HOLE RESEARCH PORTAL
   Light Theme - Scientific Editorial Style
   ======================================== */

/* === CSS Variables - Scientific Light Palette === */
:root {
    /* Primary Colors - Cosmic Blue */
    --primary: #0B3D91;
    --primary-light: #1a5bc7;
    --primary-dark: #082a66;

    /* Secondary - Cool Light Blue */
    --secondary: #4DA3FF;
    --secondary-light: #7ebfff;

    /* Backgrounds - Clean Light */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --bg-tertiary: #EEF1F5;
    --bg-card: #FFFFFF;

    /* Text - Dark Gray Scale */
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-light: #A0AEC0;

    /* Borders & Dividers */
    --border-color: #E2E8F0;
    --border-light: #EDF2F7;
    --divider: #D0D5DD;

    /* Metadata Colors */
    --meta-color: #98A2B3;

    /* Status Colors */
    --success: #059669;
    --warning: #D97706;
    --info: #0284C7;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 720px;
    --section-padding: 5rem;
    --grid-gap: 1.5rem;

    /* Typography */
    --font-sans: 'Inter', 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--primary-light);
}

/* === Hide Background Effects === */
.space-bg,
.stars,
.star,
.nebula,
.hero-visual,
.black-hole-animation,
.planet-system,
.accretion-disk,
.event-horizon,
.singularity,
.photon-sphere,
.gravitational-lensing,
.orbit-ring,
.central-sun,
.orbit-planet,
.scroll-hint,
.scroll-arrow,
.black-hole-bg {
    display: none;
}

/* === Navigation - Premium Research Header === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navbar Layout Fixes */
.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    /* Sedikit lebih tinggi */
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    min-width: 250px;
    /* Pastikan ada ruang minimal */
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    /* Mencegah turun baris */
}

.brand-tag {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
    /* Mencegah turun baris */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: nowrap;
    /* Mencegah menu turun */
}

.nav-link {
    display: block;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    /* Sedikit lebih kecil agar muat */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    white-space: nowrap;
}



.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* API Indicator Fix */
.api-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    background: rgba(11, 61, 145, 0.5);
    border: 1px solid rgba(77, 163, 255, 0.3);
    border-radius: 100px;
    white-space: nowrap;
    /* Mencegah teks turun */
    min-width: max-content;
}

.indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.indicator-dot.connected {
    background: #00ff88;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.indicator-dot.error {
    background: #ff4d4d;
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
}

/* === Hero Section - Cinematic Research Style === */
.hero {
    padding: calc(64px + 6rem) 0 6rem;
    background-color: #000;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3)),
        url('hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #4DA3FF;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(11, 61, 145, 0.3);
    border: 1px solid rgba(77, 163, 255, 0.3);
    border-radius: 2px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    color: #FFFFFF;
    background: linear-gradient(120deg, #FFFFFF, #4DA3FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.research-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.topic-tag {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.topic-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
}



.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
    color: white;
}

.btn-glass {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-glass:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* === Section Common === */
.section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.section:nth-child(even) {
    background: var(--bg-primary);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* === Observed Black Holes - Data Panel === */
.observed-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.bh-database-panel {
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
}

.bh-properties-panel {
    padding: 1.5rem;
}

.bh-database-panel h3,
.bh-properties-panel h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.bh-list {
    display: flex;
    flex-direction: column;
    max-height: 420px;
    overflow-y: auto;
}

.bh-entry {
    padding: 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s;
    border-left: 3px solid transparent;
    margin-left: -3px;
}

.bh-entry:hover {
    background: var(--bg-primary);
}

.bh-entry.active {
    background: var(--bg-primary);
    border-left-color: var(--primary);
}

.bh-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.bh-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.bh-mass {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.bh-type {
    color: var(--text-muted);
}

.bh-source {
    font-size: 0.7rem;
    color: var(--meta-color);
    margin-top: 0.25rem;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.property-group {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
}

.property-group h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
}

.property-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.property-value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
}

.formula-reference {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
}

.formula-reference h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.formula-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.formula-list code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.5rem;
    background: var(--bg-primary);
    border-left: 2px solid var(--primary);
}

/* === Anatomy Cards === */
.anatomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 2.5rem;
}

.anatomy-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.anatomy-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(11, 61, 145, 0.08);
}

.anatomy-icon {
    display: none;
}

.anatomy-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.anatomy-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.formula {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
}

.formula code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
}

.formula span {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* === Types Grid === */
.bh-types {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--grid-gap);
}

.type-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem;
}

.type-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.type-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.type-card .metric {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* === Quantum Chaos Cards === */
.chaos-concepts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 2.5rem;
}

.concept-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
}

.concept-card.featured {
    grid-column: span 2;
    border-color: var(--primary);
}

.concept-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.concept-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.concept-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.concept-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.concept-card p.small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.formula-box {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary);
    padding: 0.875rem 1rem;
    margin: 0.75rem 0;
    border-radius: 0 4px 4px 0;
}

.formula-box code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
}

.main-formula code {
    font-size: 1rem;
    text-align: center;
}

.formula-box p {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.bh-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.bh-value span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bh-value code {
    font-family: var(--font-mono);
    color: var(--primary);
    font-weight: 500;
}

/* === Gallery Section === */
.gallery-section {
    background: var(--bg-primary);
}

.gallery-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.gallery-search {
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.search-box svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-left: 1rem;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.search-btn:hover {
    background: var(--primary-light);
}

.search-tags {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.1s;
}

.tag:hover {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.tag.active {
    color: var(--primary);
    background: rgba(11, 61, 145, 0.08);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

.gallery-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.gallery-item-info {
    padding: 1rem;
}

.gallery-item-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-item-date {
    font-size: 0.75rem;
    color: var(--meta-color);
}

/* === Loaders === */
.loader-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 0.75rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.apod-loader,
.earth-loader,
.mars-loader,
.neo-loader,
.gallery-loader {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* === Modal === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    border-color: var(--text-muted);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.modal-image {
    max-height: 60vh;
    object-fit: contain;
    background: #000;
}

.modal-info {
    padding: 1.5rem;
}

.modal-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

/* === Footer - Dark Science Theme High Contrast === */
.footer {
    background: #050508;
    /* Sedikit lebih gelap untuk kontras */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem 0 2rem;
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.01em;
}

.footer-brand p {
    font-size: 0.95rem;
    color: #ffffff !important;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 400;
}

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #4DA3FF !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-links a {
    display: block;
    font-size: 0.95rem;
    color: #e0e0e0 !important;
    padding: 0.4rem 0;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
    /* Efek geser sedikit */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: #888888;
    /* Abu-abu medium untuk copyright */
}

/* === Thermodynamics & Other Cards === */
.thermo-grid,
.holo-grid,
.obs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

.law-card,
.holo-card,
.obs-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
}

.law-number {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.law-card h3,
.holo-card h3,
.obs-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.law-card p,
.holo-card p,
.obs-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* === References === */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

.ref-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem;
}

.ref-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.ref-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === APOD Section === */
.apod-section {
    background: var(--bg-secondary);
}

.apod-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.apod-media {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apod-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.apod-media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.apod-content {
    padding: 1.5rem;
}

.apod-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.apod-date {
    background: var(--primary);
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 2px;
}

.apod-type {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 2px;
}

.apod-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.apod-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .observed-layout {
        grid-template-columns: 1fr;
    }

    .bh-database-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

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

    .concept-card.featured {
        grid-column: span 1;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 1.75rem;
    }

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

    .footer-grid {
        /* Fixed selector form .footer-content */
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* === Mobile Optimization (HP) === */
@media (max-width: 480px) {
    .hero {
        padding: calc(64px + 3rem) 0 4rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .control-group {
        width: 100%;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .nav-brand {
        min-width: auto;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-tag {
        display: none;
    }

    /* Fix API indicator - singkat untuk HP */
    .indicator-text {
        display: none;
    }

    .api-indicator::after {
        content: 'API';
        font-size: 0.65rem;
        font-weight: 600;
    }
}