/* Import and re-use global elements from the main landing CSS where possible */
@import url('landing.css');

/* Scoped Overrides / Additions for how-to.html */

/* ── Typography & Prose ─────────────────────────────────── */
.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.prose strong {
    color: #fff;
    font-weight: 600;
}

.prose em {
    color: #3ca2c8;
    font-style: italic;
}

/* ── Sticky Sidebar TOC ─────────────────────────────────── */
.toc-link.active {
    color: #ed2788;
    position: relative;
}

.toc-link.active::before {
    content: '>';
    position: absolute;
    left: -1rem;
    color: #ed2788;
    font-weight: 700;
}

/* ── Scroll Reveal System ───────────────────────────────── */
.doc-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-section.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ── Nav Logo Sync ──────────────────────────────────────── */
nav {
    transition: background-color 0.3s ease;
}

nav.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-logo-text {
    background: linear-gradient(90deg, #fff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── ANIMATED BACKGROUND ORBS ───────────────────────────── */
.hero-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

@keyframes pulseGlow {
    from {
        opacity: 0.6;
        transform: translate(-50%, -55%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.05);
    }
}

/* ── ATMOSPHERE FX EXPANSION VISUALS ────────────────────── */

/* 1. Grain/Noise */
.fx-grain-visual .noise-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
}

.group:hover .fx-grain-visual .noise-overlay {
    animation: noiseJitter 0.2s steps(2) infinite;
}

@keyframes noiseJitter {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 10px 10px;
    }

    100% {
        background-position: -10px -10px;
    }
}

/* 2. Optics / Halation */
.fx-optics-visual .chromatic-ring {
    mix-blend-mode: screen;
}

/* 3. Cinematic / Film Burn */
.fx-cinema-visual {
    background: radial-gradient(circle at center, rgba(255, 100, 0, 0.05) 0%, transparent 70%);
}

/* 4. Digital (Lo-Fi): Bayer & Posterize */
.fx-digital-visual {
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 2px,
            transparent 2px,
            transparent 4px);
}

.fx-posterize-visual {
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.05) 0%, transparent 70%);
}



/* 7. Exporting */
@keyframes progress {
    0% {
        stroke-dashoffset: 283;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* 5. Texture Stack */
.transform-style-3d {
    transform-style: preserve-3d;
}

.-translate-z-5 {
    transform: translateZ(-20px);
}

.-translate-z-10 {
    transform: translateZ(-40px);
}

@keyframes floatStack1 {

    0%,
    100% {
        transform: translateY(1rem) translateX(1rem) translateZ(-40px) rotate(-5deg);
    }

    50% {
        transform: translateY(1.5rem) translateX(1rem) translateZ(-40px) rotate(-3deg);
    }
}

@keyframes floatStack2 {

    0%,
    100% {
        transform: translateY(0.5rem) translateX(0.5rem) translateZ(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(0.8rem) translateX(0.5rem) translateZ(-20px) rotate(4deg);
    }
}

@keyframes floatStack3 {

    0%,
    100% {
        transform: translateZ(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-0.3rem) translateZ(0) rotate(0deg);
    }
}

.fx-texture-visual>div>div:nth-child(1) {
    animation: floatStack1 6s ease-in-out infinite;
}

.fx-texture-visual>div>div:nth-child(2) {
    animation: floatStack2 6s ease-in-out infinite 0.5s;
}

.fx-texture-visual>div>div:nth-child(3) {
    animation: floatStack3 6s ease-in-out infinite 1s;
}