/* ============================================
   ROOT VARIABLES
============================================ */
:root {
    --bg: #113946;
    --bg2: #10553B;
    --mid: #236C77;
    --light: #35868E;
    --fg: #D8D4CE;
    --accent: #E6A776;
    --card: rgba(17,57,70,0.92);
    --border: rgba(53,134,142,0.2);
    --glass: rgba(35,108,119,0.15);
    --overlay: rgba(16,85,59,0.7);
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

/* ============================================
   BACKGROUND LAYERS
============================================ */
.bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.bg-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 50% 55%, rgba(35,108,119,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 20% 30%, rgba(16,85,59,0.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(17,57,70,0.4) 0%, transparent 60%),
        linear-gradient(160deg, #10553B 0%, #113946 40%, #0D2E38 100%);
}
.bg-grid {
    background-image:
        linear-gradient(rgba(53,134,142,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53,134,142,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}
.bg-vignette {
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(13,46,56,0.6) 100%);
}

/* ============================================
   PARTICLES
============================================ */
.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: float-up linear infinite;
}
@keyframes float-up {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateY(-105vh) translateX(30px); opacity: 0; }
}

/* ============================================
   YEAR SCREEN — MAIN LAYOUT
============================================ */
.year-screen {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: filter 0.5s ease, transform 0.5s ease;
}
.year-screen.pushed {
    filter: blur(6px) brightness(0.5);
    transform: scale(0.96);
}

/* Top-left label */
.year-top-label {
    position: absolute;
    top: 92px;
    left: 4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--light);
    display: flex;
    flex-direction: column;
    gap: 1px;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.1s forwards;
}
.label-accent {
    color: var(--accent);
    font-weight: 700;
}

/* Split layout */
.year-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
}

/* ============================================
   LEFT: YEAR HERO
============================================ */
.year-hero {
    flex-shrink: 0;
    width: 42%;
    position: relative;
}

/* Decorative arcs around year */
.hero-deco {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(53,134,142,0.08);
    pointer-events: none;
}
.hero-deco-1 {
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
}
.hero-deco-2 {
    width: 420px;
    height: 420px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.7s forwards;
}

/* Massive year number */
.year-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(72px, 12vw, 200px);
    line-height: 0.85;
    letter-spacing: -3px;
    color: transparent;
    background: linear-gradient(
        135deg,
        var(--fg) 0%,
        var(--fg) 35%,
        var(--accent) 50%,
        var(--fg) 65%,
        var(--fg) 100%
    );
    background-size: 250% 250%;
    -webkit-background-clip: text;
    background-clip: text;
    display: flex;
    justify-content: flex-start;
    gap: clamp(2px, 0.4vw, 6px);
    position: relative;
    z-index: 2;
    animation: gradientShift 8s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

.year-number .digit {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(30deg);
    animation: digitReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.year-number .digit:nth-child(1) { animation-delay: 0.3s; }
.year-number .digit:nth-child(2) { animation-delay: 0.4s; }
.year-number .digit:nth-child(3) { animation-delay: 0.5s; }
.year-number .digit:nth-child(4) { animation-delay: 0.6s; }

@keyframes digitReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Divider line */
.year-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
    margin: 28px 0 16px;
    opacity: 0;
    animation: slideRight 0.5s ease 0.85s forwards;
    position: relative;
    z-index: 2;
}

