/* --- CSS VARIABLES & RESET --- */
:root {
    /* Färgpalett */
    --color-bg: #0B1025;         /* Djup midnattsblå */
    --color-bg-darker: #060918;  /* Mörkare bakgrund för kontrast */
    --color-surface: #191E2E;    /* Dimmig gråblå */
    --color-surface-translucent: rgba(25, 30, 46, 0.85);
    
    --color-text: #E0E6ED;       /* Månljusvit */
    --color-text-muted: #949CA9;
    
    --color-moss: #485238;       /* Dov grön */
    --color-accent: #C5A052;     /* Guld/Mässing */
    --color-accent-glow: rgba(197, 160, 82, 0.4);
    
    /* Typsnitt */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Layout */
    --container-width: 1100px;
    --header-height: 80px;
    --header-height-scrolled: 70px;

    /* Z-Index Map (Stacking Context) */
    --z-negative: -1;
    --z-background: 0;
    --z-content: 10;
    --z-header: 100;
    --z-scroll-top: 300;     /* Above header base */
    --z-overlay: 400;        /* Noise overlay */
    --z-mobile-menu: 1000;   /* Must be above ScrollTop and Header */
    --z-modal: 2000;         /* Above everything */
    --z-modal-controls: 2010;
}

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

html {
    overflow-x: hidden;
}

::selection {
    background: var(--color-accent);
    color: #000;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .parallax-bg, .fog-layer, .particle, .animate-on-scroll, #scroll-to-top {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Accessible Focus States */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

/* Fix Scroll Offset for Header */
section {
    scroll-margin-top: var(--header-height-scrolled); 
}

/* --- FILM GRAIN OVERLAY --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-overlay);
    opacity: 0.05;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* --- TYPOGRAFI --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 400;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.7);
    background: linear-gradient(to bottom, #fff, #C5A052);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- DIVIDERS --- */
.divider-mini {
    width: 80%;
    max-width: 600px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 2rem;
    box-shadow: 0 0 10px var(--color-accent-glow);
    margin-left: auto;
    margin-right: auto;
}

.divider-mini.center {
    width: 60px; /* Keep it smaller for section headers if desired, or remove this to make all wide */
    margin-left: auto;
    margin-right: auto;
}

/* --- UTILITIES & LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
    position: relative;
}

.relative {
    position: relative;
    overflow-x: hidden;
}

.bg-surface {
    background-color: var(--color-surface);
}

/* --- BUTTONS --- */
.cta-button {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--color-accent), #8E702D);
    color: #0B1025;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    border-radius: 2px;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 160, 82, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(197, 160, 82, 0.6);
    color: #060918;
}

.cta-button.outline {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    box-shadow: none;
}

.cta-button.outline:hover {
    background: var(--color-accent);
    color: #0B1025;
    box-shadow: 0 0 20px var(--color-accent-glow);
}

/* Scroll To Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-surface);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: var(--z-scroll-top);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background-color: var(--color-accent);
    color: #0B1025;
    box-shadow: 0 0 20px var(--color-accent-glow);
    transform: translateY(-3px);
}

#scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: var(--z-header);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, height 0.3s, padding-right 0s; 
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(6, 9, 24, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 2px solid transparent;
    transition: color 0.3s ease;
}

.logo-text:hover {
    color: var(--color-accent);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.8;
    position: relative;
    padding-bottom: 5px;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    opacity: 1;
    color: var(--color-accent);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

/* Mobile Nav Overlay - Hidden by default on Desktop */
.mobile-nav-overlay {
    display: none; 
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Must be higher than header base */
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 6px 0;
    transition: 0.3s;
}

/* --- HERO SECTION & FOG & SEASONS --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('forest.jpg');
    background-size: cover;
    background-position: center;
    z-index: -3;
    filter: brightness(0.6) desaturate(0.2);
    will-change: transform;
}

/* Seasonal Animation Container */
#seasonal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Above fog/overlay, below content */
    overflow: hidden;
}

/* Pause animation when not visible */
#seasonal-container.paused .particle {
    animation-play-state: paused;
}

.particle {
    position: absolute;
    top: -10px;
    pointer-events: none;
}

/* Winter: Snow */
.particle.snow {
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(1px);
    animation: fall linear infinite;
}

