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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background-color: #000;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

section {
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    z-index: 5;
}

/* --- HERO --- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 7.5%;
    width: 85%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.8)), 
                url('logo.png') no-repeat center 45%;
    background-size: contain;
    animation: breathing-logo 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes breathing-logo {
    0%, 100% { transform: scale(1); filter: brightness(100%); }
    50% { transform: scale(1.03); filter: brightness(115%); }
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 40px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

nav a { 
    color: #eee; 
    text-decoration: none; 
    text-transform: uppercase; 
    font-size: 0.6rem; 
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

/* --- GLASS CARD --- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 30px;
    text-align: center;
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 10;
}

h2 { font-size: 1.3rem; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 15px; font-weight: 200; }
p { color: #aaa; line-height: 1.6; font-size: 0.85rem; }

/* --- GALLERY CONTROLS --- */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
    flex-wrap: wrap;
    z-index: 20;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #d4af37;
    color: #000;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* --- GALLERY SCROLLER (Stills) --- */
#gallery {
    width: 100%;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

#gallery::-webkit-scrollbar { display: none; }

#gallery-track {
    display: flex;
    gap: 15px;
    min-height: 250px; 
}

.gallery-item {
    flex: 0 0 250px;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.gallery-item img.loaded { opacity: 1; }

/* --- VIDEO GRID (Motion) --- */
.gallery-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.media-unit {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.media-unit:hover {
    transform: scale(1.05);
    border-color: #d4af37;
}

/* --- THEATER OVERLAY --- */
#media-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.surgical-media {
    max-width: 100vw;
    max-height: 80vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

/* --- FOOTER & MISC --- */
.location-tag { 
    position: absolute; bottom: 40px; width: 100%; text-align: center; 
    letter-spacing: 10px; text-transform: uppercase; color: #444; font-size: 0.65rem; 
}

.main-footer {
    padding: 60px 20px;
    text-align: center;
    background: #000;
}

.footer-socials a {
    color: #d4af37; text-decoration: none; font-size: 0.8rem;
    letter-spacing: 2px; margin: 0 15px; text-transform: uppercase;
}

.footer-creds { font-size: 0.6rem; color: #444; letter-spacing: 3px; text-transform: uppercase; margin-top: 20px; }

/* --- DESKTOP CONTENT CAP --- */
@media (min-width: 786px) {
    #lightbox-img, 
    .surgical-media,
    #media-container img,
    #media-container video {
        /* Force the 600px gallery "weight" */
        width: 600px !important;  
        height: 600px !important;
        
        /* High-end centering and styling */
        display: block;
        margin: 0 auto;
        object-fit: contain; 
        background: #000;
        border: 1px solid #1a1a1a;
        box-shadow: 0 0 50px rgba(0,0,0,0.9);
    }
}