/* ==========================================
   LOVALTO - SALESFORCE CONSULTING WEBSITE
   Modern Black & White Theme with SF Design Elements
   ========================================== */

/* CSS Variables */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --accent-red: #980000;
    --accent-red-light: #b30000;
    --accent-blue: #00719d; /* Legacy - keeping for compatibility */
    --gray-100: #f1f3f5;
    --gray-150: #f1f3f5;
    --gray-200: #f1f3f5;
    --gray-300: #dee2e6;
    --gray-700: #2c2c2c;
    --gray-800: #2c2c2c;
    --gray-900: #1a1a1a;
    --footer-gray: #b3b3b3;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'BBH Sans Hegarty', 'Roboto', sans-serif;
    --font-size-base: 1rem;
    --font-size-h4: 1.625rem;
    --font-size-h3: 1.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-h2: 2.375rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 2.875rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows - Enhanced for enterprise depth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.22);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--primary-black);
    background-color: var(--primary-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Inverted Color Scheme */
body.inverted {
    --primary-black: #ffffff;
    --primary-white: #000000;
    --gray-100: #1a1a1a;
    --gray-150: #252525;
    --gray-200: #303030;
    --gray-300: #404040;
    --gray-700: #999999;
    --gray-800: #999999;
    --gray-900: #e8e8e8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: filter 0.6s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.theme-toggle:hover {
    transform: scale(1.1);
    opacity: 1;
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

/* Responsive theme toggle positioning */
@media (max-width: 1024px) {
    .theme-toggle {
        top: 1rem;
        right: 4.5rem; /* Move left to avoid hamburger menu */
    }

    .theme-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 0.9rem;
        right: 4rem;
    }

    .theme-icon {
        width: 18px;
        height: 18px;
    }
}

/* Prevent photo and certification badge inversions */
body.inverted .about-me-image img {
    filter: none !important;
}

body.inverted .cert-badge-logo {
    filter: none !important;
}

body.inverted .certification-badge {
    background-color: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

body.inverted .certification-badge:hover {
    border-color: #f1f3f5 !important;
}

/* Ecosystem diagram dark mode adjustments */
body.inverted .ecosystem-diagram {
    background: transparent;
}

body.inverted .ecosystem-diagram::before {
    background: rgba(0, 0, 0, 0.75);
}

body.inverted .eco-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

body.inverted .metric-card {
    background: var(--primary-black);
    color: var(--primary-white);
}

body.inverted .eco-label-bar {
    background: var(--primary-black);
    color: var(--primary-white);
}

body.inverted .hub-ring {
    border-color: rgba(255, 255, 255, 0.1);
}

body.inverted .hub-core {
    background: var(--primary-white);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 255, 255, 0.1);
}

body.inverted .hub-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 75%);
}

body.inverted .orbit-node {
    background: var(--primary-white);
    box-shadow:
        0 4px 20px rgba(255, 255, 255, 0.15),
        0 2px 8px rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.inverted .orbit-node svg {
    color: var(--primary-black);
}

body.inverted .orbit-node::after {
    color: #ffffff;
}

/* ========================================== */
/* ENTERPRISE ENHANCEMENTS */
/* ========================================== */

/* Scroll Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elements start invisible and wait for animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* When visible, trigger animation */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

/* Section Heading Accents */
.content-section h2,
.cta-section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
    font-size: 3rem;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.content-section h2::after,
.cta-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 864px;
    height: 8px;
    background: linear-gradient(90deg, var(--accent-red) 0%, transparent 100%);
    border-radius: 4px;
}

/* Section Numbers / Eyebrow Text */
.section-number,
.eyebrow-text {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--accent-red);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.eyebrow-text::before {
    content: '// ';
    opacity: 0.7;
}

/* Geometric Dividers */
.section-divider-geometric {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-300) 50%, transparent 100%);
    margin: var(--spacing-lg) 0;
    position: relative;
    overflow: visible;
}

.section-divider-geometric::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(152, 0, 0, 0.4);
    animation: pulse-diamond 3s ease-in-out infinite;
}

@keyframes pulse-diamond {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        box-shadow: 0 0 20px rgba(152, 0, 0, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
        box-shadow: 0 0 30px rgba(152, 0, 0, 0.6);
    }
}

/* Vertical Accent Bar */
.content-block-accent {
    border-left: 3px solid var(--accent-red);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

/* Parallax Container */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    bottom: -100px;
    z-index: 0;
    pointer-events: none;
    background-image:
        /* Grid pattern */
        linear-gradient(rgba(152, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(152, 0, 0, 0.03) 1px, transparent 1px);
    background-size:
        48px 48px,  /* Vertical grid */
        48px 48px;  /* Horizontal grid */
    background-position:
        0 0,
        0 0;
    transform: translateZ(0);
    opacity: 0.6;
}

/* Ensure content stays above parallax background */
.content-section .container,
.alt-bg .container,
.cta-section .container {
    position: relative;
    z-index: 1;
}

/* Diagonal Section Dividers - DISABLED */
.section-angle {
    display: none;
}

.section-angle-reverse {
    display: none;
}

.angled-section {
    /* Disabled padding adjustment */
}

/* Floating Geometric Shapes */
.floating-shape {
    position: absolute;
    opacity: 0.04;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid currentColor;
    color: var(--accent-red);
}

.shape-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--accent-red);
}

.shape-square {
    width: 80px;
    height: 80px;
    background-color: var(--accent-red);
    transform: rotate(45deg);
}

.shape-diamond {
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    transform: rotate(45deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 8px solid var(--accent-red);
    background-color: transparent;
}

.shape-hexagon {
    width: 80px;
    height: 46px;
    background-color: var(--accent-red);
    position: relative;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.shape-cross {
    width: 70px;
    height: 70px;
    position: relative;
    background-color: transparent;
}

.shape-cross::before,
.shape-cross::after {
    content: '';
    position: absolute;
    background-color: var(--accent-red);
}

.shape-cross::before {
    width: 100%;
    height: 20px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.shape-cross::after {
    width: 20px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(5deg);
    }
    66% {
        transform: translateY(30px) rotate(-5deg);
    }
}

/* Inverted mode adjustments */
body.inverted .section-divider-geometric {
    background: linear-gradient(90deg, transparent 0%, var(--gray-700) 50%, transparent 100%);
}

body.inverted .floating-shape {
    opacity: 0.3;
}

body.inverted .shape-triangle {
    color: #2c2c2c !important;
}

body.inverted .shape-circle {
    background-color: #2c2c2c !important;
}

body.inverted .shape-square {
    background-color: #2c2c2c !important;
}

body.inverted .shape-diamond {
    background-color: #2c2c2c !important;
}

body.inverted .shape-ring {
    border-color: #2c2c2c !important;
}

body.inverted .shape-hexagon {
    background-color: #2c2c2c !important;
}

body.inverted .shape-cross::before,
body.inverted .shape-cross::after {
    background-color: #2c2c2c !important;
}

body.inverted .eyebrow-text,
body.inverted .section-number {
    color: #ffffff !important;
}

body.inverted .parallax-bg {
    background-image:
        /* Grid pattern - darker in dark mode */
        linear-gradient(rgba(44, 44, 44, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 44, 44, 0.5) 1px, transparent 1px);
}

/* Ensure red buttons always have white text, even when inverted */
body.inverted .btn-primary,
body.inverted .btn-primary:link,
body.inverted .btn-primary:visited,
body.inverted .btn-primary:active,
body.inverted .btn-primary:hover {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
    border-color: var(--accent-red) !important;
}

/* Ensure nav menu Get Started button stays white bg/black text when inverted */
body.inverted .nav-menu .btn-primary,
body.inverted .nav-menu .btn-primary:link,
body.inverted .nav-menu .btn-primary:visited,
body.inverted .nav-menu .btn-primary:active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

body.inverted .nav-menu .btn-primary:hover {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
    border-color: var(--accent-red) !important;
}

/* Navigation menu hover in inverted mode - light gray background */
body.inverted .nav-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Ensure text highlights stay red bg/white text when inverted */
body.inverted .text-highlight,
body.inverted .text-highlight-underline {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
}

/* Ensure edge cards on hover stay red bg/white text when inverted */
body.inverted .edge-card:hover {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
}

body.inverted .edge-card:hover h4,
body.inverted .edge-card:hover p {
    color: #ffffff !important;
}

/* Ensure badge stays red bg/white text when inverted */
body.inverted .badge-red {
    background-color: var(--accent-red) !important;
    color: #ffffff !important;
}

/* Fix text colors in inverted mode - make all text pure white instead of gray */
body.inverted p,
body.inverted .hero-subtitle,
body.inverted .section-header p,
body.inverted .edge-card p,
body.inverted .industry-card p,
body.inverted .service-description,
body.inverted .card-modern p {
    color: #ffffff !important;
}

body.inverted .card-modern {
    background: #000000 !important;
    border-color: #404040 !important;
}

body.inverted .card-modern h3,
body.inverted .card-modern h4 {
    color: #ffffff !important;
}

/* Ensure headings are also pure white when inverted */
body.inverted h1,
body.inverted h2,
body.inverted h3,
body.inverted h4,
body.inverted h5,
body.inverted h6 {
    color: #ffffff !important;
}

/* Ensure CTA section button stays white bg when inverted */
body.inverted .btn-secondary {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

body.inverted .btn-secondary:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* CTA section always stays black - in both normal and inverted modes */
.cta-section {
    background-color: var(--primary-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    color: var(--primary-black);
}

.cta-section p {
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    color: var(--gray-700);
    line-height: 1.7;
}

body.inverted .cta-section {
    background-color: #000000 !important;
}

body.inverted .cta-section h2,
body.inverted .cta-section p {
    color: #ffffff !important;
}

/* Ensure smooth transitions for all colored elements */
* {
    transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, fill 0.6s ease, stroke 0.6s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base), background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.info-box ul,
.info-box p {
    padding-left: 0;
    margin-left: 0;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-lg) 0;
}

.content-section {
    padding: var(--spacing-xl) 0;
    background: var(--primary-white);
    overflow: hidden;
}

.content-section.alt-bg {
    background: var(--gray-100);
}

/* Content sections use CSS variables - automatic inversion */

.content-section h2 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--spacing-md);
    color: var(--primary-black);
}

.content-section h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.content-section p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
}

