/* ==========================================================================
   CSS Variables & Enterprise Light Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette - Enterprise Professional */
    --bg-main: #F4F5F7;
    /* Very soft cool gray */
    --bg-surface: #FFFFFF;
    --bg-header-footer: #0A0F1C;

    --primary: #0052FF;
    /* Trustworthy Enterprise Blue */
    --primary-hover: #0040D1;
    --secondary: #00C48C;
    /* Success/Growth Emerald */
    --accent: #FF5A5F;
    /* Coral accent for notifications/chat */

    /* Typography Colors */
    --text-dark: #0A0F1C;
    --text-body: #4A5568;
    --text-muted: #718096;
    --text-light: #FFFFFF;

    /* Structural Elements */
    --border-light: #E2E8F0;
    --border-dark: rgba(255, 255, 255, 0.1);

    /* Shadows - Very subtle and elegant */
    --shadow-sm: 0 2px 4px rgba(10, 15, 28, 0.04);
    --shadow-md: 0 12px 24px rgba(10, 15, 28, 0.06);
    --shadow-lg: 0 24px 48px rgba(10, 15, 28, 0.08);

    /* Typography Fonts */
    --font-heading: 'Playfair Display', serif;
    /* Elegant, authoritative */
    --font-body: 'Manrope', sans-serif;
    /* Clean, modern, technical */

    /* Layout & Animation */
    --max-width: 1440px;
    --nav-height: 90px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    --section-padding: 140px 5%;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==========================================================================
   Typography & Utility Classes
   ========================================================================== */
.section-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 4rem;
    font-weight: 400;
}

.text-primary {
    color: var(--primary);
}

.tagline {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--primary-hover);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn-primary:hover::after {
    height: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-light);
}

/* ==========================================================================
   Strict Master Header 
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-header-footer);
    border-bottom: 1px solid var(--border-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: var(--transition-slow);
}

.site-header.scrolled {
    height: 75px;
    background-color: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.logo img {
    height: 55px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    opacity: 0.8;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0;
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    opacity: 1;
    width: 100%;
    border-radius: 2px;
    height: 2px;
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* 3D Abstract Geometric Visuals */
.hero-visual {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.geo-shape {
    position: absolute;
    border-radius: 2px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--primary);
}

.geo-1 {
    width: 300px;
    height: 400px;
    top: 50px;
    right: 50px;
    animation: floatGeo 8s ease-in-out infinite;
    z-index: 2;
}

.geo-2 {
    width: 250px;
    height: 250px;
    bottom: 50px;
    left: 0;
    background: var(--bg-main);
    animation: floatGeo 10s ease-in-out infinite reverse;
    z-index: 1;
}

.geo-1::after {
    content: 'ROI +245%';
    font-size: 1.5rem;
}

.geo-2::after {
    content: 'CAC -40%';
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* ==========================================================================
   Trusted Partners Marquee
   ========================================================================== */
.partners {
    padding: 60px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.partner-logo {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 800;
    color: #CBD5E0;
    margin: 0 4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.partner-logo:hover {
    color: var(--text-dark);
}

/* ==========================================================================
   About / Consulting Philosophy
   ========================================================================== */
.about {
    padding: var(--section-padding);
    background-color: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-box {
    padding: 3rem 2rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ==========================================================================
   Services Architecture
   ========================================================================== */
.services {
    padding: var(--section-padding);
    background-color: var(--bg-main);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-surface);
    padding: 4rem 3rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary);
    transition: var(--transition-slow);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.service-card:hover::before {
    height: 100%;
}

.srv-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Live Campaign Analytics (CSS Charts)
   ========================================================================== */
.analytics {
    padding: var(--section-padding);
    background-color: var(--bg-surface);
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.chart-panel {
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

/* Beautiful CSS Bar Chart */
.css-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 250px;
    gap: 20px;
}

.bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}

.bar {
    width: 100%;
    background-color: var(--primary);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.chart-panel.active .bar {
    transform: scaleY(1);
}

.bar-label {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   Enterprise ROI Calculator
   ========================================================================== */
.calculator {
    padding: var(--section-padding);
    background-color: var(--bg-header-footer);
    color: var(--text-light);
    text-align: center;
}

.calc-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: #111827;
    /* Slightly lighter navy */
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 4rem;
    box-shadow: var(--shadow-lg);
}

.calc-wrapper h2,
.calc-wrapper .section-title {
    color: var(--text-light);
}

.calc-wrapper .section-subtitle {
    color: #9CA3AF;
    margin-inline: auto;
}

.slider-group {
    margin-bottom: 3rem;
    text-align: left;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.slider-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border-dark);
    border-radius: 3px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--text-light);
    border: 4px solid var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-top: 1px solid var(--border-dark);
    padding-top: 3rem;
}

.res-item h4 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.res-item p {
    color: #9CA3AF;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Industry Sectors
   ========================================================================== */
.industries {
    padding: var(--section-padding);
    background-color: var(--bg-main);
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ind-box {
    padding: 3rem 2rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    text-align: center;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.ind-box:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ind-box h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: inherit;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--bg-surface);
}

.test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.test-card {
    padding: 4rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--border-light);
    line-height: 1;
}

.test-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--border-light);
    border-radius: 50%;
}

/* ==========================================================================
   Contact & Live Chat Interface
   ========================================================================== */
.contact {
    padding: var(--section-padding);
    background-color: var(--bg-main);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.form-field {
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 18px 20px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
}

textarea.form-input {
    height: 160px;
    resize: vertical;
}

/* Elegant Chat Mockup */
.chat-app {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background-color: var(--bg-header-footer);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary);
}

.chat-window {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    background-color: #FAFAFA;
}

.msg {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.msg.agent {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    align-self: flex-start;
}

.msg.user {
    background-color: var(--primary);
    color: var(--text-light);
    align-self: flex-end;
}

/* ==========================================================================
   Legal Pages Specific Formatting
   ========================================================================== */
.legal-main {
    padding: calc(var(--nav-height) + 100px) 5% 100px;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    min-height: 80vh;
}

.legal-main h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.legal-main h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--primary);
    margin: 3rem 0 1rem;
}

.legal-main p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-body);
}

/* ==========================================================================
   Strict Master Footer (Deep Navy)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-header-footer);
    color: var(--text-light);
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 2rem;
    object-fit: contain;
}

.footer-brand p {
    color: #9CA3AF;
    max-width: 350px;
    font-size: 1rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: #9CA3AF;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Media Queries
   ========================================================================== */
@keyframes floatGeo {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Scroll Reveals */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {

    .hero-grid,
    .about-grid,
    .analytics-grid,
    .contact-layout,
    .test-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 400px;
        margin-top: 3rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-header-footer);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-slow);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .service-grid,
    .ind-grid,
    .calc-results,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .calc-wrapper {
        padding: 2rem;
    }
}