/* ============================================
   STABILIS IT - UNIFIED DESIGN SYSTEM
   Corporate Premium Theme - Version 2026
   ============================================ */

/* ============================================
   CSS VARIABLES & DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Colors - Stabilis IT Palette */
    --flyred: #E63946;
    --flyred-light: #FF5A67;
    --flyred-dark: #C41E3A;
    --flyblack: #111111;
    --flydark: #0A0A0A;
    --flygrey: #F4F4F5;
    --flygold: #D4AF37;
    --flygold-light: #E5C158;

    /* Dark Theme - Professional Black */
    --bg-dark: #0A0A0A;
    --bg-dark-secondary: #111111;
    --bg-dark-tertiary: #1A1A1A;
    --bg-dark-card: #1A1A1A;
    --bg-dark-elevated: #2A2A2A;

    /* Light Theme Elements */
    --bg-light: #FFFFFF;
    --bg-light-secondary: #F4F4F5;
    --bg-light-tertiary: #E5E5E5;

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --text-muted: #737373;
    --text-accent: #E63946;
    --text-dark: #111111;
    --text-dark-secondary: #525252;

    /* Gradients - Stabilis Style */
    --gradient-primary: linear-gradient(135deg, #E63946 0%, #FF5A67 100%);
    --gradient-dark: linear-gradient(180deg, #0A0A0A 0%, #111111 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E5C158 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(230, 57, 70, 0.1) 0%, transparent 100%);

    /* Effects */
    --accent-glow: 0 0 60px rgba(230, 57, 70, 0.3), 0 0 120px rgba(230, 57, 70, 0.15);
    --accent-glow-strong: 0 0 80px rgba(230, 57, 70, 0.5), 0 0 160px rgba(230, 57, 70, 0.25);

    /* Glass Effects */
    --glass-bg: rgba(17, 17, 17, 0.8);
    --glass-bg-light: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-dark: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-strong: rgba(230, 57, 70, 0.3);
    --border-color-light: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-header: 'Oswald', sans-serif;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.35);
    --shadow-2xl: 0 35px 70px rgba(0, 0, 0, 0.45);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Swiss Grid Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

/* Accent Line */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 80px;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--flyred), transparent);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Floating Particles - Subtle Version */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--flyred);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 20s linear infinite;
    box-shadow: 0 0 6px var(--flyred);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Progress Timeline */
.story-progress {
    position: fixed;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid rgba(230, 57, 70, 0.3);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
}

.progress-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--flyred);
    border-radius: 50%;
    transition: transform var(--transition-bounce);
    box-shadow: 0 0 15px var(--flyred);
}

.progress-dot.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.progress-dot::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: var(--space-lg);
    background: var(--border-color);
}

.progress-dot:last-child::after {
    display: none;
}

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

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

/* ============================================
   ACCESSIBILITY - Touch Targets (WCAG 2.5.5)
   ============================================ */
/* Ensure all interactive elements have minimum 44px touch target */
@media (hover: none) and (pointer: coarse) {
    button,
    [role="button"],
    a:not(.nav-link):not(.footer-column a),
    input[type="button"],
    input[type="submit"],
    .btn,
    .nav-toggle,
    .lang-switcher-btn,
    .lang-option,
    .filter-select,
    .job-card {
        min-height: 44px;
        min-width: 44px;
    }

    /* Navigation links need more padding on touch */
    .nav-link {
        padding: 12px 8px;
    }

    /* Progress dots */
    .progress-dot {
        width: 16px;
        height: 16px;
        padding: 14px;
    }

    /* Footer links - ensure touch targets on mobile */
    .footer-column a,
    .footer-legal a {
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
        padding: 0 8px;
        margin: -8px;
    }
}

/* ============================================
   ACCESSIBILITY - Minimum Text Size (WCAG)
   ============================================ */
/* Ensure minimum 12px for readable text - icons excluded */
[class*="text-[10px]"]:not(i):not([class*="fa-"]),
[class*="text-[11px]"]:not(i):not([class*="fa-"]) {
    font-size: 0.75rem !important; /* 12px minimum */
    line-height: 1.4;
}

/* ============================================
   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;
    }

    /* Disable specific animations */
    .typing-text,
    [data-aos],
    .card-hover,
    .text-animate,
    .animate-pulse,
    .animate-spin {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    /* Disable parallax effects */
    .parallax {
        transform: none !important;
    }

    /* Keep focus states visible */
    *:focus {
        outline: 2px solid var(--flyred) !important;
        outline-offset: 2px !important;
    }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(-45deg);
    transition: transform 0.1s ease-out;
    color: var(--flyred);
    opacity: 0.9;
}

