/* ==========================================================================
   CSS Variables & Theme Configuration
   ========================================================================== */
:root {
    --bg-dark: #0a0a0a;
    --bg-surface: #141414;
    --bg-surface-light: #1f1f1f;
    --primary: #4F46E5; /* Indigo */
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary: #06B6D4; /* Cyan */
    --accent: #F43F5E; /* Rose */
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --section-padding: 120px 5%;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    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;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* ==========================================================================
   Global Header (Navigation)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-primary {
    padding: 12px 28px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    animation: slideUp 1s ease forwards;
    opacity: 0;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: slideUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: slideUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* 3D Floating Element */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    z-index: 1;
}

.floating-orb {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: inset -20px -20px 40px rgba(0,0,0,0.5), 0 0 60px var(--primary-glow);
    transform-style: preserve-3d;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: var(--section-padding);
    background: var(--bg-surface);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--bg-surface-light);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-slow);
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.stat-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Services Section (3D Tilt Cards)
   ========================================================================== */
.services {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-surface);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    transition: transform 0.1s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transform: translateZ(30px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(20px);
}

.service-card p {
    color: var(--text-muted);
    transform: translateZ(10px);
}

/* ==========================================================================
   Interactive ROI Calculator
   ========================================================================== */
.calculator-section {
    padding: var(--section-padding);
    background: var(--bg-surface-light);
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.calc-group {
    margin-bottom: 2rem;
}

.calc-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: -8px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.calc-results {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.result-box h4 {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.result-box .res-value {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--secondary);
}

/* ==========================================================================
   Sample Campaign Reports (Data Visualization Mock)
   ========================================================================== */
.reports-section {
    padding: var(--section-padding);
}

.report-mockup {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 200px;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    animation: growUp 1.5s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
}

.bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.bar:nth-child(4) { height: 80%; animation-delay: 0.4s; }
.bar:nth-child(5) { height: 100%; animation-delay: 0.5s; }

/* ==========================================================================
   Industry Marquee
   ========================================================================== */
.industries {
    padding: 4rem 0;
    background: var(--bg-surface-light);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.industries::before, .industries::after {
    content: '';
    position: absolute;
    top: 0; width: 150px; height: 100%;
    z-index: 2;
}

.industries::before { left: 0; background: linear-gradient(to right, var(--bg-surface-light), transparent); }
.industries::after { right: 0; background: linear-gradient(to left, var(--bg-surface-light), transparent); }

.marquee-content {
    display: inline-block;
    animation: scrollMarquee 20s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    margin: 0 2rem;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.marquee-item:hover {
    color: var(--primary);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: var(--section-padding);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testi-card {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
}

.testi-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 6rem;
    color: var(--border-color);
    font-family: serif;
    line-height: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.client-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--secondary);
}

/* ==========================================================================
   Live Chat Support & Contact Forms
   ========================================================================== */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-surface-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.input-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Chat Widget Mock */
.chat-mockup {
    background: var(--bg-dark);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 1rem;
    font-weight: bold;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.chat-msg {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.msg-agent {
    background: var(--bg-surface-light);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.msg-user {
    background: var(--primary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

/* ==========================================================================
   Legal Pages Prose Styles
   ========================================================================== */
.legal-page {
    padding: 150px 5% 80px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 { margin-bottom: 2rem; font-size: 3rem; }
.legal-content h2 { margin: 2.5rem 0 1rem; color: var(--secondary); }
.legal-content p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; }
.legal-content ul { margin: 1rem 0 2rem 2rem; list-style: disc; color: var(--text-muted); }
.legal-content li { margin-bottom: 0.5rem; }

/* ==========================================================================
   Global Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 2rem auto 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes growUp {
    to { opacity: 1; transform: scaleY(1); }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; left: -100%;
        width: 100vw; height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-slow);
    }
    
    .nav-links.nav-active { left: 0; }
    
    .hamburger { display: flex; }
    
    .hero { flex-direction: column; text-align: center; justify-content: center; padding-top: 120px; }
    .hero-cta { justify-content: center; }
    .floating-orb { width: 300px; height: 300px; margin-top: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    
    .section-title { font-size: 2rem; }
}