/*
Theme Name: imgworkz Child
Theme URI: https://imgworkz.com
Description: imgworkz - Digital Business Consultancy & Tech Solutions 
Author: imgworkz
Author URI: https://imgworkz.com
Template: twentytwentyfive
Version: 1.0.0
Text Domain: imgworkz-child
*/

:root {
    --bg-deep: #272727;
    --cyan: #00eeff;
    --magenta: #ff00ff;
    --text-pure: #ffffff;
    --text-muted: #9999a1;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-pure);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

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); }

/* --- HOMEPAGE SCROLL LOCK --- */
/* WordPress automatically adds this class based on the template name */
body.page-template-home-3d {
    overflow: hidden; 
    height: 100vh;
}

/* --- STANDARD PAGE LAYOUT --- */
.standard-page-wrapper {
    padding: 8rem 5vw 4rem 5vw; /* Pushes content down safely below the fixed glass header */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.page-content-block {
    width: 100%;
    max-width: 800px; /* Optimal reading width for long-form content */
    margin-top: 2rem;
}

.page-content-block h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2.5rem;
    text-align: left;
}

.page-content-flow p {
    font-size: 1.1rem;
    color: var(--text-pure); /* Brighter text for reading paragraphs */
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Ensure WordPress Gutenberg blocks respect your theme colors */
.page-content-flow h2, 
.page-content-flow h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--cyan);
}

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

#scroll-container {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; 
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    z-index: 2;
}

.section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10vw;
    position: relative;
    pointer-events: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.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;
}

/* --- TYPOGRAPHY & GRADIENTS --- */
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;
}

/* --- UI ELEMENTS --- */
.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(-2px); letter-spacing: 0.2em;
}
.glass-btn:hover::before { transform: translateX(100%); }

.btn-glass-secondary {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    margin: 0.1rem 0.1rem; padding: 1.15rem 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); margin-left: 0.1rem; background: rgba(255,255,255,0.03);
    letter-spacing: 0.2em;
}

.glass-header {
    position: fixed; top: 0; left: 0; width: 100vw; padding: 1.1rem 5vw;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo {
    font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 700;
    letter-spacing: 0.25em; color: var(--text-pure); text-transform: uppercase;
}
.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; } }

.complex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.glass-card {
    background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1);
    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: 'Outfit', sans-serif; font-size: 1.2rem; 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); }

/* --- THE GLITCH PRESERVATION --- */
.glitch { position: relative; animation: glitchAnim 3s infinite; display: inline-block; }
@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); }
}

/* --- TEXT REVEAL SAFEKEEPING --- */
.mask-wrap { 
    display: inline-block; overflow: hidden; vertical-align: bottom; 
    height: 1.1em; line-height: 1.1em; padding-bottom: 0.1em;
}
.anim-word { 
    display: inline-block; position: relative; 
    top: 1.2em;
}