/* --------------------------------------------
   IMGWORKZ CHILD THEME – Custom Styles
   Based on the original landing page design
-------------------------------------------- */

:root {
    --bg-deep: #272727;
    --cyan: #00eeff;
    --magenta: #ff00ff;
    --yellow: #ffff00;
    --text-pure: #ffffff;
    --text-muted: #9999a1;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.15);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-pure);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Ambient gradient orbs (fixed background) */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(340px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}
body::before {
    top: -30%;
    left: -30%;
    width: 77vw;
    height: 50vw;
    background: var(--cyan);
}
body::after {
    bottom: -30%;
    right: -30%;
    width: 77vw;
    height: 50vw;
    background: var(--magenta);
}

/* Three.js canvas container */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Scroll container – sits above the canvas */
#scroll-container {
    position: relative;
    z-index: 2;
}

/* Sections – full viewport height, snapping */
.section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    position: relative;
    pointer-events: none;
    scroll-snap-align: start;
}
.pos-left {
    justify-content: flex-start;
    text-align: left;
}
.pos-right {
    justify-content: flex-end;
    text-align: right;
}
.pos-center {
    justify-content: center;
    text-align: center;
}

.editorial-block {
    max-width: 520px;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}
.editorial-block.centered {
    max-width: 700px;
}
.editorial-block.wide {
    max-width: 1000px;
    width: 100%;
}

/* ---------- Typography with animated gradient ---------- */
h1, h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--cyan), var(--text-pure), var(--magenta), var(--cyan));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 8s linear infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}
h1 { font-size: clamp(4.5rem, 8vw, 10rem); }
h2 { font-size: clamp(3.5rem, 5vw, 6.5rem); }

p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.phase-marker {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--text-pure);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
}

/* ---------- Glass Buttons ---------- */
.glass-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3.5rem;
    color: var(--text-pure);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 0px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05), 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.glass-btn:hover {
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: inset 0 0 30px transparent, 0 20px 40px rgba(0, 255, 255, 0.15);
    transform: translateY(-3px);
    letter-spacing: 0.2em;
}
.glass-btn:hover::before {
    transform: translateX(100%);
}

.btn-glass-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.1rem;
    padding: 1.25rem 3.5rem;
    color: var(--text-pure);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}
.btn-glass-secondary:hover {
    color: var(--text-pure);
    background: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.2em;
}

/* ---------- Glass Header ---------- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 0.5rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}
.logo {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--text-pure);
    text-transform: uppercase;
}
.logo a {
    color: inherit;
    text-decoration: none;
}
.nav-links {
    display: flex;
    gap: 4rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-pure);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: all 0.4s ease;
}
.nav-links a:hover {
    opacity: 1;
    letter-spacing: 0.25em;
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* ---------- Glass Cards Grid ---------- */
.complex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
}
.glass-card .card-num {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}
.glass-card h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: var(--text-pure);
}
.glass-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ---------- Glitch effect for "Boost" ---------- */
.glitch {
    position: relative;
    animation: glitchAnim 3s infinite;
}
@keyframes glitchAnim {
    0%, 89%, 91%, 93%, 100% {
        text-shadow: none;
        transform: none;
    }
    90% {
        text-shadow: -3px 0 var(--cyan), 3px 0 var(--magenta);
        transform: translateX(3px);
    }
    92% {
        text-shadow: 3px 0 var(--cyan), -3px 0 var(--magenta);
        transform: translateX(-3px);
    }
}

/* ---------- GSAP split-text helper classes ---------- */
.mask-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.anim-word {
    display: inline-block;
    transform: translateY(110%);
}