/* ==========================================================================
   CSS Variables & Theming (Digital Marketing Light Theme)
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: #4f46e5;
    /* Deep Indigo */
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    /* Electric Cyan */
    --accent: #f97316;
    /* vibrant orange */

    /* Neutral & Backgrounds */
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    /* Slate 900 for Header/Footer contrast */
    --bg-darker: #020617;

    /* Text Colors */
    --text-main: #334155;
    /* Slate 700 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #f8fafc;
    --text-light-muted: #94a3b8;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & Spacing */
    --container-width: 1280px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-color: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* ==========================================================================
   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);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--bg-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
}

.padding-section {
    padding: var(--spacing-xxl) 0;
}

.pt-header {
    padding-top: 100px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.bg-primary {
    background-color: var(--primary);
}

.bg-white {
    background-color: var(--bg-main);
}

.text-light {
    color: var(--text-light);
}

.text-light h1,
.text-light h2,
.text-light h3 {
    color: var(--text-light);
}

.text-light-muted {
    color: var(--text-light-muted);
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-cyan {
    color: var(--secondary);
}

.highlight-text {
    position: relative;
    color: var(--primary);
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary);
    opacity: 0.3;
    z-index: -1;
    border-radius: 4px;
}

.highlight-cyan {
    color: var(--secondary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-xxl {
    font-size: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.section-desc.centered {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.flex-between {
    display: flex;
    justify-content: space-between;
}

.flex {
    display: flex;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.p-2 {
    padding: 2rem;
}

.p-3 {
    padding: 3rem;
}

.p-4 {
    padding: 4rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-md {
    max-width: 800px;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.border-top {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.border-radius-md {
    border-radius: var(--border-radius);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.z-10 {
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.2rem 2.5rem;
    font-size: 1.25rem;
    border-radius: 50px;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   STRICT Header Design (Dark Theme for contrast)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    /* var(--bg-dark) */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    height: 80px;
    display: flex;
    align-items: center;
}

.site-header.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section & 3D
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    top: -100px;
    right: -100px;
    animation: float 10s infinite ease-in-out;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    left: -100px;
    animation: float 12s infinite ease-in-out reverse;
    opacity: 0.2;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    left: 20%;
    animation: float 8s infinite ease-in-out 2s;
    opacity: 0.15;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.avatars {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: 2px solid #fff;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
    background-color: var(--primary);
}

.avatar:nth-child(2) {
    background-color: var(--secondary);
}

.avatar:nth-child(3) {
    background-color: var(--accent);
}

/* 3D Visuals */
.perspective-container {
    perspective: 1200px;
}

.scene-3d {
    position: relative;
    width: 100%;
    height: 500px;
    transform-style: preserve-3d;
    animation: spin3d 20s infinite linear alternate;
}

.card-3d {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    transform-style: preserve-3d;
}

.card-main {
    width: 350px;
    height: 280px;
    top: 100px;
    right: 20px;
    transform: rotateY(-15deg) rotateX(5deg);
    z-index: 2;
}

.card-header {
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.card-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    padding-top: 20px;
}

.card-chart .bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
}

.h-20 {
    height: 20%;
}

.h-40 {
    height: 40%;
}

.h-50 {
    height: 50%;
}

.h-60 {
    height: 60%;
}

.h-80 {
    height: 80%;
}

.h-100 {
    height: 100%;
}

.card-float-1 {
    width: 200px;
    top: 40px;
    right: 280px;
    transform: translateZ(50px) rotateY(-5deg);
    z-index: 3;
    animation: float 4s infinite ease-in-out;
}

.card-float-2 {
    width: 180px;
    bottom: 80px;
    right: -20px;
    transform: translateZ(80px) rotateY(-20deg);
    z-index: 4;
    animation: float 5s infinite ease-in-out 1s;
}

.metric-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    mt: 0.5rem;
}

/* ==========================================================================
   Marquee Section
   ========================================================================== */
.marquee-section {
    padding: 2rem 0;
    background: #fff;
    overflow: hidden;
}

.marquee-container {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Feature List & Stats
   ========================================================================== */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.feature-list li svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--bg-dark);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--primary);
    color: #fff;
}

.icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.service-link svg {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.service-card:hover .service-link svg {
    transform: translateX(5px);
}

/* ==========================================================================
   Interactive Calculator Section
   ========================================================================== */
.check-list {
    list-style: none;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-light-muted);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.calc-card h3 {
    color: #fff;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group label span {
    font-weight: 700;
    color: var(--secondary);
}

/* Custom Range Slider Styling */
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: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

input[type=range]::-webkit-slider-thumb {
    border: 2px solid #fff;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    border: 2px solid #fff;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
}

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.result-box {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.result-box.highlighted {
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.5);
}

.result-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.result-box .result-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Industry Tabs
   ========================================================================== */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #f1f5f9;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn:hover {
    background: #e2e8f0;
    color: var(--bg-dark);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.tab-content-area {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.mockup-img {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: var(--shadow-md);
}

/* Fallback solid colors if images missing, though we use pure CSS */
.ecom-mock {
    background: linear-gradient(45deg, #10b981, #059669);
}

.saas-mock {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.health-mock {
    background: linear-gradient(45deg, #ec4899, #db2777);
}

.b2b-mock {
    background: linear-gradient(45deg, #f59e0b, #d97706);
}

/* ==========================================================================
   Dashboard Mockup (Pure CSS UI)
   ========================================================================== */
.dashboard-mockup {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.dash-header {
    background: #f8fafc;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.dash-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.dash-body {
    display: flex;
    height: 400px;
}

.dash-sidebar {
    width: 200px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px 0;
}

.menu-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}

.menu-item.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.dash-main {
    flex: 1;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.d-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.d-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.d-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.d-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 5px;
}

.d-trend.pos {
    color: #10b981;
}

.d-trend.neg {
    color: #ef4444;
}

.dash-chart-area {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.dash-chart-area h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.css-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 20px;
    position: relative;
    border-bottom: 1px dashed #e2e8f0;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    width: 40px;
}

.bar-col {
    width: 100%;
    border-radius: 4px 4px 0 0;
    animation: growUp 1.5s ease-out forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.bar-col.blue {
    background: var(--primary);
}

.bar-col.cyan {
    background: var(--secondary);
}

.bar-col.orange {
    background: var(--accent);
}

.bar-col.gray {
    background: #cbd5e1;
}

.bar-group span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 600;
    position: absolute;
    bottom: -25px;
}

/* ==========================================================================
   Process Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 70px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-light);
    z-index: 2;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   Testimonials Slider
   ========================================================================== */
.bg-pattern {
    background-image: radial-gradient(#fff 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.testi-slides-container {
    position: relative;
    height: 250px;
}

.testi-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateX(50px);
}

.testi-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.quote-icon {
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: -1rem;
    font-family: Georgia, serif;
}

.testi-text {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testi-author strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
}

.testi-author span {
    font-size: 0.9rem;
    color: var(--text-light-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #fff;
    color: var(--primary);
}

/* ==========================================================================
   Live Chat Mockup
   ========================================================================== */
.chat-window {
    max-width: 350px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%234f46e5"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/80% no-repeat;
}

.agent-name {
    font-weight: 600;
    font-size: 1rem;
}

.agent-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.chat-body {
    padding: 20px 15px;
    background: #f8fafc;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    max-width: 85%;
}

.msg.received {
    background: #e2e8f0;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.sent {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.send-btn {
    color: var(--primary);
    cursor: pointer;
    font-size: 1.2rem;
}

/* ==========================================================================
   Contact Forms & Legal Pages
   ========================================================================== */
.custom-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--bg-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    cursor: pointer;
}

.legal-page .page-header-section {
    padding: 120px 0 60px;
}

.text-reading {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.text-reading h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--bg-dark);
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.text-reading p {
    margin-bottom: 1.5rem;
}

.text-reading ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.text-reading li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   STRICT Footer Design
   ========================================================================== */
.site-footer {
    background-color: var(--bg-darker);
    color: var(--text-light-muted);
    padding-top: 5rem;
    font-size: 0.95rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-heading {
    color: #fff;
    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: 30px;
    height: 2px;
    background: var(--secondary);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links ul,
.footer-legal ul {
    padding: 0;
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.8rem;
}

.footer-links a,
.footer-legal a {
    color: var(--text-light-muted);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.contact-list svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    background: #000;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
}

.small-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0% {
        transform: translateY(0px) translateZ(0);
    }

    50% {
        transform: translateY(-20px) translateZ(10px);
    }

    100% {
        transform: translateY(0px) translateZ(0);
    }
}

@keyframes spin3d {
    0% {
        transform: rotateY(-10deg) rotateX(5deg);
    }

    100% {
        transform: rotateY(10deg) rotateX(-5deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes growUp {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.pulse-anim {
    animation: pulseGlow 2s infinite;
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ==========================================================================
   Media Queries (Responsive Design)
   ========================================================================== */
@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .scene-3d {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .tab-grid {
        grid-template-columns: 1fr;
    }

    .tab-text {
        text-align: center;
    }

    .timeline::before {
        left: 50%;
    }

    .timeline-item {
        padding-left: 0;
        text-align: center;
        width: 50%;
    }

    .timeline-item:nth-child(odd) {
        float: left;
        clear: right;
        transform: translateX(-30px);
        padding-right: 30px;
    }

    .timeline-item:nth-child(even) {
        float: right;
        clear: left;
        transform: translateX(30px);
        padding-left: 30px;
    }

    .timeline-dot {
        left: auto;
        right: -25px;
        top: 15px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -25px;
        right: auto;
    }

    .timeline-content::before {
        display: none;
    }

    .chat-mockup-wrap {
        order: 2;
        margin-top: 2rem;
    }

    .chat-text {
        order: 1;
        text-align: center;
    }

    .chat-text .feature-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    /* Header Mobile Menu */
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.25rem;
    }

    .hamburger {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dash-body {
        flex-direction: column;
        height: auto;
    }

    .dash-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 0;
    }

    .dash-cards {
        grid-template-columns: 1fr;
    }

    .calc-results {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        width: 100%;
        float: none;
        clear: none;
        transform: none !important;
        padding-left: 70px !important;
        text-align: left;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: 0 !important;
        right: auto !important;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-stack {
        flex-direction: column;
        gap: 10px;
    }

    .custom-form .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }

    .card-main {
        width: 100%;
        height: auto;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }

    .card-float-1,
    .card-float-2 {
        display: none;
    }

    .scene-3d {
        animation: none;
        transform: none;
        height: auto;
    }

    .page-title {
        font-size: 2rem;
    }
}