/* ====== Material Icons Setup ====== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ====== Gallery Card Hover ====== */
.gallery-card:hover .card-overlay {
    opacity: 1;
}
.gallery-card:hover img {
    transform: scale(1.05);
}

/* ====== Custom Scrollbar ====== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 10px;
}

/* ====== Scroll Reveal Animations ====== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Staggered Delays ====== */
.stagger-1 {
    transition-delay: 0.1s;
}
.stagger-2 {
    transition-delay: 0.2s;
}
.stagger-3 {
    transition-delay: 0.3s;
}
.stagger-4 {
    transition-delay: 0.4s;
}

/* ====== Navigation Glass Effect ====== */
.nav-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ====== Navigation Link Animations ====== */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: scale(1.05);
}

.nav-link.active {
    background: #001e40;
    color: #ffffff;
    border-radius: 9999px;
}

.nav-link.active:hover {
    transform: scale(1.05);
}

.nav-underline {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #001e40;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-underline {
    width: 16px;
}

.nav-link.active .nav-underline {
    display: none;
}

/* ====== Logo Animation ====== */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-seal {
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-seal:hover {
    animation: none;
    transform: scale(1.15) rotate(-5deg);
}

/* ====== Navbar Entrance Animation ====== */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

#main-header {
    animation: navSlideDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ====== Hide scrollbar for filter ====== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ====== Gallery Card Entrance Animation ====== */
.gallery-card {
    opacity: 0;
    animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-card:nth-child(1) {
    animation-delay: 0.1s;
}
.gallery-card:nth-child(2) {
    animation-delay: 0.2s;
}
.gallery-card:nth-child(3) {
    animation-delay: 0.3s;
}
.gallery-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Filter Button Active State ====== */
.filter-btn.active {
    background: #001e40;
    color: #ffffff;
}

.filter-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    transform: scale(1.05);
    border-color: #001e40;
}

/* ====== Section Gaps ====== */
.mt-section-gap {
    margin-top: 80px;
}

.mb-section-gap {
    margin-bottom: 80px;
}

/* ====== MATERIAL ICONS - PREVENT FOUT ====== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: inline-block;
    min-width: 24px;
    min-height: 24px;
    line-height: 1;
}

/* Show icons when loaded */
.material-symbols-outlined.loaded {
    opacity: 1;
}

/* Fallback - show after delay if not loaded */
.material-symbols-outlined.fallback {
    opacity: 1;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Prevent layout shift */
.material-symbols-outlined {
    visibility: visible;
}

/* Nav link icon fix - always show nav icons */
.nav-link .material-symbols-outlined {
    opacity: 1 !important;
}

/* ====== Featured Banner ====== */
.featured-banner {
    animation: bannerFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====== Load More Button ====== */
.load-more-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.load-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.load-more-btn:active {
    transform: scale(0.95);
}

/* ====== Gallery Grid Transition ====== */
.gallery-grid {
    transition: all 0.3s ease;
}

.gallery-grid.loading {
    opacity: 0.5;
    transform: translateY(10px);
}

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 768px) {
    .px-margin-desktop {
        padding-left: 20px;
        padding-right: 20px;
    }

    .py-section-gap {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .mt-section-gap {
        margin-top: 48px;
    }
    
    .mb-section-gap {
        margin-bottom: 48px;
    }

    /* Mobile Nav Adjustments */
    header .nav-glass {
        padding: 8px;
    }

    header nav a {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 12px;
    }

    header nav a .material-symbols-outlined {
        font-size: 16px;
    }

    header nav a span {
        font-size: 12px;
    }

    header nav a .nav-underline {
        display: none;
    }

    /* Main content padding for mobile */
    main {
        padding-top: 100px;
    }

    /* Gallery card adjustments */
    .gallery-card .aspect-\[16\/9\] {
        aspect-ratio: 16/10;
    }
    
    .gallery-card .aspect-square {
        aspect-ratio: 1/1;
    }
}

/* Desktop main content padding */
@media (min-width: 769px) {
    main {
        padding-top: 110px;
    }
}

/* ====== SELECTION COLOR ====== */
::selection {
    background: #ffe088;
    color: #001e40;
}

/* ====== FOCUS RING ====== */
*:focus-visible {
    outline: 2px solid #001e40;
    outline-offset: 2px;
}

/* ====== SMOOTH SCROLL BEHAVIOR ====== */
html {
    scroll-behavior: smooth;
}/* ====== Material Icons Setup ====== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ====== Gallery Card Hover ====== */
.gallery-card:hover img {
    transform: scale(1.05);
}

/* ====== Custom Scrollbar ====== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #003366;
    border-radius: 10px;
}

/* ====== Scroll Reveal Animations ====== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Staggered Delays ====== */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }

/* ====== Navigation Glass Effect ====== */
.nav-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ====== Navigation Link Animations ====== */
.nav-link {
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: scale(1.05);
}

.nav-link.active {
    background: #001e40;
    color: #ffffff;
    border-radius: 9999px;
}

.nav-underline {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #001e40;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-underline {
    width: 16px;
}

.nav-link.active .nav-underline {
    display: none;
}

/* ====== Logo Animation ====== */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-seal {
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-seal:hover {
    animation: none;
    transform: scale(1.15) rotate(-5deg);
}

/* ====== Navbar Entrance Animation ====== */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

#main-header {
    animation: navSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ====== Hide scrollbar for filter ====== */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ====== Gallery Card Entrance ====== */
.gallery-card {
    opacity: 0;
    animation: cardEntrance 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-card:nth-child(1) { animation-delay: 0.05s; }
.gallery-card:nth-child(2) { animation-delay: 0.1s; }
.gallery-card:nth-child(3) { animation-delay: 0.15s; }
.gallery-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Filter Button ====== */
.filter-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.filter-btn.active {
    background: #001e40;
    color: #ffffff;
}

.filter-btn:hover {
    transform: scale(1.03);
    border-color: #001e40;
}

/* ====== Section Gaps ====== */
.mt-section-gap { margin-top: 60px; }
.mb-section-gap { margin-bottom: 60px; }
.my-stack-lg { margin-top: 32px; margin-bottom: 32px; }

/* ====== MATERIAL ICONS - PREVENT FOUT ====== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    opacity: 0;
    transition: opacity 0.15s ease;
    display: inline-block;
    min-width: 24px;
    min-height: 24px;
    line-height: 1;
}

.material-symbols-outlined.loaded {
    opacity: 1;
}

.material-symbols-outlined.fallback {
    opacity: 1;
}

/* Nav icons always visible */
.nav-link .material-symbols-outlined,
.nav-link .material-symbols-outlined.loaded {
    opacity: 1 !important;
}

/* ====== Exhibition Highlight ====== */
.featured-banner {
    margin-top: 24px;
    margin-bottom: 24px;
    animation: bannerFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image hover zoom */
.group\/image {
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.group\/image img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group\/image:hover img {
    transform: scale(1.08);
}

.group\/image .overlay {
    position: absolute;
    inset: 0;
    background: #090943, (transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}

.group\/image:hover .overlay {
    opacity: 1;
}

.group\/image .overlay span {
    color: white;
    font-size: 10px;
    font-weight: 500;
}

/* Stats text */
.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #ffe088;
}

.stat-label {
    font-size: 9px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .featured-banner {
        margin-top: 16px;
        margin-bottom: 16px;
    }
    
    .group\/image .overlay span {
        font-size: 8px;
    }
}

/* ====== Featured Banner ====== */
.featured-banner {
    animation: bannerFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bannerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====== Load More Button ====== */
.load-more-btn {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.load-more-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ====== Gallery Grid Transition ====== */
.gallery-grid {
    transition: all 0.25s ease;
}

.gallery-grid.loading {
    opacity: 0.6;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .px-margin-desktop {
        padding-left: 16px;
        padding-right: 16px;
    }
    .py-section-gap {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .mt-section-gap { margin-top: 40px; }
    .mb-section-gap { margin-bottom: 40px; }

    header .nav-glass {
        padding: 6px;
    }
    header nav a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 11px;
    }
    header nav a .material-symbols-outlined {
        font-size: 14px;
    }
    header nav a span {
        font-size: 11px;
    }
    header nav a .nav-underline {
        display: none;
    }

    main {
        padding-top: 90px;
    }
}

@media (min-width: 769px) {
    main {
        padding-top: 100px;
    }
}

/* ====== Selection ====== */
::selection {
    background: #ffe088;
    color: #001e40;
}