.content-section .intro-text {
    font-size: var(--font-size-lg);
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.two-column-layout h3:not(:first-child) {
    margin-top: var(--spacing-lg);
}

.checkmark-list {
    list-style: none;
    padding-left: 0;
}

.checkmark-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
}

.checkmark-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: bold;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

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

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

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

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

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

.capability-card {
    padding: var(--spacing-md);
    background-color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 12px;
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(152, 0, 0, 0.1);
    border-color: var(--accent-red);
}

/* Capability cards use CSS variables - no explicit inverted rules needed except hover effects */
body.inverted .capability-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.capability-icon svg {
    color: var(--primary-black);
    transition: color var(--transition-base);
}

.capability-card:hover .capability-icon svg {
    color: var(--accent-red);
}

.capability-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.capability-card p {
    font-size: var(--font-size-base);
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.capability-card .btn-primary {
    margin-top: auto;
}

/* ==========================================
   TIMELINE / HOW IT WORKS
   ========================================== */

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    position: relative;
    padding-top: 0;
}

.timeline-item {
    text-align: center;
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-black);
    color: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 auto var(--spacing-md);
    transition: all var(--transition-base);
    position: relative;
    z-index: 10;
}

.timeline-item:hover .timeline-number {
    background-color: var(--accent-red);
    transform: scale(1.15);
}

.timeline-item h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.timeline-item p {
    color: var(--gray-700);
    line-height: 1.7;
}

.cta-box {
    padding: var(--spacing-lg);
    background-color: var(--gray-100);
    border: 2px solid var(--primary-black);
    border-radius: 12px;
    margin-top: var(--spacing-lg);
}

.cta-box h2,
.cta-box h3 {
    margin-bottom: var(--spacing-md);
}

.cta-box p {
    margin-bottom: var(--spacing-md);
}

/* CTA box uses CSS variables - automatic inversion */
body.inverted .cta-box {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Leader card - used in leadership.html with inline styles - needs !important to override */
body.inverted .leader-card h3,
body.inverted .leader-card p {
    color: #ffffff !important;
}

/* Contact page cards should use CSS variables for automatic inversion - removed forced white text */

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-black);
    border-bottom: 1px solid var(--gray-700);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background-color: var(--primary-black);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo img:not(.nav-logo-img) {
    height: 30px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    padding-right: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    font-size: 1.0625rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: all var(--transition-fast);
    color: var(--primary-white);
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-menu a.active {
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

/* Dropdown Navigation Styles */
.nav-menu li {
    position: relative;
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-black);
    border: 1px solid var(--gray-700);
    border-radius: 4px;
    min-width: 220px;
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    margin-top: 8px;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--primary-white);
    white-space: nowrap;
    border-radius: 0;
}

.nav-menu .dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.inverted .nav-menu .dropdown a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Hide "View All" links on desktop - only show on mobile */
.nav-menu .dropdown a.view-all-link {
    display: none;
}

/* Removed dropdown arrows - cleaner look */
/* .nav-item-with-dropdown > a::after {
    content: ' ▾';
    font-size: 0.8em;
    margin-left: 0.25rem;
} */


.nav-menu .btn-primary,
.nav-menu .btn-primary:link,
.nav-menu .btn-primary:visited,
.nav-menu .btn-primary:active {
    background-color: var(--primary-white) !important;
    color: var(--primary-black) !important;
    border-color: var(--primary-white) !important;
}

.nav-menu .btn-primary:hover {
    background-color: var(--accent-red) !important;
    color: var(--primary-white) !important;
    border-color: var(--accent-red) !important;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-red) !important;
    color: var(--primary-white) !important;
    border-radius: 6px;
    border: 2px solid var(--accent-red);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    background-color: var(--primary-black) !important;
    color: var(--primary-white) !important;
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-radius: 6px;
    border: 2px solid var(--primary-black);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-secondary:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-black,
.btn-black:link,
.btn-black:visited,
.btn-black:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-black) !important;
    color: var(--primary-white) !important;
    border-radius: 6px;
    border: 2px solid var(--primary-black);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-black:hover {
    background-color: var(--accent-red) !important;
    color: var(--primary-white) !important;
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-battle {
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-radius: 6px;
    border: 2px solid var(--primary-black);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    line-height: 1.5;
    text-decoration: none;
}

body.inverted .btn-battle {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-white);
}

.btn-battle:hover {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border-color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

body.inverted .btn-battle:hover {
    background-color: #333333;
    color: var(--primary-white);
    border-color: #333333;
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: var(--font-size-lg);
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    margin-top: 70px;
    padding: var(--spacing-lg) 0;
    background: var(--primary-white);
    position: relative;
    overflow: hidden;
}

.hero-fullscreen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    margin-top: 0;
}

.hero-fullscreen .container {
    padding-top: 70px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: var(--primary-black);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-black);
    border-radius: 15px;
    position: relative;
    margin: 0 auto 0.5rem;
}

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

.scroll-text {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        top: 8px;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        top: 20px;
    }
}

.hero-section {
    margin-top: 70px;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: var(--gray-100);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    display: none;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.hero-section .hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--gray-700);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    min-height: 650px;
}


.hero-title {
    font-size: var(--font-size-4xl);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--primary-black);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* Badge styling */
.hero-badges .badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
    background-color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 50px;
    font-size: 0.9rem;
}

.hero-badges .badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sf-brand-image {
    max-width: 60%; /* Reduced for smaller clickable area */
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 30px rgba(245, 245, 245, 0.35))
            drop-shadow(0 0 15px rgba(240, 240, 240, 0.3));
    animation: glow 3s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.6s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.sf-brand-image:hover {
    transform: scale(1.05);
}

@keyframes glow {
    from {
        filter: drop-shadow(0 15px 40px rgba(255, 255, 255, 0.4))
                drop-shadow(0 0 30px rgba(245, 245, 245, 0.35))
                drop-shadow(0 0 15px rgba(240, 240, 240, 0.3));
    }
    to {
        filter: drop-shadow(0 20px 50px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 40px rgba(245, 245, 245, 0.5))
                drop-shadow(0 0 20px rgba(240, 240, 240, 0.4));
    }
}

/* ==========================================
   HERO ECOSYSTEM DIAGRAM - ENHANCED
   ========================================== */

.hero-graphic {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin-left: 3rem;
}

.ecosystem-diagram {
    position: relative;
    width: 100%;
    height: 600px;
    background: transparent;
    border-radius: 24px;
    padding: 2rem;
    overflow: visible;
}

.ecosystem-diagram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 624px;
    height: 624px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    z-index: 0;
}

/* Background grid - hidden */
.eco-grid {
    display: none;
}

/* Floating metric cards */
.metric-card {
    position: absolute;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    animation: float-card 6s ease-in-out infinite;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-red);
}

.metric-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.metric-1 {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
}

.metric-2 {
    top: 5%;
    right: 8%;
    animation-delay: 2s;
}

.metric-3 {
    bottom: 15%;
    left: 3%;
    animation-delay: 4s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

/* Central hub */
.eco-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 10;
}

.hub-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.03) 50%, transparent 75%);
    border-radius: 50%;
    animation: hub-pulse 3.5s ease-in-out infinite;
}

@keyframes hub-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

.hub-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    animation: ring-expand 3s ease-in-out infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.ring-2 {
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

.ring-3 {
    width: 180px;
    height: 180px;
    animation-delay: 2s;
}

@keyframes ring-expand {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.25; }
}

.hub-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    background: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 0 0 3px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.hub-logo {
    width: 55px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Orbiting capability nodes */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    z-index: 15;
}

