:root {
    /* Colors */
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Brand Colors - Glowing Cyan/Blue matching logo */
    --accent-primary: #2db6fa;
    --accent-secondary: #1a63d4;
    --accent-glow: rgba(45, 182, 250, 0.2);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-max-width: 1200px;
    --section-spacing: 80px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #0f172a, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    /* Sharp technical feel */
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(26, 99, 212, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(26, 99, 212, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(45, 182, 250, 0.05);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    display: block;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-base);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 2;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background-color: var(--bg-surface);
    background-image:
        linear-gradient(rgba(45, 182, 250, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 182, 250, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(45, 182, 250, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 182, 250, 0.08) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.tech-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 4px;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

/* Hero Load Animations */
@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero-content .tech-badge {
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-content .hero-title {
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.hero-content .hero-subtitle {
    animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-content .hero-ctas {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* ===== SOCIAL PROOF ===== */
.social-proof-section {
    padding: 40px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.proof-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
}

.logo-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all var(--transition-medium);
}

.logo-strip:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.proof-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proof-logo img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

/* ===== INDUSTRIES WE SERVE ===== */
.industries-section {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }
}

.industry-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: flex-end;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.industry-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
    z-index: 1;
}

.industry-card:hover .industry-card-bg {
    transform: scale(1.05);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
    z-index: 2;
    transition: background var(--transition-medium);
}

.industry-card:hover .industry-overlay {
    background: linear-gradient(to top, rgba(26, 99, 212, 0.9) 0%, rgba(15, 23, 42, 0.3) 70%, transparent 100%);
}

.industry-content {
    position: relative;
    z-index: 3;
    padding: 24px;
    width: 100%;
}

.industry-content h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 8px;
    transform: translateY(20px);
    transition: transform var(--transition-medium);
}

.industry-card:hover .industry-content h3 {
    transform: translateY(0);
}

.industry-content .card-link {
    color: var(--accent-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-medium);
}

.industry-card:hover .industry-content .card-link {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback procedural backgrounds for industries if images are missing */
.ind-bg-1 {
    background-image: radial-gradient(circle at center, #334155 0%, #0f172a 100%);
}

.ind-bg-2 {
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.ind-bg-3 {
    background-image: radial-gradient(circle at top right, #334155 0%, #0f172a 100%);
}

.ind-bg-4 {
    background-image: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
}

/* ===== SERVICES GRID (What We Do) ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 8px;
    /* Slightly rounded to offset sharp buttons */
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 182, 250, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    z-index: 2;
    position: relative;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    z-index: 2;
    position: relative;
}

.card-link {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.card-link:hover {
    color: var(--accent-primary);
}

/* ===== PROBLEM / SOLUTION GRID ===== */
.problem-solution-section {
    background: var(--bg-surface);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.problem-side,
.solution-side {
    padding: 60px;
}

.problem-side {
    background: linear-gradient(to bottom right, rgba(230, 235, 240, 0.5), transparent);
    border-right: 1px solid var(--border-color);
}

.solution-side {
    background: linear-gradient(to bottom right, rgba(225, 240, 255, 0.4), transparent);
}

.side-header {
    margin-bottom: 40px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.success {
    background: rgba(45, 182, 250, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(45, 182, 250, 0.3);
}

.side-header h2 {
    font-size: 2rem;
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.icon-error {
    width: 24px;
    height: 24px;
    color: #ff5555;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-success {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== CASE STUDIES ===== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.case-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 182, 250, 0.3);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
}

.case-image {
    height: 200px;
    background-color: var(--bg-surface-elevated);
    position: relative;
    overflow: hidden;
}

/* Procedural grid backgrounds for case studies */
.bg-pattern-1 {
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern-2 {
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-pattern-3 {
    background-image: repeating-linear-gradient(45deg, var(--border-color) 0, var(--border-color) 1px, transparent 1px, transparent 10px);
}

.case-content {
    padding: 32px;
}

.case-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.case-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    min-height: 66px;
}

.metrics {
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ===== TIMELINE (How It Works) ===== */
.timeline-section {
    background: var(--bg-surface);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.step-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-base);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(45, 182, 250, 0.2);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ===== TECH STACK ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    text-align: center;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(45, 182, 250, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== WHY SPHERTECH ===== */
.why-section {
    background: var(--bg-surface);
}

.why-horizontal-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: stretch;
}

.feature-list-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.feature-list-horizontal li {
    position: relative;
    padding-top: 24px;
}

.feature-list-horizontal li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(45, 182, 250, 0.5);
}

.feature-list-horizontal strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-list-horizontal p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(45, 182, 250, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(45, 182, 250, 0.2);
    transition: all var(--transition-medium);
}

.feature-list-horizontal li:hover .feature-icon-wrapper {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(45, 182, 250, 0.3);
}

.feature-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

/* Animated Section Background */
.why-animated-bg {
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
}

.why-animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(45, 182, 250, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 99, 212, 0.05) 0%, transparent 40%);
    animation: slowSpinBg 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.why-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes slowSpinBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== FINAL CTA ===== */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(45, 182, 250, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

.cta-box .btn {
    position: relative;
    z-index: 2;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-base);
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.link-group a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== ANIMATIONS & REVEALS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all var(--transition-slow);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all var(--transition-slow);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ===== PARALLAX & SCROLL ANIMATIONS ===== */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.relative-z {
    position: relative;
    z-index: 2;
}

/* 1. Industries Parallax Shapes */
.parallax-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    will-change: transform;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    right: -150px;
}

/* 2. What We Do Glowing Orbs */
.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.12;
    z-index: 0;
    will-change: transform;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #00d2ff;
    top: 10%;
    left: 5%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #3a7bd5;
    bottom: 10%;
    right: 5%;
}

/* 3. Case Studies Diagonal */
.diagonal-bg {
    position: absolute;
    inset: -300px;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(45, 182, 250, 0.02) 40px, rgba(45, 182, 250, 0.02) 80px);
    z-index: 0;
    will-change: transform;
}

/* 4. Timeline Progress */
.timeline-progress-track {
    position: absolute;
    left: calc(50% - 1px);
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 1;
}

.timeline-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    /* JS will animate this */
    background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary));
    box-shadow: 0 0 15px var(--accent-primary);
    will-change: height;
}

/* 5. Tech Stack Digital Grid */
.digital-grid-bg {
    position: absolute;
    inset: -200px;
    background-image:
        linear-gradient(rgba(45, 182, 250, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 182, 250, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    will-change: transform;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .problem-side {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile fallback */
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        top: 0;
        left: 24px;
        width: 1px;
        height: 100%;
    }

    .timeline-step {
        padding-top: 0;
        padding-left: 80px;
        min-height: 80px;
    }

    .step-number {
        top: 0;
        left: 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 40px;
        flex-direction: column;
    }
}

/* ===== CONTACT MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-surface);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-medium);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 32px;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(45, 182, 250, 0.1);
}