/* ============================================
   TELLUSCREATIVE — style.css (rengjord)
   ============================================ */

/* --- CSS-VARIABLER --- */
:root {
    --bg:           #05060a;
    --bg-alt:       #0b1220;
    --bg-section:   #0f172a;
    --card:         rgba(255,255,255,0.03);
    --card-border:  rgba(255,255,255,0.06);
    --accent:       #a855f7;
    --accent-2:     #6366f1;
    --accent-cyan:  #22d3ee;
    --accent-green: #22c55e;
    --text:         #f5f5f5;
    --muted:        #9ca3af;
    --muted-light:  #cbd5e1;
    --radius-lg:    18px;
    --radius-md:    12px;
    --shadow-soft:  0 18px 45px rgba(0,0,0,0.45);
    --shadow-card:  0 14px 30px rgba(0,0,0,0.35);
    --transition:   0.25s ease;
}


/* ============================================
   RESET & BAS
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: radial-gradient(circle at top, #1f2933 0%, #05060a 55%, #020308 100%);
    color: var(--text);
    line-height: 1.6;
}

/* Layout */
section {
    padding: 120px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Globala rubriker i sektioner — OBS: scopas för att inte slå igenom överallt */
section > .projects-container > h2,
section > .resources-container > h2 {
    font-size: 1.8rem;
    margin-bottom: 18px;
    text-align: center;
}

/* Footer */
footer {
    padding: 40px 20px 30px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 40px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    padding: 18px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
}

.nav.scrolled {
    background: rgba(0,0,0,0.85);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links li {
    list-style: none;
}

.nav-links a,
.nav-link,
.logo {
    text-decoration: none;
}

.nav-link {
    position: relative;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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


/* --- MOBILMENY --- */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-burger span {
    width: 26px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.nav-burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    padding: 100px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: right 0.4s ease;
    list-style: none;
}

.nav-mobile a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
}

.nav-mobile.active {
    right: 0;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .nav-burger {
        display: flex;
    }
}


/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 160px 20px 140px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, #1e293b 0%, #0f172a 60%, #020617 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFade 1s ease-out forwards;
}

@keyframes heroFade {
    to { opacity: 1; transform: translateY(0); }
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 80px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero-heading {
    font-size: clamp(2.8rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-heading span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--muted-light);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero-visual */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.hero-sphere {
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-green) 40%, transparent 70%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px rgba(34,197,94,.7), 0 0 80px rgba(34,211,238,.5);
}

.hero-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    animation: spin 28s linear infinite;
}

.ring-1 { width: 300px; height: 300px; }
.ring-2 { width: 420px; height: 420px; animation-duration: 38s; animation-direction: reverse; }
.ring-3 { width: 540px; height: 540px; border-color: rgba(255,255,255,.06); animation-duration: 52s; }

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .hero { padding-top: 90px; }
    .hero-heading { font-size: 2.4rem; }
    .hero-lead { font-size: 1rem; }
}


/* ============================================
   KNAPPAR
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .85rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0 0, rgba(255,255,255,0.25), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    color: #020617;
    box-shadow: 0 18px 40px rgba(34,197,94,.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(34,197,94,.5);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.45);
    transform: translateY(-3px);
}


/* ============================================
   PROJEKT
   ============================================ */
.projects {
    padding: 120px 20px;
    background: var(--bg-alt);
    color: #fff;
}

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

