@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   CSS VARIABLES & SETUP
   ========================================================================== */
:root {
    --bg-dark: #050505;
    --bg-light: #ffffff;
    --bg-section: #0a0a0a;
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.5);
    --secondary: #06b6d4;
    --accent: #ec4899;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--secondary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 120px 0;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Noise Overlay for Texture */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: none;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION (Section 1)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    animation: float 10s infinite alternate;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-3d-element {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40vw;
    height: 40vw;
    perspective: 1000px;
}

.sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: inset -20px -20px 40px rgba(0, 0, 0, 0.5), 0 0 50px var(--primary-glow);
    animation: rotateSphere 20s linear infinite;
}

/* ==========================================================================
   MARQUEE (Section 2)
   ========================================================================== */
.marquee-section {
    background: var(--secondary);
    color: var(--bg-dark);
    padding: 20px 0;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.05);
    margin: 50px 0;
}

.marquee-inner {
    display: flex;
    width: 200%;
    animation: marquee 15s linear infinite;
}

.marquee-inner h2 {
    font-size: 3rem;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 40px;
}

/* ==========================================================================
   SERVICES SECTION (Section 3)
   ========================================================================== */
.services {
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.1s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--secondary);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--secondary);
    transform: translateZ(30px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateZ(20px);
}

.service-card p {
    color: var(--text-muted);
    transform: translateZ(10px);
}

/* ==========================================================================
   INTERACTIVE CALCULATOR (Section 4)
   ========================================================================== */
.calculator-section {
    position: relative;
}

.calc-wrapper {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.calc-controls label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.calc-slider {
    width: 100%;
    appearance: none;
    height: 6px;
    background: #333;
    border-radius: 5px;
    outline: none;
    margin-bottom: 30px;
}

.calc-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: none;
}

.calc-results {
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-box {
    margin-bottom: 30px;
}

.result-box h4 {
    color: var(--text-muted);
    margin-bottom: 5px;
}

.result-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--secondary);
}

/* ==========================================================================
   CAMPAIGN REPORTS (Section 5)
   ========================================================================== */
.reports-section {
    background: var(--bg-section);
}

.reports-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.report-content {
    background: #111;
    border-radius: 20px;
    padding: 40px;
    display: none;
    animation: fadeIn 0.5s ease;
}

.report-content.active {
    display: block;
}

.chart-dummy {
    width: 100%;
    height: 300px;
    border-bottom: 2px solid #333;
    border-left: 2px solid #333;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 10%;
    padding: 0 5%;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 10px 10px 0 0;
    transition: height 1s ease;
}

/* ==========================================================================
   INDUSTRY SPECIFIC (Section 6)
   ========================================================================== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-item {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    cursor: none;
}

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: grayscale(100%) brightness(0.4);
}

.industry-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(0.6);
}

.industry-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.industry-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   TESTIMONIALS (Section 7)
   ========================================================================== */
.testimonials {
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.testi-slider {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scrollTesti 30s linear infinite;
}

.testi-card {
    background: rgba(255, 255, 255, 0.05);
    width: 400px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.testi-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.client-info h4 {
    color: var(--secondary);
}

/* ==========================================================================
   LIVE CHAT WIDGET (Section 8 - Fixed)
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    transition: transform 0.3s;
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #111;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-box.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    background: var(--primary);
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.chat-body {
    padding: 20px;
    min-height: 200px;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT CTA (Section 9)
   ========================================================================== */
.contact-cta {
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.contact-cta h2 {
    font-size: 4rem;
    margin-bottom: 30px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--secondary);
    background: transparent;
}

/* ==========================================================================
   FOOTER (Section 10) - STRICTLY IDENTICAL EVERYWHERE
   ========================================================================== */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   LEGAL PAGES SPECIFIC STYLES
   ========================================================================== */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 0;
    color: var(--text-muted);
}

.legal-content h2 {
    color: var(--text-main);
    margin: 40px 0 20px;
    font-size: 2rem;
}

.legal-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
    list-style: disc;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

@keyframes rotateSphere {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollTesti {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .legal-links {
        justify-content: center;
    }
}