/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --bg-main: #050508;
    --bg-secondary: #0a0b10;
    --bg-glass: rgba(15, 16, 24, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a5b5;
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(112, 0, 255, 0.4));
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
    /* Custom Cursor */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Custom Cursor & Scrollbar
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-purple);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 5px;
}

/* ==========================================================================
   Global Layout & Components
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* ==========================================================================
   Header (Strictly Consistent Site-Wide)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

.site-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container img {
    height: 50px;
    filter: invert(1);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    transition: var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--accent-cyan);
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   1. Hero Section (3D & Particles)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.15) 0%, transparent 60%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-3d-element {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40vw;
    height: 40vw;
    max-width: 600px;
    max-height: 600px;
    z-index: 1;
    perspective: 1000px;
}

.sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 100px rgba(0, 240, 255, 0.4);
    animation: float 6s ease-in-out infinite, pulseGlow 4s alternate infinite;
}

/* ==========================================================================
   2. About Section
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   3. Services (3D Hover Cards)
   ========================================================================== */
.services-section {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: 0.5s;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-content {
    position: relative;
    z-index: 1;
    transform: translateZ(30px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   4. Industries Section
   ========================================================================== */
.industries-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.industry-box {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    background: #111;
}

.industry-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 8, 1), rgba(5, 5, 8, 0));
    z-index: 1;
}

.industry-box h3 {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.industry-box:hover h3 {
    color: var(--accent-cyan);
    transform: translateY(-10px);
}

/* ==========================================================================
   5. Sample Campaign Reports (CSS Charts)
   ========================================================================== */
.reports-section {
    padding: 8rem 0;
}

.chart-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 300px;
    gap: 2%;
}

.bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 5px 5px 0 0;
    position: relative;
    animation: growUp 2s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
}

.bar span {
    position: absolute;
    top: -30px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    color: var(--accent-cyan);
}

/* ==========================================================================
   6. Service ROI Calculator
   ========================================================================== */
.calculator-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.calc-wrapper {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 4rem;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.calc-group {
    margin-bottom: 2rem;
}

.calc-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}

input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #222;
    border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--accent-cyan);
    margin-top: -8px;
    box-shadow: 0 0 15px var(--accent-cyan);
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.calc-result h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

#roi-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-purple);
    text-shadow: 0 0 20px rgba(112, 0, 255, 0.5);
}

/* ==========================================================================
   7. Testimonials
   ========================================================================== */
.testimonials-section {
    padding: 8rem 0;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testi-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
}

.testi-card::before {
    content: '\"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
}

.testi-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.testi-author h5 {
    font-size: 1.2rem;
    color: var(--accent-cyan);
}

.testi-author span {
    font-size: 0.9rem;
    color: #777;
}

/* ==========================================================================
   8. Live Chat Widget (Mockup Interface)
   ========================================================================== */
.chat-section {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.chat-mockup {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    padding: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.chat-body {
    height: 300px;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    padding: 1rem;
    border-radius: 15px;
    max-width: 80%;
}

.msg.bot {
    background: #222;
    align-self: flex-start;
}

.msg.user {
    background: var(--accent-purple);
    align-self: flex-end;
    color: #fff;
}

.chat-input {
    display: flex;
    padding: 1rem;
    background: #111;
    border-top: 1px solid #222;
}

.chat-input input {
    flex: 1;
    padding: 1rem;
    border: none;
    background: #222;
    color: #fff;
    border-radius: 30px;
    outline: none;
}

/* ==========================================================================
   9. Contact Form & CTA
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 4rem;
    border-radius: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-cyan);
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -1.5rem;
    font-size: 0.85rem;
    color: var(--accent-cyan);
}

/* ==========================================================================
   10. Global Footer (Strictly Consistent Site-Wide)
   ========================================================================== */
.site-footer {
    background: #020203;
    border-top: 1px solid var(--border-glass);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-logo {
    max-width: 150px;
    filter: invert(1);
    margin-bottom: 1.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Legal Pages Specific Styling
   ========================================================================== */
.legal-header {
    padding: 150px 0 50px;
    background: var(--bg-secondary);
    text-align: center;
}

.legal-content {
    padding: 4rem 0 8rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.legal-content h2 {
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) rotate(0deg);
    }

    50% {
        transform: translateY(-55%) rotate(5deg);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 150px rgba(112, 0, 255, 0.6);
    }
}

@keyframes growUp {
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .about-grid,
    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-3d-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        padding: 2rem;
        transition: 0.3s;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .industries-grid,
    .testi-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}