/* High-End Design System */
:root {
    --bg-dark: #0b0c10;
    --bg-card: #1f2833;
    --text-primary: #ffffff;
    --text-secondary: #c5c6c7;
    --accent-gold: #D4AF37;
    /* Classic Gold */
    --accent-teal: #66FCF1;
    /* Modern pop */

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;

    --container-max: 1200px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Utils */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container.small {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
    font-size: 0.9em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.navbar.scrolled {
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.brand {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-btn,
.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: #f0c440;
    transform: translateY(-2px);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-icon-only {
    padding: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
}

.btn-icon-only:hover {
    background: white;
    color: black;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    /* Taller for parallax */
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 0%, rgba(11, 12, 16, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s;
}

.hero-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Intro Section */
.intro-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-dark);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 40px;
}

.drop-cap:first-letter {
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    margin-right: 16px;
    font-family: var(--font-serif);
    color: var(--accent-gold);
}

.drop-cap {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Featured Section */
.featured-section {
    padding: var(--spacing-xl) 0;
    background-color: #12141a;
}

.overline {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    margin-bottom: 120px;
    align-items: center;
}

.feature-row.reverse {
    grid-template-columns: 0.8fr 1.2fr;
}

.feature-row.reverse .feature-image {
    order: 2;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%);
    transition: filter 0.5s;
}

.feature-image:hover img {
    filter: grayscale(0%);
}

.image-caption {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
    font-family: var(--font-serif);
}

.feature-content h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.link-arrow {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 3px;
    transition: all 0.3s;
    cursor: pointer;
}

.link-arrow:hover {
    color: var(--accent-gold);
}

/* Timeline Section */
.timeline-section {
    padding: var(--spacing-xl) 0;
    background-image: linear-gradient(to bottom, #0b0c10, #161922);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.timeline-card {
    position: relative;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.timeline-card:hover {
    border-left-color: var(--accent-gold);
}

.timeline-card .year {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -20px;
    left: 20px;
    z-index: 0;
    font-weight: 700;
}

.timeline-card .info {
    position: relative;
    z-index: 1;
    padding-top: 20px;
}

.timeline-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.location {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background-color: black;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand h5 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-links h6 {
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.input-group {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.input-group input {
    background: none;
    border: none;
    color: white;
    padding: 10px 0;
    width: 100%;
}

.input-group button {
    background: none;
    border: none;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-row.reverse .feature-image {
        order: -1;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .nav-links,
    .nav-right {
        display: none;
    }

    /* Mobile Menu Placeholder */
}

/* --- NEW MODAL STYLES --- */

/* Modal System */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(15px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background: #15171e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
}

.modal-backdrop.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--accent-gold);
}

.modal-content {
    padding: 60px;
    overflow-y: auto;
    height: 100%;
    color: var(--text-secondary);
}

/* Modal Content Styling */
.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 30px;
}

.modal-content h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 30px 0 15px;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-content .lead {
    font-size: 1.3rem;
    color: var(--accent-gold);
    border-left: 2px solid var(--accent-gold);
    padding-left: 20px;
    font-style: italic;
}

/* Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #0b0c10;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-gold);
    color: black;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.toast-notification.active {
    transform: translateX(-50%) translateY(0);
}