/* CINEMATIC REDESIGN V2 */
:root {
    --bg-void: #050505;
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
.cinematic-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    mix-blend-mode: difference;
    /* Visible on any bg */
}

.nav-logo,
.nav-status {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 2px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #22c55e;
}

/* --- SCENE LAYOUT --- */
.scene {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}

/* --- VISUALS & BLENDING --- */
.cinematic-char {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;

    /* CRITICAL BLENDING & MASKING */
    mix-blend-mode: screen;
    /* Remove black bg */

    /* Fade edges to prevent "square sticker" look */
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
    mask-image: radial-gradient(circle at center, black 50%, transparent 90%);

    /* CRUSH BLACKS: High contrast to ensure background is transparent */
    filter: contrast(1.3) brightness(0.9) drop-shadow(0 0 50px rgba(99, 102, 241, 0.2));
}

/* --- HOLOGRAPHIC ASSETS --- */
.holo-placeholder {
    width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sphere */
.sphere-holo .holo-core {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse 3s infinite;
}

.sphere-holo .holo-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    animation: spin 10s linear infinite;
    opacity: 0.3;
}

/* Tablet */
.tablet-holo .holo-screen {
    width: 250px;
    height: 350px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    transform: perspective(1000px) rotateY(-20deg);
}

/* Graph */
.graph-holo {
    align-items: flex-end;
    gap: 20px;
    height: 300px;
}

.holo-bar {
    width: 60px;
    background: linear-gradient(to top, var(--accent), transparent);
    opacity: 0.7;
    border-radius: 10px 10px 0 0;
}

.bar-1 {
    height: 30%;
    animation: grow 2s infinite alternate;
}

.bar-2 {
    height: 60%;
    animation: grow 2.5s infinite alternate 0.5s;
}

.bar-3 {
    height: 90%;
    animation: grow 3s infinite alternate 1s;
}

/* Portal */
.portal-holo .holo-rays {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 60px white, 0 0 120px var(--accent);
    animation: pulse 1s infinite alternate;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes grow {
    0% {
        opacity: 0.5;
        transform: scaleY(0.9);
    }

    100% {
        opacity: 1;
        transform: scaleY(1.1);
    }
}

/* --- TYPOGRAPHY --- */
.giant-text {
    font-family: var(--font-head);
    font-size: 10vw;
    /* Slightly smaller to fit "Tailored Intelligence" cleanly */
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
    /* text-transform: uppercase; REMOVED per user request */
    position: relative;
    z-index: 20;
    /* Ensure Text is ABOVE the image */

    /* STANDARD STYLING: Solid White */
    color: white;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    /* Subtle glow for perceived brightness */
}

.line {
    display: block;
}

/* Remove Outline/Hollow effect from line-2 */
.line-2 {
    background: none;
    -webkit-text-fill-color: initial;
    -webkit-text-stroke: 0;
    opacity: 1;
    color: var(--text-primary);
}

.hero-sub {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.2rem;
    opacity: 0.7;
    letter-spacing: 1px;
    z-index: 20;
    position: relative;
    /* Ensure it sits above hero image */
}

.hero-desc {
    margin-top: 1.5rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- HERO SCENE --- */
.hero-scene {
    flex-direction: column;
}

.hero-visual-container {
    position: absolute;
    top: 10%;
    left: 55%;
    /* Moved RIGHT MORE to clear text */
    width: 70vw;
    z-index: 10;
    pointer-events: none;
    /* Opacity handled by GSAP, but set start here to avoid flash if needed,
       though GSAP .from usually handles it. Let's keep CSS simple. */
}

/* --- CONTENT SCENES --- */
.split-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1600px;
    gap: 5rem;
}

.reverse {
    flex-direction: row-reverse;
}

.text-block {
    flex: 1;
    z-index: 10;
}

.visual-block {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.editorial-head {
    font-family: var(--font-head);
    font-size: 8vw;
    /* Increased from 6vw to match 'Giant' feel */
    line-height: 1;
    margin-bottom: 2rem;
}

.editorial-body {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.5;
}

.scene-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* --- MODERN INPUTS (Terminal Style) --- */
.input-group {
    position: relative;
    margin-bottom: 3rem;
    /* Generous spacing */
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: color 0.3s;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    /* Glass Background for better hit area visibility */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* Smooth corners */

    color: white;
    padding: 1.2rem 1.5rem;
    /* Large, comfortable touch targets */
    font-family: var(--font-body);
    /* Readable Inter font */
    font-size: 1.15rem;
    /* Large text size */

    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State */
input:hover,
textarea:hover,
select:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Focus State - The "wow" factor */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.08);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.1),
        /* Outer ring */
        0 0 20px rgba(99, 102, 241, 0.2);
    /* Glow */
    transform: translateY(-2px);
    /* Subtle lift */
}