.orbit-node {
    position: absolute;
    width: 66px;
    height: 66px;
    background: var(--primary-white);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    cursor: default;
}

.orbit-node::after {
    content: attr(data-label);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.125rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 1;
    color: var(--primary-black);
}

.orbit-node svg {
    width: 34px;
    height: 34px;
    color: var(--primary-black);
    stroke-width: 1.5;
}

/* Position orbit nodes in a circle with floating animations */
@keyframes node-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes node-float-centered {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.orbit-1 {
    top: 0%;
    left: 50%;
    transform: translateX(-50%);
    animation: node-float-centered 4s ease-in-out infinite;
}
.orbit-2 {
    top: 25%;
    right: 0%;
    animation: node-float 4.5s ease-in-out infinite 0.5s;
}
.orbit-3 {
    bottom: 25%;
    right: 0%;
    animation: node-float 5s ease-in-out infinite 1s;
}
.orbit-4 {
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    animation: node-float-centered 4.2s ease-in-out infinite 1.5s;
}
.orbit-5 {
    bottom: 25%;
    left: 0%;
    animation: node-float 4.8s ease-in-out infinite 2s;
}
.orbit-6 {
    top: 25%;
    left: 0%;
    animation: node-float 4.3s ease-in-out infinite 2.5s;
}

/* Animated connection lines */
.connection-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.pulse-ring {
    stroke-dasharray: 10 8;
    animation: pulse-expand 4s ease-out infinite, dash-flow 15s linear infinite;
    transform-origin: center;
}

.pulse-ring.delay-1 { animation-delay: 1.3s, 0s; }
.pulse-ring.delay-2 { animation-delay: 2.6s, 0s; }

@keyframes pulse-expand {
    0% { opacity: 0.5; transform: scale(0.85); }
    100% { opacity: 0.15; transform: scale(1.25); }
}

@keyframes dash-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 60; }
}

/* Floating particles - hidden */
.particle {
    display: none;
}

.p1 { top: 20%; left: 30%; animation-delay: 0s; }
.p2 { top: 60%; right: 20%; animation-delay: 1s; }
.p3 { bottom: 30%; left: 25%; animation-delay: 2s; }
.p4 { top: 35%; right: 30%; animation-delay: 3s; }
.p5 { bottom: 20%; right: 35%; animation-delay: 4s; }

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    20% {
        transform: translate(20px, -25px) scale(1.3);
        opacity: 0.9;
    }
    40% {
        transform: translate(-15px, -40px) scale(0.7);
        opacity: 0.3;
    }
    60% {
        transform: translate(-25px, -15px) scale(1.2);
        opacity: 0.8;
    }
    80% {
        transform: translate(10px, -35px) scale(0.9);
        opacity: 0.5;
    }
}

/* Bottom label bar */
.eco-label-bar {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 25;
}

.bar-divider {
    opacity: 0.4;
    color: var(--accent-red);
}

.bar-item {
    opacity: 0.9;
}

/* ==========================================
   STICKY SCROLL REVEAL SECTION
   ========================================== */

.sticky-scroll-section {
    height: 280vh; /* Reduced for faster slide transitions */
    position: relative;
    background-color: #000000;
}

.sticky-scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.sticky-scroll-container.is-fixed {
    position: fixed;
    top: 0;
}

.sticky-scroll-container.is-bottom {
    position: absolute;
    top: auto;
    bottom: 0;
}

/* Section Title */
.sticky-scroll-title {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.sticky-scroll-title .title-accent {
    display: block;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.sticky-scroll-title .title-main {
    display: block;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    font-family: var(--font-heading);
}

body.inverted .sticky-scroll-title .title-accent {
    color: rgba(0, 0, 0, 0.5);
}

body.inverted .sticky-scroll-title .title-main {
    color: #000000;
}

/* Progress Bar */
.scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffffff, #cccccc);
    transition: width 0.1s ease-out;
}

/* Navigation Dots */
.scroll-nav-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.scroll-dot:hover {
    border-color: #ffffff;
    transform: scale(1.2);
}

.scroll-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.3);
}

/* Section Label */
.sticky-section-label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Slides Container */
.scroll-slides {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Individual Slide */
.scroll-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Slide Number */
.slide-number {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.10);
    line-height: 1;
    font-family: var(--font-heading);
}

/* Slide Content */
.slide-content {
    text-align: center;
    max-width: 800px;
    padding: 0 var(--spacing-lg);
    padding-top: 80px;
    z-index: 2;
}

.slide-icon {
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide.active .slide-icon {
    opacity: 1;
    transform: translateY(0);
}

.slide-icon svg {
    color: #ffffff;
    width: 64px;
    height: 64px;
}

.slide-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.1;
}

.scroll-slide.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}

.slide-description {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
}

.scroll-slide.active .slide-description {
    opacity: 1;
    transform: translateY(0);
}

/* Background Text - Bottom Right Corner */
.slide-bg-text {
    position: absolute;
    right: 40px;
    bottom: 40px;
    font-size: 6rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-heading);
    line-height: 1;
}

/* Dark mode adjustments */
body.inverted .sticky-scroll-section {
    background-color: #ffffff;
}

body.inverted .scroll-progress {
    background: rgba(0, 0, 0, 0.1);
}

body.inverted .scroll-progress-bar {
    background: linear-gradient(90deg, #000000, #333333);
}

body.inverted .scroll-dot {
    border-color: rgba(0, 0, 0, 0.5);
}

body.inverted .scroll-dot:hover {
    border-color: #000000;
}

body.inverted .scroll-dot.active {
    background: #000000;
    border-color: #000000;
}

body.inverted .sticky-section-label {
    color: rgba(0, 0, 0, 0.4);
}

body.inverted .slide-number {
    color: rgba(0, 0, 0, 0.10);
}

body.inverted .slide-icon svg {
    color: #000000;
}

body.inverted .slide-title,
body.inverted .scroll-slide.active .slide-title,
body.inverted .scroll-slide .slide-title {
    color: #000000 !important;
}

body.inverted .slide-description,
body.inverted .scroll-slide.active .slide-description,
body.inverted .scroll-slide .slide-description {
    color: rgba(0, 0, 0, 0.7) !important;
}

body.inverted .slide-bg-text {
    color: rgba(0, 0, 0, 0.06);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sticky-scroll-section {
        height: auto;
        padding: var(--spacing-xl) 0;
    }

    .sticky-scroll-container {
        position: relative;
        height: auto;
        flex-direction: column;
        gap: var(--spacing-xl);
        padding: var(--spacing-lg);
    }

    .scroll-progress,
    .scroll-nav-dots,
    .sticky-section-label,
    .slide-number,
    .slide-bg-text {
        display: none;
    }

    .sticky-scroll-title {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: var(--spacing-lg);
    }

    .sticky-scroll-title .title-main {
        font-size: 1.5rem;
    }

    .scroll-slides {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .scroll-slide {
        position: relative;
        opacity: 1;
        visibility: visible;
        padding: var(--spacing-md);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .scroll-slide .slide-icon,
    .scroll-slide .slide-title,
    .scroll-slide .slide-description {
        opacity: 1;
        transform: none;
    }

    .slide-content {
        padding: 0 var(--spacing-md);
        padding-top: 1rem;
    }

    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .slide-description {
        font-size: 0.95rem;
    }

    .slide-icon {
        margin-bottom: 0.75rem;
    }

    .slide-icon svg {
        width: 40px;
        height: 40px;
    }

    body.inverted .scroll-slide {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .slide-description {
        font-size: 0.95rem;
    }
}

/* ==========================================
   EDGE CARDS (Legacy - keeping for other pages)
   ========================================== */

.edge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.edge-grid {
    perspective: 1000px;
}

.edge-card {
    padding: var(--spacing-md);
    background-color: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 12px;
    transition: transform 0.15s ease-out, box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s, border-color 0.4s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.edge-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 2px var(--accent-red);
    background-color: var(--accent-red);
    color: var(--primary-white) !important;
    border-color: var(--accent-red);
}

/* 3D lift effect for icon on hover */
.edge-card:hover .edge-icon {
    transform: translateZ(30px);
}

.edge-card:hover h4 {
    transform: translateZ(20px);
}

.edge-card:hover p {
    transform: translateZ(10px);
}

/* Edge cards use CSS variables - automatic inversion */

.edge-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    width: 5rem;
    height: 5rem;
    background-color: var(--gray-100);
    border-radius: 50%;
    transition: transform 0.15s ease-out, background-color 0.4s;
    transform-style: preserve-3d;
}

.edge-card:hover .edge-icon {
    background-color: var(--primary-white);
}

.edge-card h4,
.edge-card p {
    transition: transform 0.15s ease-out, color 0.4s;
    transform-style: preserve-3d;
}

.edge-icon svg {
    width: 3rem;
    height: 3rem;
    color: var(--primary-black);
    transition: all var(--transition-base);
}

.edge-card:hover .edge-icon svg {
    color: var(--primary-black);
}

.edge-card h4 {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
    transition: all var(--transition-base);
}

.edge-card:hover h4 {
    color: var(--primary-white) !important;
}

.edge-card p {
    line-height: 1.7;
    color: var(--gray-700);
    transition: all var(--transition-base);
}

.edge-card:hover p {
    color: var(--primary-white) !important;
}

/* ==========================================
   ABOUT ME SECTION
   ========================================== */

.about-me-section {
    background: var(--gray-100);
    padding: var(--spacing-lg) 0;
}

.about-me-content {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.about-me-image {
    position: relative;
    text-align: left;
}

.about-me-image img {
    width: 100%;
    max-width: 340px;
    border-radius: 12px;
    border: 0px;
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    object-position: center;
}

.certification-badge-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.certification-badge {
    position: absolute;
    bottom: -50px;
    right: -15px;
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 0 0.5rem;
    border-radius: 12px;
    border: 3px solid var(--primary-white);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.certification-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-100);
}

.cert-badge-logo {
    display: block !important;
    width: 200px !important;
    height: 160px !important;
    max-width: 200px !important;
    max-height: 160px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    opacity: 0.7 !important;
}

.cert-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -90%);
    font-size: 2rem;
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 1;
}

.cert-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 10%);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    white-space: nowrap;
}

