/* ==========================================
   DESIGN TOKENS & CSS CUSTOM PROPERTIES
========================================== */
    :root {
        /* Museum/Gallery Theme Color Palette - Inspired by gallery spotlights and ancient artifacts */
        --color-base-bg: #fdfcfa;
        --color-base-surface: #ffffff;
        --color-base-text: #1a1a2e;
        --color-base-text-muted: #4a5568;

        /* Cultural Heritage Colors */
        --color-accent-1: #d4a574;
        /* Golden gallery frame */
        --color-accent-2: #8b6f47;
        /* Aged bronze */
        --color-accent-3: #2f5f5d;
        /* Verdigris patina */
        --color-accent-4: #b8956a;
        /* Warm amber */
        --color-accent-light: #f8f3ed;
        /* Illuminated wall */

        /* Functional Colors */
        --color-shadow: rgba(212, 165, 116, 0.18);
        --color-border: rgba(212, 165, 116, 0.25);
        --color-hover: rgba(212, 165, 116, 0.12);

        /* Gradients */
        --gradient-primary: linear-gradient(135deg, #d4a574 0%, #8b6f47 50%, #2f5f5d 100%);
        --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 243, 237, 0.8));
        --gradient-hero: linear-gradient(135deg, #d4a574 0%, #b8956a 25%, #8b6f47 50%, #2f5f5d 100%);

        /* Spacing Scale (Golden Ratio) */
        --space-xs: 0.25rem;
        --space-sm: 0.5rem;
        --space-md: 1rem;
        --space-lg: 1.618rem;
        --space-xl: 2.618rem;
        --space-2xl: 4.236rem;
        --space-3xl: 6.854rem;
        --space-4xl: 11.089rem;

        /* Border Radius */
        --radius-sm: 6px;
        --radius-md: 12px;
        --radius-lg: 18px;
        --radius-xl: 28px;
        --radius-organic: 64% 36% 55% 45% / 48% 58% 42% 52%;

        /* Shadows */
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
        --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.06), 0 3px 6px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1), 0 6px 12px rgba(0, 0, 0, 0.08);
        --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.14), 0 12px 24px rgba(0, 0, 0, 0.1);
        --shadow-theme: 0 12px 32px var(--color-shadow), 0 6px 14px rgba(0, 0, 0, 0.08);

        /* Typography */
        --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
        --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
        --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
        --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
        --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
        --text-xl: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
        --text-2xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
        --text-3xl: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
        --text-4xl: clamp(3rem, 2.5rem + 2.5vw, 5rem);

        /* Animation Timings */
        --duration-fast: 0.2s;
        --duration-normal: 0.35s;
        --duration-slow: 0.6s;
        --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
        --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    /* ==========================================
   RESET & BASE STYLES
========================================== */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 120px;
    }

    body {
        font-family: var(--font-sans);
        font-size: var(--text-base);
        line-height: 1.7;
        color: var(--color-base-text);
        background: var(--color-base-bg);
        position: relative;
        overflow-x: hidden;
        letter-spacing: -0.01em;
        min-height: 100vh;
    }

    /* Animated dot matrix background */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(circle at 25% 25%, rgba(212, 165, 116, 0.03) 1px, transparent 1px),
            radial-gradient(circle at 75% 75%, rgba(47, 95, 93, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        background-position: 0 0, 25px 25px;
        pointer-events: none;
        z-index: 0;
        animation: matrixShift 40s linear infinite;
    }

    @keyframes matrixShift {
        0% {
            transform: translate(0, 0);
        }

        100% {
            transform: translate(50px, 50px);
        }
    }

    /* Floating ambient shapes */
    body::after {
        content: '';
        position: fixed;
        top: 10%;
        right: 5%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(212, 165, 116, 0.06), transparent 70%);
        border-radius: var(--radius-organic);
        animation: floatAmbient 12s ease-in-out infinite;
        filter: blur(60px);
        pointer-events: none;
        z-index: 0;
    }

    @keyframes floatAmbient {

        0%,
        100% {
            transform: translate(0, 0) rotate(0deg) scale(1);
            border-radius: 64% 36% 55% 45% / 48% 58% 42% 52%;
        }

        33% {
            transform: translate(-50px, 60px) rotate(120deg) scale(1.1);
            border-radius: 45% 55% 64% 36% / 52% 42% 58% 48%;
        }

        66% {
            transform: translate(40px, -40px) rotate(240deg) scale(0.9);
            border-radius: 36% 64% 45% 55% / 58% 48% 52% 42%;
        }
    }

    /* ==========================================
   HEADER & NAVIGATION
========================================== */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.75);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        backdrop-filter: blur(20px) saturate(180%);
        border-bottom: 1px solid var(--color-border);
        z-index: 1000;
        padding: var(--space-lg) var(--space-2xl);
        animation: slideDown 0.8s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-100%);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .header-content {
        max-width: 1600px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-xl);
    }

    .site-title {
        flex: 1;
    }

    .site-title h1 {
        font-size: var(--text-2xl);
        font-weight: 700;
        letter-spacing: -0.02em;
        margin: 0;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        background-size: 200% 200%;
        animation: gradientText 6s ease infinite;
    }

    @keyframes gradientText {

        0%,
        100% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }
    }

    .site-title a {
        text-decoration: none;
        transition: all var(--duration-normal) var(--easing-smooth);
        display: inline-block;
    }

    .site-title a:hover {
        transform: translateY(-2px);
    }

    .site-author {
        font-size: var(--text-base);
        color: var(--color-base-text-muted);
        font-weight: 500;
    }

    .site-author a {
        color: var(--color-accent-2);
        text-decoration: none;
        transition: all var(--duration-normal) var(--easing-smooth);
        border-bottom: 2px solid transparent;
    }

    .site-author a:hover {
        color: var(--color-accent-1);
        border-bottom-color: var(--color-accent-1);
    }

    /* Breadcrumb Navigation */
    .breadcrumb-nav {
        background: rgba(255, 255, 255, 0.6);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        padding: var(--space-sm) var(--space-lg);
        display: flex;
        gap: var(--space-sm);
        align-items: center;
        box-shadow: var(--shadow-sm);
    }

    .breadcrumb-nav ul {
        list-style: none;
        display: flex;
        gap: var(--space-sm);
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .breadcrumb-nav li {
        font-size: var(--text-sm);
        font-weight: 500;
    }

    .breadcrumb-nav li:not(:last-child)::after {
        content: '→';
        margin-left: var(--space-sm);
        color: var(--color-accent-3);
        opacity: 0.6;
    }

    .breadcrumb-nav a {
        color: var(--color-base-text-muted);
        text-decoration: none;
        transition: all var(--duration-fast) var(--easing-smooth);
        padding: var(--space-xs) var(--space-sm);
        border-radius: var(--radius-sm);
        display: inline-block;
    }

    .breadcrumb-nav a:hover {
        color: var(--color-accent-2);
        background: var(--color-hover);
    }

    /* ==========================================
   HERO SECTION WITH SVG ILLUSTRATION
========================================== */
    .hero-section {
        margin-top: 100px;
        padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
        position: relative;
        z-index: 1;
    }

    .hero-svg {
        width: 100%;
        max-width: 800px;
        height: auto;
        margin: 0 auto var(--space-2xl);
        display: block;
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
    }

    /* SVG Animation Classes */
    .frame-animate {
        animation: frameFloat 5s ease-in-out infinite;
        transform-origin: center;
    }

    @keyframes frameFloat {

        0%,
        100% {
            transform: translateY(0) rotate(0deg);
        }

        50% {
            transform: translateY(-8px) rotate(1deg);
        }
    }

    .artifact-pulse {
        animation: artifactPulse 4s ease-in-out infinite;
        transform-origin: center;
    }

    @keyframes artifactPulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.05);
            opacity: 0.9;
        }
    }

    .spotlight-glow {
        animation: spotlightGlow 3s ease-in-out infinite alternate;
    }

    @keyframes spotlightGlow {
        0% {
            opacity: 0.3;
        }

        100% {
            opacity: 0.7;
        }
    }

    .pedestal-rise {
        animation: pedestalRise 6s ease-in-out infinite;
    }

    @keyframes pedestalRise {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-6px);
        }
    }

    .door-swing {
        animation: doorSwing 8s ease-in-out infinite;
        transform-origin: left center;
    }

    @keyframes doorSwing {

        0%,
        100% {
            transform: perspective(400px) rotateY(0deg);
        }

        50% {
            transform: perspective(400px) rotateY(-3deg);
        }
    }

    /* ==========================================
   MAIN CONTENT AREA
========================================== */
    .main-content {
        max-width: 1600px;
        margin: 0 auto;
        padding: var(--space-2xl);
        position: relative;
        z-index: 1;
    }

    .intro-text {
        font-size: var(--text-lg);
        line-height: 1.8;
        color: var(--color-base-text-muted);
        max-width: 65ch;
        margin: 0 auto var(--space-3xl);
        text-align: center;
        padding: var(--space-xl) var(--space-2xl);
        background: rgba(255, 255, 255, 0.6);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-xl);
        border: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        animation: fadeInUp 1s ease-out 0.4s both;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Section Divider */
    .section-divider {
        width: 100%;
        max-width: 200px;
        height: 4px;
        background: var(--gradient-primary);
        margin: var(--space-3xl) auto;
        border-radius: 2px;
        position: relative;
        overflow: hidden;
    }

    .section-divider::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
        animation: shimmer 3s infinite;
    }

    @keyframes shimmer {
        0% {
            left: -100%;
        }

        100% {
            left: 200%;
        }
    }

    /* ==========================================
   ASYMMETRIC MUSEUM GRID
========================================== */
    .museums-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: var(--space-xl);
        margin-bottom: var(--space-4xl);
    }

    .museum-card {
        background: var(--gradient-card);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        backdrop-filter: blur(16px) saturate(180%);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-xl);
        padding: var(--space-xl);
        position: relative;
        transition: all var(--duration-slow) var(--easing-smooth);
        box-shadow: var(--shadow-md);
        overflow: hidden;
        animation: cardReveal 0.8s ease-out both;
        animation-delay: calc(var(--index) * 0.04s);
    }

    @keyframes cardReveal {
        from {
            opacity: 0;
            transform: translateY(40px) scale(0.95);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* Asymmetric Grid Layout */
    .museum-card:nth-child(12n+1) {
        grid-column: span 5;
    }

    .museum-card:nth-child(12n+2) {
        grid-column: span 7;
    }

    .museum-card:nth-child(12n+3) {
        grid-column: span 4;
    }

    .museum-card:nth-child(12n+4) {
        grid-column: span 4;
    }

    .museum-card:nth-child(12n+5) {
        grid-column: span 4;
    }

    .museum-card:nth-child(12n+6) {
        grid-column: span 6;
    }

    .museum-card:nth-child(12n+7) {
        grid-column: span 6;
    }

    .museum-card:nth-child(12n+8) {
        grid-column: span 7;
    }

    .museum-card:nth-child(12n+9) {
        grid-column: span 5;
    }

    .museum-card:nth-child(12n+10) {
        grid-column: span 4;
    }

    .museum-card:nth-child(12n+11) {
        grid-column: span 4;
    }

    .museum-card:nth-child(12n+12) {
        grid-column: span 4;
    }

    /* Staggered index variables */
    .museum-card:nth-child(1) {
        --index: 1;
    }

    .museum-card:nth-child(2) {
        --index: 2;
    }

    .museum-card:nth-child(3) {
        --index: 3;
    }

    .museum-card:nth-child(4) {
        --index: 4;
    }

    .museum-card:nth-child(5) {
        --index: 5;
    }

    .museum-card:nth-child(6) {
        --index: 6;
    }

    .museum-card:nth-child(7) {
        --index: 7;
    }

    .museum-card:nth-child(8) {
        --index: 8;
    }

    .museum-card:nth-child(9) {
        --index: 9;
    }

    .museum-card:nth-child(10) {
        --index: 10;
    }

    .museum-card:nth-child(11) {
        --index: 11;
    }

    .museum-card:nth-child(12) {
        --index: 12;
    }

    .museum-card:nth-child(13) {
        --index: 13;
    }

    .museum-card:nth-child(14) {
        --index: 14;
    }

    .museum-card:nth-child(15) {
        --index: 15;
    }

    .museum-card:nth-child(16) {
        --index: 16;
    }

    .museum-card:nth-child(17) {
        --index: 17;
    }

    .museum-card:nth-child(18) {
        --index: 18;
    }

    .museum-card:nth-child(19) {
        --index: 19;
    }

    .museum-card:nth-child(20) {
        --index: 20;
    }

    .museum-card:nth-child(n+21) {
        --index: 21;
    }

    /* Card decorative gradient overlay */
    .museum-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity var(--duration-normal) var(--easing-smooth);
    }

    .museum-card:hover::before {
        opacity: 1;
    }

    /* Floating corner accent */
    .museum-card::after {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 80px;
        height: 80px;
        background: radial-gradient(circle, var(--color-accent-light), transparent 70%);
        border-radius: 50%;
        opacity: 0;
        transition: all var(--duration-slow) var(--easing-smooth);
        pointer-events: none;
    }

    .museum-card:hover::after {
        opacity: 0.8;
        transform: translate(-10px, 10px) scale(1.2);
    }

    .museum-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--shadow-xl);
        border-color: var(--color-accent-1);
        background: rgba(255, 255, 255, 0.95);
    }

    /* Museum icon badge */
    .museum-icon {
        width: 52px;
        height: 52px;
        background: var(--gradient-primary);
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: var(--space-lg);
        box-shadow: var(--shadow-theme);
        transition: all var(--duration-normal) var(--easing-bounce);
        position: relative;
    }

    .museum-card:hover .museum-icon {
        transform: rotate(8deg) scale(1.1);
    }

    .museum-icon::before {
        content: '🏛';
        font-size: 28px;
        filter: grayscale(1) brightness(2);
    }

    /* Museum name */
    .museum-name {
        font-size: var(--text-lg);
        font-weight: 600;
        color: var(--color-accent-2);
        line-height: 1.4;
        margin-bottom: var(--space-sm);
        transition: color var(--duration-normal) var(--easing-smooth);
    }

    .museum-card:hover .museum-name {
        color: var(--color-accent-1);
    }

    /* Museum type badge */
    .museum-type {
        display: inline-block;
        font-size: var(--text-xs);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--color-accent-3);
        background: rgba(47, 95, 93, 0.1);
        padding: var(--space-xs) var(--space-md);
        border-radius: var(--radius-sm);
        margin-top: var(--space-md);
    }

    /* ==========================================
   LANGUAGE SELECTOR FOOTER
========================================== */
    .language-footer {
        background: rgba(255, 255, 255, 0.7);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid var(--color-border);
        padding: var(--space-2xl);
        margin-top: var(--space-4xl);
    }

    .language-footer-content {
        max-width: 1600px;
        margin: 0 auto;
        text-align: center;
    }

    .language-label {
        font-size: var(--text-sm);
        font-weight: 600;
        color: var(--color-base-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: var(--space-lg);
    }

    .language-list {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
        padding: 0;
        margin: 0;
    }

    .language-item {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        transition: all var(--duration-normal) var(--easing-smooth);
        overflow: hidden;
    }

    .language-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--color-accent-1);
    }

    .language-item.highlight {
        background: var(--gradient-primary);
        border-color: transparent;
        box-shadow: var(--shadow-theme);
        transform: scale(1.05);
    }

    .language-item a {
        display: block;
        padding: var(--space-md) var(--space-xl);
        text-decoration: none;
        color: var(--color-base-text);
        font-size: var(--text-base);
        font-weight: 500;
        transition: all var(--duration-fast) var(--easing-smooth);
    }

    .language-item.highlight a {
        color: #FFFFFF;
    }

    /* ==========================================
   RESPONSIVE DESIGN
========================================== */
    @media (max-width: 1200px) {
        .museums-grid {
            grid-template-columns: repeat(6, 1fr);
        }

        .museum-card:nth-child(6n+1) {
            grid-column: span 4;
        }

        .museum-card:nth-child(6n+2) {
            grid-column: span 2;
        }

        .museum-card:nth-child(6n+3) {
            grid-column: span 3;
        }

        .museum-card:nth-child(6n+4) {
            grid-column: span 3;
        }

        .museum-card:nth-child(6n+5) {
            grid-column: span 2;
        }

        .museum-card:nth-child(6n+6) {
            grid-column: span 4;
        }
    }

    @media (max-width: 768px) {
        .site-header {
            padding: var(--space-md) var(--space-lg);
        }

        .header-content {
            flex-direction: column;
            align-items: flex-start;
            gap: var(--space-md);
        }

        .breadcrumb-nav {
            width: 100%;
        }

        .hero-section {
            margin-top: 140px;
            padding: var(--space-xl) var(--space-lg);
        }

        .main-content {
            padding: var(--space-lg);
        }

        .museums-grid {
            grid-template-columns: 1fr;
            gap: var(--space-lg);
        }

        .museum-card {
            grid-column: span 1 !important;
        }

        .language-list {
            flex-direction: column;
            align-items: stretch;
        }

        .language-item {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .site-title h1 {
            font-size: var(--text-xl);
        }

        .intro-text {
            padding: var(--space-lg);
        }

        .museum-card {
            padding: var(--space-lg);
        }

        .language-footer {
            padding: var(--space-lg);
        }
    }

    /* ==========================================
   ACCESSIBILITY & REDUCED MOTION
========================================== */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Focus styles for keyboard navigation */
    a:focus-visible,
    button:focus-visible {
        outline: 3px solid var(--color-accent-1);
        outline-offset: 3px;
        border-radius: var(--radius-sm);
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        :root {
            --color-border: rgba(0, 0, 0, 0.4);
        }

        .museum-card {
            border-width: 2px;
        }
    }
