/* 1. BASE STYLES */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

body.loading {
    overflow: hidden; /* Stops scrolling while loading screen is active */
}

#main-hero {
    transition: background-image 0.5s ease-in-out;
}

/* 2. TEXT READABILITY (Shadows) */
#main-title {
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}

#main-subtitle {
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
}

/* 3. NAVIGATION & ACTIVE STATES */
.nav-item-container {
    position: relative;
}

.nav-item-container::after {
    content: '';
    position: absolute;
    bottom: -1.5rem; 
    left: 0;
    right: 0;
    height: 0; 
    background-color: white;
    transition: all 0.3s ease;
    opacity: 0;
}

/* Show line on Hover or Active */
.nav-item-container:hover::after,
.nav-item-container.is-active::after {
    height: 3px;
    opacity: 1;
}

.nav-item-container.is-active a {
    color: white !important;
}

/* 4. MOBILE MENU OVERLAY */
.menu-open #mobile-menu {
    display: flex !important; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.98);
    z-index: 100; 
}

/* Hide underlines in mobile menu to keep it clean */
.menu-open .nav-item-container::after {
    display: none;
}

/* 5. LOADING SCREEN */
#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.animate-loading-bar {
    animation: loading-bar 1.5s infinite ease-in-out;
}

/* 6. LIGHTBOX STYLES */
#lightbox {
    backdrop-filter: blur(15px);
}

#lightbox-img {
    animation: zoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    user-select: none;
    -webkit-user-drag: none;
}

#prev-btn, #next-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* FIXED: Corrected property name */
}

/* Subtle fade effect when changing images */
.fade-anim {
    animation: fadeIn 0.3s ease;
}

/* 7. FOOTER REFINEMENT */
footer p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* 8. SCROLLBAR & MAP FILTERS */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#map-container iframe {
    filter: invert(1) hue-rotate(180deg);
}

/* 9. ANIMATIONS (@keyframes) */
@keyframes loading-bar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* 10. MEDIA QUERIES (At the very bottom) */
@media (max-height: 700px) {
    #content-container {
        padding-bottom: 3rem;
    }
}