/* Modern Reset & Variables */
:root {
    --bg-color: #050505;
    --text-primary: #ededed;
    --text-secondary: #a0a0a0;
    --accent-gold: #D4AF37;
    /* Premium Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#intro-text {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-primary);
    padding: 2rem 4rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: linear-gradient(135deg, var(--glass-bg), transparent);
    backdrop-filter: blur(10px);
    animation: pulse 3s infinite;
    text-transform: uppercase;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 20px transparent;
        border-color: var(--glass-border);
    }

    50% {
        box-shadow: 0 0 30px var(--accent-glow);
        border-color: var(--accent-gold);
    }
}

/* Main Content */
#main-content {
    opacity: 0;
    transition: opacity 1s ease-in;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    visibility: hidden;
    /* Hidden until clicked */
}

/* Note */
.note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.8;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    /* Standard portrait ratio mainly */
    cursor: pointer;
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
    background: #111;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition), filter 0.6s;
    filter: grayscale(20%);
}



.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    /* Leave room for buttons */
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 2001;
}

.lightbox-btn {
    position: absolute;
    bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    backdrop-filter: blur(5px);
}

.lightbox-btn:hover,
#lightbox-close:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
}

/* Audio Control (Optional minimal visible control) */
#audio-control {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden initially */
}

#audio-control:hover {
    background: var(--accent-gold);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .gallery-item {
        aspect-ratio: 1 / 1.2;
    }

    /* Taller on mobile maybe */
}