/* ==========================================================================
   CSS VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-bg: #0b0f19;
    --secondary-bg: #131a2a;
    --tertiary-bg: #1c253c;
    --accent-cyan: #00f0ff;
    --accent-purple: #7000ff;
    --text-main: #ffffff;
    --text-muted: #a0aec0;
    --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --header-height: 90px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY & UTILITIES
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px rgba(112, 0, 255, 0.4);
    transform: translateY(-3px);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   STRICT HEADER (Used Across All Pages)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container img {
    height: 55px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (3D Animations)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-content {
    width: 50%;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-3d-visual {
    width: 50%;
    height: 500px;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    perspective: 1000px;
}

.cube {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -100px;
    margin-top: -100px;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-cyan);
    background: rgba(112, 0, 255, 0.1);
    box-shadow: inset 0 0 50px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-cyan);
    backdrop-filter: blur(5px);
}

.front {
    transform: translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

/* ==========================================================================
   SERVICES SECTION (Hover Effects)
   ========================================================================== */
.services-section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--tertiary-bg);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(112, 0, 255, 0.1));
    opacity: 0;
    transition: var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-cyan);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   CALCULATOR SECTION (Interactive)
   ========================================================================== */
.calculator-section {
    padding: 100px 0;
    background: var(--secondary-bg);
}

.calc-container {
    background: var(--tertiary-bg);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-input-group {
    margin-bottom: 30px;
}

.calc-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--accent-cyan);
}

.calc-input-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.calc-value-display {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}

.calc-results {
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px dashed var(--accent-purple);
}

.calc-results h3 {
    margin-bottom: 30px;
}

.result-item {
    margin-bottom: 20px;
}

.result-item span {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
}

.result-item strong {
    font-size: 2.5rem;
    color: var(--accent-cyan);
}

/* ==========================================================================
   REPORTS SECTION (Sample Campaigns)
   ========================================================================== */
.reports-section {
    padding: 100px 0;
}

.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.report-card {
    background: var(--secondary-bg);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.report-graph {
    height: 200px;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 19px,
            rgba(255, 255, 255, 0.05) 20px);
    position: relative;
    margin-bottom: 20px;
}

.bar {
    position: absolute;
    bottom: 0;
    width: 30px;
    background: var(--accent-cyan);
    border-radius: 5px 5px 0 0;
    transition: height 1s ease;
}

.bar:nth-child(1) {
    left: 10%;
    height: 30%;
}

.bar:nth-child(2) {
    left: 30%;
    height: 50%;
    background: var(--accent-purple);
}

.bar:nth-child(3) {
    left: 50%;
    height: 70%;
}

.bar:nth-child(4) {
    left: 70%;
    height: 90%;
    background: var(--accent-purple);
}

/* ==========================================================================
   INDUSTRIES SECTION
   ========================================================================== */
.industries-section {
    padding: 100px 0;
    background: var(--secondary-bg);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.industry-box {
    text-align: center;
    padding: 40px 20px;
    background: var(--tertiary-bg);
    border-radius: 15px;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}

.industry-box:hover {
    border-bottom-color: var(--accent-cyan);
    transform: translateY(-5px);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.test-card {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-purple);
}

.test-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.test-author h4 {
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(rgba(11, 15, 25, 0.9), rgba(11, 15, 25, 0.9)), url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%230b0f19"/><circle cx="50" cy="50" r="40" stroke="%237000ff" stroke-width="2" fill="none" opacity="0.2"/></svg>');
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   STRICT FOOTER (Used Across All Pages)
   ========================================================================== */
.site-footer {
    background: var(--secondary-bg);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col .logo-container img {
    height: 55px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--accent-purple);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.5);
    font-size: 24px;
    transition: var(--transition-fast);
    animation: pulseChat 2s infinite;
}

@keyframes pulseChat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(112, 0, 255, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(112, 0, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(112, 0, 255, 0);
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--tertiary-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--accent-purple);
    padding: 15px;
    font-weight: bold;
    text-align: center;
}

.chat-body {
    padding: 20px;
    height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.chat-message {
    background: var(--secondary-bg);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    width: 80%;
}

.chat-input {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: white;
    outline: none;
}

.chat-input button {
    padding: 0 20px;
    background: var(--accent-cyan);
    border: none;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

/* ==========================================================================
   PAGE SPECIFIC STYLES (Contact, Privacy, Terms, Disclaimer)
   ========================================================================== */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: var(--secondary-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    color: var(--accent-cyan);
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 80px 0;
}

.contact-form-wrapper {
    background: var(--tertiary-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
}

.contact-info-block {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.contact-info-block h3 {
    margin-bottom: 20px;
    color: var(--accent-purple);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-3d-visual {
        opacity: 0.3;
        right: -10%;
    }

    .about-grid,
    .calc-grid,
    .reports-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--primary-bg);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        width: 100%;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-3d-visual {
        display: none;
    }

    .industry-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}