:root {
    --bg: #000000;
    --text: #ffffff;
    --muted: rgba(255,255,255,0.58);
    --header-bg: rgba(0,0,0,0.25);
    --panel: #111111;
    --panel-2: #222222;
    --border: rgba(255,255,255,0.12);
    --overlay: #000000;
    --overlay-filter: brightness(0.35);
    --title-gradient: linear-gradient(transparent, rgba(0,0,0,0.82));
}

body.theme-light {
    --bg: #f4f0e8;
    --text: #171717;
    --muted: rgba(23,23,23,0.62);
    --header-bg: rgba(244,240,232,0.72);
    --panel: #ffffff;
    --panel-2: #e8e1d6;
    --border: rgba(23,23,23,0.12);
    --overlay: #ece6dc;
    --overlay-filter: brightness(0.75);
    --title-gradient: linear-gradient(transparent, rgba(255,255,255,0.88));
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.logo {
    letter-spacing: 4px;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.menu-button,
.theme-toggle {
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    opacity: 0.85;
    color: var(--text);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px 12px;
}

.menu-button:hover,
.theme-toggle:hover {
    opacity: 1;
}

.content {
    padding: 110px 20px 40px;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
}

h1 {
    margin: 0 0 24px;
    font-size: clamp(2.6rem, 8vw, 4.5rem);
    line-height: 0.95;
}

.intro {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

#overlay-menu {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    overflow: hidden;
}

#menu-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: var(--overlay-filter);
    transition: 0.45s;
}

.menu-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.menu-content a {
    display: block;
    font-size: 32px;
    margin: 20px 0;
    letter-spacing: 4px;
    opacity: 0.85;
}

.menu-content a:hover {
    opacity: 1;
}

.menu-section {
    margin-top: 40px;
    font-size: 12px;
    letter-spacing: 3px;
    opacity: 0.55;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 30px;
    cursor: pointer;
    z-index: 3;
}

.hero-slider {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2.5s ease, transform 6s ease;
}

.slide.active {
    opacity: 1;
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

body.theme-light .hero-overlay {
    background: rgba(255,255,255,0.18);
}

.hero-overlay h1 {
    font-size: 60px;
    letter-spacing: 4px;
    margin: 0;
}

.hero-overlay p {
    margin: 10px 0 30px;
    opacity: 0.8;
}

.enter {
    border: 1px solid var(--text);
    padding: 10px 20px;
    letter-spacing: 2px;
    transition: 0.3s;
}

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

.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 1s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.loader-text {
    color: white;
    font-size: 28px;
    letter-spacing: 6px;
    opacity: 0;
    animation: fadeLoader 2s ease forwards;
}

@keyframes fadeLoader {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#loader.hide {
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-top: 10px;
}

.card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    display: block;
}

.card img,
.empty-cover {
    width: 100%;
    height: 400px;
    display: block;
}

.card img {
    object-fit: cover;
    transition: 0.4s;
    filter: grayscale(20%);
}

.card:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.empty-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-2);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--title-gradient);
    font-size: 18px;
    letter-spacing: 1px;
}

.top {
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    cursor: pointer;
    display: block;
    filter: brightness(0.85);
    transition: 0.35s;
}

.gallery-grid img:hover {
    filter: brightness(1);
    transform: scale(1.02);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
}

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    cursor: pointer;
    color: white;
    padding: 20px;
    user-select: none;
}

.nav.left { left: 10px; }
.nav.right { right: 10px; }

@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
        flex-direction: row;
        gap: 10px;
    }

    .content {
        padding-top: 100px;
    }

    .menu-content a {
        font-size: 24px;
        margin: 16px 0;
    }

    .card img,
    .empty-cover {
        height: 320px;
    }

    .hero-overlay h1 {
        font-size: 40px;
    }

    .loader-text {
        font-size: 22px;
        letter-spacing: 4px;
    }
}
