/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
:root {
    /* Base Colors - Dark Theme (Default) */
    --bg-primary: #030014;
    --bg-secondary: rgba(15, 12, 41, 0.6);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    /* Accents */
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #ec4899;
    --accent-etl: #f97316;
    /* NEW: Orange Branding */

    /* Text on Backgrounds */
    --text-on-accent: #ffffff;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.05);

    /* Section Specifics */
    --section-bg-gradient: radial-gradient(ellipse at top, rgba(15, 12, 41, 0.8) 0%, rgba(3, 0, 20, 1) 100%);
    --section-inset-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --accent-shadow-p: 0 4px 15px rgba(139, 92, 246, 0.3);
    --accent-shadow-s: 0 4px 15px var(--accent-secondary);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Fluid Typography Variables */
    --h1-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    --h2-size: clamp(2rem, 4vw + 1rem, 3rem);
    --h3-size: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
    --body-lg: clamp(1.125rem, 2vw + 0.5rem, 1.25rem);
    --body-md: clamp(1rem, 1vw + 0.5rem, 1.125rem);

    /* Dynamic Spacing */
    --section-padding: clamp(4rem, 8vw, 6rem);

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

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;

    --accent-primary: #7c3aed;
    --accent-secondary: #0891b2;

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-hover: rgba(0, 0, 0, 0.03);

    --section-bg-gradient: radial-gradient(ellipse at top, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 1) 100%);
    --section-inset-shadow: inset 0 0 100px rgba(0, 0, 0, 0.03);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    --accent-shadow-p: 0 4px 15px rgba(124, 58, 237, 0.15);
    --accent-shadow-s: 0 4px 15px rgba(8, 145, 178, 0.15);
}

/* Force Light Theme Colors for Logo elements to fix visibility */
[data-theme="light"] .logo-bold {
    color: #0f172a !important;
}

[data-theme="light"] .logo-light {
    color: #475569 !important;
}

[data-theme="light"] .nav-link {
    color: #475569 !important;
}


/* ==========================================================================
     Reset & Baseline
     ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Aggressive overflow control for mobile */
    max-width: 100vw;
}

/* ==========================================================================
     Accessibility Utilities
     ========================================================================== */

/* Skip to main content link — visually hidden until focused */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Focus-visible ring on ALL interactive elements (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove default ugly focus outline for mouse users (kept for keyboard) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

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

.text-etl {
    color: var(--accent-etl);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
     Layout & Utilities
     ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 10;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

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

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

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

/* ==========================================================================
     Components
     ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-on-accent);
    box-shadow: var(--accent-shadow-p);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--glass-border);
    background: var(--card-hover);
    transform: translateY(-2px);
}

/* Header typography */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.text-center.section-desc {
    text-align: center;
    margin-inline: auto;
}

/* Hover Glow Utility */
.hover-glow {
    transition: var(--transition-normal);
}

.hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: var(--accent-shadow-p);
    border-color: var(--accent-primary);
    background: var(--card-hover);
}

/* ==========================================================================
     Background Effects
     ========================================================================== */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: 20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

.orb-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    opacity: 0.2;
    animation: float 20s infinite ease-in-out alternate;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 100px) scale(1.2);
    }
}

/* ==========================================================================
     Navbar
     ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-primary);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.navbar-scrolled {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.theme-btn {
    background: var(--card-hover);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1.2rem;
    margin-left: 1rem;
}

.theme-btn:hover {
    background: var(--glass-border);
    transform: scale(1.1);
    color: var(--accent-primary);
}

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

/* Compact navbar CTA so it fits neatly between theme btn and hamburger */
.nav-content>.btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-height: unset;
    margin: 0 0.75rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    flex-shrink: 0;
}

.logo-bold {
    font-weight: 800;
    color: var(--text-primary) !important;
}

.logo-light {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    display: none;
    gap: 1.5rem;
    margin-left: 2rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-normal);
    white-space: nowrap;
    padding: 1rem 0;
    /* Align vertical padding with logo to geometrically center text */
}

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

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

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

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
    }

    .mobile-toggle {
        display: none;
    }
}

/* ── Off-Canvas Mobile Drawer ─────────────────────────────────────── */
/* Overlay backdrop */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100dvh;
    background: var(--bg-secondary);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Close button at top-right of drawer */