.custom-cursor svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--flyred));
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    margin-bottom: var(--space-lg);
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-img {
    width: 120px;
    height: auto;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto var(--space-md);
}

.loader-progress {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    animation: load 2s ease-in-out forwards;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: var(--font-header);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes load {
    to { width: 100%; }
}

/* ============================================
   NAVIGATION - Stabilis Style
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--border-color-strong);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 70px;
    width: auto;
    transition: transform var(--transition-base);
}

.brand-logo:hover {
    transform: scale(1.02);
}

/* Stabilis IT Text Logo */
.brand-text-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.brand-text-logo:hover {
    transform: scale(1.02);
}

/* Stabilis IT Logo Parts */
.brand-fly {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-it {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--flyred);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-swiss {
    font-family: var(--font-header);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: capitalize;
}

.brand-name {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-suffix {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    color: var(--flyred);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Preloader Text Logo */
.loader-text-logo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.loader-text-logo .brand-fly {
    font-size: 3rem;
}

.loader-text-logo .brand-it {
    font-size: 3rem;
}

.loader-text-logo .brand-swiss {
    font-size: 3rem;
}

/* Footer Text Logo */
.footer-text-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}

.footer-text-logo .brand-fly {
    font-size: 1.75rem;
}

.footer-text-logo .brand-it {
    font-size: 1.75rem;
}

.footer-text-logo .brand-swiss {
    font-size: 1.75rem;
}

.country-flags {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(230, 57, 70, 0.05) 100%);
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    cursor: default;
}

.country-flags:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.1) 100%);
    border-color: rgba(230, 57, 70, 0.4);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.country-flags svg {
    width: auto;
    height: 18px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-certification {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    margin-left: auto;
    margin-right: var(--space-xl);
    position: relative;
    cursor: pointer;
}

.nav-certification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--flyred);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.nav-certification:hover {
    border-color: var(--flyred);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.2);
}

.nav-certification-badge {
    height: 40px;
    width: auto;
}

.nav-certification-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GPTW Tooltip */
.gptw-tooltip {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 360px;
    background: var(--bg-dark-secondary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1001;
    box-shadow: var(--shadow-xl);
}

.gptw-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 30px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark-secondary);
    border-left: 1px solid var(--border-color-strong);
    border-top: 1px solid var(--border-color-strong);
    transform: rotate(45deg);
}

.nav-certification:hover .gptw-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content h4 {
    font-family: var(--font-header);
    font-size: 1rem;
    color: var(--flyred);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tooltip-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-header);
}

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

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

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

.nav-cta {
    background: var(--flyred);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-header);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.nav-cta:hover {
    background: transparent;
    border-color: var(--flyred);
    color: var(--flyred);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ============================================
   HERO SECTION - Stabilis Corporate Style
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(17, 17, 17, 0.9) 50%, rgba(10, 10, 10, 0.95) 100%);
}

.gradient-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

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

.hero-content {
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-left: 4px solid var(--flyred);
    padding: 0.5rem 1rem;
    margin-bottom: var(--space-lg);
}

.hero-tag .certification-badge {
    height: 30px;
    width: auto;
}

.hero-tag span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-header);
}

.hero-title {
    font-family: var(--font-header);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
}

.title-line {
    display: block;
}

.title-line.gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    border-left: 2px solid var(--flyred);
    padding-left: var(--space-md);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

/* Buttons - Stabilis Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-header);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--flyred);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--flyred-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.4);
}

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

.btn-secondary:hover {
    border-color: var(--flyred);
    color: var(--flyred);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 0.9rem;
}

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

/* Hero Metrics */
.hero-metrics {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.metric {
    text-align: left;
}

.metric-value {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.metric-suffix {
    font-family: var(--font-header);
    font-size: 2rem;
    color: var(--flyred);
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--flyred), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.8); }
}

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */
.ambient-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

.alpine-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 400px;
    overflow: hidden;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   SECTION HEADERS - Stabilis Style
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--flyred);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--space-sm);
    font-family: var(--font-header);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--flyred);
}

.section-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.section-title .gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   EXPERTISE SECTION
   ============================================ */
.expertise {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 10;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.expertise-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--flyred);
    transition: height var(--transition-base);
}

