/* ==========================================================================
   CSS VARIABLES & THEME SETUP
   ========================================================================== */
:root {
    /* Color Palette based on Dark Professional Theme */
    --clr-primary: #00D4FF;
    /* Electric Blue */
    --clr-primary-dark: #009BCC;
    --clr-secondary: #0A192F;
    /* Deep Blue / Dark Background */
    --clr-secondary-light: #112240;
    /* Lighter Dark */
    --clr-accent: #FF3366;
    /* Vibrant Pink for CTAs */
    --clr-text-main: #E6F1FF;
    --clr-text-muted: #8892B0;
    --clr-white: #FFFFFF;
    --clr-dark: #020C1B;
    --clr-border: #233554;

    /* Typography */
    --font-heading: 'Inter', 'Segoe UI', sans-serif;
    --font-body: 'Roboto', 'Helvetica Neue', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-medium: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-slow: 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow-sm: 0 4px 6px rgba(2, 12, 27, 0.7);
    --shadow-md: 0 10px 30px -10px rgba(2, 12, 27, 0.9);
    --shadow-lg: 0 20px 40px -15px rgba(2, 12, 27, 0.9);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-dark);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--clr-primary);
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--clr-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   TYPOGRAPHY & UTILITIES
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--clr-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--clr-text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-dark);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--clr-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   HEADER & NAVIGATION (Strictly Global)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: height var(--transition-fast), background-color var(--transition-fast);
    height: 90px;
    border-bottom: 1px solid var(--clr-border);
}

.site-header.scrolled {
    height: 70px;
    background-color: rgba(2, 12, 27, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-container a {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo-container img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--clr-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--clr-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--clr-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION (3D Interactions & Animations)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    background: radial-gradient(circle at 80% 20%, var(--clr-secondary-light) 0%, var(--clr-dark) 60%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--clr-primary);
    display: inline-block;
    animation: pulseGlow 3s infinite alternate;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* 3D Floating Graphic */
.hero-graphic {
    perspective: 1000px;
    position: relative;
}

.cube-container {
    width: 100%;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    animation: float3d 6s ease-in-out infinite;
}

.card-3d {
    position: absolute;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(50px);
    width: 300px;
    z-index: 3;
}

.card-sub1 {
    top: 10%;
    left: 10%;
    width: 200px;
    transform: translateZ(20px);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.card-sub2 {
    bottom: 10%;
    right: 5%;
    width: 220px;
    transform: translateZ(80px);
    background: rgba(255, 51, 102, 0.1);
    border-color: rgba(255, 51, 102, 0.3);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services {
    padding: 8rem 0;
    background-color: var(--clr-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--clr-secondary);
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--clr-primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
}

/* ==========================================================================
   INDUSTRIES SECTION
   ========================================================================== */
.industries {
    padding: 6rem 0;
    background-color: var(--clr-secondary-light);
}

.industry-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: var(--clr-secondary);
    border: 1px solid var(--clr-border);
    color: var(--clr-text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--clr-primary);
    color: var(--clr-dark);
    border-color: var(--clr-primary);
}

.industry-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.industry-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.industry-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--clr-primary);
}

.industry-text p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   ROI CALCULATOR (Interactive)
   ========================================================================== */
.calculator-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-secondary) 100%);
}

.calc-wrapper {
    background: var(--clr-secondary-light);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    box-shadow: var(--shadow-lg);
}

.calc-input-group {
    margin-bottom: 2rem;
}

.calc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calc-range {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    background: var(--clr-border);
    border-radius: 4px;
    outline: none;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--clr-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.calc-value-display {
    text-align: right;
    font-size: 1.2rem;
    color: var(--clr-primary);
    font-weight: bold;
}

.calc-results {
    background: var(--clr-dark);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--clr-primary);
    box-shadow: var(--shadow-glow);
}

