/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-dark: #070709;
    --bg-darker: #030304;
    --text-light: #f5f5f7;
    --text-muted: #888891;
    --accent-primary: #6d28d9;
    --accent-glow: #8b5cf6;
    --accent-cyan: #06b6d4;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --cursor-size: 20px;
    --container-width: 1400px;
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Handled by JS for smooth scroll */
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    cursor: none; /* Custom cursor */
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: var(--text-light);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: var(--accent-glow);
    mix-blend-mode: screen;
    filter: blur(5px);
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    cursor: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-cyan));
    transition: var(--transition-slow);
    z-index: -1;
    border-radius: 50px;
}

.btn:hover::before {
    top: 0;
}

.btn:hover {
    border-color: transparent;
    transform: scale(1.05);
}

/* ==========================================================================
   HEADER (STRICTLY IDENTICAL ON ALL PAGES)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition-slow);
    mix-blend-mode: difference;
}

.site-header.scrolled {
    padding: 20px 0;
    background: rgba(3, 3, 4, 0.8);
    backdrop-filter: blur(10px);
    mix-blend-mode: normal;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    display: block;
    filter: brightness(0) invert(1); 
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    cursor: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-cyan);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: none;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION (3D & PARALLAX)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero h1 span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-45deg);
    animation: textReveal 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

/* ==========================================================================
   MARQUEE SECTION
   ========================================================================== */
.marquee-wrapper {
    background: var(--bg-darker);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    gap: 100px;
    animation: marquee 20s linear infinite;
}

.marquee-content h3 {
    font-size: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    transition: var(--transition-fast);
}

.marquee-content h3:hover {
    color: var(--text-light);
    -webkit-text-stroke: 0px;
}

/* ==========================================================================
   SERVICES SECTION (3D TILT CARDS)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: border-color var(--transition-fast);
}

.service-card:hover {
    border-color: var(--accent-glow);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    border-radius: 50%;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(50px); /* 3D pop effect */
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    transform: translateZ(30px);
}

.service-card p {
    color: var(--text-muted);
    transform: translateZ(20px);
}

/* ==========================================================================
   INTERACTIVE CALCULATOR UI
   ========================================================================== */
.calculator-box {
    background: var(--bg-darker);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.calc-sliders {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: rgba(255,255,255,0.1);
    height: 4px;
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent-cyan);
    border-radius: 50%;
    cursor: none;
    box-shadow: 0 0 20px var(--accent-cyan);
}

.calc-result {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.calc-result h4 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.result-val {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   CAMPAIGN REPORTS (Interactive Charts)
   ========================================================================== */
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 300px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    border-left: 2px solid rgba(255,255,255,0.1);
    padding: 20px;
    margin-top: 50px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-glow));
    border-radius: 10px 10px 0 0;
    position: relative;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chart-bar:hover {
    filter: brightness(1.2);
}

.chart-bar::after {
    content: attr(data-val);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
}

.chart-bar:hover::after {
    opacity: 1;
}

/* ==========================================================================
   TESTIMONIALS (Draggable Slider)
   ========================================================================== */
.slider-wrapper {
    overflow: hidden;
    cursor: grab;
}

.slider-wrapper:active {
    cursor: grabbing;
}

.slider-track {
    display: flex;
    gap: 40px;
    transition: transform 0.5s ease-out;
}

.testimonial-card {
    min-width: 400px;
    background: rgba(255,255,255,0.03);
    padding: 50px;
    border-radius: 20px;
    border-left: 4px solid var(--accent-glow);
}

.client-quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
}

.client-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-cyan);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 4rem;
    margin-bottom: 30px;
}

.contact-form .input-group {
    position: relative;
    margin-bottom: 40px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 15px 0;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-fast);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

.contact-form label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
}

.contact-form input:focus ~ label,
.contact-form input:valid ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.live-chat {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 900;
}

.chat-btn {
    width: 70px;
    height: 70px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    cursor: none;
    transition: var(--transition-fast);
}

.chat-btn:hover {
    transform: scale(1.1);
    background: var(--accent-cyan);
}

/* ==========================================================================
   FOOTER (STRICTLY IDENTICAL ON ALL PAGES)
   ========================================================================== */
.site-footer {
    background: var(--bg-darker);
    padding: 100px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand .logo img {
    height: 60px;
    margin-bottom: 30px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: none;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

/* ==========================================================================
   LEGAL PAGES TYPOGRAPHY
   ========================================================================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2.5rem;
    margin: 60px 0 30px;
    color: var(--accent-cyan);
}

.legal-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==========================================================================
   ANIMATIONS & MEDIA QUERIES
   ========================================================================== */
@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reveal-elem {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-elem.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .calculator-box, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100vw; height: 100vh;
        background: var(--bg-dark); flex-direction: column; align-items: center;
        justify-content: center; transition: var(--transition-slow);
    }
    .menu-toggle { display: flex; z-index: 1001; }
    .custom-cursor { display: none; } /* Disable custom cursor on mobile */
    body { cursor: auto; }
}