/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #22d3ee;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #ec4899 100%);
    --gradient-card: linear-gradient(145deg, rgba(139,92,246,0.1) 0%, rgba(6,182,212,0.05) 100%);
    --border-color: rgba(139,92,246,0.2);
    --border-glow: rgba(139,92,246,0.4);
    --shadow-neon: 0 0 20px rgba(139,92,246,0.3), 0 0 40px rgba(6,182,212,0.1);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== UTILITY ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
            linear-gradient(rgba(139,92,246,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(139,92,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-glow--purple {
    background: var(--accent-purple);
    top: -200px;
    right: -200px;
}

.bg-glow--cyan {
    background: var(--accent-cyan);
    bottom: -200px;
    left: -200px;
}

/* ===== HEADER / NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.header__logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-hero);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--accent-purple-light);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: var(--transition);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

.header__menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-nav.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav__link {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-nav__link:hover {
    color: var(--accent-purple-light);
}

.mobile-nav__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.8) 60%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139,92,246,0.1);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-purple-light);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn--primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139,92,246,0.4);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139,92,246,0.5);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    border-color: var(--accent-purple);
    background: rgba(139,92,246,0.05);
    transform: translateY(-2px);
}

.btn--large {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ===== SECTION CARDS (Homepage) ===== */
.exhibits {
    position: relative;
    z-index: 2;
}

.exhibits__header {
    text-align: center;
    margin-bottom: 60px;
}

.exhibits__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.exhibits__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.exhibits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.exhibit-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.exhibit-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-neon);
    background: var(--bg-card-hover);
}

.exhibit-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.exhibit-card:hover .exhibit-card__image {
    transform: scale(1.05);
}

.exhibit-card__image-wrapper {
    overflow: hidden;
    position: relative;
}

.exhibit-card__image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.exhibit-card__body {
    padding: 24px;
}

.exhibit-card__number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.exhibit-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.exhibit-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.exhibit-card__arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(139,92,246,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple-light);
    transition: var(--transition);
}

.exhibit-card:hover .exhibit-card__arrow {
    background: var(--accent-purple);
    color: #fff;
}

/* ===== SECTION PAGE LAYOUT ===== */
.page-hero {
    position: relative;
    padding: 160px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10,10,15,0.5) 0%, var(--bg-primary) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(6,182,212,0.1);
    border: 1px solid rgba(6,182,212,0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-cyan-light);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-hero__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    position: relative;
    z-index: 2;
    padding: 80px 0;
}

.content-section + .content-section {
    border-top: 1px solid var(--border-color);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-block__era {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(139,92,246,0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--accent-purple-light);
    font-weight: 600;
    margin-bottom: 16px;
}

.content-block__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content-block__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block__highlight {
    padding: 20px 24px;
    background: var(--gradient-card);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-purple), var(--accent-cyan), var(--accent-pink));
}

.timeline__item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline__dot {
    position: absolute;
    left: 12px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-purple);
    box-shadow: 0 0 10px rgba(139,92,246,0.5);
}

.timeline__year {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.timeline__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    background: var(--bg-secondary);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__brand-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer__col-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer__link {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--accent-purple-light);
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer__bottom-links {
    display: flex;
    gap: 20px;
}

.footer__bottom-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer__bottom-links a:hover {
    color: var(--accent-purple-light);
}

/* ===== CONTACTS PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-neon);
}

.contact-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(139,92,246,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.contact-card__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== TERMS PAGE ===== */
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

.terms-content h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.terms-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.terms-content ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.terms-content ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    padding-left: 16px;
}

.terms-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-purple);
    font-weight: bold;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .exhibits__grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline__item {
        padding-left: 44px;
    }

    .timeline__dot {
        left: 5px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .page-hero__title {
        font-size: 1.6rem;
    }

    .btn--large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}