.about-me-text h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-black);
}

.about-me-text .intro-text {
    font-size: var(--font-size-xl);
    color: var(--gray-800);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.about-me-text p {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.about-me-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    font-size: var(--font-size-h2);
    margin-bottom: 0;
    color: var(--primary-black);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

.subsection-header {
    text-align: center;
    margin-bottom: 0.75rem;
    margin-top: var(--spacing-md);
}

.subsection-header h3 {
    font-size: var(--font-size-h3);
    margin-bottom: 0.25rem;
    color: var(--primary-black);
}

.subsection-header p {
    font-size: var(--font-size-base);
    color: var(--gray-700);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================
   INDUSTRIES SECTION
   ========================================== */

.industries-section {
    background-color: var(--gray-100);
    padding: var(--spacing-lg) 0;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    align-items: stretch;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.industry-card {
    padding: var(--spacing-md);
    background-color: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 12px;
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 100%;
    min-width: 0;
    width: 100%;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Industry cards use CSS variables - automatic inversion */
body.inverted .industry-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.inverted .industry-icon {
    background-color: rgba(255, 255, 255, 0.1);
}

body.inverted .industry-card:hover .industry-icon {
    background-color: var(--accent-red);
}

.industry-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    width: 4rem;
    height: 4rem;
    background-color: var(--gray-100);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.industry-card:hover .industry-icon {
    background-color: var(--primary-black);
}

.industry-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-black);
    transition: all var(--transition-base);
}

.industry-card:hover .industry-icon svg {
    color: var(--primary-white);
}

.industry-card h4 {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.industry-card p {
    line-height: 1.7;
    color: var(--gray-700);
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.industry-card .btn-primary {
    margin-top: auto;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services-section {
    background: var(--primary-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--spacing-lg);
    row-gap: 3rem;
    margin-top: var(--spacing-md);
}

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

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

.service-card {
    background-color: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 16px;
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

/* Service cards use CSS variables - automatic inversion with special handling for details box */
body.inverted .service-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.inverted .service-details {
    background-color: rgba(255, 255, 255, 0.05);
}

.service-card.featured {
    position: relative;
    overflow: hidden;
}

.service-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-black), var(--gray-700));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.service-header h4 {
    font-size: var(--font-size-h4);
    color: var(--primary-black);
}

.service-icon {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 0.625rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-description {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.service-features {
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.service-features li {
    padding: 0.25rem 0;
    padding-left: var(--spacing-md);
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-black);
}

.service-details {
    background-color: var(--gray-150);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary-black);
}

.service-details p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
    color: var(--gray-900);
}

.service-details p:last-child {
    margin-bottom: 0;
}

.service-details strong {
    color: var(--primary-black);
}

.service-footer {
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

/* ==========================================
   PARTNER SERVICES CALLOUT
   ========================================== */

.partner-callout {
    margin-top: 3rem;
    padding: var(--spacing-md);
    background-color: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 16px;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.partner-callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-black), var(--gray-700));
}

.partner-callout:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

body.inverted .partner-callout {
    background-color: var(--primary-black);
    border-color: var(--primary-white);
}

body.inverted .partner-callout:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.inverted .partner-callout::before {
    background: linear-gradient(90deg, var(--primary-white), var(--gray-300));
}

.partner-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: 0.75rem;
}

.partner-header h4 {
    font-size: var(--font-size-h4);
    color: var(--primary-black);
}

.partner-icon {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 0.625rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.partner-callout p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   EXPERTISE GRID
   ========================================== */

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Flip Grid - 6 columns for capabilities */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Flip Grid - 3 columns for industries (wider cards) */
.flip-grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Industry cards are taller */
.flip-grid-4 .flip-card {
    height: 300px;
}

/* Flip Card Styles */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 240px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--primary-black);
}

.flip-card-front {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

.flip-card-back {
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-black);
    transform: rotateY(180deg);
}

/* Dark mode: keep front the same (black bg), invert the back */
body.inverted .flip-card-front,
body.inverted .flip-card-back {
    border-color: #ffffff;
}

body.inverted .flip-card-front {
    background-color: #000000;
    color: #ffffff;
}

body.inverted .flip-card-back {
    background-color: #1a1a1a;
    color: #ffffff;
}

.flip-card-front h4 {
    font-size: var(--font-size-h4);
    color: var(--primary-white);
    font-weight: 400;
    text-transform: uppercase;
}

.flip-card-back h5 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
    font-weight: 400;
    text-transform: uppercase;
}

.flip-card-back p {
    line-height: 1.7;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

/* Flip Card Icon */
.flip-card-icon {
    margin-bottom: var(--spacing-sm);
}

.flip-card-icon svg {
    color: var(--primary-white);
}

body.inverted .flip-card-icon svg {
    color: #ffffff;
}

/* Flip Card Back CTA */
.flip-card-back .btn-primary {
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

body.inverted .flip-card-back h5 {
    color: #ffffff;
}

body.inverted .flip-card-back p {
    color: #cccccc;
}

body.inverted .flip-card-front h4 {
    color: #ffffff;
}

/* Legacy expertise-item styles (keeping for compatibility) */
.expertise-item {
    padding: var(--spacing-md);
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: 3px solid var(--primary-black);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.expertise-item:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
    border-color: var(--primary-black);
    transform: translateY(-5px);
}

.expertise-item h4 {
    font-size: var(--font-size-h4);
    margin-bottom: var(--spacing-xs);
    color: inherit;
}

.expertise-item p {
    line-height: 1.7;
    opacity: 0.9;
    color: inherit;
}

.expertise-item:hover p {
    opacity: 1;
}

/* ==========================================
   TESTIMONIALS (COMMENTED OUT)
   ========================================== */

.testimonials-section {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-white) 100%);
    padding: var(--spacing-lg) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.testimonial-card {
    background-color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-black);
    border-radius: 12px 12px 0 0;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Testimonial cards use CSS variables - automatic inversion */
body.inverted .testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.testimonial-quote {
    flex-grow: 1;
    margin-bottom: var(--spacing-md);
}

.quote-icon {
    width: 32px;
    height: 32px;
    fill: var(--gray-300);
    margin-bottom: var(--spacing-sm);
}

.testimonial-quote p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-800);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.author-info h4 {
    font-size: 1rem;
    color: var(--primary-black);
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    background: var(--primary-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-image {
    margin-bottom: var(--spacing-md);
}

.contact-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-black);
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.contact-method {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

body.inverted .contact-method {
    background-color: #1a1a1a !important;
    border-color: #404040 !important;
}

body.inverted .contact-method:hover {
    background-color: #252525 !important;
}

body.inverted .contact-method h4 {
    color: #ffffff !important;
}

.contact-method svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-method h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 4px;
}

.contact-method p {
    margin: 0;
    font-size: var(--font-size-base);
}

.contact-method a {
    color: var(--accent-red);
}

.contact-method a:hover {
    text-decoration: underline;
    color: var(--accent-red);
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-form-wrapper {
    background-color: var(--primary-white);
    padding: var(--spacing-md);
    border: 3px solid var(--primary-black);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.95rem;
    color: var(--primary-black);
}

.form-group label .required {
    color: var(--primary-black);
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background-color: var(--primary-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(152, 0, 0, 0.1);
    background-color: rgba(152, 0, 0, 0.02);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--gray-700);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form inverted mode - inputs need explicit text color */
body.inverted .form-group input,
body.inverted .form-group select,
body.inverted .form-group textarea {
    color: var(--primary-white);
}

body.inverted .form-group input::placeholder,
body.inverted .form-group textarea::placeholder {
    color: var(--gray-700);
}


/* ==========================================
   ACTIVE NAV INDICATOR
   ========================================== */

.nav-item-with-dropdown.nav-active > a {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.dropdown a.current-page {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================
   INLINE LINK STYLING
   ========================================== */

.content-section p a:not([class]),
.content-section li a:not([class]) {
    color: var(--accent-red);
    text-decoration: underline;
    text-decoration-color: rgba(152, 0, 0, 0.3);
    text-underline-offset: 0.2em;
    transition: all var(--transition-fast);
}

.content-section p a:not([class]):hover,
.content-section li a:not([class]):hover {
    text-decoration-color: var(--accent-red);
    color: var(--primary-black);
}

/* Inverted content-section links now use unified pill style - see below */

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: #000000;
    color: #ffffff;
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

body.inverted .footer {
    background-color: #ffffff;
    color: #000000;
}

body.inverted .footer h4,
body.inverted .footer-brand p,
body.inverted .footer-bottom p {
    color: #000000 !important;
}

body.inverted .footer-column a {
    color: #2c2c2c !important;
}

body.inverted .footer-column a:hover {
    color: #000000 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-700);
}

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

.footer-logo {
    height: 172px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--footer-gray);
    line-height: 1.7;
}

/* Footer Badges Container */
.footer-badges {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Partner Badge - Footer */
.partner-badge-link {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.partner-badge-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.partner-badge {
    height: 83px;
    width: auto;
    border-radius: 8px;
}

/* Pledge 1% Badge - Footer */
.pledge-badge-link {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pledge-badge-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.pledge-badge {
    height: 83px;
    width: auto;
}

/* Pledge badge dark mode switching */
.pledge-badge-dark {
    display: none;
}

body.inverted .pledge-badge-light {
    display: none;
}

body.inverted .pledge-badge-dark {
    display: block;
    height: 83px;
    width: auto;
}

/* Pledge 1% Badge - Inline (About page) */
.pledge-badge-inline {
    height: 90px;
    width: auto;
    position: relative;
    z-index: 1;
}

.pledge-badge-inline-dark {
    display: none;
}

body.inverted .pledge-badge-inline-light {
    display: none;
}

body.inverted .pledge-badge-inline-dark {
    display: block;
    height: 90px;
    width: auto;
}

/* Partner Badge - Inline (Leadership page) */
.partner-badge-inline {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    border-radius: 6px;
}

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

.footer-column h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column a {
    color: var(--footer-gray);
    transition: all var(--transition-fast);
    display: inline-block;
}

body.inverted .footer-column a {
    color: var(--footer-gray);
}

.footer-column a:hover {
    color: var(--primary-white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
}

.footer-bottom p {
    color: var(--footer-gray);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* Footer Social Link */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-gray);
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-link:hover {
    color: var(--primary-white);
    transform: scale(1.1);
}

.footer-social-link svg {
    width: 28px;
    height: 28px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    :root {
        --font-size-4xl: 2.25rem;
        --font-size-3xl: 1.875rem;
        --font-size-2xl: 1.625rem;
        --font-size-h2: 2rem;
    }

    /* Flip grid responsive - 2 columns on tablet */
    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Hide Play button on mobile/tablet */
    .btn-battle {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-black);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.3s;
        border-top: 1px solid var(--gray-700);
        z-index: 999;
    }

    /* Webkit scrollbar styling for mobile menu */
    .nav-menu::-webkit-scrollbar {
        width: 6px;
    }

    .nav-menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 0.875rem var(--spacing-md);
        padding-left: 1.5rem;
        width: 100%;
        text-align: left;
        transition: background-color 0.2s ease;
    }

    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-menu .btn-primary {
        margin: var(--spacing-sm) 1.5rem;
        width: calc(100% - 3rem);
        text-align: center;
    }

    /* Mobile dropdown functionality */
    .nav-menu .dropdown {
        position: static;
        max-height: 0;
        overflow: hidden;
        transform: none;
        margin-top: 0;
        border: none;
        padding: 0;
        background-color: transparent;
        border-left: 2px solid rgba(255, 255, 255, 0.15);
        margin-left: 1.5rem;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu .dropdown-active .dropdown {
        max-height: 1000px;
        padding: var(--spacing-xs) 0;
    }

    .nav-menu .dropdown a {
        padding-left: 1rem;
        padding-right: 1.5rem;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
        font-size: 0.9rem;
        transition: background-color 0.2s ease;
    }

    .nav-menu .dropdown a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-menu .dropdown a.view-all-link {
        display: block; /* Show on mobile */
        font-weight: 400;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        padding-left: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }

    /* Mobile dropdown caret indicators */
    .nav-item-with-dropdown > a {
        position: relative;
        padding-right: 3rem !important;
    }

    .nav-item-with-dropdown > a::after {
        content: '▼';
        position: absolute;
        right: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        color: var(--primary-white);
        opacity: 0.7;
    }

    .nav-menu .dropdown-active > a {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .nav-menu .dropdown-active > a::after {
        transform: translateY(-50%) rotate(180deg);
        opacity: 1;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-text {
        max-width: 100%;
        overflow: visible;
    }

    .hero-image {
        order: -1;
    }

    .sf-brand-image {
        max-width: 60%;
    }

    /* Ecosystem diagram tablet */
    .hero-graphic {
        margin-left: 0;
        max-width: 450px;
    }

    .ecosystem-diagram {
        height: 420px;
        padding: 1.5rem;
    }

    .metric-card {
        padding: 0.6rem 0.8rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .metric-label {
        font-size: 0.6rem;
    }

    .orbit-container {
        width: 280px;
        height: 280px;
    }

    .orbit-node {
        width: 42px;
        height: 42px;
    }

    .orbit-node svg {
        width: 18px;
        height: 18px;
    }

    .hub-core {
        width: 70px;
        height: 70px;
    }

    .hub-logo {
        width: 42px;
    }

    .ring-1 { width: 90px; height: 90px; }
    .ring-2 { width: 120px; height: 120px; }
    .ring-3 { width: 150px; height: 150px; }

    /* Reduce animation intensity on tablet */
    .hub-glow {
        width: 180px;
        height: 180px;
    }

    @keyframes node-float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
    }

    @keyframes node-float-centered {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-6px); }
    }

    .eco-label-bar {
        font-size: 0.6rem;
        padding: 0.4rem 1rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    /* Hide scroll indicator on tablet */
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.625rem;
        --font-size-2xl: 1.5rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-md: 1rem;
    }

    /* Mobile navbar vertical centering */
    .nav-wrapper {
        align-items: center;
        min-height: 50px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        align-self: center;
    }

    .logo img {
        height: 14.4px; /* 60% of 24px */
    }

    .nav-logo-img {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        vertical-align: middle;
    }

    .logo-text {
        font-size: 2rem;
        display: flex;
        align-items: center;
        line-height: 1;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-black);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.3s;
        border-top: 1px solid var(--gray-700);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 0.875rem var(--spacing-md);
        padding-left: 1.5rem;
        width: 100%;
        text-align: left;
        transition: background-color 0.2s ease;
    }

    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-menu .btn-primary {
        margin: var(--spacing-sm) 1.5rem;
        width: calc(100% - 3rem);
        text-align: center;
    }

    /* Mobile dropdown functionality */
    .nav-menu .dropdown {
        position: static;
        max-height: 0;
        overflow: hidden;
        transform: none;
        margin-top: 0;
        border: none;
        padding: 0;
        background-color: transparent;
        border-left: 2px solid rgba(255, 255, 255, 0.15);
        margin-left: 1.5rem;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu .dropdown-active .dropdown {
        max-height: 1000px;
        padding: var(--spacing-xs) 0;
    }

    .nav-menu .dropdown a {
        padding-left: 1rem;
        padding-right: 1.5rem;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
        font-size: 0.9rem;
        transition: background-color 0.2s ease;
    }

    .nav-menu .dropdown a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-menu .dropdown a.view-all-link {
        display: block; /* Show on mobile */
        font-weight: 400;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        padding-left: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }

    /* Mobile dropdown caret indicators */
    .nav-item-with-dropdown > a {
        position: relative;
        padding-right: 3rem !important;
    }

    .nav-item-with-dropdown > a::after {
        content: '▼';
        position: absolute;
        right: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        color: var(--primary-white);
        opacity: 0.7;
    }

    .nav-menu .dropdown-active > a {
        background-color: rgba(255, 255, 255, 0.08);
    }

    .nav-menu .dropdown-active > a::after {
        transform: translateY(-50%) rotate(180deg);
        opacity: 1;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-sm);
    }

    /* Hide ecosystem diagram on mobile */
    .hero-graphic {
        display: none;
    }

    /* Hide metric cards on mobile for cleaner look */
    .metric-card {
        display: none;
    }

    .orbit-container {
        width: 220px;
        height: 220px;
    }

    .orbit-node {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .orbit-node svg {
        width: 16px;
        height: 16px;
    }

    .orbit-node::after {
        display: none;
    }

    .hub-core {
        width: 60px;
        height: 60px;
    }

    .hub-logo {
        width: 36px;
    }

    .hub-glow {
        width: 140px;
        height: 140px;
    }

    .ring-1 { width: 75px; height: 75px; }
    .ring-2 { width: 100px; height: 100px; }
    .ring-3 { width: 125px; height: 125px; }

    .eco-label-bar {
        font-size: 0.55rem;
        padding: 0.35rem 0.75rem;
        gap: 0.5rem;
    }

    .particle {
        width: 4px;
        height: 4px;
    }

    .connection-lines {
        display: none;
    }

    /* Fix edge card alignment on mobile */
    .edge-card {
        width: 100%;
        max-width: 100%;
    }

    /* Mobile: shrink card icons by 25% */
    .edge-icon svg,
    .service-card svg,
    .service-icon svg,
    .industry-card svg,
    .industry-icon svg,
    .capability-icon svg,
    .flip-card-front svg,
    .flip-card-back svg {
        width: 2rem !important;
        height: 2rem !important;
    }

    .edge-icon,
    .service-icon,
    .industry-icon,
    .capability-icon {
        width: 3.5rem !important;
        height: 3.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Mobile: reduce card padding */
    .edge-card,
    .service-card,
    .industry-card,
    .capability-card {
        padding: 1rem !important;
    }

    /* Mobile: reduce grid gaps */
    .edge-grid,
    .services-grid,
    .industries-grid,
    .flip-grid,
    .flip-grid-4 {
        gap: 0.75rem !important;
    }

    /* Mobile: reduce card header font size */
    .edge-card h4,
    .service-card h4,
    .industry-card h4,
    .flip-card-front h4 {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }

    .capability-card h3 {
        font-size: 1.0625rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Mobile: reduce card description text */
    .edge-card p,
    .service-card p,
    .service-description,
    .industry-card p,
    .capability-card p {
        font-size: 0.875rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.75rem !important;
    }

    /* Mobile: reduce hero section top padding */
    .hero {
        padding-top: var(--spacing-sm) !important;
    }

    /* Mobile: reduce hero container top padding */
    .hero-fullscreen .container {
        padding-top: 1.5rem !important;
    }

    /* Mobile: push hero logo down slightly */
    .hero-image {
        margin-top: 1rem;
    }

    /* Ensure battle button stays hidden on mobile unless inverted */
    .btn-battle {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    body.inverted .btn-battle {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-badges {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .hero-badges .badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.875rem;
        white-space: nowrap;
    }

    .about-me-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-me-image {
        margin: 0 auto;
        text-align: center;
    }

    .about-me-image img {
        max-width: 280px;
        margin: 0 auto;
    }

    .certification-badge {
        bottom: -30px;
        right: 50%;
        transform: translateX(50%) scale(0.9);
        padding: 0 0.45rem;
    }

    .cert-badge-logo {
        width: 180px !important;
        height: 144px !important;
    }

    .cert-number {
        font-size: 1.8rem !important;
    }

    .cert-label {
        font-size: 0.675rem !important;
    }

    .industries-grid,
    .expertise-grid,
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    /* Flip grid responsive - 1 column on mobile */
    .flip-grid,
    .flip-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Timeline - vertical on mobile */
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .timeline-item:not(:last-child)::after {
        top: calc(60px + var(--spacing-md));
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: calc(var(--spacing-lg) - var(--spacing-md));
        background-image: radial-gradient(circle, var(--accent-red) 3px, transparent 3px);
        background-size: 8px 20px;
        background-repeat: repeat-y;
        background-position: center top;
    }

    /* Flip cards on mobile - stacked layout (no flip) */
    .flip-card {
        height: auto;
        perspective: none;
    }

    .flip-card-inner {
        transform: none !important;
        display: flex;
        flex-direction: column;
    }

    .flip-card-front,
    .flip-card-back {
        position: relative;
        transform: none !important;
        height: auto;
        border-radius: 0;
    }

    .flip-card-front {
        background-color: var(--primary-black);
        color: var(--primary-white);
        border-bottom: none;
        border-radius: 12px 12px 0 0;
        padding: 0.75rem 1rem 0.5rem;
    }

    .flip-card-back {
        background-color: var(--primary-black);
        color: var(--primary-white);
        border-color: var(--primary-black);
        border-top: none;
        border-radius: 0 0 12px 12px;
        padding: 0 1rem 0.75rem;
    }

    .flip-card-back h5 {
        display: none;
    }

    .flip-card-back p {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .flip-card-back .btn-primary {
        margin-top: var(--spacing-sm);
    }

    .flip-card-icon svg {
        width: 40px;
        height: 40px;
    }

    /* Fix inverted mode on mobile flip cards - keep dark theme */
    body.inverted .flip-card-front {
        background-color: #000000;
        color: #ffffff;
        border-color: #ffffff;
    }

    body.inverted .flip-card-back {
        background-color: #000000;
        color: #ffffff;
        border-color: #ffffff;
        border-top-color: transparent;
    }

    body.inverted .flip-card-front h4 {
        color: #ffffff;
    }

    body.inverted .flip-card-icon svg {
        color: #ffffff;
    }

    body.inverted .flip-card-back p {
        color: #cccccc;
    }

    .footer {
        padding: 1.5rem 0 1rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 1rem !important;
    }

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

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.875rem !important;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        height: 120px !important;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

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

    .footer-column h4 {
        margin-bottom: 0.5rem !important;
        font-size: 1rem !important;
    }

    .footer-column ul {
        align-items: center;
        gap: 0.25rem !important;
    }

    .footer-column a {
        display: inline-block;
        font-size: 0.875rem !important;
    }

    .footer-column a:hover {
        transform: none;
    }

    .footer-bottom {
        padding-top: 0.75rem !important;
    }

    .footer-bottom p {
        font-size: 0.8rem !important;
    }

    /* Reduce hero section h1 by 25% on mobile */
    .hero-section h1 {
        font-size: 2.156rem !important;
    }

    /* ==========================================
       MOBILE SCROLL REDUCTION OPTIMIZATIONS
       ========================================== */

    /* Hide floating geometric shapes on mobile - reduces visual clutter and improves performance */
    .floating-shape {
        display: none !important;
    }

    /* Hide parallax backgrounds on mobile for better performance */
    .parallax-bg {
        display: none !important;
    }

    /* Reduce section padding to decrease scroll length */
    section[style*="padding: var(--spacing-xl)"],
    .parallax-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Make section headers more compact on mobile */
    .section-header {
        margin-bottom: 1rem;
    }

    .section-header h2 {
        margin-bottom: 0.25rem;
        font-size: 1.5rem !important;
    }

    .section-header p {
        margin-bottom: 0;
        font-size: 0.9rem !important;
    }

    /* Reduce flip-card icons on mobile */
    .flip-card-icon svg {
        width: 32px !important;
        height: 32px !important;
    }

    .flip-card-icon {
        margin-bottom: 0.5rem;
    }

    .flip-card-front h4 {
        margin-bottom: 0 !important;
    }

    /* Hide eyebrow text on mobile - saves vertical space */
    .eyebrow-text {
        display: none;
    }

    /* Reduce card grid gaps on mobile */
    .capabilities-grid,
    .industries-grid,
    .edge-grid,
    .edge-grid-centered {
        gap: 0.75rem !important;
        row-gap: 0.75rem !important;
    }

    /* Reduce CTA section padding on mobile */
    .cta-section {
        padding: 1.5rem 0 !important;
    }

    .cta-section h2 {
        font-size: 1.375rem !important;
        margin-bottom: 0.5rem !important;
    }

    .cta-section p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }

    /* Make hero section more compact on mobile */
    .hero.hero-fullscreen {
        min-height: auto !important;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

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

    /* Reduce footer padding on mobile */
    .footer {
        padding: 2rem 0 1rem !important;
    }

    .footer-content {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-column h4 {
        margin-bottom: 0.5rem;
    }

    .footer-column ul {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 0.9375rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.375rem;
        --font-size-h2: 1.625rem;
        --font-size-h3: 1.375rem;
        --spacing-md: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

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

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-base);
    }

    /* Ensure battle button stays hidden on mobile unless inverted */
    .btn-battle {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    body.inverted .btn-battle {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .service-header {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .service-icon {
        display: none;
    }

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

    .blog-hero h1 {
        font-size: var(--font-size-2xl);
    }
}

/* ==========================================
   GAME MODAL STYLES
   ========================================== */

.game-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.game-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 75vh;
    background: #000;
    border: 3px solid #fff;
    border-radius: 8px;
    animation: slideIn 0.4s ease;
}

.game-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    color: #000;
    border: 3px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.game-modal-close:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg);
}

#gameFrame {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

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

@keyframes slideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .game-modal-content {
        width: 95%;
        height: 90vh;
        max-height: none;
    }

    .game-modal-close {
        top: -12px;
        right: -12px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* ==========================================
   BLOG PAGE STYLES
   ========================================== */

.blog-hero {
    margin-top: 70px;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--gray-100) 100%);
    text-align: center;
}

.blog-hero h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
}

.blog-hero p {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

.blog-hero .last-updated {
    font-size: var(--font-size-base);
    color: var(--gray-700);
    font-style: italic;
}

.blog-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background-color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 12px;
    padding: var(--spacing-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Blog cards use CSS variables - automatic inversion */
body.inverted .blog-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.blog-card h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-black);
    line-height: 1.4;
}

.blog-card p {
    font-size: var(--font-size-base);
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-200);
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-black);
    color: var(--primary-white);
    border-radius: 20px;
    font-size: 0.8rem;
}

.blog-read-time {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.blog-topics {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.blog-topics strong {
    color: var(--primary-black);
}

.blog-cta {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.blog-cta h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
    color: var(--primary-white);
}

.blog-cta p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

body.inverted .blog-cta {
    background-color: var(--primary-white);
}

body.inverted .blog-cta h2 {
    color: var(--primary-black);
}

body.inverted .blog-cta p {
    color: var(--gray-700);
}

/* ==========================================
   INDIVIDUAL BLOG POST PAGES
   ========================================== */

.blog-post {
    margin-top: 70px;
}

.blog-post-hero {
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--gray-100) 100%);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.blog-post-back {
    display: block;
    color: var(--gray-700);
    text-decoration: none;
    font-size: var(--font-size-sm);
    margin-bottom: 2rem;
    transition: var(--transition-base);
}

.blog-post-back:hover {
    color: var(--primary-black);
}

.blog-post-hero .blog-category {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #980000;
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-post-hero .blog-category:hover {
    color: var(--primary-black);
}

.blog-post-hero .blog-category::before,
.blog-post-hero .blog-category::after {
    content: "";
    display: inline-block;
    width: 3rem;
    height: 2px;
    background: #980000;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.blog-post-hero .blog-category:hover::before,
.blog-post-hero .blog-category:hover::after {
    background: var(--primary-black);
    width: 4rem;
}

.blog-post-hero .blog-category::before {
    margin-right: 1rem;
}

.blog-post-hero .blog-category::after {
    margin-left: 1rem;
}

.blog-post-hero h1 {
    font-size: 2.75rem;
    color: var(--primary-black);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.blog-post-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.blog-post-meta .meta-item svg {
    color: #980000;
    flex-shrink: 0;
}

.blog-post-meta .meta-item span {
    white-space: nowrap;
}

.blog-post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    color: var(--gray-600);
    letter-spacing: 0.03em;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    border-color: #980000;
    color: #980000;
}

.blog-post-content {
    padding: var(--spacing-lg) 0;
    background: var(--primary-white);
}

.blog-post-content .container {
    max-width: 800px;
}

.blog-post-content .intro-text {
    font-size: var(--font-size-lg);
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.blog-post-content h2 {
    display: inline-block;
    font-size: var(--font-size-2xl);
    color: var(--primary-white);
    background: #980000;
    padding: 0.5rem 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-post-content h3 {
    font-size: var(--font-size-xl);
    color: var(--primary-black);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.blog-post-content p {
    font-size: var(--font-size-base);
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1rem;
    padding-left: 0;
    list-style: none;
}

.blog-post-content li {
    font-size: var(--font-size-base);
    color: var(--gray-800);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.blog-post-content a {
    color: var(--accent-red);
    text-decoration: underline;
}

.blog-post-content a:hover {
    color: var(--primary-black);
}

/* Author Bio Section */
.blog-post-author {
    padding: var(--spacing-xl) 0;
    background: var(--gray-100);
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-black);
}

.author-info h3 {
    font-size: var(--font-size-lg);
    color: var(--primary-black);
    margin-bottom: var(--spacing-xs);
}

.author-info p {
    font-size: var(--font-size-base);
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.author-links {
    display: flex;
    gap: var(--spacing-md);
}

.author-links a {
    font-size: var(--font-size-sm);
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition-base);
}

.author-links a:hover {
    color: var(--primary-black);
    text-decoration: underline;
}

/* Blog Post Responsive */
@media (max-width: 768px) {
    .blog-post-hero h1 {
        font-size: 1.75rem;
        letter-spacing: -0.01em;
    }

    .blog-post-hero .blog-category::before,
    .blog-post-hero .blog-category::after {
        width: 1.5rem;
    }

    .blog-post-meta {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
        justify-content: center;
    }

    .blog-post-meta .meta-item {
        font-size: 0.8rem;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .author-links {
        justify-content: center;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ==========================================
   MODERN DESIGN ELEMENTS
   ========================================== */

/* Text Highlights */
.text-highlight {
    background-color: var(--accent-red) !important;
    color: var(--primary-white) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.text-highlight-underline {
    position: relative;
    display: inline-block;
    background-color: var(--accent-red) !important;
    color: var(--primary-white) !important;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Gradient Overlays */
.gradient-overlay {
    position: relative;
    overflow: hidden;
}

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(152, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

/* Stats/Metrics Display */
.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--primary-black);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-700);
}

/* Red background stat numbers (for special emphasis) */
.stat-number.highlighted {
    background-color: var(--accent-red);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* Modern Card Styles */
.card-modern {
    background: var(--primary-white);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.card-modern:hover {
    box-shadow: 0 8px 30px rgba(152, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-modern.card-no-hover:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: none;
}

/* Card modern uses CSS variables which auto-swap - no explicit rules needed */

/* Section Dividers */
.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    margin: var(--spacing-md) auto;
    border-radius: 2px;
}

/* Badge/Tag Styles */
.badge-red {
    background-color: var(--accent-red) !important;
    color: var(--primary-white) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* Page Headers */
.page-header {
    padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-lg);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-white) 100%);
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: var(--font-size-xl);
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   GLOBAL RED BACKGROUND RULE
   ========================================== */

/* CRITICAL: All red backgrounds MUST have white text */
[style*="background: var(--accent-red)"],
[style*="background-color: var(--accent-red)"],
.bg-red,
*[class*="red"] {
    color: var(--primary-white) !important;
}

/* Ensure all child elements of red backgrounds also have white text */
.btn-primary *,
.badge-red *,
.text-highlight *,
.text-highlight-underline * {
    color: var(--primary-white) !important;
}

/* ==========================================
   PRIVACY PAGE CARD
   ========================================== */

/* Default (light mode) - white card with black text */
.privacy-card {
    background-color: #ffffff;
}

.privacy-card,
.privacy-card p,
.privacy-card li,
.privacy-card strong {
    color: #000000 !important;
}

.privacy-card h2 {
    color: #000000 !important;
}

/* Dark mode (inverted) - black card with white text */
body.inverted .privacy-card {
    background-color: #1a1a1a;
}

body.inverted .privacy-card,
body.inverted .privacy-card p,
body.inverted .privacy-card li,
body.inverted .privacy-card strong {
    color: #ffffff !important;
}

body.inverted .privacy-card h2 {
    color: #ffffff !important;
}

/* ==========================================
   DARK MODE CONTENT LINKS
   Links in content areas get white background + red text
   ========================================== */

/* Default (light mode) - simple red underlined links */
.privacy-card a,
.contact-method a,
.card-modern a:not(.btn-primary):not(.btn-secondary) {
    color: var(--accent-red) !important;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.privacy-card a:hover,
.contact-method a:hover,
.card-modern a:not(.btn-primary):not(.btn-secondary):hover {
    opacity: 0.8;
}

/* Dark mode (inverted) - white background pill with red text for all content links */
body.inverted .privacy-card a,
body.inverted .contact-method a,
body.inverted .card-modern a:not(.btn-primary):not(.btn-secondary),
body.inverted .content-section p a:not([class]),
body.inverted .content-section li a:not([class]),
body.inverted .blog-post-content p a:not([class]),
body.inverted .blog-post-content li a:not([class]),
body.inverted .author-links a {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--accent-red) !important;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-decoration: none;
}

body.inverted .privacy-card a:hover,
body.inverted .contact-method a:hover,
body.inverted .card-modern a:not(.btn-primary):not(.btn-secondary):hover,
body.inverted .content-section p a:not([class]):hover,
body.inverted .content-section li a:not([class]):hover,
body.inverted .blog-post-content p a:not([class]):hover,
body.inverted .blog-post-content li a:not([class]):hover,
body.inverted .author-links a:hover {
    background-color: #ffffff;
    text-decoration: underline;
}

/* ==========================================
   THANK YOU PAGE LOGO SWAP
   ========================================== */

/* Default (black bg) - show white icon, hide black icon */
.thankyou-icon-dark {
    display: block;
}

.thankyou-icon-light {
    display: none;
}

/* Inverted (white bg) - show black icon with red tint, hide white icon */
body.inverted .thankyou-icon-dark {
    display: none;
}

body.inverted .thankyou-icon-light {
    display: block;
    filter: invert(19%) sepia(97%) saturate(7404%) hue-rotate(359deg) brightness(101%) contrast(117%);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for grid items */
.scroll-stagger > *:nth-child(1) { transition-delay: 0s; }
.scroll-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.scroll-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.scroll-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.scroll-stagger > *:nth-child(5) { transition-delay: 0.4s; }
.scroll-stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ==========================================================================
   ANIMATED PROCESS TIMELINE
   ========================================================================== */

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gray-200);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    padding: var(--spacing-lg);
    background: var(--primary-white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(199, 22, 29, 0.3);
}

.timeline-content h4 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--primary-black);
}

.timeline-content p {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 80px;
    }

    .timeline-marker {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .timeline-content {
        width: 100%;
    }
}

/* ==========================================================================
   FAQ STYLES
   ========================================================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gray-300);
}

.faq-item.active {
    border-color: var(--accent-red);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    background: var(--primary-white);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-black);
    flex: 1;
    padding-right: var(--spacing-md);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--gray-500);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-red);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
    color: var(--gray-700);
    line-height: 1.7;
}

.faq-answer-inner p {
    margin: 0 0 var(--spacing-sm) 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
}

.faq-answer-inner li {
    margin-bottom: var(--spacing-xs);
}

.faq-category {
    margin-bottom: var(--spacing-xl);
}

.faq-category h3 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.faq-category h3 svg {
    width: 24px;
    height: 24px;
    color: var(--accent-red);
}

/* ==========================================
   VISUAL ENHANCEMENTS
   ========================================== */

/* ------------------------------------------
   1. ICON ANIMATIONS
   ------------------------------------------ */

/* Base icon hover setup */
.capability-icon svg,
.industry-icon svg,
.service-icon svg,
.feature-icon svg,
.nav-menu svg,
.card-icon svg {
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Bounce effect */
.icon-bounce:hover svg,
.capability-card:hover .capability-icon svg {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    75% { transform: translateY(-6px); }
}

/* Pulse effect */
.icon-pulse:hover svg,
.industry-card:hover .industry-icon svg {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Rotate effect */
.icon-rotate:hover svg {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

/* Shake effect */
.icon-shake:hover svg {
    animation: iconShake 0.5s ease;
}

@keyframes iconShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-3px) rotate(-5deg); }
    40% { transform: translateX(3px) rotate(5deg); }
    60% { transform: translateX(-3px) rotate(-5deg); }
    80% { transform: translateX(3px) rotate(5deg); }
}

/* Float effect */
.icon-float:hover svg {
    animation: iconFloat 1s ease infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Spin on hover for specific icons */
.footer-social-link:hover svg {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* ------------------------------------------
   2. PULL QUOTES
   ------------------------------------------ */

.pull-quote {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    font-size: var(--font-size-xl);
    font-style: italic;
    color: var(--gray-700);
    text-align: center;
    border-left: none;
    background: linear-gradient(135deg, rgba(152, 0, 0, 0.03) 0%, transparent 100%);
    border-radius: 8px;
}

.pull-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    font-family: Georgia, serif;
    color: var(--accent-red);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.pull-quote::after {
    content: '"';
    position: absolute;
    bottom: -60px;
    right: 20px;
    font-size: 8rem;
    font-family: Georgia, serif;
    color: var(--accent-red);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.pull-quote cite {
    display: block;
    margin-top: var(--spacing-md);
    font-size: var(--font-size-base);
    font-style: normal;
    color: var(--accent-red);
}

.pull-quote cite::before {
    content: '— ';
}

body.inverted .pull-quote {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    color: var(--gray-300);
}

body.inverted .pull-quote::before,
body.inverted .pull-quote::after {
    color: #ffffff;
    opacity: 0.1;
}

/* ------------------------------------------
   3. SECTION DIVIDERS
   ------------------------------------------ */

/* Diagonal divider */
.section-divider-diagonal {
    position: relative;
    height: 80px;
    background: var(--primary-white);
    overflow: hidden;
}

.section-divider-diagonal::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.section-divider-diagonal.reverse::before {
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* Wave divider */
.section-divider-wave {
    position: relative;
    height: 60px;
    background: var(--primary-white);
    overflow: hidden;
}

.section-divider-wave::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: var(--gray-100);
    clip-path: ellipse(50% 80% at 50% 100%);
}

/* Geometric divider with shapes */
.section-divider-geo {
    position: relative;
    height: 100px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    overflow: hidden;
}

.section-divider-geo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-300) 20%, var(--gray-300) 80%, transparent 100%);
}

.section-divider-geo .geo-shape {
    width: 12px;
    height: 12px;
    background: var(--accent-red);
    position: relative;
    z-index: 1;
    animation: geoRotate 8s linear infinite;
}

.section-divider-geo .geo-shape:nth-child(1) { transform: rotate(45deg); }
.section-divider-geo .geo-shape:nth-child(2) { border-radius: 50%; animation-delay: -2s; }
.section-divider-geo .geo-shape:nth-child(3) { transform: rotate(45deg); animation-delay: -4s; }

@keyframes geoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Arrow divider */
.section-divider-arrow {
    position: relative;
    height: 60px;
    background: var(--primary-white);
    overflow: hidden;
}

.section-divider-arrow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 40px solid var(--gray-100);
}

body.inverted .section-divider-diagonal::before,
body.inverted .section-divider-wave::before,
body.inverted .section-divider-arrow::before {
    background: var(--gray-800);
}

body.inverted .section-divider-diagonal,
body.inverted .section-divider-wave,
body.inverted .section-divider-arrow {
    background: var(--primary-black);
}

/* ------------------------------------------
   4. PAGE TRANSITIONS - DISABLED
   ------------------------------------------ */
/* Removed for instant, snappier navigation */

/* ------------------------------------------
   5. CUSTOM CURSOR
   ------------------------------------------ */

/* Hide default cursor on desktop */
@media (hover: hover) and (pointer: fine) {
    body.custom-cursor,
    body.custom-cursor * {
        cursor: none !important;
    }

    .cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: var(--accent-red);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    }

    .cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border: 2px solid var(--accent-red);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: width 0.15s ease, height 0.15s ease, border-color 0.2s ease, background 0.2s ease;
        opacity: 0.5;
    }

    /* Cursor hover states */
    body.custom-cursor.cursor-hover .cursor-dot {
        width: 12px;
        height: 12px;
        background: var(--primary-white);
    }

    body.custom-cursor.cursor-hover .cursor-ring {
        width: 60px;
        height: 60px;
        border-color: var(--accent-red);
        background: rgba(152, 0, 0, 0.1);
        opacity: 1;
    }

    /* Cursor click state */
    body.custom-cursor.cursor-click .cursor-dot {
        transform: translate(-50%, -50%) scale(0.8);
    }

    body.custom-cursor.cursor-click .cursor-ring {
        transform: translate(-50%, -50%) scale(0.9);
    }

    /* Inverted mode cursor */
    body.inverted .cursor-dot {
        background: #ffffff;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
    }

    body.inverted .cursor-ring {
        border-color: #ffffff;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    }

    body.inverted.cursor-hover .cursor-ring {
        background: rgba(255, 255, 255, 0.1);
        border-color: #ffffff;
    }
}

/* ------------------------------------------
   6. PARALLAX DEPTH LAYERS
   ------------------------------------------ */

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* Different depth levels */
.parallax-layer-back {
    transform: translateZ(-2px) scale(3);
}

.parallax-layer-mid {
    transform: translateZ(-1px) scale(2);
}

.parallax-layer-front {
    transform: translateZ(0);
}

/* Depth shapes - slower movement for back, faster for front */
.depth-shape {
    position: absolute;
    opacity: 0.03;
    pointer-events: none;
}

.depth-shape-back {
    animation: depthFloat 30s ease-in-out infinite;
}

.depth-shape-mid {
    animation: depthFloat 20s ease-in-out infinite;
    opacity: 0.04;
}

.depth-shape-front {
    animation: depthFloat 15s ease-in-out infinite;
    opacity: 0.05;
}

@keyframes depthFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

/* Large decorative shapes for depth */
.depth-circle-large {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid var(--accent-red);
    opacity: 0.03;
}

.depth-square-large {
    width: 300px;
    height: 300px;
    border: 1px solid var(--accent-red);
    transform: rotate(45deg);
    opacity: 0.03;
}

body.inverted .depth-shape,
body.inverted .depth-circle-large,
body.inverted .depth-square-large {
    border-color: #ffffff;
    opacity: 0.05;
}

/* ------------------------------------------
   7. BACKGROUND NOISE TEXTURE
   ------------------------------------------ */

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Alternative: CSS-based grain animation */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-1%, -1%); }
    20% { transform: translate(1%, 1%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-1%, 0); }
    60% { transform: translate(1%, 0); }
    70% { transform: translate(0, 1%); }
    80% { transform: translate(0, -1%); }
    90% { transform: translate(1%, 1%); }
}

/* Reduce grain intensity in inverted mode */
body.inverted::after {
    opacity: 0.03;
}

/* Disable noise on mobile for performance */
@media (max-width: 768px) {
    body::after,
    .noise-overlay {
        display: none !important;
    }
}
