/* ==========================================================================
   CSS Variables & Global Reset
   ========================================================================== */
:root {
    --bg-dark: #07070a;
    --bg-darker: #030305;
    --bg-card: rgba(15, 15, 20, 0.7);
    --bg-glass: rgba(10, 10, 15, 0.85);
    --text-main: #d1d1e0;
    --text-light: #ffffff;
    --text-muted: #8a8a9e;
    --accent: #00f0ff;
    --accent-hover: #00c3ff;
    --accent-secondary: #7000ff;
    --accent-secondary-hover: #9000ff;
    --error: #ff0055;
    --success: #00ffaa;
    --border-color: rgba(0, 240, 255, 0.15);
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --border-radius: 4px;
    --header-height: 90px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default for custom cursor */
}

::selection {
    background-color: var(--accent);
    color: var(--bg-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

body:hover .cursor {
    opacity: 1;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo img {
    width: 150px;
    margin-bottom: 30px;
    filter: invert(1) drop-shadow(0 0 10px var(--accent));
    animation: pulse 2s infinite;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background-color: var(--border-color);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.preloader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    animation: loadBar 2s ease-in-out infinite;
}

.preloader p {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--accent);
}

@keyframes loadBar {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

/* ==========================================================================
   Glitch Effect
   ========================================================================== */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--error);
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    animation: glitchAnim1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent);
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    animation: glitchAnim2 3s infinite linear alternate-reverse;
}

@keyframes glitchAnim1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 50% 0);
    }
}

@keyframes glitchAnim2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--border-radius);
    cursor: none;
    /* Custom cursor handler */
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.4rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent));
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    filter: invert(1);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: none;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle .bar {
    width: 30px;
    height: 2px;
    background-color: var(--accent);
    transition: all var(--transition-fast);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-darker);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-medium);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-light);
}

/* ==========================================================================
   Hero Section (Index)
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.subtitle {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 0.9;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* 3D Cube Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.cube-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid var(--accent);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(100px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(100px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(100px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(100px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   About/Stats Section
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    border-radius: var(--border-radius);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent);
    transition: height var(--transition-medium);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.service-features {
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.service-features li i {
    color: var(--success);
    font-size: 0.8rem;
}

/* ==========================================================================
   Industries Section (Tabs)
   ========================================================================== */
.industry-tabs {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: none;
    transition: all var(--transition-fast);
    position: relative;
}

.tab-btn.active {
    color: var(--accent);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-pane-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tab-pane-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 200px;
}

.background-icon {
    font-size: 10rem;
    color: rgba(0, 240, 255, 0.05);
    position: absolute;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Process/Battle Plan Section
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    top: 0;
    right: -25px;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent);
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.timeline-item:nth-child(even) .timeline-marker {
    right: auto;
    left: -25px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-secondary);
}

.timeline-content p {
    margin: 0;
    color: var(--text-muted);
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.check-list {
    margin-top: 30px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.check-list li i {
    color: var(--accent);
    font-size: 1.2rem;
}

.calc-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.calc-header {
    background: rgba(0, 240, 255, 0.1);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.calc-header h3 {
    margin: 0;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-body {
    padding: 30px;
}

.calc-group {
    margin-bottom: 25px;
}

.calc-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-light);
}

.calc-group label span {
    color: var(--accent);
}

/* Range Sliders */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: none;
    background: var(--bg-dark);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: none;
    -webkit-appearance: none;
    margin-top: -9px;
    box-shadow: 0 0 10px var(--accent);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: none;
    background: var(--bg-dark);
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--accent);
    cursor: none;
    box-shadow: 0 0 10px var(--accent);
    border: none;
}

.calc-result-box {
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    text-align: center;
    border-radius: var(--border-radius);
}

.calc-result-box span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calc-total {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--success);
    line-height: 1;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.4);
}

/* ==========================================================================
   Reports / Charts Section
   ========================================================================== */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--border-radius);
}

.chart-info {
    margin-bottom: 20px;
}

