/* ==========================================================================
   Base & Reset (Deep Navy & Orange Theme)
   ========================================================================== */
:root {
    --bg-main: #0a0f1c;
    /* Deep Navy */
    --bg-surface: #111827;
    --bg-elevated: #1e293b;
    --primary: #FF5A00;
    /* Electric Orange */
    --primary-glow: rgba(255, 90, 0, 0.4);
    --secondary: #FF9B00;
    /* Amber */
    --accent: #00D2FF;
    /* Cyan for data */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition-snappy: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    font-family: var(--font-main);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-snappy);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-orange {
    color: var(--primary);
}

.text-cyan {
    color: var(--accent);
}

.title-lg {
    font-size: clamp(3rem, 5vw, 5.5rem);
}

.title-md {
    font-size: clamp(2rem, 3vw, 3.5rem);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-transform: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-snappy);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-snappy);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--primary-glow);
    background: var(--secondary);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   STRICT HEADER CONSISTENCY
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 9999;
    padding: 1.5rem 0;
    transition: padding 0.4s ease, background 0.4s ease;
}

.site-header.scrolled {
    padding: 0.8rem 0;
    background: rgba(10, 15, 28, 0.98);
    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);
    width: auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    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(--primary);
    transition: var(--transition-snappy);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   Animations & Scroll Reveals
   ========================================================================== */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.anim-stagger-container .anim-stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.anim-stagger-container.in-view .anim-stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Hero Section (Section 1)
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 90, 0, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* 3D Geometric Art in Hero */
.hero-art {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    z-index: 1;
    perspective: 1000px;
}

.geo-shape {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: rgba(255, 90, 0, 0.05);
    backdrop-filter: blur(5px);
    animation: floatShape 10s infinite linear;
    transform-style: preserve-3d;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-duration: 15s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    border-color: var(--accent);
    animation-duration: 12s;
    animation-direction: reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 40%;
    border-color: var(--secondary);
    animation-duration: 8s;
}

@keyframes floatShape {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0) translateZ(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg) translateZ(100px);
    }
}

/* ==========================================================================
   Trust Marquee (Section 2)
   ========================================================================== */
.trust-bar {
    padding: 2rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 0 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--text-light);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   About / Metrics (Section 3)
   ========================================================================== */
.about-section {
    padding: 8rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.metric-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-snappy);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.metric-card:hover {
    transform: translateY(-10px);
    background: var(--bg-elevated);
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-val {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 1rem;
}

.metric-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Services Grid (Section 4)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.srv-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 3rem;
    position: relative;
    transition: var(--transition-snappy);
    cursor: pointer;
}

.srv-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.srv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.srv-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.srv-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.srv-card:hover .srv-icon {
    animation: bounce 0.5s ease;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   ROI Calculator (Section 5)
   ========================================================================== */
.calc-section {
    padding: 8rem 0;
    background: var(--bg-main);
}

.calc-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.slider-container {
    margin-bottom: 2.5rem;
}

.slider-container label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.slider-val {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: var(--bg-elevated);
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
    box-shadow: 0 0 10px var(--primary);
}

.calc-output {
    background: var(--bg-elevated);
    padding: 3rem;
    border-left: 4px solid var(--primary);
    text-align: center;
}

.output-block {
    margin-bottom: 2rem;
}

.output-block:last-child {
    margin-bottom: 0;
}

.output-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.output-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.output-number.accent {
    color: var(--accent);
}

/* ==========================================================================
   Campaign Reports / CSS Charts (Section 6)
   ========================================================================== */
.reports-section {
    padding: 8rem 0;
    background: var(--bg-surface);
}

.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Donut Chart via CSS */
.donut-chart-container {
    display: flex;
    justify-content: center;
    position: relative;
}

.donut {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    /* Starting gradient, updated via JS */
    background: conic-gradient(var(--primary) 0% 0%, var(--bg-elevated) 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 1s ease;
}

.donut::before {
    content: '';
    width: 240px;
    height: 240px;
    background: var(--bg-surface);
    border-radius: 50%;
    position: absolute;
}

.donut-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.donut-percent {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
}

.donut-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.report-details h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.report-details p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.data-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.data-row:last-child {
    border: none;
}

.data-label {
    color: var(--text-light);
    font-weight: 600;
}

.data-val {
    color: var(--accent);
    font-weight: 800;
}

/* ==========================================================================
   Industries (Section 7)
   ========================================================================== */
.industries-section {
    padding: 8rem 0;
    background: var(--bg-main);
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ind-card {
    background: var(--bg-surface);
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-snappy);
}

.ind-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.ind-icon {
    font-size: 2rem;
    color: var(--primary);
}

.ind-name {
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* ==========================================================================
   Testimonials (Section 8)
   ========================================================================== */
.testimonials-section {
    padding: 8rem 0;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testi-card {
    background: var(--bg-elevated);
    padding: 3rem;
    border-left: 3px solid var(--primary);
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(255, 90, 0, 0.1);
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: serif;
    line-height: 1;
}

.testi-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.testi-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}

.testi-author span {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ==========================================================================
   CTA Section (Section 9)
   ========================================================================== */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    text-align: center;
    color: #fff;
    position: relative;
}

.cta-section h2 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
}

.cta-section .btn-primary {
    background: var(--bg-main);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-section .btn-primary::before {
    background: var(--bg-surface);
}

.cta-section .btn-primary:hover {
    color: var(--primary);
}

/* ==========================================================================
   STRICT FOOTER CONSISTENCY
   ========================================================================== */
.site-footer {
    background: #050810;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-container img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 320px;
    text-transform: none;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-links span {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-snappy);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Inner Pages (Contact & Legal)
   ========================================================================== */
.page-hero {
    padding: 12rem 0 6rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Contact Form */
.contact-section {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-item {
    margin-bottom: 2.5rem;
}

.contact-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: none;
}

.form-wrapper {
    background: var(--bg-surface);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 1.1rem;
    font-family: inherit;
    transition: var(--transition-snappy);
    outline: none;
}

.form-control:focus {
    border-bottom-color: var(--primary);
}

.form-label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease all;
    font-size: 1.1rem;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* Legal Pages Content */
.legal-section {
    padding: 6rem 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

.legal-content h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

.legal-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: none;
    line-height: 1.8;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {

    .metrics-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-wrapper,
    .reports-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-art {
        display: none;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-elevated);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 10000;
    }

    .metrics-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .calc-wrapper {
        padding: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}