@keyframes slideRight {
    from { opacity: 0; transform: scaleX(0); transform-origin: left; }
    to   { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

/* Tagline */
.year-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(13px, 1.8vw, 20px);
    font-weight: 600;
    color: var(--fg);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.95s forwards;
    position: relative;
    z-index: 2;
}

/* Description */
.year-desc {
    font-size: clamp(11px, 1.1vw, 14px);
    color: rgba(216,212,206,0.55);
    line-height: 1.8;
    margin-top: 12px;
    max-width: 380px;
    opacity: 0;
    animation: fadeUp 0.5s ease 1.05s forwards;
    position: relative;
    z-index: 2;
}

/* Stats pills */
.year-stats {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.5s ease 1.15s forwards;
    position: relative;
    z-index: 2;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================
   RIGHT: COUNTRY PANEL
============================================ */
.country-panel {
    flex: 1;
    min-width: 0;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.country-panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeUp 0.5s ease 1.2s forwards;
}

.section-bar {
    width: 3px;
    height: 16px;
    border-radius: 2px;
    margin-right: 10px;
    flex-shrink: 0;
}
.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    white-space: nowrap;
}

/* Country grid */
.country-grid {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    align-content: start;
    scrollbar-width: thin;
    scrollbar-color: var(--mid) transparent;
}
.country-grid::-webkit-scrollbar { width: 4px; }
.country-grid::-webkit-scrollbar-track { background: transparent; }
.country-grid::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 3px; }

/* ============================================
   COUNTRY CARD
============================================ */
.country-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transform: translateX(24px);
}
.country-card.visible {
    opacity: 1;
    transform: translateX(0);
}
.country-card:hover {
    border-color: var(--accent);
    background: rgba(230,167,118,0.06);
    transform: translateX(4px);
    box-shadow: 0 4px 24px rgba(230,167,118,0.06);
}
.country-card:active {
    transform: translateX(2px) scale(0.98);
    transition-duration: 0.1s;
}

.country-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.country-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.country-card-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(230,167,118,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.country-card-arrow {
    color: var(--light);
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}
.country-card:hover .country-card-arrow {
    opacity: 0.7;
    transform: translateX(0);
}

/* ============================================
   BOTTOM HINT
============================================ */
.year-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    opacity: 0;
    animation: fadeUp 0.5s ease 1.5s forwards;
    white-space: nowrap;
}
.year-hint i {
    font-size: 12px;
    color: var(--accent);
}

/* ============================================
   NO DATA STATE
============================================ */
.no-data-state {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 24px;
}
.no-data-state i {
    font-size: 52px;
    color: var(--mid);
    opacity: 0.5;
}
.no-data-state h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--fg);
}
.no-data-state p {
    font-size: 14px;
    color: rgba(216,212,206,0.45);
}

/* ============================================
   MODAL OVERLAY
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal-overlay.open {
    pointer-events: auto;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(16,85,59,0.6) 0%, rgba(13,46,56,0.85) 100%);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(17,57,70,0.95) 0%, rgba(16,85,59,0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(30px);
    width: 90%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(53,134,142,0.1) inset;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--mid) rgba(255,255,255,0.05);
    scrollbar-gutter: stable;
}
.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

/* Modal scrollbar — WebKit */
.modal-card::-webkit-scrollbar { width: 5px; }
.modal-card::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    margin: 8px 0;
}
.modal-card::-webkit-scrollbar-thumb {
    background: var(--mid);
    border-radius: 10px;
    transition: background 0.3s ease;
}
.modal-card::-webkit-scrollbar-thumb:hover {
    background: var(--light);
}

/* ============================================
   MODAL HEADER
============================================ */
.modal-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 22px 26px 16px;
    background: linear-gradient(180deg, rgba(17,57,70,0.98) 70%, rgba(17,57,70,0) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-close {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--fg);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.modal-close:hover {
    background: var(--mid);
    border-color: var(--light);
}

.back-link {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: color 0.3s ease;
    margin-bottom: 6px;
}
.back-link:hover {
    color: var(--accent);
}

.modal-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--light);
    margin-bottom: 6px;
}

.modal-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    transition: color 0.4s ease;
}

.modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.modal-body {
    padding: 10px 26px 26px;
}

.modal-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(216,212,206,0.6);
    margin-top: 10px;
}

/* ============================================
   EXHIBITION CARDS
============================================ */
.exhib-section {
    margin-top: 22px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.exhib-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.exhib-card {
    background: rgba(35,108,119,0.1);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.exhib-card.visible {
    transform: translateX(0);
    opacity: 1;
}
.exhib-card:hover {
    border-color: rgba(230,167,118,0.3);
    background: rgba(230,167,118,0.04);
}
.exhib-card:active {
    transform: scale(0.99);
    transition-duration: 0.1s;
}

/* ============================================
   STAT PILL
============================================ */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--light);
    font-family: 'Space Grotesk', sans-serif;
}

