@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #07070a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-1: #6366f1;
    --accent-2: #c084fc;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-head: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    /* Handled by JS for smoothness */
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* 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: var(--accent-1);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-2);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(2px);
}

/* Noise Overlay */
.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,%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');
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.1;
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.3s;
    cursor: none;
}

/* Header (Identical across all pages) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(7, 7, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.4s ease;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-btn {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* Sections Base */
section {
    padding: 120px 5%;
    position: relative;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    perspective: 1000px;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    filter: blur(60px);
    border-radius: 50%;
    animation: float 10s infinite alternate;
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Marquee */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: var(--glass-bg);
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    transform: rotate(-2deg) scale(1.05);
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 20s linear infinite;
}

.marquee h2 {
    font-size: 3rem;
    text-transform: uppercase;
    -webkit-text-stroke: 1px var(--text-primary);
    color: transparent;
    margin-right: 50px;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services (3D Hover Cards) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    perspective: 1000px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px 30px;
    border-radius: 20px;
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    transform: translateZ(30px);
}

.service-card p {
    transform: translateZ(20px);
    font-size: 1rem;
}

.service-card:hover {
    border-color: var(--accent-1);
}

/* Reports / Data Visualization UI */
.reports-container {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 60px;
}

.report-ui {
    flex: 1;
    background: #111;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chart-bar {
    width: 100%;
    height: 30px;
    background: #222;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    width: 0;
    transition: width 1.5s ease;
}

.report-text {
    flex: 1;
}

/* Interactive Calculator */
.calc-wrapper {
    background: var(--glass-bg);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.calc-inputs {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.calc-inputs input,
.calc-inputs select {
    padding: 15px 20px;
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    border-radius: 10px;
    font-family: var(--font-body);
    outline: none;
}

.calc-results {
    font-size: 2.5rem;
    font-family: var(--font-head);
    color: var(--accent-2);
    margin-top: 20px;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: var(--accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: 0.3s;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
}

.chat-box.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Forms */
form .input-group {
    position: relative;
    margin-bottom: 30px;
}

form input,
form textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

form label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-secondary);
    transition: 0.3s;
    pointer-events: none;
}

form input:focus~label,
form input:valid~label,
form textarea:focus~label,
form textarea:valid~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-1);
}

/* Legal Pages Typography Setup */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 150px;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
    color: var(--accent-2);
}

.legal-content p {
    margin-bottom: 20px;
}

/* Footer (Identical across all pages) */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 100px 5% 50px;
    background: #040405;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent-1);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom a {
    margin-left: 20px;
    color: var(--text-secondary);
}

/* Responsive */
@media(max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reports-container {
        flex-direction: column;
    }

    nav ul {
        display: none;
        /* Add mobile menu logic later if needed */
    }
}

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .marquee h2 {
        font-size: 2rem;
    }

    .calc-inputs {
        flex-direction: column;
    }
}