@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Syne:wght@400;600;700;800&display=swap');

/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-1: #4F46E5; /* Electric Indigo */
    --accent-2: #06B6D4; /* Cyan */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .syne {
    font-family: 'Syne', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--text-main);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}
.cursor.hovering {
    width: 60px;
    height: 60px;
    background: var(--accent-2);
}

/* ==========================================================================
   HEADER (Identical across all pages)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.4s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.logo-container img {
    height: 60px;
    filter: invert(1);
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links li a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    font-weight: 500;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-2);
    transition: width var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.header-cta {
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    transition: transform var(--transition), box-shadow var(--transition);
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

/* ==========================================================================
   GLOBAL ANIMATIONS & SCROLL REVEALS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   INDEX SECTIONS
   ========================================================================== */
section {
    padding: 120px 5%;
    position: relative;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15), transparent 60%);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Marquee */
.marquee-section {
    padding: 30px 0;
    background: var(--accent-1);
    color: #fff;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.05);
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content h2 {
    font-size: 3rem;
    margin-right: 50px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px 30px;
    border-radius: 20px;
    transition: transform 0.1s; /* JS handles 3D */
    transform-style: preserve-3d;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    transform: translateZ(20px);
}

/* Interactive Campaign Reports */
.campaign-ui {
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    margin-top: 50px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 300px;
    padding-top: 50px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-1), var(--accent-2));
    border-radius: 10px 10px 0 0;
    height: 0; /* Animated via JS */
    position: relative;
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar span {
    position: absolute;
    top: -30px;
    width: 100%;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s 1.5s;
}

/* ROI Calculator */
.calculator-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.calc-row {
    margin-bottom: 30px;
}

.calc-row label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Syne', sans-serif;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-top: -10px;
    box-shadow: 0 0 15px var(--accent-2);
}

.calc-result {
    text-align: center;
    margin-top: 40px;
}

.calc-result h3 {
    font-size: 4rem;
    color: var(--accent-2);
}

/* Footer (Identical) */
.site-footer {
    background: #020202;
    padding: 100px 5% 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Forms & Legal Pages */
.legal-container {
    max-width: 900px;
    margin: 150px auto 100px;
    padding: 0 5%;
}

.legal-container h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--accent-2);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    margin-bottom: 30px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent-2);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--text-main);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 30px;
    border: none;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--accent-2);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid, .contact-wrapper, .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* In a real scenario, implement a hamburger menu here */
    }
}