/* ============================================
   EXHIBITION PRESENCE BADGE
============================================ */
.presence-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: presenceFadeIn 0.5s ease;
}
.presence-badge i {
    margin-right: 5px;
}

@keyframes presenceFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BOOTH INFO & IMAGE
============================================ */
.booth-info {
    font-size: 13px;
    font-weight: 600;
    color: #103946;
    background: #fff;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    display: inline-block;
}

.booth-image {
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 320px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.booth-image img {
    width: 100%;
    height: auto;
    display: block;
}

.exhibition-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.exhibition-detail-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230,167,118,0.3);
}




/* Add after .country-card-arrow rule */

/* Industry card variant — slightly different accent */
.industry-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    transform: translateX(24px);
}
.industry-card.visible {
    opacity: 1;
    transform: translateX(0);
}
.industry-card:hover {
    border-color: var(--accent);
    background: rgba(230,167,118,0.06);
    transform: translateX(4px);
    box-shadow: 0 4px 24px rgba(230,167,118,0.06);
}
.industry-card:active {
    transform: translateX(2px) scale(0.98);
    transition-duration: 0.1s;
}
.industry-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.industry-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.industry-card-count {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(230,167,118,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.industry-card-arrow {
    color: var(--light);
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s ease;
}
.industry-card:hover .industry-card-arrow {
    opacity: 0.7;
    transform: translateX(0);
}

/* Country card inside modal — slightly smaller */
.modal-country-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-16px);
}
.modal-country-card.visible {
    opacity: 1;
    transform: translateX(0);
}
.modal-country-card:hover {
    border-color: var(--accent);
    background: rgba(230,167,118,0.05);
}
.modal-country-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
}
.modal-country-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--fg);
}
.modal-country-count {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(230,167,118,0.1);
    padding: 2px 9px;
    border-radius: 16px;
}
.modal-country-arrow {
    color: var(--light);
    font-size: 10px;
    opacity: 0;
    transition: all 0.25s ease;
}
.modal-country-card:hover .modal-country-arrow {
    opacity: 0.6;
}
/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
    .year-layout {
        flex-direction: column;
        gap: 28px;
        text-align: center;
        width: 100%;
        max-width: 560px;
    }
    .year-hero {
        width: 100%;
    }
    .year-number {
        justify-content: center;
        letter-spacing: -1px;
    }
    .year-divider {
        margin: 18px auto;
    }
    .year-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .year-stats {
        justify-content: center;
    }
    .hero-deco-1 { width: 240px; height: 240px; }
    .hero-deco-2 { width: 300px; height: 300px; }
    .country-panel {
        max-height: 40vh;
        width: 100%;
    }
    .country-grid {
        grid-template-columns: 1fr 1fr;
    }
    .country-panel-header {
        justify-content: center;
    }
}
@media (max-width: 768px ) {
    .year-top-label {
        left: 1.5rem;;
    }
}
@media (max-width: 540px) {
    .year-screen {
        padding: 16px;
    }
    .year-top-label {
        top: 92px;
        left: 1.5rem;
        font-size: 9px;
        letter-spacing: 3px;
    }
    .country-grid {
        grid-template-columns: 1fr;
        max-height: 35vh;
    }
    .modal-card {
        width: 95%;
        max-height: 92vh;
        border-radius: 16px;
    }
    .modal-header {
        padding: 18px 18px 14px;
    }
    .modal-body {
        padding: 8px 18px 18px;
    }
    .modal-title {
        font-size: 18px;
    }
    .year-hint {
        bottom: 14px;
        font-size: 8px;
        letter-spacing: 2px;
        gap: 6px;
    }
    .hero-deco { display: none; }
}

@media (max-width: 480px) {
    .year-top-label {
        top: 82px !important;
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}