/* Spring: Rain */
.particle.rain {
    background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.6));
    width: 1px;
    height: 20px;
    animation: fall-fast linear infinite;
}

/* Summer: Growth/Pollen/Green Life */
.particle.summer {
    background: radial-gradient(circle, rgba(200, 255, 200, 0.9), rgba(50, 150, 50, 0.0));
    border-radius: 50%;
    bottom: -10px;
    top: auto; /* Start from bottom */
    box-shadow: 0 0 4px rgba(200, 255, 200, 0.5);
    animation: float-up ease-in-out infinite;
}

/* Fall: Leaves */
.particle.leaf {
    width: 8px;
    height: 8px;
    background-color: #d46a29; /* Fallback */
    border-radius: 0 60% 0 60%;
    animation: leaf-fall linear infinite;
}
.particle.leaf:nth-child(2n) { background-color: #c24e00; }
.particle.leaf:nth-child(3n) { background-color: #e6b800; }
.particle.leaf:nth-child(4n) { background-color: #8c3b1a; }

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) translateX(20px); opacity: 0; }
}

@keyframes fall-fast {
    0% { transform: translateY(-10vh); opacity: 0; }
    10% { opacity: 0.7; }
    100% { transform: translateY(110vh); opacity: 0; }
}

@keyframes float-up {
    0% { transform: translateY(10vh) translateX(0) scale(0.2); opacity: 0; }
    20% { opacity: 0.7; }
    50% { opacity: 0.4; }
    80% { opacity: 0.7; }
    100% { transform: translateY(-110vh) translateX(30px) scale(1.2); opacity: 0; }
}

@keyframes leaf-fall {
    0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg) translateX(50px); opacity: 0; }
}

/* Fog Animation */
.fog-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Placed above overlay (-2) but below seasonal */
    overflow: hidden;
    pointer-events: none;
}

.fog-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.fog-img {
    position: absolute;
    height: 100vh;
    width: 300vw;
    background-size: cover; /* Changed to cover for better fill */
    background-position: center bottom;
}

.fog-img-first {
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
    background-size: 200vw 100%;
    animation: fog 80s linear infinite;
    opacity: 0.45; 
}

.fog-img-second {
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png') repeat-x;
    background-size: 200vw 100%;
    animation: fog 50s linear infinite;
    opacity: 0.3;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient moved to z-index -2 to sit behind fog */
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 90%);
    z-index: -2; 
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    z-index: 2;
}

.hero-content {
    padding: 0 20px;
    max-width: 900px;
    z-index: 3;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    z-index: 5;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
}

/* --- BERÄTTELSEN --- */
.story-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.intro-text.drop-cap::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 1rem;
    padding-top: 0.2rem;
    color: var(--color-accent);
}

.image-frame {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(197, 160, 82, 0.2);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(197, 160, 82, 0.1);
    z-index: -1;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(15%) contrast(110%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Runic Watermark */
.runic-watermark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-family: sans-serif; /* Fallback, using UTF-8 runes */
    font-size: 15rem;
    font-weight: 700;
    color: rgba(255,255,255,0.02);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    user-select: none;
    max-width: 100%;
    overflow: hidden;
}

.runic-watermark.right {
    left: auto;
    right: 0;
}

/* Theme Cards */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.theme-card {
    background-color: var(--color-surface);
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(197, 160, 82, 0.2);
    transition: transform 0.4s ease, background-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.theme-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.theme-card:hover {
    transform: translateY(-8px);
    background-color: #202638;
}

.theme-card:hover::after {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* --- MUSIK --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
}

.music-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.spotify-container {
    position: relative;
}

.spotify-glow-wrapper {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spotify-glow-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(197, 160, 82, 0.15);
}

/* --- LYRICS (TEXTER) --- */
.lyrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.lyrics-card {
    background-color: rgba(6, 9, 24, 0.5); /* Darker than surface for contrast */
    border: 1px solid rgba(197, 160, 82, 0.15);
    padding: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    appearance: none;
    color: inherit;
    font-family: inherit;
}

.lyrics-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    background-color: rgba(6, 9, 24, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.lyrics-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.lyrics-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.lyrics-preview {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* Lyrics Modal */
.lyrics-modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 24, 0.98);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.lyrics-modal.active {
    display: flex;
    opacity: 1;
}

.lyrics-modal-content {
    background-color: var(--color-bg);
    border: 1px solid var(--color-accent);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    text-align: center;
}

@media (max-width: 768px) {
    .lyrics-modal-content {
        text-align: left; /* Better readability on mobile */
        padding: 2rem 1.5rem;
    }
}

.lyrics-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    background: none;
    border: none;
    z-index: var(--z-modal-controls);
}

.lyrics-close:hover {
    color: var(--color-accent);
}

#lyrics-title {
    color: var(--color-accent);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 1px solid rgba(197, 160, 82, 0.2);
    padding-bottom: 1rem;
    display: inline-block;
}

#lyrics-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-wrap; /* Preserves poetic line breaks */
    color: var(--color-text);
    max-width: 100%;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/5;
    border-radius: 2px;
    background: none;
    border: none;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.4s;
    filter: grayscale(30%) brightness(0.9);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 16, 37, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-overlay span {
    border: 1px solid var(--color-text);
    padding: 8px 20px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover img, .gallery-item:focus-visible img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(1);
}

.gallery-item:hover .gallery-overlay, .gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span, .gallery-item:focus-visible .gallery-overlay span {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: var(--z-modal); 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 24, 0.98);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(197, 160, 82, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    line-height: 0.5;
    cursor: pointer;
    transition: 0.3s;
    z-index: var(--z-modal-controls);
    background: none;
    border: none;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    z-index: var(--z-modal-controls);
    transition: 0.3s;
    user-select: none;
    background: none;
    border: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--color-accent);
}

