@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Roboto:wght@300;400;500&display=swap');

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

:root {
    --gold: #c9a84c;
    --gold-light: #e8d48b;
    --gold-dark: #8b6914;
    --red: #8b0000;
    --red-glow: #c41e3a;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text: #d4d4d4;
    --text-muted: #888;
    --border: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    letter-spacing: 0.05em;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: #0a0a0a;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-emblem {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-emblem svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.4));
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.hero h1 .accent {
    display: block;
    font-size: 0.35em;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.hero-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold);
    opacity: 0.5;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* ── Sections ── */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.section-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
}

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-text .highlight {
    color: var(--gold-light);
    font-weight: 400;
}

.about-image {
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
}

.about-image svg {
    width: 100%;
    height: 400px;
    display: block;
    transition: transform 0.6s;
}

.about-image:hover svg {
    transform: scale(1.02);
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold-dark);
    pointer-events: none;
}

/* ── Quote Section ── */
.quote-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(139, 0, 0, 0.05), transparent);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quote-section blockquote {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gold-light);
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.6;
}

.quote-section cite {
    display: block;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: normal;
    letter-spacing: 0.1em;
}

/* ── Factions Grid ── */
.factions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.faction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.faction-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-dark);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.faction-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.faction-card-image svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.6s;
}

.faction-card:hover .faction-card-image svg {
    transform: scale(1.08);
}

.faction-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.faction-card-body {
    padding: 1.5rem;
}

.faction-card-body h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.faction-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
}

.faction-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold-dark);
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* ── Timeline Section ── */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-dark), var(--border), var(--gold-dark));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.35rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    background: var(--gold-dark);
    border: 2px solid var(--gold);
    transform: rotate(45deg);
}

.timeline-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-item .era {
    color: var(--red-glow);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
}

/* ── Footer ── */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
}

.footer .footer-logo {
    font-family: 'Cinzel', serif;
    color: var(--gold-dark);
    font-size: 1rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item::before {
        left: -2.35rem;
    }
}
