/* ==========================================================================
   CSS RESET & CORE VARIABLES
   ========================================================================== */
:root {
    /* Color Palette: Neon Glassmorphism */
    --bg-base: #07030D;
    --bg-surface: #130922;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    --accent-primary: #FF3366;
    --accent-secondary: #7C3AED;
    --accent-tertiary: #00F0FF;
    --accent-success: #10B981;

    --text-main: #FFFFFF;
    --text-muted: #A09DB0;
    --text-dark: #000000;

    --border-glass: 1px solid rgba(255, 255, 255, 0.05);
    --border-glow: 1px solid rgba(255, 51, 102, 0.3);

    /* Typography */
    --font-display: 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout & Spacing */
    --container-width: 1320px;
    --section-pad-y: 8rem;
    --section-pad-x: 2rem;

    /* Shadows & Transitions */
    --shadow-neon: 0 0 40px rgba(255, 51, 102, 0.2);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-snappy: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    /* Custom cursor */
}

/* Background Ambient Glows */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    top: -200px;
    left: -200px;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-secondary);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-alt {
    background: linear-gradient(to right, var(--accent-tertiary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--section-pad-x);
    position: relative;
}

.section {
    padding: var(--section-pad-y) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: 24px;
    box-shadow: var(--shadow-glass);
}

/* ==========================================================================
   BUTTONS & MAGNETIC EFFECTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: none;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--accent-primary);
    box-shadow: inset 0 0 0 0 var(--accent-primary);
}

.btn-neon:hover {
    box-shadow: inset 0 0 20px 0 var(--accent-primary), 0 0 20px 0 rgba(255, 51, 102, 0.4);
    background: var(--accent-primary);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: var(--text-main);
    box-shadow: var(--shadow-neon);
}

.btn-glow::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: 0.5s;
    z-index: -1;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
}

/* ==========================================================================
   HEADER (STRICTLY CONSISTENT)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(7, 3, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    cursor: none;
}

.nav-item a:hover {
    color: var(--text-main);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: none;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* ==========================================================================
   HERO SECTION (3D CUBE & GLASS)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Pure CSS 3D Marketing Cube */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid var(--accent-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: inset 0 0 40px rgba(124, 58, 237, 0.4);
    backdrop-filter: blur(5px);
}

.front {
    transform: translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Floating Glass Elements in Hero */
.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    animation: floatAnim 6s infinite ease-in-out;
}

.float-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.float-2 {
    bottom: 15%;
    left: 0;
    animation-delay: 2s;
}

/* ==========================================================================
   INFINITE MARQUEE (CLIENTS / STATS)
   ========================================================================== */
.marquee-section {
    padding: 2rem 0;
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    background: var(--bg-surface);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-flex;
    gap: 4rem;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-item {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
}

.marquee-item span {
    color: var(--accent-primary);
}

/* ==========================================================================
   ABOUT / HIGHLIGHTS SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    border: var(--border-glass);
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-tertiary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   SERVICES SECTION (NEON CARDS)
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    background: rgba(19, 9, 34, 0.6);
    border: var(--border-glass);
    transition: var(--transition-snappy);
    position: relative;
    overflow: hidden;
    cursor: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   INDUSTRY SPECIFIC TABS
   ========================================================================== */
.industry-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ind-tab {
    padding: 1rem 2rem;
    border-radius: 100px;
    background: var(--bg-glass);
    border: var(--border-glass);
    color: var(--text-muted);
    font-weight: 600;
    cursor: none;
    transition: 0.3s;
}

.ind-tab.active,
.ind-tab:hover {
    background: var(--accent-secondary);
    color: var(--text-main);
    border-color: var(--accent-secondary);
}

/* ==========================================================================
   INTERACTIVE CAMPAIGN REPORT SIMULATOR
   ========================================================================== */
.report-container {
    background: rgba(10, 5, 20, 0.8);
    border-radius: 30px;
    border: var(--border-glass);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    position: relative;
}

.report-controls h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.control-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-muted);
    text-align: left;
    transition: 0.3s;
    cursor: none;
}

.control-btn.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-success);
    color: var(--accent-success);
}

/* Simulated Line Chart Canvas Replacement via DOM */
.chart-visual {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 350px;
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    overflow: hidden;
}

.chart-grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.chart-grid-line:nth-child(1) {
    top: 25%;
}

.chart-grid-line:nth-child(2) {
    top: 50%;
}

.chart-grid-line:nth-child(3) {
    top: 75%;
}

.chart-bar-wrap {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.chart-bar-fill {
    width: 60%;
    background: var(--accent-success);
    border-radius: 6px 6px 0 0;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    height: 0%;
    /* JS animated */
}

/* ==========================================================================
   TESTIMONIALS (MASONRY/GRID)
   ========================================================================== */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testi-card {
    padding: 2.5rem;
    border-radius: 20px;
    background: var(--bg-glass);
    border: var(--border-glass);
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    color: rgba(255, 51, 102, 0.2);
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: serif;
    line-height: 1;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.client-meta .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

/* ==========================================================================
   CONTACT / QUOTE SECTION
   ========================================================================== */
.cta-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(255, 51, 102, 0.2));
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 30px;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.5;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

/* ==========================================================================
   FOOTER (STRICTLY CONSISTENT)
   ========================================================================== */
.site-footer {
    background: #040108;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-title {
    font-size: 1.25rem;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.3s;
    cursor: none;
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-links {
    display: flex;
    gap: 2rem;
}

/* ==========================================================================
   LEGAL PAGES & CONTACT PAGE STYLES
   ========================================================================== */
.page-hero {
    padding: 180px 0 100px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    text-align: center;
}

.page-hero h1 {
    font-size: 4rem;
}

.legal-content-box {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content-box h2 {
    color: var(--accent-tertiary);
    margin-top: 2.5rem;
    font-size: 1.8rem;
}

.legal-content-box p {
    color: #ccc;
}

.legal-content-box ul {
    list-style: disc;
    margin-left: 2rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {

    .hero-grid,
    .about-grid,
    .report-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    /* Disable custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(7, 3, 13, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .legal-content-box {
        padding: 2rem;
    }
}