/* ==========================================================================
   Awwwards-Level Digital Marketing Theme - styles.css
   ========================================================================== */
:root {
    --clr-bg: #050507;
    --clr-surface: #0e0e12;
    --clr-surface-light: #1a1a24;
    --clr-primary: #0055ff;
    --clr-primary-glow: rgba(0, 85, 255, 0.4);
    --clr-secondary: #00d4ff;
    --clr-text: #ffffff;
    --clr-text-muted: #8a8a9d;
    --clr-border: #222230;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Syncopate', sans-serif;
    /* Implies a highly modern geometric look */

    /* Fluid Typography Clamps */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    --text-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --text-mega: clamp(3rem, 5vw + 3rem, 8rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-fast: 0.3s ease;
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--clr-bg);
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom Cursor */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--clr-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear, width 0.3s, height 0.3s;
}

body.hovering .cursor {
    width: 0;
    height: 0;
}

body.hovering .cursor-follower {
    width: 80px;
    height: 80px;
    background: var(--clr-primary-glow);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Typography & Utilities */
.font-display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-mega {
    font-size: var(--text-mega);
    line-height: 0.9;
    font-weight: 800;
}

.text-2xl {
    font-size: var(--text-2xl);
    line-height: 1.1;
    font-weight: 700;
}

.text-xl {
    font-size: var(--text-xl);
    font-weight: 600;
}

.text-muted {
    color: var(--clr-text-muted);
}

.text-gradient {
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

/* Buttons (Magnetic style via JS) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--clr-primary), var(--clr-secondary));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-solid {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* Reveal Animations */
.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s var(--ease-out-expo), opacity 1s var(--ease-out-expo);
}

.reveal-text.active span {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference;
    transition: padding 0.5s ease, background 0.5s ease;
}

.site-header.scrolled {
    padding: 1rem 5vw;
    mix-blend-mode: normal;
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--clr-border);
}

