/* --- FARGEPALETT (Dark Mode) --- */
:root {
    --bg-main: #0b0f19;       
    --bg-alt: #111827;        
    --bg-card: #1f2937;       
    --text-main: #f9fafb;     
    --text-muted: #9ca3af;    
    --accent: #3b82f6;        
    --accent-hover: #2563eb;  
    --border-color: #374151;  
    --discord: #5865F2;
    --fivem: #f59e0b;
}

/* --- ANIMASJONER (Keyframes) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

/* Generell styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.bg-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* --- NAVIGASJON --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeInUp 0.5s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Understrek animasjon i menyen */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

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

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

/* --- HERO / HJEM --- */
.hero {
    position: relative;
    background: url('https://www.insidehook.com/wp-content/uploads/2023/07/oslo.jpg?fit=1200%2C800') center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.6), rgba(11, 15, 25, 1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out; /* Fade inn effekten */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
}

/* --- KNAPPER --- */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Shine effekt på knapper når man hovrer */
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
}

.btn:hover::before {
    left: 150%;
}

.btn-discord {
    background-color: var(--discord);
    color: white;
}

.btn-discord:hover {
    background-color: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.btn-fivem {
    background-color: var(--fivem);
    color: #111827;
    animation: pulseGlow 2.5s infinite; /* Pulsering */
}

.btn-fivem:hover {
    background-color: #d97706;
    transform: translateY(-3px);
    animation: none; /* Stopper pulsering ved hover */
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

/* --- SEKSJONER --- */
.section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out both; /* Fade in mens man scroller */
    animation-timeline: view();
    animation-range: entry 5% cover 20%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header p {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 1.1rem;
}

/* --- REGLER --- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.rule-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy overgang */
}

.rule-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15); /* Blå glow */
}

.rule-card h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.3rem;
}

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

/* --- ENDRINGSLOGG --- */
.changelog-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.log-entry {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.log-entry:hover {
    transform: translateX(10px); /* Skyves litt til høyre ved hover */
    border-left: 4px solid var(--accent);
    box-shadow: -5px 10px 20px rgba(0,0,0,0.3);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.log-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.log-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 6px;
}

.log-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-changes {
    list-style-type: none;
}

.log-changes li {
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: color 0.2s ease;
}

.log-changes li:hover {
    color: var(--text-main);
}

.log-changes li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1rem;
}

/* --- TEAM --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.team-card {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
}

.team-card:hover {
    transform: translateY(-10px);
    background: #273344;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.team-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

/* Får ikonet til å hoppe/snurre litt når man hovrer over kortet */
.team-card:hover .team-icon {
    animation: iconBounce 0.6s ease;
}

.owner .team-icon { color: var(--fivem); }
.dev .team-icon { color: var(--accent); }

.team-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
    background-color: #05070a;
    color: #4b5563;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
}

/* --- RESPONSIVT (Mobil) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .log-meta {
        width: 100%;
        flex-wrap: wrap;
    }
    .section {
        /* Fjerner scroll-animasjon på mobil for bedre ytelse */
        animation: fadeInUp 1s ease-out; 
    }
}