.chart-info h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.chart-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.chart-visual {
    height: 200px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* SVG Line Chart */
.line-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawLine 3s ease forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* CSS Bar Chart */
.css-bar-chart {
    justify-content: space-around;
}

.bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    width: 30%;
}

.bar {
    width: 100%;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transform-origin: bottom;
    animation: growBar 1.5s ease forwards;
}

.bar.old {
    background: var(--error);
}

.bar.new {
    background: var(--success);
}

.bar-wrap span {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.chart-stats {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.chart-stats .positive {
    color: var(--success);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.test-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.test-quote {
    font-style: italic;
    color: var(--text-main);
    flex-grow: 1;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.author-info strong {
    display: block;
    color: var(--text-light);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-box {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(0, 240, 255, 0.2));
    border: 1px solid var(--accent);
    padding: 80px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.cta-box h2 {
    font-size: 4rem;
}

.cta-box p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    filter: invert(1);
    margin-bottom: 20px;
}

.footer-about-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}

.footer-col-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-info-list li i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 350px;
    background: var(--bg-darker);
    border: 1px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    background: var(--bg-card);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
    border-radius: 8px 8px 0 0;
}

.chat-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-body {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-dark);
}

.chat-message {
    margin-bottom: 15px;
    max-width: 85%;
}

.chat-message.bot p {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 0 10px 10px 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.chat-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: block;
}

.chat-footer {
    padding: 15px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    border-radius: 0 0 8px 8px;
}

.chat-footer input {
    flex-grow: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: 4px;
    font-family: var(--font-body);
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-footer button {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    width: 40px;
    border-radius: 4px;
    cursor: none;
}

.chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    z-index: 9998;
    cursor: none;
    transition: transform var(--transition-fast);
}

.chat-fab:hover {
    transform: scale(1.1);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==========================================================================
   Page Headers (Subpages)
   ========================================================================== */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 4.5rem;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 10px;
    color: var(--accent-secondary);
}

/* ==========================================================================
   Contact Page Specific
   ========================================================================== */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info-list-page {
    margin-top: 40px;
}

.contact-info-list-page li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.info-content span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-content a,
.info-content span:last-child {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 15px 15px 45px;
    color: var(--text-main);
    font-family: var(--font-body);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    border-radius: 4px;
    resize: vertical;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus,
.input-wrapper select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* ==========================================================================
   Popup
   ========================================================================== */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-content {
    background: var(--bg-darker);
    border: 2px solid var(--accent);
    padding: 50px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
    position: relative;
    max-width: 500px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: none;
}

.popup-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.popup h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Legal Pages (Privacy, Terms, Disclaimer)
   ========================================================================== */
.legal-page .legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 60px;
    border-radius: var(--border-radius);
}

.content-wrapper h2 {
    font-size: 2.2rem;
    color: var(--accent);
    margin: 40px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.content-wrapper p {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.legal-list {
    margin-left: 20px;
    margin-bottom: 30px;
}

.legal-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.legal-list li i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Hover States
   ========================================================================== */
.animate-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-in.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1) !important;
}

[data-animation="fade-in-up"] {
    transform: translateY(50px);
}

[data-animation="fade-in-down"] {
    transform: translateY(-50px);
}

[data-animation="fade-in-left"] {
    transform: translateX(-50px);
}

[data-animation="fade-in-right"] {
    transform: translateX(50px);
}

[data-animation="zoom-in"] {
    transform: scale(0.9);
}

/* 3D Tilt utility class logic is in JS, but needs transition here */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .contact-grid-layout {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .timeline-item:nth-child(even) {
        padding-left: 80px;
    }

    .timeline-marker {
        left: 5px !important;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .header-cta,
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .tab-pane-grid {
        grid-template-columns: 1fr;
    }

    .tab-pane-visual {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
    }

    .chat-widget {
        width: 300px;
        right: 10px;
        bottom: 80px;
    }

    .chat-fab {
        right: 10px;
        bottom: 10px;
    }

    .page-title {
        font-size: 3rem;
    }
}