.expertise-card:hover {
    border-color: var(--border-color-strong);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expertise-card:hover::before {
    height: 100%;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--flyred);
}

.expertise-card:hover .card-icon {
    background: var(--flyred);
}

.expertise-card:hover .card-icon i {
    color: var(--text-primary);
}

.expertise-card h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ESN Animation Container */
.esn-animation-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    background: var(--bg-dark-secondary);
    overflow: hidden;
}

.lottie-animation {
    width: 100%;
    height: 400px;
}

.animation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, var(--bg-dark-secondary), transparent);
}

.animation-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.animation-label i {
    color: var(--flyred);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark-secondary);
    position: relative;
    z-index: 10;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--flyred), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    transition: background var(--transition-base);
}

.service-card:hover {
    border-color: var(--border-color-strong);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    background: var(--flyred);
}

.service-card.featured {
    grid-column: span 2;
    background: var(--flyblack);
    border-color: var(--flyred);
    border-width: 2px;
}

.service-card.featured::before {
    background: var(--flyred);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 1.25rem;
    color: var(--flyred);
}

.service-badge {
    background: var(--flyred);
    color: var(--text-primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-header);
}

.service-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-features i {
    color: var(--flyred);
    font-size: 0.75rem;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tech span {
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CULTURE SECTION
   ============================================ */
.culture {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 10;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.benefit-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--flyred);
    transition: width var(--transition-base);
}

.benefit-card:hover {
    border-color: var(--border-color-strong);
    transform: translateY(-5px);
}

.benefit-card:hover::before {
    width: 100%;
}

.benefit-amount {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--flyred);
    margin-bottom: 0.5rem;
}

.benefit-title {
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.benefit-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Culture Testimonial */
.culture-testimonial {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--flyred);
    padding: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.culture-testimonial blockquote {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--flyred);
}

.author-name {
    font-family: var(--font-header);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.author-role {
    font-size: 0.8rem;
    color: var(--flyred);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CAREERS SECTION
   ============================================ */
.careers {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark-secondary);
    position: relative;
    z-index: 10;
}

.careers-filters {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: var(--font-header);
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--flyred);
    outline: none;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.job-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.job-card:hover {
    border-color: var(--border-color-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}

.job-title {
    font-family: var(--font-header);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-badge {
    background: var(--flyred);
    color: var(--text-primary);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.job-location i {
    color: var(--flyred);
    margin-right: 0.5rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tag {
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Careers CTA */
.careers-cta {
    background: var(--flyblack);
    border: 2px solid var(--flyred);
    padding: var(--space-2xl);
    text-align: center;
}

.careers-cta h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.careers-cta p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ============================================
   ESTIMATOR SECTION
   ============================================ */
.estimator {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 10;
}

.estimator-card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.estimator-header {
    padding: var(--space-2xl);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.estimator-title {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.estimator-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

.estimator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.estimator-animation {
    background: var(--bg-dark);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#business-animation {
    width: 100%;
    height: 300px;
}

.estimator-form {
    padding: var(--space-xl);
    border-left: 1px solid var(--border-color);
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-header);
}

.form-control {
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.form-control:hover,
.form-control:focus {
    border-color: var(--flyred);
    outline: none;
}

.form-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-dark-tertiary);
    border-radius: 3px;
    outline: none;
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--flyred);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.form-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--flyred);
}

.slider-value {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--flyred);
}

.estimator-result {
    background: var(--flyblack);
    border: 2px solid var(--flyred);
    padding: var(--space-lg);
    text-align: center;
}

.result-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: var(--font-header);
}

.result-amount {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.currency-symbol {
    color: var(--flyred);
}

.result-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: var(--space-4xl) 0;
    background: var(--flyblack);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--flyred);
}

.cta::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1), transparent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-header);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-actions {
    margin-bottom: var(--space-2xl);
}

.cta-locations {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.location i {
    color: var(--flyred);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--flydark);
    padding: var(--space-3xl) 0 var(--space-lg);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
}

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

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--flyred);
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a i {
    font-size: 1.25rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--flyred);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal-content {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-base);
}

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

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    color: var(--flyred);
    margin-bottom: var(--space-md);
}

.modal-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form {
    padding: var(--space-xl);
}

.contact-form .form-group {
    margin-bottom: var(--space-md);
}

.contact-form label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-family: var(--font-header);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--flyred);
    outline: none;
}