.logo img {
    height: 55px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--clr-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Index / Home Page Sections
   ========================================================================== */
/* 1. Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--clr-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-cta {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* 2. Marquee */
.marquee-section {
    padding: 2rem 0;
    background: var(--clr-primary);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
    transform: rotate(-2deg) scale(1.05);
    z-index: 2;
    position: relative;
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    padding: 0 2rem;
    color: #000;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. About / Value Prop */
.about {
    background: var(--clr-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stat {
    font-size: var(--text-mega);
    color: var(--clr-surface-light);
    -webkit-text-stroke: 2px var(--clr-primary);
    position: relative;
}

.about-stat span {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    font-size: var(--text-lg);
    color: var(--clr-text);
    -webkit-text-stroke: 0;
}

/* 4. Services (3D Hover Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    perspective: 1000px;
}

.service-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 3rem 2rem;
    border-radius: 1rem;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 85, 255, 0.1);
    border-color: var(--clr-primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--clr-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transform: translateZ(30px);
}

.service-icon svg {
    width: 30px;
    fill: var(--clr-secondary);
}

.service-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    transform: translateZ(40px);
}

.service-card p {
    color: var(--clr-text-muted);
    transform: translateZ(20px);
}

/* 5. Industry Focus (Sticky) */
.industry {
    position: relative;
}

.industry-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.industry-sticky {
    position: sticky;
    top: 20vh;
    width: 40%;
}

.industry-list {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.industry-item {
    background: var(--clr-surface);
    padding: 3rem;
    border-radius: 1rem;
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-left: 5px solid transparent;
}

.industry-item.active {
    opacity: 1;
    transform: scale(1.02);
    border-left-color: var(--clr-primary);
}

/* 6. Service Calculator */
.calculator {
    background: var(--clr-surface);
    border-radius: 2rem;
    padding: 4rem;
    margin: var(--space-xl) auto;
    max-width: 1200px;
    border: 1px solid var(--clr-border);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.calc-input-group {
    margin-bottom: 2rem;
}

.calc-input-group label {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--clr-secondary);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 0 10px var(--clr-secondary);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--clr-border);
    border-radius: 2px;
}

.calc-results {
    background: var(--clr-bg);
    padding: 3rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--clr-primary-glow);
}

.calc-result-item {
    margin-bottom: 2rem;
}

.calc-result-item span {
    display: block;
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.calc-result-item strong {
    font-size: var(--text-2xl);
    font-family: var(--font-display);
    color: var(--clr-secondary);
}

/* 7. Sample Reports (Interactive Tabs) */
.reports-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.tab-btn {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--clr-text);
    cursor: none;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.chart-mockup {
    height: 300px;
    background: repeating-linear-gradient(0deg, transparent, transparent 49px, var(--clr-border) 50px), linear-gradient(180deg, var(--clr-surface-light) 0%, var(--clr-bg) 100%);
    position: relative;
    border-bottom: 2px solid var(--clr-text);
    border-left: 2px solid var(--clr-text);
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 2rem;
}

.chart-bar {
    width: 10%;
    background: linear-gradient(0deg, var(--clr-primary), var(--clr-secondary));
    border-radius: 5px 5px 0 0;
    animation: growUp 1s var(--ease-out-expo) forwards;
    transform-origin: bottom;
    opacity: 0;
}

@keyframes growUp {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* 8. Testimonials */
.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testi-card {
    min-width: 400px;
    background: var(--clr-surface);
    padding: 3rem;
    border-radius: 1rem;
    scroll-snap-align: center;
    border: 1px solid var(--clr-border);
}

.testi-text {
    font-size: var(--text-lg);
    font-style: italic;
    margin-bottom: 2rem;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testi-avatar {
    width: 50px;
    height: 50px;
    background: var(--clr-border);
    border-radius: 50%;
}

/* 9. Contact Section (Lead Gen) */
.contact-section {
    background: linear-gradient(to bottom, var(--clr-bg), var(--clr-surface));
}

.contact-form-wrap {
    background: var(--clr-bg);
    padding: 4rem;
    border-radius: 2rem;
    border: 1px solid var(--clr-border);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0;
    color: var(--clr-text);
    font-size: var(--text-base);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-secondary);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--clr-text-muted);
    transition: 0.3s var(--ease-out-expo);
    pointer-events: none;
}

.form-input:focus~.form-label,
.form-input:valid~.form-label {
    top: -1rem;
    font-size: var(--text-xs);
    color: var(--clr-secondary);
}

/* 10. Live Chat Widget */
.live-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px var(--clr-primary-glow);
    cursor: none;
    transition: transform 0.3s;
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-btn svg {
    width: 30px;
    fill: white;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 1rem;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: 0.3s var(--ease-out-expo);
}

.live-chat.open .chat-window {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ==========================================================================
   Strict Global Footer
   ========================================================================== */
.site-footer {
    background: var(--clr-surface-light);
    padding: var(--space-xl) 0 2rem;
    border-top: 1px solid var(--clr-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    color: var(--clr-text-muted);
    max-width: 300px;
}

.footer-title {
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--clr-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: var(--text-sm);
}

/* ==========================================================================
   Legal Pages Specific Styling
   ========================================================================== */
.page-header {
    padding: 15vh 0 5vh;
    text-align: center;
    background: linear-gradient(180deg, var(--clr-surface), var(--clr-bg));
    border-bottom: 1px solid var(--clr-border);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) 0;
}

.legal-content h2 {
    font-size: var(--text-xl);
    margin: 2rem 0 1rem;
    color: var(--clr-secondary);
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
    font-size: var(--text-base);
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

/* Media Queries */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .industry-wrapper {
        flex-direction: column;
    }

    .industry-sticky,
    .industry-list {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for code length, normally a hamburger */
    .about-grid,
    .calc-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .text-mega {
        font-size: 3rem;
    }

    .contact-form-wrap {
        padding: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}