/* Focus: Highlight Label */
.input-group:focus-within label {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* Placeholder Styling */
::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

/* Checkbox Modernization */
.check-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.check-box:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- CTA --- */
.magnetic-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1.5rem 4rem;
    border: none;
    /* No border for solid fill */
    border-radius: 100px;
    color: black;
    /* High contrast on white */
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    background: white;
    /* Solid White */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    /* Base glow */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.magnetic-btn:hover {
    background: white;
    /* Stays white */
    color: black;
    transform: scale(1.05) translateY(-2px);
    /* Lift */
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.4);
    /* Stronger glow/shadow */
}

/* --- AUDIT PAGE --- */
.audit-body {
    background: var(--bg-void);
    min-height: 100vh;
    padding-top: 100px;
}

/* --- AUDIT PAGE REFACTOR --- */
.audit-wrapper {
    width: 100%;
    /* Remove padding/centering that broke full-width scenes */
    padding: 0;
    display: block;
}

.audit-scene {
    /* Ensure scenes take full height but allow growth */
    min-height: 100vh;
    height: auto;
    /* Large padding-bottom to ensure button is never cut off */
    padding: 120px 5% 150px;
    overflow: visible;
    /* Use flex-start so tall content isn't clipped at the top via 'center' */
    align-items: flex-start;
    /* Center horizontally if needed, though split-layout handles width */
    justify-content: center;
}

.cinematic-form {
    width: 100%;
}

/* --- AUDIT PLACEHOLDERS --- */

/* Couch */
.couch-holo {
    flex-direction: column;
    justify-content: flex-end;
}

.holo-couch-base {
    width: 300px;
    height: 100px;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.2), transparent);
    border: 2px solid rgba(99, 102, 241, 0.5);
    border-radius: 20px 20px 0 0;
    transform: perspective(800px) rotateX(20deg);
}

.holo-clipboard {
    width: 80px;
    height: 100px;
    border: 1px solid var(--accent);
    position: absolute;
    top: 20%;
    right: 20%;
    animation: float 3s ease-in-out infinite;
}

/* Brain/Thought */
.thought-holo .holo-brain {
    width: 150px;
    height: 120px;
    border: 2px solid var(--accent);
    border-radius: 50% 50% 40% 40%;
    opacity: 0.5;
    animation: pulse 2s infinite;
}

/* Magic */
.magic-holo .holo-sparkle {
    width: 20px;
    height: 20px;
    background: white;
    box-shadow: 0 0 20px white;
    border-radius: 50%;
    animation: orbit 3s linear infinite;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .giant-text {
        font-size: 18vw;
    }

    .hero-visual-container {
        width: 90vw;
        left: 50%;
        transform: translateX(-50%);
        top: 60%;
    }

    .split-layout {
        flex-direction: column;
        text-align: center;
    }

    .reverse {
        flex-direction: column;
    }

    .editorial-head {
        font-size: 14vw;
    }

    .editorial-body {
        font-size: 1.1rem;
    }
}

/* --- CTA REFACTOR --- */
.visual-block-center {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.cta-floating-btn {
    position: absolute;
    /* Positioned on the hand (Centered) */
    bottom: 27%;
    /* Lowered 3% per user request */
    left: 50%;
    transform: translateX(-50%);
    /* Perfectly centered, no rotation */
    margin-top: 0;
    z-index: 20;

    /* Bigger & Bold configuration */
    font-size: 1.5rem;
    white-space: nowrap;
    padding: 1.5rem 4rem;

    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
    /* White glow */
    background: white;
    /* Match 'Engineer My Solution' */
    color: black;
    border: none;
}

.cta-floating-btn:hover {
    transform: translateX(-50%) scale(1.1);
    /* Keep centered on hover */
    background: white;
    color: black;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.6);
}

.cta-text-group {
    position: relative;
    /* Back to normal flow */
    text-align: center;
    width: 100%;
    z-index: 30;
    margin-bottom: 15vh;
    /* Increased spacing to prevent overlap */
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, white, transparent);
    animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}