/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Navigation */
nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    z-index: 50;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}

nav .container {
    pointer-events: auto;
}

/* Navigation buttons */
.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 14, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 140px;
    text-align: center;
    white-space: nowrap;
    margin: 0 0.25rem;
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    transform: scale(1.05);
    background-color: rgba(75, 85, 99, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Active/current page button */
.nav-btn.active {
    background-color: rgba(55, 65, 81, 0.9);
    font-weight: 700;
}

/* Responsive adjustments for navigation */
@media (max-width: 768px) {
    .nav-btn {
        min-width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    nav {
        padding: 1rem 0;
    }
}

/* Slideshow */
#slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000;
    overflow: hidden;
}

/* Slideshow layers for crossfade effect */
#slideshow > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

/* Ensure content is above the slideshow */
#slideshow + * {
    position: relative;
    z-index: 1;
}

/* Gallery item hover effects */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Fullscreen image viewer */
#imageViewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#imageViewer.active {
    opacity: 1;
    visibility: visible;
}

#imageViewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#closeViewer {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

#closeViewer:hover {
    color: #f59e0b;
}