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

:root {
    --primary: #c9302c;
    --primary-light: #ff4444;
    --secondary: #d4af37;
    --dark: #0a0a0f;
    --darker: #050508;
    --light: #ffffff;
    --gray: #b0b0b0;
    --glow: 0 0 30px rgba(212, 175, 55, 0.5);
    --gradient: linear-gradient(135deg, #c9302c 0%, #d4af37 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    cursor: none;
}

/* ===== LOADER ===== */
#loader {
    position: fixed; inset: 0;
    background: var(--darker);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s, visibility 0.8s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-circle {
    width: 80px; height: 80px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
    font-family: 'Cinzel', serif;
    color: var(--secondary);
    letter-spacing: 3px;
    margin-bottom: 20px;
}
.loader-bar {
    width: 250px; height: 3px;
    background: rgba(255,255,255,0.1);
    margin: 0 auto;
    overflow: hidden; border-radius: 3px;
}
.loader-progress {
    height: 100%;
    background: var(--gradient);
    animation: progress 2s ease-in-out infinite;
}
@keyframes progress {
    0% { width: 0; transform: translateX(0); }
    50% { width: 100%; }
    100% { width: 100%; transform: translateX(100%); }
}

/* ===== 3D BACKGROUND ===== */
#bg-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
}
.particles-overlay {
    position: fixed; inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(5,5,8,0.6) 70%, var(--darker) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot, .cursor-outline {
    position: fixed; pointer-events: none;
    border-radius: 50%; z-index: 9999;
    transition: transform 0.1s;
}
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--secondary);
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 2px solid var(--secondary);
    transition: all 0.2s;
}
.cursor-outline.hover {
    transform: scale(1.5);
    background: rgba(212, 175, 55, 0.1);
}

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.4s;
    backdrop-filter: blur(0px);
}
#navbar.scrolled {
    background: rgba(5,5,8,0.85);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.nav-container {
    max-width: 1400px; margin: 0 auto;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-family: 'Cinzel', serif; font-weight: 800;
    font-size: 1.4rem; letter-spacing: 4px;
    color: var(--light);
}
.logo-icon { color: var(--secondary); font-size: 1.2rem; animation: spin 8s linear infinite; }
.nav-links {
    display: flex; gap: 35px; list-style: none;
}
.nav-links a {
    color: var(--light); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
    position: relative; transition: color 0.3s;
}
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--secondary); }
.nav-links a:hover::after { width: 100%; }

.lang-switcher {
    display: flex; align-items: center; gap: 8px;
    color: var(--gray);
}
.lang-btn {
    background: none; border: none;
    color: var(--gray); font-weight: 600;
    cursor: pointer; padding: 5px 10px;
    transition: color 0.3s;
}
.lang-btn.active, .lang-btn:hover { color: var(--secondary); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: var(--light); transition: 0.3s; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    position: relative;
}
.hero-content { max-width: 1000px; }
.hero-tag {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-size: 0.85rem; letter-spacing: 4px;
    margin-bottom: 30px;
    background: rgba(212, 175, 55, 0.05);
    animation: fadeInDown 1s;
}
.hero-title { margin-bottom: 30px; }
.title-line {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 800;
    letter-spacing: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 1.2s;
}
.title-sub {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: var(--gray); margin-top: 15px;
    letter-spacing: 3px;
    animation: fadeInUp 1.4s;
}
.hero-desc {
    font-size: 1.1rem; line-height: 1.8;
    color: var(--gray); max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeIn 1.8s;
}
.hero-buttons {
    display: flex; gap: 20px; justify-content: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
    animation: fadeIn 2s;
}
.btn {
    padding: 16px 40px;
    font-size: 0.9rem; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 600;
    border: none; cursor: pointer;
    transition: all 0.4s;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--gradient);
    color: var(--light);
    box-shadow: 0 10px 30px rgba(201, 48, 44, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(201, 48, 44, 0.6); }
.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary); color: var(--dark); }