.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

/* Brand line inside drawer */
.mobile-menu-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Nav links inside drawer — fat-finger 48px targets */
.mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 0.5rem;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    color: var(--accent-primary);
    background: var(--card-hover);
}

/* CTA inside drawer */
.mobile-menu .btn {
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
    min-height: 48px;
}



/* ==========================================================================
     Hero Section
     ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-visual {
    position: absolute;
    top: 0;
    right: -10%;
    width: 70%;
    height: 100%;
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
    opacity: 0.5;
    pointer-events: none;
}

[data-theme="light"] .hero-visual img {
    opacity: 0.25;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid !important;
    grid-template-columns: 1fr;
    text-align: left;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 700px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Stats cards - equal height, center aligned */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Industry pills — name-only redesign */
.industry-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-primary);
    cursor: default;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.industry-pill i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.industry-pill:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
}

@media (max-width: 600px) {
    .industry-pill {
        font-size: 0.9rem;
        padding: 0.75rem 1.15rem;
        gap: 0.6rem;
    }

    .industry-pill i {
        font-size: 1.1rem;
    }
}


.stat-card {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-normal);
    height: 100%;
}

.stat-card:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: var(--h3-size);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: var(--h3-size);
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Feature cards - equal height */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--h3-size);
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-p {
    color: var(--text-secondary);
}

/* ==========================================================================
     Split Section (Expertise, Who Needs, Get Started)
     ========================================================================== */
.split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .split-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Ensures the visual column stretches to same height as content column */
.split-visual {
    display: flex;
    flex-direction: column;
}

.side-visual {
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    flex: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}


/* Content column: vertically centered against the image */
.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    flex: 1;
    transition: transform 0.5s ease;
}


.side-visual:hover img {
    transform: scale(1.05);
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), transparent);
    pointer-events: none;
}

/* Specific styles for the DATUM Diagram to prevent cropping */
.diagram-container {
    min-height: auto !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
}

.diagram-img {
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    max-height: 500px;
    border-radius: 1rem;
}

/* Subtle floating animation */
@keyframes softFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

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

.animate-float {
    animation: softFloat 4s ease-in-out infinite;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
}

.benefit-list i {
    font-size: 1.5rem;
    margin-top: 2px;
}

/* Visual Animation Card */
.visual-card {
    border-radius: 1rem;
    overflow: hidden;
}

.visual-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.mac-dots {
    display: flex;
    gap: 6px;
}

.mac-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-dots span:nth-child(1) {
    background: #ff5f56;
}

.mac-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mac-dots span:nth-child(3) {
    background: #27c93f;
}

.visual-title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #ffffff;
    /* Always white on dark header */
    font-weight: 500;
}

.visual-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pipeline-step {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    border: 1px solid var(--card-hover);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: var(--transition-normal);
    cursor: pointer;
}

.pipeline-step i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.step-text {
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.pipeline-step:hover,
.active-step {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-secondary);
    transform: translateX(5px);
}

.pipeline-step:hover i,
.pipeline-step:hover .step-text,
.active-step i,
.active-step .step-text {
    color: var(--accent-secondary);
}

/* ==========================================================================
     CTA Section
     ========================================================================== */
.cta-card {
    padding: 4rem 2rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-orb {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 60%);
    opacity: 0.15;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .contact-links {
        flex-direction: row;
    }
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    min-width: 250px;
    background: var(--glass-bg);
}

.contact-btn:hover {
    background: var(--glass-border);
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-on-accent);
}

.contact-info {
    text-align: left;
    min-width: 0;
}

.c-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.c-value {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
     Footer
     ========================================================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 4rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
    margin-bottom: 3rem;
}

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

.footer-p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-links-group {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--text-on-accent);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
     Data Engineering Section Specifics
     ========================================================================== */