.result-box h4 {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.result-box .huge-number {
    font-size: 3.5rem;
    color: var(--clr-white);
    font-weight: 700;
}

/* ==========================================================================
   CAMPAIGN REPORTS (Visuals)
   ========================================================================== */
.reports-section {
    padding: 8rem 0;
    background-color: var(--clr-dark);
    position: relative;
    overflow: hidden;
}

.reports-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: var(--clr-secondary);
    border-radius: 12px;
    border: 1px solid var(--clr-border);
    padding: 2rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--clr-border);
}

.bar {
    width: 40px;
    background: linear-gradient(to top, var(--clr-primary-dark), var(--clr-primary));
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: barGrow 1.5s ease-out forwards;
    transform-origin: bottom;
    opacity: 0;
}

.bar:nth-child(1) {
    height: 30%;
    animation-delay: 0.1s;
}

.bar:nth-child(2) {
    height: 50%;
    animation-delay: 0.3s;
}

.bar:nth-child(3) {
    height: 40%;
    animation-delay: 0.5s;
}

.bar:nth-child(4) {
    height: 80%;
    animation-delay: 0.7s;
}

.bar:nth-child(5) {
    height: 100%;
    animation-delay: 0.9s;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials {
    padding: 8rem 0;
    background-color: var(--clr-secondary-light);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 1rem 0;
    scrollbar-width: none;
    /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.testimonial-card {
    min-width: 400px;
    background: var(--clr-secondary);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    scroll-snap-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: rgba(0, 212, 255, 0.2);
    margin-bottom: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-dark);
    font-weight: bold;
}

/* ==========================================================================
   CONTACT / QUOTE SECTION
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background: var(--clr-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--clr-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);
}

.contact-info-block {
    background: var(--clr-secondary-light);
    padding: 4rem 3rem;
}

.contact-info-block h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
}

.contact-form {
    padding: 4rem 3rem;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-control {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    color: var(--clr-white);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    border-bottom-color: var(--clr-primary);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--clr-text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-control:focus~.form-label,
.form-control:valid~.form-label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--clr-primary);
}

/* ==========================================================================
   FOOTER (Strictly Global)
   ========================================================================== */
.site-footer {
    background-color: #020C1B;
    /* Darker background for logo contrast */
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--clr-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-about {
    color: var(--clr-text-muted);
    max-width: 300px;
}

.footer-heading {
    color: var(--clr-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--clr-primary);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--clr-text-muted);
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   LIVE CHAT WIDGET
   ========================================================================== */
.live-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    z-index: 1000;
    transition: transform 0.3s;
}

.live-chat-btn:hover {
    transform: scale(1.1);
}

.live-chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: var(--clr-secondary);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.live-chat-window.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--clr-primary-dark);
    color: var(--clr-white);
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    height: 300px;
    padding: 1rem;
    overflow-y: auto;
    background: var(--clr-secondary-light);
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--clr-border);
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--clr-border);
    background: var(--clr-dark);
    color: var(--clr-white);
    border-radius: 4px;
    outline: none;
}

/* ==========================================================================
   LEGAL PAGES SPECIFIC STYLES
   ========================================================================== */
.legal-page {
    padding: 120px 0 80px;
    background: var(--clr-dark);
    min-height: 100vh;
}

.legal-content {
    background: var(--clr-secondary);
    padding: 4rem;
    border-radius: 8px;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--clr-primary);
    border-bottom: 1px solid var(--clr-border);
    padding-bottom: 1rem;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: var(--clr-white);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style: disc;
    color: var(--clr-text-muted);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes float3d {
    0% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }

    33% {
        transform: translateY(-20px) rotateX(5deg) rotateY(-5deg);
    }

    66% {
        transform: translateY(10px) rotateX(-5deg) rotateY(5deg);
    }

    100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    }

    100% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barGrow {
    from {
        transform: scaleY(0);
        opacity: 0;
    }

    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (Responsiveness)
   ========================================================================== */
@media (max-width: 992px) {

    .hero-container,
    .calc-wrapper,
    .reports-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-graphic {
        height: 300px;
        margin-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--clr-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .testimonial-card {
        min-width: 300px;
    }

    .legal-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .industry-content.active {
        grid-template-columns: 1fr;
    }
}