.hero-stats {
    display: flex; gap: 60px; justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 2.4s;
}
.stat h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 5px;
}
.stat p { color: var(--gray); letter-spacing: 2px; font-size: 0.85rem; }

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: var(--gray); font-size: 0.75rem;
    letter-spacing: 4px;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--secondary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%,100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}

/* ===== SECTIONS COMMON ===== */
section { padding: 120px 0; position: relative; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-tag {
    display: inline-block;
    color: var(--secondary);
    letter-spacing: 5px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 900px; margin: 0 auto;
}
.timeline::before {
    content: ''; position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
}
.timeline-item {
    position: relative;
    width: 50%; padding: 30px 50px;
    margin-bottom: 30px;
}
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::before {
    content: attr(data-year);
    position: absolute; top: 30px;
    width: 80px; height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cinzel', serif; font-weight: 700;
    color: var(--light); font-size: 0.85rem;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}
.timeline-item:nth-child(odd)::before { right: -40px; }
.timeline-item:nth-child(even)::before { left: -40px; }
.timeline-content {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px; border-radius: 5px;
    transition: all 0.4s;
}
.timeline-content:hover {
    border-color: var(--secondary);
    transform: scale(1.03);
    box-shadow: var(--glow);
}
.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}
.timeline-content p { color: var(--gray); line-height: 1.7; }

/* ===== LANDMARKS ===== */
.landmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.landmark-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
.landmark-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 60%);
    z-index: 2;
}
.landmark-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s;
}
.landmark-card:hover img { transform: scale(1.15); }
.landmark-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 30px; z-index: 3;
}
.landmark-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--secondary);
    margin-bottom: 10px;
}
.landmark-content p { color: var(--gray); line-height: 1.6; }
.landmark-card .badge {
    position: absolute; top: 20px; right: 20px;
    background: var(--gradient);
    color: var(--light);
    padding: 6px 14px; font-size: 0.7rem;
    letter-spacing: 2px; z-index: 3;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 300px;
    gap: 15px;
}
.gallery-grid > div {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s;
}
.gallery-grid > div:nth-child(3n) { grid-row: span 2; }
.gallery-grid img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: all 0.6s;
    filter: grayscale(30%) brightness(0.85);
}
.gallery-grid > div:hover img {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.1);
}
.gallery-grid > div::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212, 175, 55, 0.85);
    color: var(--dark);
    font-size: 2rem;
    opacity: 0; transition: opacity 0.4s;
}
.gallery-grid > div:hover::after { opacity: 1; }

/* ===== CULTURE ===== */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.culture-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.culture-card::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212,175,55,0.1), transparent);
    animation: rotate 6s linear infinite;
    opacity: 0; transition: opacity 0.4s;
}
.culture-card:hover::before { opacity: 1; }
.culture-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--glow);
}
.culture-card i {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative; z-index: 2;
}
.culture-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    position: relative; z-index: 2;
}
.culture-card p { color: var(--gray); line-height: 1.7; position: relative; z-index: 2; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.info-item {
    display: flex; align-items: center; gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--secondary);
    transition: all 0.3s;
}
.info-item:hover { transform: translateX(10px); background: rgba(212, 175, 55, 0.08); }
.info-item i { color: var(--secondary); font-size: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form textarea {
    padding: 18px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--light);
    font-family: inherit; font-size: 1rem;
    transition: all 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: var(--glow);
}

/* ===== FOOTER ===== */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--gray);
}

/* ===== MODAL ===== */
.modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    z-index: 9000;
    display: none;
    align-items: center; justify-content: center;
    padding: 40px;
}
.modal.active { display: flex; }
.modal-content {
    max-width: 800px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    background: var(--dark);
    border: 1px solid var(--secondary);
    padding: 40px; position: relative;
}
.modal-close {
    position: absolute; top: 15px; right: 20px;
    color: var(--secondary); font-size: 2rem;
    cursor: pointer;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(50px); transition: all 1s; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .timeline::before { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; left: 0; padding-left: 70px; text-align: left; }
    .timeline-item::before, .timeline-item:nth-child(odd)::before, .timeline-item:nth-child(even)::before {
        left: -20px; width: 60px; height: 60px; font-size: 0.7rem;
    }
    .contact-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 30px; }
}