.contact-form input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}

.form-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-md);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE OVERFLOW FIX
   ============================================ */

/* CRITICAL: Prevent horizontal scroll on all devices */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure all elements respect viewport */
*, *::before, *::after {
    max-width: 100vw;
}

/* Fix for absolute positioned elements */
.absolute {
    max-width: 100%;
}

/* Text should break on mobile */
h1, h2, h3, h4, h5, h6, p, span, a {
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1024px) {
    .nav-certification {
        display: none;
    }

    .service-card.featured {
        grid-column: span 1;
    }

    .estimator-content {
        grid-template-columns: 1fr;
    }

    .estimator-animation {
        display: none;
    }

    .estimator-form {
        border-left: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
        --space-4xl: 5rem;
    }

    /* CRITICAL: Mobile overflow prevention */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    /* Responsive typography scaling */
    .text-5xl, [class*="text-5xl"] {
        font-size: 1.875rem !important; /* 30px instead of 48px */
    }

    .text-6xl, [class*="text-6xl"] {
        font-size: 2.25rem !important; /* 36px instead of 60px */
    }

    .text-7xl, [class*="text-7xl"] {
        font-size: 2.5rem !important; /* 40px instead of 72px */
    }

    .text-8xl, [class*="text-8xl"] {
        font-size: 3rem !important; /* 48px instead of 96px */
    }

    .text-9xl, [class*="text-9xl"] {
        font-size: 3.5rem !important; /* 56px instead of 128px */
    }

    /* Constrain containers */
    .container {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }

    /* Fix absolute elements that overflow */
    .absolute {
        max-width: 100vw;
    }

    /* Hide decorative elements that cause overflow */
    .clip-slant,
    .clip-slant-reverse {
        display: none !important;
    }

    /* Fix grid layouts */
    .grid {
        max-width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-dark-secondary);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-xl);
        transition: right var(--transition-base);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .story-progress {
        display: none;
    }

    body::after {
        display: none;
    }

    .hero-metrics {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .services-grid,
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta-locations {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    /* CRITICAL: Strictest mobile overflow prevention */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative !important;
    }

    /* Even smaller text for smallest screens */
    .text-4xl, [class*="text-4xl"] {
        font-size: 1.5rem !important; /* 24px */
    }

    .text-5xl, [class*="text-5xl"] {
        font-size: 1.5rem !important; /* 24px */
    }

    .text-6xl, [class*="text-6xl"] {
        font-size: 1.75rem !important; /* 28px */
    }

    .text-7xl, [class*="text-7xl"] {
        font-size: 2rem !important; /* 32px */
    }

    .text-8xl, [class*="text-8xl"] {
        font-size: 2.25rem !important; /* 36px */
    }

    .text-9xl, [class*="text-9xl"] {
        font-size: 2.5rem !important; /* 40px */
    }

    .container {
        padding: 0 var(--space-sm);
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

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

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

    .nav-container {
        padding: 0.5rem 1rem;
    }

    .brand-logo {
        height: 50px;
    }

    /* Hide large decorative numbers that overflow */
    .text-8xl.text-gray-100,
    .text-9xl.opacity-5,
    .font-header.text-6xl.text-gray-300,
    .font-header.text-6xl.text-gray-800 {
        display: none !important;
    }

    /* Fix card heights */
    .sector-card {
        height: auto !important;
        min-height: 300px;
    }

    /* Ensure all images fit */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix any fixed-width elements */
    [style*="width:"] {
        max-width: 100% !important;
    }
}

/* Extra small screens (320px) */
@media (max-width: 375px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .text-4xl, [class*="text-4xl"],
    .text-5xl, [class*="text-5xl"] {
        font-size: 1.25rem !important; /* 20px */
    }

    .text-6xl, [class*="text-6xl"],
    .text-7xl, [class*="text-7xl"] {
        font-size: 1.5rem !important; /* 24px */
    }

    .text-8xl, [class*="text-8xl"],
    .text-9xl, [class*="text-9xl"] {
        font-size: 1.75rem !important; /* 28px */
    }

    .container {
        padding: 0 0.75rem !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

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

    /* Hide all purely decorative elements */
    .hidden.lg\\:block,
    [class*="lg:block"]:not(.lg\\:flex) {
        display: none !important;
    }

    /* Ensure buttons are tappable (44px min) */
    button, a, .btn, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Hover Effects */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Text Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Visibility Utilities */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