.projects-heading {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.projects-subtitle {
    font-size: 1.1rem;
    color: var(--muted-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

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

/* Kortbas — delas av projekt- och resurskort */
.project-card,
.resource-card {
    padding: 40px 30px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover,
.resource-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.project-icon,
.resource-icon {
    font-size: 2.8rem;
    margin-bottom: 18px;
}

.project-card h3,
.resource-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.project-card p,
.resource-card p {
    font-size: 1rem;
    color: var(--muted-light);
    margin-bottom: 22px;
    text-align: left;
}

.project-link,
.resource-link {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent-cyan);
}

/* Projektfärgsteman vid hover */
.project-dj:hover {
    box-shadow: 0 18px 40px rgba(56,189,248,.35);
    border-color: rgba(56,189,248,.45);
}

.project-st:hover {
    box-shadow: 0 18px 40px rgba(34,197,94,.35);
    border-color: rgba(34,197,94,.45);
}

.project-fd:hover {
    box-shadow: 0 18px 40px rgba(168,85,247,.35);
    border-color: rgba(168,85,247,.45);
}

@media (max-width: 600px) {
    .project-card,
    .resource-card {
        padding: 32px 24px;
    }
}


/* ============================================
   PROJEKT-UNDERSIDOR
   ============================================ */

/* Hero-bilder för projektsidor */
.dj-hero,
.starktillsammans-hero,
.fitdealzpro-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.dj-hero            { background: url('/assets/images/projects/dj-tellus.png') center/cover no-repeat; }
.starktillsammans-hero { background: url('/assets/images/projects/starktillsammans.png') center/cover no-repeat; }
.fitdealzpro-hero   { background: url('/assets/images/projects/fitdealzpro.png') center/cover no-repeat; animation: heroZoom 12s ease-out forwards; }

@keyframes heroZoom {
    0%   { background-size: 120%; }
    100% { background-size: 100%; }
}

.dj-hero .overlay,
.starktillsammans-hero .overlay,
.fitdealzpro-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.dj-hero .content,
.starktillsammans-hero .content,
.fitdealzpro-hero .content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.dj-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.dj-hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Projektinnehåll */
.project-content {
    padding: 60px 20px;
}

.project-content .container {
    max-width: 900px;
    margin: 0 auto;
}

.project-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.project-content h3 {
    margin-top: 40px;
    font-size: 1.5rem;
}

.project-features {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.project-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.project-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00c853;
}

.project-cta {
    padding: 80px 20px;
    text-align: center;
    background: #111;
    color: #fff;
    margin-top: 60px;
}

.project-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.project-cta .cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: #00c853;
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.project-cta .cta-button:hover {
    background: #00e676;
    transform: translateY(-2px);
}


/* ============================================
   RESURSER
   ============================================ */
.resources {
    padding: 120px 20px;
    background: var(--bg-alt);
    color: #fff;
}

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

.resources-heading {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.resources-subtitle {
    font-size: 1.1rem;
    color: var(--muted-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

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

/* Resursfärgsteman vid hover */
.resource-music:hover {
    box-shadow: 0 18px 40px rgba(56,189,248,.35);
    border-color: rgba(56,189,248,.45);
}

.resource-training:hover {
    box-shadow: 0 18px 40px rgba(34,197,94,.35);
    border-color: rgba(34,197,94,.45);
}

.resource-digital:hover {
    box-shadow: 0 18px 40px rgba(168,85,247,.35);
    border-color: rgba(168,85,247,.45);
}


/* ============================================
   OM MIG
   ============================================ */
.about {
    padding: 120px 20px;
    background: var(--bg-section);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 80px;
    align-items: center;
}

.about-heading {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.about-lead {
    font-size: 1.2rem;
    color: var(--muted-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.about-body {
    font-size: 1.05rem;
    color: var(--muted-light);
    margin-bottom: 18px;
    line-height: 1.65;
}

.about-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(34,197,94,.4), rgba(34,211,238,.25), transparent 70%);
    filter: blur(40px);
    border-radius: 999px;
}

.about-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    animation: aboutSpin 26s linear infinite;
}

.about-circle-2 {
    width: 360px;
    height: 360px;
    border-color: rgba(255,255,255,.06);
    animation-duration: 38s;
    animation-direction: reverse;
}

@keyframes aboutSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-visual {
        max-width: 360px;
        margin: 0 auto;
    }
}


/* ============================================
   KONTAKT
   ============================================ */
.contact {
    padding: 120px 20px;
    background: var(--bg-section);
    color: #fff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 80px;
    align-items: center;
}

.contact-heading {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.contact-lead {
    font-size: 1.2rem;
    color: var(--muted-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--muted-light);
}

.contact-info span {
    margin-right: 8px;
}

.contact-socials {
    margin-top: 26px;
    display: flex;
    gap: 18px;
}

.social-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: .95rem;
    letter-spacing: .04em;
    transition: opacity .2s ease;
}

.social-link:hover {
    opacity: .7;
}

.contact-form-wrapper {
    position: relative;
}

.contact-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(34,197,94,.4), rgba(34,211,238,.25), transparent 70%);
    filter: blur(40px);
    border-radius: 999px;
    z-index: 0;
}

.contact-form {
    position: relative;
    z-index: 2;
    background: var(--card);
    border: 1px solid var(--card-border);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.contact-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    color: var(--accent-green);
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: .9rem;
    letter-spacing: .03em;
    opacity: .85;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    background: rgba(255,255,255,.08);
}

.form-group textarea {
    height: 140px;
    resize: none;
}

.form-submit {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .contact-socials {
        justify-content: center;
    }
    .contact-form {
        margin-top: 40px;
    }
}


/* ============================================
   CTA-SEKTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
    top: -50px;
    left: -50px;
    filter: blur(40px);
    pointer-events: none;
}

.cta-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
    bottom: -50px;
    right: -50px;
    filter: blur(40px);
    pointer-events: none;
}

.cta-container h2 {
    font-size: 2.2rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.cta-container p {
    opacity: 0.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(168,85,247,0.45);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    position: relative;
    overflow: visible;
}

.cta-button::after {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 14px;
    border: 2px solid rgba(168,85,247,0);
    transition: border-color var(--transition), box-shadow var(--transition);
    pointer-events: none;
}

.cta-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 40px rgba(168,85,247,0.75);
    filter: brightness(1.15);
}

.cta-button:hover::after {
    border-color: rgba(168,85,247,0.8);
    box-shadow: 0 0 25px rgba(168,85,247,0.6);
}

.cta-button:active {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(168,85,247,0.55);
}

@media (max-width: 900px) {
    .cta-container h2 { font-size: 1.8rem; line-height: 1.3; }
    .cta-container p  { font-size: 1rem; max-width: 90%; margin: 0 auto 25px; }
    .cta-button       { padding: 14px 32px; font-size: 1rem; }
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #050505;
    padding: 80px 0 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Divider-linje överst */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #444, transparent);
    transform: translateX(-50%);
    opacity: 0.4;
}

/* Glow undertill */
.footer::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 50%;
    width: 80%;
    height: 120px;
    background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
    transform: translateX(-50%);
    filter: blur(60px);
    pointer-events: none;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-col {
    text-align: left;
}

/* Logo med animerad gradient */
.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: footerGradient 6s ease infinite;
}

@keyframes footerGradient {
    0%   { background-position: 0%; }
    50%  { background-position: 100%; }
    100% { background-position: 0%; }
}

.footer-text {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    opacity: 0.85;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    position: relative;
    text-decoration: none;
    transition: opacity .2s ease, transform .2s ease;
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.3s ease, left 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(168,85,247,0.7);
}

.footer-links a:hover::after {
    width: 100%;
    left: 0;
}

.footer-icon {
    margin-right: 6px;
    filter: drop-shadow(0 0 4px rgba(168,85,247,0.5));
}

/* Footer-fadein */
.footer-col,
.footer-bottom {
    opacity: 0;
    transform: translateY(12px);
    animation: footerFade 0.8s ease forwards;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.25s; }
.footer-col:nth-child(3) { animation-delay: 0.4s; }
.footer-bottom            { animation-delay: 0.55s; }

@keyframes footerFade {
    to { opacity: 1; transform: translateY(0); }
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
    animation: footerFade 0.8s ease forwards, footerPulse 4s ease-in-out 0.55s infinite;
}

@keyframes footerPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

@media (max-width: 900px) {
    .footer {
        padding: 70px 20px 40px;
    }
    .footer::before {
        width: 70%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }
    .footer-col {
        text-align: center;
        max-width: 350px;
        margin: 0 auto;
    }
    .footer-logo {
        font-size: 1.9rem;
    }
    .footer-text {
        font-size: 1rem;
        max-width: 90%;
    }
    .footer-links li {
        margin: 12px 0;
    }
    .footer-bottom {
        margin-top: 50px;
        font-size: 0.85rem;
    }
}


/* ============================================
   AFFILIATE-SIDOR
   ============================================ */
.subpage .sub-hero {
    padding: 160px 20px 80px;
    text-align: center;
}

.subpage .sub-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.subpage .sub-hero p {
    max-width: 520px;
    margin: 0 auto 24px;
    color: var(--muted);
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    padding: 40px 0 80px;
}

.affiliate-card {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform var(--transition), box-shadow var(--transition);
}

.affiliate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.affiliate-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.affiliate-article .article-header {
    max-width: 1050px;
    margin: 0 auto 30px;
}

.affiliate-review {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.affiliate-review img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.affiliate-review h2 { margin-bottom: 10px; }
.affiliate-review ul { margin: 15px 0; padding-left: 20px; }

.affiliate-cta {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    margin-top: 60px;
}

@media (max-width: 900px) {
    .affiliate-article .article-header {
        max-width: 95%;
        margin: 0 auto 25px;
        text-align: center;
        padding: 0 10px;
    }
    .affiliate-article .article-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .affiliate-article .article-header .intro {
        font-size: 1rem;
        line-height: 1.55;
        opacity: 0.9;
        max-width: 95%;
        margin: 0 auto;
    }
}

.related-articles {
    margin-top: 60px;
    padding: 40px;
    background: var(--card);
    border-radius: var(--radius-md);
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: background .2s ease, transform .2s ease;
}

.related-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
}


/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 70px 0 10px;
}

.breadcrumb a {
    color: var(--text);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 4px;
}


/* ============================================
   UNDER CONSTRUCTION
   ============================================ */
.under-construction {
    background: var(--bg);
    color: var(--text);
}

.uc-overlay {
    text-align: center;
    padding-top: 180px;
}

.uc-overlay h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}


/* ============================================
   RESPONSIVITET — GLOBALT
   ============================================ */
@media (max-width: 900px) {
    section {
        padding: 80px 20px;
    }

    h1, h2, h3 {
        line-height: 1.25;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 600px) {
    section {
        padding: 60px 16px;
    }
}
