/* ==========================================================================
   Base Reset & Variables
   ========================================================================== */
:root {
    --bg-main: #07070a;
    --bg-secondary: #111116;
    --bg-tertiary: #1a1a24;
    --accent-1: #00f0ff;
    /* Electric Cyan */
    --accent-2: #bd00ff;
    /* Neon Purple */
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --text-main: #ffffff;
    --text-muted: #8a8a9d;
    --font-heading: 'Syncopate', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    --z-back: -1;
    --z-normal: 1;
    --z-nav: 100;
    --z-cursor: 9999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}

/* ==========================================================================
   Custom Cursor & UI Elements
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-1);
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 1);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    font-weight: 800;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-huge {
    font-size: clamp(3rem, 8vw, 8rem);
    margin-bottom: 20px;
}

.title-large {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-nav);
    transition: var(--transition-smooth);
    background: rgba(7, 7, 10, 0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

header.scrolled {
    padding: 15px 5%;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    font-weight: 600;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
    width: 100%;
}

.btn-primary {
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--accent-1);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   Sections & Layout
   ========================================================================== */
section {
    padding: 120px 5%;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-3d-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    perspective: 1000px;
}

.sphere {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent);
    box-shadow: 0 0 100px var(--accent-1), inset 0 0 50px var(--accent-2);
    animation: float 6s ease-in-out infinite, spin 20s linear infinite;
    filter: blur(20px);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section (3D Tilt Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-tertiary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.1s, box-shadow 0.1s;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-1);
    transform: translateZ(30px);
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    transform: translateZ(20px);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    transform: translateZ(10px);
    position: relative;
    z-index: 1;
}

/* Interactive Service Calculator */
.calculator-section {
    background: var(--bg-main);
    text-align: center;
}

.calc-wrapper {
    max-width: 800px;
    margin: 50px auto;
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(189, 0, 255, 0.2);
}

.calc-slider {
    width: 100%;
    margin: 30px 0;
    -webkit-appearance: none;
    background: var(--bg-tertiary);
    height: 8px;
    border-radius: 4px;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-1);
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent-1);
}

.calc-result {
    font-size: 4rem;
    font-family: var(--font-heading);
    margin-top: 30px;
}

/* Dashboard / Campaign Reports */
.reports {
    background: var(--bg-secondary);
    overflow: hidden;
}

.dashboard-mockup {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    position: relative;
    backdrop-filter: blur(10px);
    transform: rotateX(10deg) rotateY(-10deg);
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.8);
}

.chart-bar {
    height: 30px;
    background: var(--accent-gradient);
    margin-bottom: 15px;
    border-radius: 15px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Industries Marquee */
.industries {
    padding: 50px 0;
    background: var(--bg-main);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: inline-block;
    animation: scroll-left 20s linear infinite;
}

.marquee-item {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    margin-right: 50px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.marquee-item:hover {
    color: var(--accent-1);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px var(--accent-1);
}

/* Testimonials */
.testimonials {
    background: var(--bg-secondary);
}

.testi-card {
    background: var(--bg-main);
    padding: 40px;
    border-radius: 20px;
    border-left: 4px solid var(--accent-2);
    margin-top: 40px;
}

/* Contact Form Section */
.contact-section {
    background: var(--bg-main);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    color: white;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-bottom-color: var(--accent-1);
}

.form-label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.form-control:focus~.form-label,
.form-control:valid~.form-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-1);
}

/* Live Chat Widget */
.live-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.4);
    transition: transform 0.3s;
}

.live-chat:hover {
    transform: scale(1.1);
}

.live-chat svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--bg-tertiary);
    padding: 80px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-1);
    padding-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom-links a {
    margin-left: 20px;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: white;
}

/* Legal Pages Styling */
.legal-hero {
    height: 40vh;
    min-height: 300px;
    background: var(--bg-secondary);
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 5%;
}

.legal-content h2 {
    margin: 40px 0 20px;
    color: var(--accent-1);
    font-size: 1.5rem;
}

.legal-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero-3d-bg {
        width: 100%;
        opacity: 0.3;
        pointer-events: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real scenario, add a mobile hamburger menu. Hiding for code brevity/focus on desktop awwwards */
    }

    header {
        padding: 20px 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .title-huge {
        font-size: 3rem;
    }

    .calc-result {
        font-size: 2.5rem;
    }
}