/* ==========================================================================
   CSS VARIABLES - LUXURY DARK & MINT THEME
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* Color Palette */
    --color-bg-base: #030303;
    /* Pitch Black */
    --color-bg-surface: #0F0F11;
    /* Dark Charcoal */
    --color-bg-card: #16161A;
    /* Slightly lighter card bg */
    --color-primary: #00E59B;
    /* Neon Mint (Represents Growth/ROI) */
    --color-primary-dim: rgba(0, 229, 155, 0.15);
    --color-accent: #8A2BE2;
    /* Deep Amethyst / Purple */

    /* Text Colors */
    --color-text-main: #FFFFFF;
    --color-text-muted: #A1A1AA;
    --color-text-dark: #000000;

    /* Borders & Lines */
    --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
    --border-glow: 1px solid rgba(0, 229, 155, 0.4);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Layout & Effects */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-neon: 0 0 20px rgba(0, 229, 155, 0.2);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.8);
    --container-max: 1300px;
    --header-height: 90px;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.highlight {
    color: var(--color-primary);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border: none;
    box-shadow: 0 0 15px rgba(0, 229, 155, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 229, 155, 0.6);
    transform: translateY(-3px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-dim);
}

/* ==========================================================================
   GLOBAL HEADER & FOOTER (STRICTLY CONSISTENT)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(3, 3, 3, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-subtle);
    z-index: 9999;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 70px;
    background-color: rgba(3, 3, 3, 0.98);
    box-shadow: var(--shadow-deep);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 55px;
    filter: brightness(0) invert(1);
    transition: transform var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--color-text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.site-footer {
    background-color: var(--color-bg-surface);
    border-top: var(--border-subtle);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-nav a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: var(--border-subtle);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   HERO SECTION (Geometric & Glowing)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Glowing Orb Animation */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-orb {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(0, 229, 155, 0) 70%);
    filter: blur(40px);
    animation: pulseOrb 4s infinite alternate ease-in-out;
    position: absolute;
}

.glass-panel-3d {
    width: 350px;
    height: 450px;
    background: rgba(22, 22, 26, 0.4);
    backdrop-filter: blur(15px);
    border: var(--border-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
    z-index: 2;
    padding: 2rem;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panel-metric {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    transform: translateZ(30px);
}

.panel-metric h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.client-marquee {
    padding: 3rem 0;
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
    background: var(--color-bg-surface);
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 20s linear infinite;
    gap: 4rem;
    align-items: center;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.4;
    transition: opacity var(--transition-fast), color var(--transition-fast);
}

.marquee-text:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* ==========================================================================
   SERVICES (Grid with Neon Hover)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background: var(--color-bg-base);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-card);
    border: var(--border-subtle);
    padding: 3rem 2rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, var(--color-primary-dim), transparent);
    transition: height 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-neon);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
}

/* ==========================================================================
   PERFORMANCE ANALYTICS (CSS Charts)
   ========================================================================== */
.analytics-section {
    padding: 8rem 0;
    background: var(--color-bg-surface);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.chart-box {
    background: var(--color-bg-card);
    border: var(--border-subtle);
    border-radius: 12px;
    padding: 3rem;
    height: 400px;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    position: relative;
}

.chart-bar-container {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.css-bar {
    width: 100%;
    background: var(--color-primary);
    border-radius: 4px 4px 0 0;
    position: relative;
    transform-origin: bottom;
    opacity: 0;
}

.css-bar.animate {
    animation: growBar 1.2s ease-out forwards;
}

.css-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
}

.chart-label {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
}

/* ==========================================================================
   ROI CALCULATOR (Interactive Custom Slider)
   ========================================================================== */
.roi-section {
    padding: 8rem 0;
    background: var(--color-bg-base);
    text-align: center;
}

.roi-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: var(--border-subtle);
    padding: 4rem;
    border-radius: 12px;
    box-shadow: var(--shadow-deep);
}

.roi-slider-wrap {
    margin: 3rem 0;
    text-align: left;
}

.roi-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.budget-val {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    margin-top: -9px;
    box-shadow: var(--shadow-neon);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.roi-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: var(--border-subtle);
}

.result-box h4 {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.result-box .huge-number {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: var(--shadow-neon);
}

/* ==========================================================================
   INDUSTRIES (Hover Reveal Cards)
   ========================================================================== */
.industries-section {
    padding: 8rem 0;
    background: var(--color-bg-surface);
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ind-card {
    height: 300px;
    background: var(--color-bg-base);
    border: var(--border-subtle);
    border-radius: 8px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ind-card .ind-content {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.ind-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.ind-card p {
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.ind-card:hover .ind-content {
    transform: translateY(-20px);
}

.ind-card:hover h3 {
    color: var(--color-primary);
}

.ind-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   TESTIMONIALS (Oversized Quotes)
   ========================================================================== */
.testimonials-section {
    padding: 8rem 0;
    background: var(--color-bg-base);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.testi-card {
    background: var(--color-bg-card);
    padding: 3rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    position: relative;
}

.quote-mark {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 6rem;
    font-family: serif;
    color: rgba(138, 43, 226, 0.1);
    line-height: 1;
}

.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.client-info h4 {
    margin-bottom: 0.2rem;
}

.client-info span {
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process-section {
    padding: 8rem 0;
    background: var(--color-bg-surface);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.time-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
}

.time-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: var(--shadow-neon);
}

.time-step h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   CONTACT / CTA SPLIT SECTION
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background: var(--color-bg-base);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--color-bg-card);
    border: var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    background: var(--color-bg-base);
    border: var(--border-subtle);
    padding: 1.2rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary);
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    cursor: pointer;
    box-shadow: var(--shadow-neon);
    z-index: 999;
    transition: transform 0.3s;
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--color-bg-card);
    border: var(--border-glow);
    border-radius: 8px;
    z-index: 998;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-head {
    background: #000;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border-subtle);
}

.chat-body {
    padding: 1.5rem;
    height: 250px;
    overflow-y: auto;
}

.msg-bubble {
    background: #222;
    padding: 0.8rem;
    border-radius: 8px 8px 8px 0;
    font-size: 0.9rem;
}

.chat-foot {
    padding: 1rem;
    border-top: var(--border-subtle);
    display: flex;
}

.chat-foot input {
    flex: 1;
    background: #000;
    border: var(--border-subtle);
    color: #fff;
    padding: 0.8rem;
    outline: none;
}

/* ==========================================================================
   LEGAL PAGES
   ========================================================================== */
.legal-header {
    padding: 150px 0 80px;
    text-align: center;
    background: var(--color-bg-surface);
    border-bottom: var(--border-subtle);
}

.legal-main {
    padding: 6rem 0;
    background: var(--color-bg-base);
}

.legal-content {
    background: var(--color-bg-card);
    padding: 4rem;
    border: var(--border-subtle);
    border-radius: 8px;
}

.legal-content h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 2.5rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: square;
    color: var(--color-text-muted);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulseOrb {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes growBar {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-grid,
    .analytics-grid,
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--color-bg-base);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .ind-grid {
        grid-template-columns: 1fr;
    }

    .roi-results {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        padding: 2rem;
    }
}