:root {
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Space Mono", monospace;
    color: #e8f1ff;
    background:
        radial-gradient(circle at top, rgba(11, 83, 148, 0.2), transparent 0 42%),
        #07111d;
}

::selection {
    background: rgba(255, 153, 0, 0.35);
    color: #ffffff;
}

.grid-overlay {
    background-image:
        linear-gradient(rgba(11, 83, 148, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 83, 148, 0.12) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
}

.glass-panel {
    background: rgba(9, 17, 30, 0.78);
    backdrop-filter: blur(14px);
}

.logo-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(11, 83, 148, 0.96) 0%, rgba(8, 64, 112, 0.96) 50%, rgba(11, 83, 148, 0.96) 100%);
    box-shadow:
        0 18px 48px rgba(11, 83, 148, 0.3),
        inset 0 1px 0 rgba(255, 153, 0, 0.25);
}

.logo-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.04) 0,
        rgba(255, 255, 255, 0.04) 2px,
        transparent 2px,
        transparent 4px
    );
    opacity: 0.6;
}

.logo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 35%, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.logo-banner img {
    /* filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); */
}

@media (max-width: 640px) {
    .logo-banner {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 83, 148, 0.1), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.project-card:hover::after {
    opacity: 1;
}

#site-header {
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rocket-shot {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 18, 35, 0.9), rgba(14, 31, 59, 0.9));
    padding: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rocket-shot:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
    border-color: rgba(96, 165, 250, 0.45);
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(2, 6, 23, 0.84);
    backdrop-filter: blur(10px);
}

.lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1100px);
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 1rem;
    background: rgba(7, 17, 29, 0.96);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    padding: 0.75rem 0.75rem 1rem;
}

.lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__image {
    display: block;
    width: 100%;
    max-height: min(80vh, 900px);
    object-fit: contain;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(8, 18, 35, 0.95), rgba(14, 31, 59, 0.95));
}

.lightbox__caption {
    margin-top: 0.75rem;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.lightbox__hint {
    margin-top: 0.35rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
}

body.lightbox-open {
    overflow: hidden;
}

#site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(11, 83, 148, 0.28);
}
