/* =========================================
   NEW ABOUT PAGE STYLES (Immersive 3D)
========================================= */

/* Highlight Text (Neon Accent) */
.highlight-text {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(189, 224, 56, 0.4);
}

/* 1️⃣ HERO SECTION - CINEMATIC 3D */
.cinematic-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #000;
    padding-top: 100px;
}

/* Layer 1: Background Array */
.hero-bg-layer {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out, transform 0.5s ease-out;
    /* Slow crossfade, reactive transform */
    z-index: 1;
}

#bg-ny {
    background: radial-gradient(circle at bottom right, rgba(189, 224, 56, 0.2), transparent 60%), linear-gradient(to bottom, #050505, #111);
}

#bg-nj {
    background: radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.15), transparent 60%), linear-gradient(to bottom, #0a0a0a, #151515);
}

#bg-ct {
    background: radial-gradient(circle at top right, rgba(0, 255, 204, 0.1), transparent 60%), linear-gradient(to bottom, #080808, #1a1a1a);
}

/* Layer 2: Texture Grid */
.hero-texture-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Layer 3: Kinetic Text Overlay */
.hero-kinetic-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.04;
}

.kinetic-track {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
    font-size: 15rem;
    font-weight: 900;
    color: #fff;
    animation: kineticScroll 60s linear infinite;
}

@keyframes kineticScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Layer 4: Interactive Front Layer */
.hero-front-layer {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 5%;
}

.cinematic-headline {
    font-size: 7rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    perspective: 1000px;
    /* For 3D word rotation */
}

.static-text {
    color: var(--light);
}

.animated-word-container {
    display: inline-block;
    position: relative;
    height: 1.1em;
    width: 100%;
    color: var(--primary);
    text-shadow: 0 10px 30px rgba(189, 224, 56, 0.4);
    vertical-align: top;
}

.anim-word {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform-origin: 50% 100%;
    transform: rotateX(-90deg) translateY(50px) translateZ(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: blur(10px);
}

.anim-word.active {
    opacity: 1;
    transform: rotateX(0deg) translateY(0) translateZ(0);
    filter: blur(0px);
}

.anim-word.out {
    opacity: 0;
    transform: rotateX(90deg) translateY(-50px) translateZ(-50px);
    filter: blur(10px);
}

.cinematic-subtext {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.glass-cta-panel {
    display: inline-flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Animated Border Button */
.animated-border-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    /* White text as requested */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    background: #111;
    /* Dark background to make white text readable */
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.animated-border-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--primary), #00ffcc, var(--primary));
    background-size: 200% 200%;
    z-index: -2;
    border-radius: 52px;
    animation: borderGradientLoop 3s linear infinite;
}

.animated-border-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #111;
    z-index: -1;
    border-radius: 48px;
    transition: all 0.3s ease;
}

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

    100% {
        background-position: 200% 50%;
    }
}

.animated-border-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(189, 224, 56, 0.4);
}

.animated-border-btn:hover::after {
    background: transparent;
}

.animated-border-btn:hover .tilt-card-inner {
    color: var(--dark);
    /* Switch text color on hover if needed, or keep white */
}


