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

:root {
    --bg-dark: #020205;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-blue: #0066ff;
    --glass-panel: rgba(10, 10, 20, 0.7);
    --text-glow: 0 0 10px rgba(0, 243, 255, 0.5);
}

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

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
}

/* --- TYPOGRAFI LEVEL 2000 --- */
h1, h2, h3 {
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 3rem;
    background: linear-gradient(to right, #fff, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
    margin-bottom: 1rem;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Bakgrundsbilden är nu statisk för prestanda */
    background: url('assets/bg-hero.jpg') no-repeat center center/cover;
}

/* Mörkt filter för att få texten att poppa */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, #020205 90%);
    z-index: 1;
}

/* --- ULTRA MIST SYSTEM (3 LAGER) --- */
.fog-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2; /* Ligger ovanpå bakgrunden */
    overflow: hidden;
    pointer-events: none;
}

.fog-img {
    position: absolute;
    height: 100vh;
    width: 300vw; /* Mycket bredare än skärmen för scroll-effekt */
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
    background-size: contain;
    opacity: 0.3;
}

/* Lager 1: Långsam, lila ton */
.fog-1 {
    animation: fogAnim 60s linear infinite;
    z-index: 1;
    filter: drop-shadow(0 0 10px var(--neon-purple)) hue-rotate(240deg);
    top: 20%;
}

/* Lager 2: Snabbare, cyan ton, närmare marken */
.fog-2 {
    animation: fogAnim 40s linear infinite reverse;
    z-index: 2;
    opacity: 0.4;
    filter: drop-shadow(0 0 20px var(--neon-cyan));
    bottom: 0;
}

@keyframes fogAnim {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-200vw, 0, 0); }
}

/* --- HERO INNEHÅLL --- */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 1000px;
    /* En subtil uppdykande animation */
    animation: fadeUp 1.5s ease-out;
}

.main-logo {
    width: 100%;
    max-width: 750px;
    /* LOGGAN PULSERAR NU */
    animation: breathe 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.4));
}

.hero-tagline {
    font-size: 1.4rem;
    color: var(--neon-cyan);
    letter-spacing: 4px;
    margin-top: -20px;
    margin-bottom: 40px;
    text-shadow: 0 0 20px var(--neon-blue);
    font-weight: 700;
}

/* --- KNAPPEN (MAXAD) --- */
.cta-button {
    position: relative;
    display: inline-block;
    padding: 20px 60px;
    color: var(--neon-cyan);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 900;
    letter-spacing: 2px;
    overflow: hidden;
    transition: 0.2s;
    background: rgba(0, 0, 0, 0.3);
    /* Neongräns */
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 15px rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 50px var(--neon-cyan), 0 0 100px var(--neon-purple);
    transform: scale(1.05);
}

/* Ljuseffekt som sveper över knappen */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: 0.5s;
}
.cta-button:hover::before { left: 100%; }


/* --- SEKTIONER --- */
.section-lore {
    padding: 120px 20px;
    background: linear-gradient(to bottom, #020205, #0a0514);
    position: relative;
    z-index: 5;
}

.lore-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lore-text p {
    font-size: 1.3rem;
    line-height: 2;
    color: #d1d1d1;
    margin-bottom: 30px;
}

.highlight {
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
    font-weight: bold;
}

/* --- FEATURES GRID (GLASPANELER) --- */
.section-features {
    padding: 100px 20px;
    background: #0a0514;
    position: relative;
    z-index: 5;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background: var(--glass-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Neon glow vid hover */
.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.feature-card h3 {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- ANIMATIONER --- */
@keyframes breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(0, 243, 255, 0.4)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 50px rgba(188, 19, 254, 0.6)); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 80px 20px;
    background: #000;
    text-align: center;
    border-top: 2px solid var(--neon-purple);
    box-shadow: 0 -10px 50px rgba(188, 19, 254, 0.2);
}