/* ==========================================================================
   Base Variables & Theme Reset (Midnight, Emerald, Indigo)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800&family=Manrope:wght@400;700;800&display=swap');

:root {
    --bg-midnight: #030712;
    --bg-panel: #0f172a;
    --bg-glass: rgba(15, 23, 42, 0.6);
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.4);
    --indigo: #6366f1;
    --indigo-glow: rgba(99, 102, 241, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-base: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-midnight);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Deep Tech Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Glow Blobs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.glow-1 {
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--indigo);
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--emerald);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography & Core Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-emerald {
    color: var(--emerald);
}

.text-indigo {
    color: var(--indigo);
}

.text-gradient {
    background: linear-gradient(135deg, var(--emerald), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-xl {
    font-size: clamp(3rem, 5vw, 5.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.title-lg {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.subtitle.center {
    margin: 0 auto 4rem;
}

/* Futuristic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--emerald), #059669);
    color: #fff;
    box-shadow: 0 10px 25px var(--emerald-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--emerald-glow);
}

.btn-outline {
    background: var(--bg-glass);
    color: #fff;
    border-color: var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--indigo);
    box-shadow: 0 0 20px var(--indigo-glow);
    color: var(--indigo);
}

/* ==========================================================================
   STRICT HEADER CONSISTENCY (DO NOT ALTER)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: var(--transition-base);
    box-shadow: 0 0 8px var(--emerald);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--emerald);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   Global Animations
   ========================================================================== */
.anim-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anim-up.active {
    opacity: 1;
    transform: translateY(0);
}

.anim-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anim-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* ==========================================================================
   Index Section 1: Hero & Isometric 3D Data Core
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--indigo);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-label .dot {
    width: 8px;
    height: 8px;
    background: var(--indigo);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--indigo);
    animation: pulse 2s infinite;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Isometric CSS 3D Art */
.hero-3d {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.iso-core {
    position: relative;
    width: 200px;
    height: 200px;
    transform: rotateX(60deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    animation: floatIso 6s ease-in-out infinite;
}

.iso-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--emerald);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.2);
    transition: all 0.5s;
}

.iso-layer:nth-child(1) {
    transform: translateZ(0px);
    border-color: var(--indigo);
    background: rgba(99, 102, 241, 0.1);
}

.iso-layer:nth-child(2) {
    transform: translateZ(50px);
}

.iso-layer:nth-child(3) {
    transform: translateZ(100px);
    border-color: var(--emerald);
    box-shadow: 0 0 30px var(--emerald-glow), inset 0 0 30px var(--emerald-glow);
}

.iso-data-line {
    position: absolute;
    width: 2px;
    height: 150px;
    background: linear-gradient(to top, transparent, var(--emerald), transparent);
    top: -50px;
    left: 50%;
    transform: translateX(-50%) rotateX(-90deg);
    animation: dataFlow 2s linear infinite;
}

@keyframes floatIso {

    0%,
    100% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(0);
    }

    50% {
        transform: rotateX(60deg) rotateZ(-45deg) translateZ(30px);
    }
}

@keyframes dataFlow {
    0% {
        transform: translateX(-50%) rotateX(-90deg) translateY(100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) rotateX(-90deg) translateY(-100%);
        opacity: 0;
    }
}

/* ==========================================================================
   Index Section 2: Marquee
   ========================================================================== */
.marquee-wrapper {
    padding: 3rem 0;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    display: flex;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: slideMarquee 25s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    transition: 0.3s;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--text-main);
}

@keyframes slideMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   Index Section 3: About / Counter Metrics
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    padding: 2.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: var(--transition-bounce);
}

.stat-box:hover {
    transform: translateY(-10px);
    border-color: var(--emerald);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ==========================================================================
   Index Section 4: Services (Mouse Tracking Glow Cards)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background: var(--bg-panel);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.srv-card {
    background: var(--bg-midnight);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1;
}

.srv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(16, 185, 129, 0.1), transparent 40%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.srv-card:hover::before {
    opacity: 1;
}

.srv-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-5px);
}

