/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --bg-dark: #070709;
    --bg-card: rgba(18, 18, 24, 0.75);
    --bg-card-hover: rgba(28, 28, 38, 0.85);
    --red-primary: #8b0000;
    --red-bright: #d11a2a;
    --red-glow: rgba(209, 26, 42, 0.4);
    --gold-accent: #d4af37;
    --gold-bright: #f3e5ab;
    --text-light: #f5f5fa;
    --text-muted: #a0a0b2;
    --border-glow: rgba(209, 26, 42, 0.25);
    --border-gold: rgba(212, 175, 55, 0.3);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 7, 9, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 5, 7, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold-accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-bright);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, var(--red-bright), var(--red-primary));
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    border: 1px solid var(--gold-accent);
}

.nav-btn::after {
    display: none !important;
}

.nav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--red-glow);
}

/* --- HERO SEKTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
    background: url('content.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,7,9,0.7) 0%, rgba(7,7,9,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(209, 26, 42, 0.6));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(209, 26, 42, 0.6)); }
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 30px rgba(209, 26, 42, 0.9)); }
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--text-light);
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,0,0,0.9);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gold-accent);
    margin: 0.5rem 0 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* --- BUTTONS --- */
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--red-bright), var(--red-primary));
    color: #fff;
    padding: 1rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 0 25px var(--red-glow);
    transition: var(--transition);
    border: 1px solid var(--gold-accent);
    letter-spacing: 1px;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(209, 26, 42, 0.8);
    background: linear-gradient(135deg, #e61c2e, var(--red-primary));
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 3.5rem;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
    margin: 0.8rem auto 0;
    box-shadow: 0 0 10px var(--red-bright);
}

.section-desc {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    text-align: center;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    padding: 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--gold-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* --- OM OS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-grid h3 {
    color: var(--gold-accent);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.about-grid p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* --- ORGANISATION --- */
.org-container {
    text-align: center;
}

.org-container h3 {
    color: var(--gold-accent);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.org-image-wrapper {
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
}

.org-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.org-img:hover {
    transform: scale(1.02);
}

/* --- RANKS --- */
.rank-category {
    margin-bottom: 3.5rem;
}

.rank-cat-title {
    font-size: 1.8rem;
    color: var(--red-bright);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.5rem;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.rank-card {
    position: relative;
}

.rank-card h4 {
    color: var(--gold-accent);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.rank-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.rank-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    background: var(--red-primary);
    color: var(--gold-bright);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--gold-accent);
}

/* --- EVENTS --- */
.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.event-card h3 {
    color: var(--gold-accent);
    font-size: 1.5rem;
}

.event-freq {
    color: var(--red-bright);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.event-card p {
    color: var(--text-muted);
}

/* --- COMMUNITY --- */
.community-box {
    max-width: 900px;
    margin: 0 auto;
}

.community-list {
    list-style: none;
}

.community-list li {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.community-list .icon {
    font-size: 1.4rem;
}

/* --- GALLERI --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 220px;
    background: rgba(20, 20, 28, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px dashed var(--border-glow);
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: scale(1.02);
}

/* --- JOIN --- */
.join-card {
    text-align: center;
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.15), rgba(7, 7, 9, 0.8));
    padding: 4rem 2rem;
    border-color: var(--gold-accent);
}

.join-card h2 {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 1rem;
}

.join-card p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* --- FOOTER --- */
footer {
    background: #040405;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 50px;
}

.footer-brand h3 {
    color: var(--gold-accent);
    font-size: 1.2rem;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- ANIMATIONS (JAVASCRIPT REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- RESPONSIVITET --- */
@media (max-width: 850px) {
    .nav-links {
        display: none; /* Kan udbygges til mobil-menu */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-grid, .events-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
    }
}