#caption {
    margin-top: 15px;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

/* --- CONTACT & FOOTER --- */
.contact-card {
    background: var(--color-surface);
    padding: 4rem 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.contact-card::before, .contact-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-accent);
    border-style: solid;
    transition: 0.3s;
}

.contact-card::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.contact-card::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.contact-card:hover::before, .contact-card:hover::after {
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    color: var(--color-text-muted);
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

footer {
    background-color: #030408;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #555c6b;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-tagline {
    font-family: var(--font-heading);
    margin-top: 0.8rem;
    color: #3b4150;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

/* --- ANIMATIONSKLASSER (JS triggar dessa) --- */
/* Content visible by default if JS fails */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Only animate if JS is loaded */
body:not(.no-js) .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up {
    animation: fadeInUp 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

body:not(.no-js) .animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* SVG Dividers */
.section-divider {
    position: absolute;
    bottom: -1px; /* Overlap fix */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    transform: rotate(180deg);
}

.section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.section-divider .shape-fill {
    fill: var(--color-surface); 
}

.section-divider-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.section-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.section-divider-bottom .shape-fill {
    fill: var(--color-bg); 
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .story-layout, .music-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .story-image { order: -1; }
    
    .runic-watermark {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-darker);
        z-index: 2000;
        transition: right 0.4s ease;
        padding: 6rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-nav-overlay.active {
        right: 0;
    }
    
    .mobile-nav-overlay ul {
        list-style: none;
        text-align: center;
    }
    
    .mobile-nav-overlay li {
        margin-bottom: 2rem;
    }
    
    .mobile-link {
        font-family: var(--font-heading);
        font-size: 1.8rem;
        color: var(--color-text);
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .mobile-link.active {
        color: var(--color-accent);
    }
    
    .close-menu {
        position: absolute;
        top: 25px;
        right: 25px;
        background: none;
        border: none;
        color: var(--color-text);
        font-size: 2.5rem;
        cursor: pointer;
    }

    /* Hide runic watermark on small mobile */
    .runic-watermark {
        display: none;
    }
    
    /* Disable parallax on mobile for smoother scrolling */
    .parallax-bg {
        transform: none !important;
    }
    
    .fog-layer {
        transform: none !important;
    }
    
    /* Reduce fog animation complexity on mobile */
    .fog-img {
        animation-duration: 120s !important;
    }
    
    /* Make nav links more touch-friendly */
    .mobile-link {
        padding: 0.5rem 1rem;
        display: inline-block;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Ensure no horizontal overflow on any screen */
@media (max-width: 480px) {
    .section-divider svg,
    .section-divider-bottom svg {
        width: 100%;
    }
    
    /* Further reduce animations on very small screens */
    .fog-container {
        opacity: 0.5;
    }
    
    #seasonal-container {
        display: none; /* Hide particle animations on small mobile */
    }
}