/* 2️⃣ WHO WE ARE – SPLIT 3D PANEL */
.who-we-are {
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-counters {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-box {
    flex: 1;
    background: rgba(42, 42, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-box h4 {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #ccc;
    font-weight: 500;
}

.split-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wireframe Globe Animation */
.wireframe-globe {
    position: absolute;
    width: 400px;
    height: 400px;
    perspective: 1000px;
    z-index: 1;
    opacity: 0.3;
}

.globe-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
    border-radius: 50%;
}

.ring-1 {
    animation: spin 20s linear infinite;
    transform: rotateX(60deg) rotateY(0deg);
}

.ring-2 {
    animation: spin 25s linear infinite reverse;
    transform: rotateX(60deg) rotateY(60deg);
}

.ring-3 {
    animation: spin 22s linear infinite;
    transform: rotateX(60deg) rotateY(120deg);
}

@keyframes spin {
    100% {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

/* Floating Code Card */
.floating-content-card {
    position: relative;
    z-index: 2;
    width: 80%;
    padding: 0;
    /* Let inner card handle padding */
    background: transparent;
    border: none;
}

.glow-edge {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(189, 224, 56, 0.3);
    box-shadow: 0 0 30px rgba(189, 224, 56, 0.15), inset 0 0 20px rgba(189, 224, 56, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
}

.code-snippet {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ddd;
}

.code-comment {
    color: #666;
}

.code-keyword {
    color: var(--primary);
}

.code-string {
    color: var(--accent);
}

.code-boolean {
    color: #ff9d00;
}


/* 3️⃣ OUR PHILOSOPHY – PARALLAX TEXT STRIP */
.philosophy-section {
    padding: 6rem 0;
    background: var(--primary);
    color: var(--dark);
    overflow: hidden;
    position: relative;
}

.philosophy-header {
    padding: 0 5%;
    margin-bottom: 3rem;
}

.philosophy-header h2 {
    font-size: 3.5rem;
    color: var(--dark);
}

.philosophy-header span {
    color: #fff;
}

.scrolling-text-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: #111;
    color: var(--primary);
    padding: 1.5rem 0;
    transform: rotate(-2deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.scrolling-text-track {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.scrolling-text-track span {
    display: inline-block;
    padding-right: 2rem;
}

/* JS will handle horizontal scroll based on vertical scroll, but here's a fallback animation */
@keyframes continuousScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.scrolling-text-track.no-js {
    animation: continuousScroll 30s linear infinite;
}


/* 4️⃣ WHAT MAKES US DIFFERENT – 3D STACKED CARDS */
.different-section {
    background: #161616;
    padding-bottom: 12rem;
}

.stacked-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -50px;
    /* Negative gap to overlap slightly */
    margin-top: 4rem;
    perspective: 1500px;
}

.stack-card {
    width: 90%;
    max-width: 800px;
    background: #222;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: -80px;
    /* Overlap cards */
    position: relative;
    z-index: 1;
}

/* Will be controlled via JS IntersectionObserver to 'unstack' or highlight */
.stack-card.active-stack {
    transform: scale(1.02) translateY(-20px) translateZ(50px);
    z-index: 10;
    border-color: rgba(189, 224, 56, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(189, 224, 56, 0.1);
}

.stack-card:hover {
    border-color: var(--primary);
}

.stack-card .tilt-card-inner {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stack-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1;
}

.stack-card h3 {
    font-size: 2rem;
    color: var(--light);
    max-width: 80%;
}

.stack-card p {
    color: #aaa;
    font-size: 1.1rem;
    max-width: 70%;
}


/* 5️⃣ AUTOMATION + MARKETING SECTION – DEPTH GRID */
.automation-section {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
    padding: 10rem 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(189, 224, 56, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(189, 224, 56, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    transform-origin: top;
    opacity: 0.5;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.automation-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.automation-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.automation-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-inline: auto;
}

.automation-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.auto-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.icon-pulse-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(189, 224, 56, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.icon-pulse-wrapper::before,
.icon-pulse-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 1px solid var(--primary);
    opacity: 0;
    animation: pulseIcon 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.icon-pulse-wrapper::after {
    animation-delay: 1.5s;
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.auto-icon-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--light);
    letter-spacing: 0.5px;
}

/* Light beams */
.light-beam {
    position: absolute;
    top: -20%;
    width: 200px;
    height: 140%;
    background: linear-gradient(90deg, transparent, rgba(189, 224, 56, 0.05), transparent);
    transform: rotate(30deg);
    z-index: 1;
    pointer-events: none;
}

.beam-left {
    left: 10%;
}

.beam-right {
    right: 20%;
    transform: rotate(-30deg);
}


/* 6️⃣ CORE VALUES – INTERACTIVE ICON GRID */
.core-values-section {
    background: var(--bg-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.glass-card {
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.glass-card .tilt-card-inner {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    height: 100%;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.glass-card h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 1rem;
}

.value-desc {
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-card p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
}

.glass-card:hover {
    border-color: rgba(189, 224, 56, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(189, 224, 56, 0.05);
}


/* 7️⃣ CLOSING CTA – IMMERSIVE GROWTH MOMENT */
.immersive-cta {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #050505;
}

.gradient-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vw;
    background: radial-gradient(circle, rgba(189, 224, 56, 0.15) 0%, transparent 60%);
    z-index: 1;
    animation: wavePulse 8s ease-in-out infinite alternate;
}

@keyframes wavePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.4;
    /* Simple placeholder for requested particles if JS isn't used */
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: 0 0;
    animation: spaceMove 30s linear infinite;
}

@keyframes spaceMove {
    100% {
        background-position: -100px -100px;
    }
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.massive-typography {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.glow-text {
    color: var(--primary);
    text-shadow: 0 0 30px rgba(189, 224, 56, 0.4);
}

.cta-subtext {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 4rem;
}

.massive-btn {
    font-size: 1.3rem;
    padding: 1.5rem 4rem;
    background: var(--card-bg);
    /* Use dark bg with primary glow */
    color: var(--primary);
    border: 2px solid var(--primary);
}

.massive-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

/* --- NEW ADDITIONS FOR ITERATION 2 --- */

/* Animated Map (Who We Are) */
.animated-map {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 1;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg {
    filter: drop-shadow(0 0 15px rgba(189, 224, 56, 0.2));
}

.map-pulse {
    animation: locationPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.delay-1 {
    animation-delay: 0.6s;
}

.delay-2 {
    animation-delay: 1.2s;
}

@keyframes locationPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
        stroke: rgba(189, 224, 56, 1);
        stroke-width: 0;
    }

    50% {
        stroke: rgba(189, 224, 56, 0.5);
        stroke-width: 15px;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
        stroke-width: 30px;
    }
}

/* Local Expertise Parallax Strip */
.local-expertise-section {
    position: relative;
    padding: 8rem 5%;
    overflow: hidden;
    background: #0f0f0f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skyline-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    /* Abstract skyline representation using gradients as placeholder */
    background:
        linear-gradient(to top, #0f0f0f 20%, transparent),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 50px, transparent 50px, transparent 100px);
    z-index: 1;
    opacity: 0.5;
}

.local-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.local-content h2 {
    margin-bottom: 2rem;
    font-size: 3rem;
}

.local-content p {
    color: #ccc;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.local-pins-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.pin-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
}

.pulse-pin {
    display: inline-block;
    animation: floatPin 3s ease-in-out infinite alternate;
}

@keyframes floatPin {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 5px var(--primary));
    }

    100% {
        transform: translateY(-10px);
        filter: drop-shadow(0 10px 15px var(--primary));
    }
}

/* EEAT Depth Grid */
.eeat-section {
    position: relative;
    padding: 8rem 5%;
    background: #111;
    overflow: hidden;
}

.eeat-bg-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(45deg);
    z-index: 1;
}

.eeat-section .section-header,
.eeat-grid {
    position: relative;
    z-index: 2;
}

.eeat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.eeat-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2rem;
}

.eeat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.eeat-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.eeat-card p {
    color: #aaa;
    line-height: 1.6;
}

/* Form CTA Section */
.form-cta-section {
    position: relative;
    padding: 10rem 5%;
    overflow: hidden;
    background: #050505;
    display: flex;
    justify-content: center;
}

.form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
}

.form-glass-panel {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(189, 224, 56, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(189, 224, 56, 0.05);
    border-radius: 30px;
    padding: 4rem;
}

.form-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-header p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.growth-form {
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}

/* Float label interactions */
.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: rgba(189, 224, 56, 0.05);
    box-shadow: 0 0 15px rgba(189, 224, 56, 0.1);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -0.6rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    background: #191919;
    padding: 0 0.4rem;
    border-radius: 4px;
}

.input-group select {
    appearance: none;
    cursor: pointer;
    color: #888;
}

.input-group select:focus {
    border-color: var(--primary);
    color: var(--light);
}

.submit-btn {
    margin-top: 3rem;
    width: 100%;
    cursor: pointer;
}

.trust-microcopy {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive adjustments for new sections */
@media (max-width: 1024px) {
    .cinematic-headline {
        font-size: 5rem;
    }


    .massive-typography {
        font-size: 4rem;
    }

    .automation-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .split-visual {
        height: 400px;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .cinematic-headline {
        font-size: 3.5rem;
    }

    .animated-word-container {
        height: 1.2em;
    }

    .glass-cta-panel {
        flex-direction: column;
        border-radius: 30px;
        padding: 1rem;
    }

    .massive-typography {
        font-size: 3rem;
    }

    .split-section {
        flex-direction: column;
        gap: 3rem;
    }

    .stat-counters {
        flex-direction: column;
    }

    .philosophy-header h2 {
        font-size: 2.5rem;
    }

    .scrolling-text-track {
        font-size: 1.8rem;
    }

    .automation-icons-grid {
        grid-template-columns: 1fr;
    }

    .stack-card h3 {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .stack-card p {
        max-width: 100%;
    }
}