/* CSS Reset & Variables */
:root {
    --gold: #FFD700;
    --gold-dim: #C5A005;
    --dark-blue: #0A0A12;
    --horde-red: #8C1616;
    --alliance-blue: #000080;
    --parchment: #f0e6d2; 
    --text-color: #e0e0e0;
    --card-bg: rgba(20, 20, 25, 0.85);
    --transition: all 0.3s ease;
}

* {
    margin: 0;

    box-sizing: border-box;

    padding: 0;
}

body {
    overflow-x: hidden;

    background-color: var(--dark-blue);

    font-family: 'Lato', sans-serif;
    color: var(--text-color);
}

/* Background */
.background-overlay {
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background-attachment: fixed;
    background-image: url('assets/bg.png');
    background-position: center;
    background-size: cover;
}
.background-overlay::after {
    content: '';

    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;

    background: rgba(0, 0, 0, 0.6); /* Darken the image */
}

/* Typography */
h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

.section-title {
    position: relative;

    display: inline-block;

    margin-bottom: 3rem;

    font-size: 3rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    color: var(--gold);
}
.section-title::after {
    content: '';

    display: block;

    margin: 10px auto 0;

    width: 60%;
    height: 3px;

    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
}
.logo .highlight { color: var(--gold); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    color: #ccc;
    letter-spacing: 1px;
}

.nav-links a:hover {
    text-shadow: 0 0 8px var(--gold-dim);
    color: var(--gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 100vh;

    padding: 0 20px;

    text-align: center;
}

.main-title {
    margin-bottom: 20px;

    font-size: 4.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    line-height: 1.1;
}
.gold-text {
    background: linear-gradient(180deg, #FFEF9D 0%, #FFD700 50%, #B8860B 100%);

    color: var(--gold);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    margin-bottom: 40px;

    max-width: 600px;

    font-size: 1.4rem;
    color: #ddd;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.btn {
    position: relative;

    overflow: hidden;

    transition: var(--transition);

    border: 1px solid rgba(255, 255, 255, 0.3);

    padding: 12px 35px;

    background: transparent;
    cursor: pointer;

    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.btn-primary {
    background: rgba(140, 22, 22, 0.8); /* Horde Red */

    border-color: var(--horde-red);
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);

    background: #ff3333;
}

.btn-secondary {
    background: rgba(0, 0, 128, 0.8); /* Alliance Blue */

    border-color: var(--alliance-blue);
}
.btn-secondary:hover {
    box-shadow: 0 0 20px rgba(51, 51, 255, 0.4);

    background: #3333ff;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0.8;

    animation: bounce 2s infinite;
}
.scroll-indicator span {
    margin-bottom: 5px;

    font-size: 0.8rem;
    text-transform: uppercase;

    letter-spacing: 2px;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(10px);}
    60% {transform: translateY(5px);}
}

/* Sections */
.content-section {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 100px 50px;
}
.alternate-bg {
    background: rgba(0,0,0,0.3);
}

/* Grids / Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;

    width: 100%;
    max-width: 1200px;
}

.card {
    position: relative;

    transition: var(--transition);

    border: 1px solid rgba(255, 215, 0, 0.2);

    padding: 40px 30px;

    background: var(--card-bg);

    text-align: center;

    backdrop-filter: blur(5px);
}
.card:hover {
    transform: translateY(-10px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 215, 0, 0.05);

    border-color: var(--gold);
}

.card-icon {
    margin-bottom: 20px;

    font-size: 3rem;
}

.card h3 {
    margin-bottom: 15px;

    font-size: 1.5rem;
    color: var(--gold);
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

/* Lore Section */
.lore-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;

    max-width: 1000px;
}
.lore-text {
    flex: 1;

    min-width: 300px;

    font-size: 1.1rem;
    line-height: 1.8;
}
.lore-stats {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 20px;
}
.stat-box {
    border: 1px solid rgba(255,255,255,0.1);

    min-width: 120px;

    padding: 20px;

    background: rgba(255,255,255,0.05);

    text-align: center;
}
.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}
.stat-label {
    margin-top: 5px;

    font-size: 0.8rem;
    text-transform: uppercase;

    letter-spacing: 1px;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding: 40px;

    background: rgba(0,0,0,0.8);

    text-align: center;
}
.footer-content p {
    margin: 5px 0;

    color: #888;
}
.heart { color: #ff3333; }

/* Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; }
    
    .navbar { 
        padding: 15px 0;
    }
    
    .nav-content {
        padding: 0 20px;
    }

    .mobile-toggle { display: block; }
    .hamburger { display: none; } /* Hide old one if present */

    .nav-links { 
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on navbar height */
        left: 0;
        width: 100%;
        background: rgba(10, 10, 18, 0.98);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        gap: 20px;
        text-align: left;
    }
    
    .nav-links.active { display: flex; }
    
    .background-overlay {
        background-size: auto 100vh;
        background-position: center top;
        background-attachment: scroll;
    }

    .content-section {
        padding: 60px 20px;
    }

    .cta-group { 
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }

    .lore-container {
        flex-direction: column;
        gap: 30px;
    }

    .lore-stats {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .stat-box {
        width: 100%;
    }
}