.mt-5 {
    margin-top: 5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.sub-section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.de-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.de-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.de-list li::before {
    content: "•";
    color: var(--accent-secondary);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.large-list li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.large-list li strong {
    color: var(--text-primary);
}

/* 1. Project Types - equal height cards */
.project-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 5rem;
    align-items: stretch;
}

@media (min-width: 992px) {
    .project-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.type-card {
    padding: 2rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.type-header i {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.type-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

/* 2. Principles */
.principles-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.principle-item {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.principle-item i {
    font-size: 3rem;
}

.principle-item h4 {
    font-size: 1.35rem;
    margin: 0;
}

.principle-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.principle-item i {
    font-size: 2.5rem;
}

/* Approach flow - vertically aligned at center */
.approach-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .approach-flow {
        flex-direction: row;
        align-items: center;
    }
}

/* Flow cards - equal fixed height */
.flow-card {
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    width: 200px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.raw-card {
    background: var(--card-hover);
    border: 1px dashed var(--glass-border);
}

.process-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.final-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.flow-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.flow-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 991px) {
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* 4. Audience visual spacer */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.audience-visual {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.mb-5 {
    margin-bottom: 3rem;
}

.pt-5 {
    padding-top: 5rem;
    border-top: 1px solid var(--card-hover);
}

.pb-4 {
    padding-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.d-block {
    display: block;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/* Visual Divider */
.section-divider {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    opacity: 0.5;
    margin: 2rem 0;
}

.data-eng {
    background: var(--section-bg-gradient);
    position: relative;
    padding-top: 8rem;
    padding-bottom: 8rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.data-eng::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: var(--section-inset-shadow);
    z-index: 1;
}

.data-eng .container {
    position: relative;
    z-index: 2;
}

/* 5. Migrations Addition */
.migrations-grid {
    margin-bottom: 0;
}

/* 6. Timeline Addition */
.timeline-chevron-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .timeline-chevron-wrapper {
        flex-direction: row;
        gap: 1.5rem;
        max-width: 100%;
        justify-content: space-between;
    }
}

.chevron-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 0;
}

.chevron-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    z-index: 5;
    box-shadow: var(--accent-shadow-p);
}

.chevron-number.bg-alt {
    background: var(--accent-secondary);
}

/* Principles Refinements */
.principles-container {
    padding: 4rem 1.5rem;
    position: relative;
    border-radius: 2rem;
    margin-top: 2rem;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .principles-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Principles tiles - strictly uniform */
.principle-item {
    padding: 2.5rem 1.5rem;
    border-radius: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    transition: var(--transition-normal);
    height: 100%;
    box-sizing: border-box;
}

.principle-item:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
}

.principle-item i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.principle-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.principle-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.section-margin-top {
    margin-top: 6rem;
}

.large-list li {
    padding-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .split-container {
        flex-direction: column !important;
        text-align: center;
    }

    .split-content {
        order: 2;
    }

    .split-visual {
        order: 1;
        margin-bottom: 2rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.chevron-number.bg-alt {
    background: var(--accent-secondary);
    box-shadow: var(--accent-shadow-s);
}

.chevron-bubble {
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    width: 100%;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

@media (min-width: 992px) {
    .timeline-chevron-wrapper::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 5%;
        right: 5%;
        height: 2px;
        background: var(--glass-border);
        z-index: 1;
    }
}

/* Use case cards - consistent sizing */
.usecase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

@media (min-width: 768px) {
    .usecase-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.usecase-card {
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.usecase-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--accent-secondary);
}

.usecase-card i {
    font-size: 3rem;
    display: block;
    flex-shrink: 0;
}

.usecase-card h4 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 0;
}

.usecase-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
     Animations
     ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   RESPONSIVE — Mobile First
   Breakpoints:
     xs  : ≤ 480px  (phone portrait)
     sm  : ≤ 600px  (phone landscape / small tablet)
     md  : ≤ 768px  (tablet portrait)
     lg  : ≤ 991px  (tablet landscape)
     xl  : ≥ 992px  (desktop — most layout already handles this)
   ========================================================================== */

/* ── Hero section ─────────────────────────────────────────────────────────── */
/* Ensure hero always fills at least the viewport less the navbar height */
header.hero {
    min-height: calc(100vh - 70px);
    padding: 6rem 0 4rem;
    display: flex;
    align-items: center;
}

/* Hero canvas — covers the hero section only */
#hero-particle-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 0;
}

/* Centred hero text */
header.hero .container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    align-items: center !important;
    text-align: center !important;
    width: 100%;
}

.hero-cta {
    justify-content: center !important;
    flex-wrap: wrap;
}

/* ── Global section padding ───────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

/* ── Container horizontal padding safety ─────────────────────────────────── */
.container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ── Approach / flow arrow to vertical on small screens ─────────────────── */
.approach-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

/* ============================================================
   ≤ 991px — Tablet landscape & below
   ============================================================ */
@media (max-width: 991px) {

    /* Hero */
    header.hero {
        min-height: auto;
        padding: 5rem 0 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    /* Particle canvas reduced particle count is handled by JS */

    /* Section padding */
    .section {
        padding: 4rem 0;
    }

    /* Stats grid — 2 cols on tablet */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Type cards (Technology & Ecosystem) — wrap to 1 col */
    .type-cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Industries grid */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Case studies */
    .case-grid {
        grid-template-columns: 1fr !important;
    }

    /* Flow chart — vertical on tablet */
    .approach-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .flow-card,
    .raw-card,
    .process-card,
    .final-card {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Principles grid — 2 or 3 cols on tablet */
    .principles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Feature grid — 1 col */
    .feature-grid {
        grid-template-columns: 1fr !important;
    }

    /* Split sections already handled, but ensure text centre */
    .split-content {
        text-align: center;
    }

    .benefit-list {
        display: inline-flex;
        flex-direction: column;
        text-align: left;
    }
}

/* ============================================================
   ≤ 768px — Tablet portrait
   ============================================================ */
@media (max-width: 768px) {

    /* Typography */
    .sub-section-title {
        font-size: 1.4rem;
    }

    /* Hero padding */
    header.hero {
        padding: 4.5rem 0 3rem;
    }

    /* Section padding */
    .section {
        padding: 3.5rem 0;
    }

    /* CTA button stack */
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 340px;
        text-align: center;
        justify-content: center;
    }

    /* Stats — 2 col */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Technology icons */
    .type-card {
        padding: 2rem 1.25rem !important;
    }

    /* Principles all in 1 col */
    .principles-grid {
        grid-template-columns: 1fr !important;
    }

    /* Migrations / migration type cards */
    .migrations-grid {
        grid-template-columns: 1fr !important;
    }

    /* Use-case grid */
    .usecase-grid {
        grid-template-columns: 1fr !important;
    }

    /* Industries — 2 col */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Footer columns */
    .footer-links {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    /* Section data-eng padding */
    .data-eng {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* ============================================================
   ≤ 600px — Small tablet / phone landscape
   ============================================================ */
@media (max-width: 600px) {

    /* Container flush padding */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Hero compact */
    header.hero {
        padding: 4rem 0 2.5rem;
    }

    .hero-title {
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Nav CTA button — hide text on very small nav */
    .hero-cta .btn {
        max-width: 100%;
    }

    /* Stats — full width */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Feature cards compact */
    .feature-card {
        padding: 1.75rem 1.25rem;
    }

    /* Section header */
    .section-header {
        margin-bottom: 2rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    /* Principle items */
    .principle-item {
        padding: 2rem 1rem !important;
    }

    /* Side visuals full width */
    .side-visual {
        min-height: 250px;
    }

    /* Timeline chevrons */
    .timeline-chevron-wrapper {
        gap: 2rem;
    }

    .chevron-bubble {
        padding: 1rem;
        min-height: 70px;
    }
}

/* ============================================================
   ≤ 480px — Phone portrait (xs)
   ============================================================ */
@media (max-width: 480px) {

    /* Smallest container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero tight */
    header.hero {
        padding: 3.5rem 0 2rem;
    }



    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Buttons full width */
    .hero-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Stats single column for tiny screens */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Section padding */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .sub-section-title {
        font-size: 1.25rem;
    }

    /* Cards */
    .feature-card,
    .usecase-card {
        padding: 1.5rem 1rem;
    }

    /* Industries — single col */
    .industries-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer */
    .footer-bottom {
        text-align: center;
        font-size: 0.85rem;
    }

    /* Principles — single col */
    .principle-item {
        padding: 1.75rem 1rem !important;
    }

    .principle-item i {
        font-size: 2.5rem;
    }

    /* Nav compact text */
    .nav-cta .btn {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }

    /* Section desc */
    .section-desc {
        font-size: 0.9rem;
    }

    /* Technology tiles */
    .type-card {
        padding: 1.5rem 1rem !important;
    }

    /* Flow cards */
    .flow-card,
    .raw-card,
    .process-card,
    .final-card {
        max-width: 100%;
        padding: 1.25rem;
    }

    /* Data engineering section */
    .data-eng {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ============================================================
   Desktop ≥ 992px  — ensure hero text stays centred
   ============================================================ */
@media (min-width: 992px) {

    header.hero {
        padding: 7rem 0 5rem;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    /* Principles — 5 equal columns on large screen */
    .principles-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    /* Stats — 4 col on desktop */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ── 44 px minimum touch targets (WCAG 2.5.5) ──────────────────────────────── */
.mobile-toggle {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn {
    min-width: 44px;
    min-height: 44px;
}

.industry-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.contact-btn {
    min-height: 44px;
}

/* ADA: ensure all nav links have generous tap area */
.mobile-menu .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
}

/* Word-break on headings prevents overflow on very narrow screens */
h1,
h2,
h3,
h4 {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* iOS / Android: suppress tap highlight, use our own focus ring instead */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* ── Very small screens: iPhone SE, Galaxy A series (≤ 380px) ─────────────── */
@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    }

    .badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }

    .container {
        padding: 0 1rem;
    }

    .stat-card {
        padding: 1rem;
    }
}

/* ── Contact buttons: stack on phones ───────────────────────────────────── */
@media (max-width: 600px) {
    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-btn {
        width: 100%;
        min-width: 0;
        padding: 1rem 1.25rem;
    }

    .c-value {
        font-size: 0.9rem;
        word-break: break-all;
    }

    /* Case study 3-col grid → 1 col on phones */
    .project-types-grid[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer columns stack */
    .footer-links-group {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* ── Mobile navbar: keep logo + theme-toggle + hamburger all on one row ──── */
@media (max-width: 767px) {

    /* Tighter container padding so items have more room */
    .navbar .container {
        padding: 0 0.75rem;
    }

    /* Shrink logo font on mobile so it doesn't push hamburger off-screen */
    .logo {
        font-size: 1.1rem;
        flex-shrink: 1;
        min-width: 0;
    }

    /* Smaller theme btn on mobile */
    .theme-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-left: 0.5rem;
        flex-shrink: 0;
    }

    /* Ensure nav-content never overflows */
    .nav-content {
        flex-wrap: nowrap;
        overflow: hidden;
    }
}

/* Hide nav CTA button when hamburger is visible (< 768px) */
@media (max-width: 767px) {
    .nav-content>.btn {
        display: none;
    }
}

/* ── Touch / tap improvements ─────────────────────────────────────────────── */
@media (hover: none) {

    /* Remove hover transforms on touch devices to prevent sticky states */
    .feature-card:hover,
    .stat-card:hover,
    .principle-item:hover,
    .usecase-card:hover,
    .type-card:hover {
        transform: none;
    }

    /* Ensure buttons have good tap target size */
    .btn {
        min-height: 44px;
    }

    .nav-link {
        padding: 0.5rem 0;
    }
}

/* ── Accessibility: reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    #hero-particle-canvas {
        display: none;
    }
}

/* ==========================================================================
     Comprehensive Responsive Overhaul (Tablet & Mobile)
   ========================================================================== */

/* ── Tablet (≤ 991px): 2-Col Grids & Section Padding ── */
@media (max-width: 991px) {

    /* Reduce massive desktop padding */
    .section {
        padding: 4rem 0 !important;
    }

    header.hero {
        padding: 6rem 0 3rem !important;
        /* give nav room */
    }

    /* Grids: Project Types, Usecases, Stats */
    .project-types-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .usecase-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Flow Cards */
    .flow-card {
        width: 100%;
        max-width: 300px;
        min-height: auto;
        padding: 1.25rem;
    }

    /* Chevron Timeline */
    .timeline-chevron-wrapper {
        flex-direction: column !important;
        gap: 2rem;
    }

    .timeline-chevron-wrapper::before {
        display: none !important;
    }
}

/* ── Mobile (≤ 767px): 1-Col Everything & Fluid Typhography ── */
@media (max-width: 767px) {

    /* Even tighter padding */
    .section {
        padding: 3rem 0 !important;
    }

    .data-eng {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* Typography Scaling */
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2rem) !important;
    }

    .sub-section-title {
        font-size: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    /* Feature/Project Grids collapse to 1 col */
    .feature-grid,
    .project-types-grid,
    .principles-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .principles-grid {
        justify-items: center;
    }

    /* Cards */
    .type-card,
    .feature-card,
    .stat-card {
        padding: 1.5rem !important;
    }

    .cta-card {
        padding: 2.5rem 1.5rem !important;
    }

    /* Footer adjustments */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-brand {
        max-width: 100%;
        text-align: left;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-col {
        gap: 0.5rem;
    }
}

/* ── Small Mobile (≤ 380px) / Landscape ── */
@media (max-width: 380px) {
    .container {
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-btn {
        min-width: 100%;
    }
}

/* ── Touch targets & Fluid Images (Global) ── */
img,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

.btn,
.nav-link,
.industry-pill {
    min-height: 44px;
    /* Apple/Android touch target standard */
}

body {
    overflow-x: hidden;
    /* Hard catch for any rogue wide elements */
}

/* ==========================================================================
   Global Presence Section
   ========================================================================== */
#global-presence .split-container {
    align-items: center;
}

.global-tagline {
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    font-weight: 600;
    white-space: nowrap;
}

.legend-container {
    padding: 2rem;
    border-radius: 1.25rem;
}

.legend-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.legend-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.color-orange { background-color: var(--accent-etl); }
.color-blue { background-color: var(--accent-secondary); }
.color-green { background-color: #10b981; }

.world-map-svg {
    width: 100%;
    height: auto;
    filter: invert(1) brightness(0.8) drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    opacity: 0.9;
    transition: filter 0.3s ease;
}

[data-theme="light"] .world-map-svg {
    filter: invert(0) drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    opacity: 0.8;
}

.map-pin {
    position: absolute;
    width: 32px;
    height: 32px;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.map-pin:hover {
    z-index: 100;
}

.map-pin.dimmed {
    opacity: 0.2;
}

.pin-dot {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    margin: 0 auto;
}

.pin-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.map-pin:hover .pin-dot {
    transform: rotate(-45deg) scale(1.15);
}

/* Geographically accurate coordinates for Wikipedia Low Res Map */
.pin-india { top: 48%; left: 71.5%; } /* Mumbai, India */
.pin-me { top: 44%; left: 64%; } /* Middle East (UAE/Dubai) */
.pin-we { top: 28%; left: 48.5%; } /* Western Europe (London/Benelux) */
.pin-na { top: 36%; left: 24%; } /* North America (US Midwest/East Coast) */

/* Pulse Animation for India */
.pulse-orange .pin-dot {
    background-color: var(--accent-etl);
}
.pulse-orange::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 24px;
    height: 12px;
    background-color: var(--accent-etl);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

/* Colors for other pins */
.pin-blue .pin-dot { background-color: var(--accent-secondary); }
.pin-green .pin-dot { background-color: #10b981; }

/* Tooltips */
.pin-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0.5rem 1rem;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    color: var(--text-primary);
}

.map-pin:hover .pin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Global Presence Section - Responsive
   ============================================================ */

/* Small Tablets / Large Phones (≤ 768px) */
@media (max-width: 768px) {
    #global-presence .split-container {
        flex-direction: column !important;
        gap: 3rem;
    }

    .map-container {
        max-width: 100%;
        margin: 0 auto;
    }

    .legend-container {
        padding: 1.5rem !important;
    }

    .legend-list {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem !important;
    }

    .tagline-container {
        text-align: center;
    }

    .global-tagline {
        font-size: 0.95rem !important;
        white-space: normal !important;
        line-height: 1.5;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Phones (≤ 480px) */
@media (max-width: 480px) {
    .map-pin {
        width: 24px;
        height: 24px;
    }

    .pin-dot {
        width: 18px;
        height: 18px;
    }

    .pin-dot::after {
        width: 6px;
        height: 6px;
    }

    .pin-tooltip {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .global-tagline {
        font-size: 0.85rem !important;
    }

    .legend-list {
        gap: 1rem !important;
    }

    .legend-item {
        font-size: 0.85rem;
    }
}