.srv-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--indigo);
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.srv-card:hover .srv-icon {
    background: var(--indigo);
    color: #fff;
    box-shadow: 0 0 20px var(--indigo-glow);
}

.srv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.srv-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Index Section 5: ROI Calculator
   ========================================================================== */
.calculator-section {
    padding: 8rem 0;
}

.calc-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.range-group {
    margin-bottom: 3rem;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.range-val {
    color: var(--emerald);
    font-size: 1.2rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background: var(--emerald);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -9px;
    box-shadow: 0 0 15px var(--emerald);
    border: 2px solid var(--bg-midnight);
}

.calc-results {
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-results::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--indigo));
}

.res-item {
    margin-bottom: 2.5rem;
}

.res-item:last-child {
    margin-bottom: 0;
}

.res-lbl {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.res-val {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    line-height: 1;
}

.res-val.highlight {
    color: var(--emerald);
    text-shadow: 0 0 20px var(--emerald-glow);
}

/* ==========================================================================
   Index Section 6: Data Reports (CSS Animated Charts)
   ========================================================================== */
.reports-section {
    padding: 8rem 0;
    background: var(--bg-panel);
}

.chart-box {
    background: var(--bg-midnight);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
}

.css-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 250px;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.c-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    height: 100%;
    justify-content: flex-end;
}

.c-bar {
    width: 100%;
    background: linear-gradient(to top, var(--indigo), var(--emerald));
    border-radius: 6px 6px 0 0;
    transition: height 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.c-bar::before {
    content: attr(data-val);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.c-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ==========================================================================
   Index Section 7: Industries Matrix
   ========================================================================== */
.industries-section {
    padding: 8rem 0;
}

.ind-matrix {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.ind-cell {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: 0.3s;
}

.ind-cell:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--indigo);
    transform: scale(1.05);
}

.ind-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ind-cell h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Index Section 8: Testimonials
   ========================================================================== */
.testi-section {
    padding: 8rem 0;
    background: var(--bg-panel);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testi-card {
    background: var(--bg-midnight);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    position: relative;
}

.testi-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 5rem;
    font-family: serif;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.testi-txt {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testi-author h5 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.testi-author span {
    font-size: 0.85rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Index Section 9: CTA
   ========================================================================== */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--indigo);
    border-radius: 24px;
    padding: 5rem 3rem;
    box-shadow: 0 0 50px var(--indigo-glow);
}

.cta-box h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.cta-input {
    width: 350px;
    padding: 1rem 1.5rem;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.cta-input:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 15px var(--emerald-glow);
}

/* ==========================================================================
   STRICT FOOTER CONSISTENCY (DO NOT ALTER)
   ========================================================================== */
.site-footer {
    background: #02040a;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-links span {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--emerald);
    padding-left: 5px;
    text-shadow: 0 0 8px var(--emerald-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Inner Pages (Contact & Legal)
   ========================================================================== */
.page-hero {
    padding: 12rem 0 6rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
}

/* Contact Form */
.contact-section {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.c-info-box {
    margin-bottom: 3rem;
}

.c-info-box h4 {
    color: var(--indigo);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.c-info-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.tech-form {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-control {
    width: 100%;
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: #fff;
    padding: 1.2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 15px var(--emerald-glow);
}

.form-label {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease all;
    background: transparent;
    padding: 0 0.5rem;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--emerald);
    background: var(--bg-midnight);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Legal Content */
.legal-wrapper {
    padding: 6rem 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.legal-content h2 {
    color: #fff;
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    border-left: 4px solid var(--emerald);
    padding-left: 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-grid,
    .about-grid,
    .calc-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-3d {
        height: 400px;
    }

    .services-grid,
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ind-matrix {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .services-grid,
    .testi-grid,
    .ind-matrix,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .calc-wrapper,
    .tech-form {
        padding: 2rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-input {
        width: 100%;
    }

    .css-chart {
        overflow-x: auto;
        gap: 2rem;
        justify-content: flex-start;
    }
}