/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --border: #252525;
    --shadow: rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

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

/* Keyboard Navigation Indicator */
body.keyboard-navigation *:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Main Content Area */
main {
    min-height: 100vh;
}

@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
}

/* Custom Cursor - Optimized for Performance */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform-origin: center center;
    transition: width 0.15s ease-out, height 0.15s ease-out, border-color 0.15s ease-out, opacity 0.1s ease-out;
    z-index: 9999;
    opacity: 0;
    left: 0;
    top: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.cursor.hover {
    width: 40px;
    height: 40px;
    border-color: var(--accent-hover);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    z-index: 10000;
    transition: width 0.1s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    padding: 20px 0;
    transition: none;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.5px;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
    isolation: isolate;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

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

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    mix-blend-mode: normal;
    isolation: auto;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: none;
    opacity: 1;
    padding-left: 28px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    display: inline-block;
    mix-blend-mode: difference;
    isolation: isolate;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
    mix-blend-mode: difference;
    isolation: isolate;
}

.nav-links a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

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

.btn-nav {
    background: #ffffff;
    color: #000000 !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    mix-blend-mode: difference;
    font-weight: 600;
    border: none;
    cursor: pointer;
    isolation: isolate;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-nav:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    opacity: 0.9;
}

.btn-nav:hover::before {
    width: 300px;
    height: 300px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-tagline {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-headline {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1px;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.hero-headline .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-headline .highlight.underline {
    display: inline-block;
    position: relative;
}

.hero-headline .highlight.underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineReveal 1s ease-out 1.4s forwards;
}

@keyframes underlineReveal {
    to {
        transform: scaleX(1);
    }
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary {
        cursor: none;
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-large {
    padding: 20px 48px;
    font-size: 18px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

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

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services {
    background: var(--bg-secondary);
    overflow: visible;
}

.services .container {
    overflow: visible;
}

/* When services-grid is inside solution section */
.solution .services-grid {
    margin-top: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: stretch;
}

/* When services-grid has exactly 2 items, use 2 columns and center */
.services-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    justify-items: stretch;
}

/* When services-grid has exactly 3 items, use 3 columns */
.services-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    justify-items: stretch;
}

/* When services-grid has exactly 4 items, use 2x2 grid */
.services-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    justify-items: stretch;
    gap: 32px;
}

/* Fallback classes for browser compatibility */
.services-grid.services-grid-2cols {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    justify-items: stretch;
}

.services-grid.services-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    justify-items: stretch;
}

.services-grid.services-grid-4cols {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    justify-items: stretch;
}

.services-grid:has(.use-case-card) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    gap: 40px;
    overflow: visible;
}

.services-grid:has(.use-case-card) .container {
    overflow: visible;
}

@media (max-width: 1024px) {
    .services-grid:has(.use-case-card) {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .services-grid:has(.use-case-card) {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .use-case-card {
        padding-bottom: 40px;
        padding-top: 40px;
        margin-top: 25px;
    }
}

.flywheel-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-top: 40px;
    overflow: visible;
}

@media (max-width: 1024px) {
    .flywheel-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 100%;
        margin-top: 40px;
        overflow: visible;
    }
    
    .flywheel-grid .service-card {
        padding: 32px 24px;
    }
    
    .flywheel-card {
        padding-top: 40px;
        margin-top: 25px;
    }
}

@media (max-width: 768px) {
    .flywheel-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 30px;
    }
}

.service-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    min-width: 0; /* Prevent grid overflow */
    word-wrap: break-word;
}

.use-case-card {
    position: relative;
    text-align: center;
    padding-bottom: 60px;
    padding-top: 50px;
    margin-top: 30px;
    overflow: visible;
}

.use-case-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 10;
}

.use-case-card .service-title {
    margin-top: 0;
    margin-bottom: 16px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card.animate {
    animation: cardReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
    padding-left: 24px;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.client-logo span {
    display: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
}

.client-logo span.show-fallback {
    display: block;
}

.client-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    opacity: 0.1;
}

.client-logo.animate {
    animation: logoReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.client-logo:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.05);
    background: var(--bg-secondary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.client-logo:hover::before {
    width: 200px;
    height: 200px;
}

/* Problem Section */
.problem {
    background: var(--bg-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 60px auto 0;
    justify-items: stretch;
}

/* When problem-grid has exactly 3 items, use 3 columns and center */
.problem-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    justify-items: stretch;
}

/* Fallback for browsers that don't support :has() - use a class */
.problem-grid.problem-grid-3cols {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    justify-items: stretch;
}

@media (max-width: 1200px) {
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        max-width: 1000px;
    }
    
    .problem-grid:has(> :nth-child(3):last-child) {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .problem-grid.problem-grid-3cols {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}

@media (max-width: 1024px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .problem-grid:has(> :nth-child(3):last-child) {
        grid-template-columns: 1fr;
    }
    
    .problem-grid.problem-grid-3cols {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 0; /* Prevent grid overflow */
    word-wrap: break-word;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.problem-card > * {
    position: relative;
    z-index: 1;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.problem-card:hover::before {
    opacity: 0.03;
}

.problem-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

.problem-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
}

.problem-card-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.problem-card-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 60px auto 0;
    justify-items: stretch;
}

/* When solution-grid is followed by services-grid in same section, add spacing */
.solution .solution-grid + .services-grid {
    margin-top: 80px;
}

@media (max-width: 1200px) {
    .services-grid:has(> :nth-child(4):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        gap: 32px;
    }
    
    .services-grid.services-grid-4cols {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
        gap: 32px;
    }
    
    .solution .solution-grid + .services-grid {
        margin-top: 60px;
    }
    
    .solution .services-grid {
        margin-top: 60px;
    }
}

@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        justify-items: stretch;
    }
    
    .services-grid:has(> :nth-child(2):last-child) {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .services-grid:has(> :nth-child(3):last-child) {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .services-grid:has(> :nth-child(4):last-child) {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 32px;
    }
    
    .services-grid.services-grid-2cols {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .services-grid.services-grid-3cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .services-grid.services-grid-4cols {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 32px;
    }
    
    .solution .solution-grid + .services-grid {
        margin-top: 60px;
    }
    
    .solution .services-grid {
        margin-top: 60px;
    }
}

.solution-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 0; /* Prevent grid overflow */
    word-wrap: break-word;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.solution-card > * {
    position: relative;
    z-index: 1;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.solution-card:hover::before {
    opacity: 0.03;
}

.solution-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

.solution-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
}

.solution-card-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.solution-card-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }
    
    .problem-card {
        padding: 24px;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 40px;
    }
    
    .solution-card {
        padding: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .services-grid:has(> :nth-child(2):last-child),
    .services-grid:has(> :nth-child(3):last-child),
    .services-grid:has(> :nth-child(4):last-child),
    .services-grid.services-grid-2cols,
    .services-grid.services-grid-3cols,
    .services-grid.services-grid-4cols {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 24px;
    }
    
    .flywheel-card {
        padding-bottom: 40px;
        padding-top: 40px;
        margin-top: 25px;
    }
    
    .flywheel-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

/* Solution Section */
.solution {
    background: var(--bg-primary);
    overflow: visible;
}

.solution .container {
    overflow: visible;
}


.flywheel-card {
    position: relative;
    text-align: center;
    padding-bottom: 60px;
    padding-top: 50px;
    margin-top: 30px;
    overflow: visible;
}

.flywheel-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 10;
}

.flywheel-card .service-title {
    margin-top: 0;
    margin-bottom: 16px;
}

.flywheel-card .service-description {
    margin-bottom: 24px;
}

.flywheel-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    color: var(--accent);
    font-weight: 300;
    opacity: 0.6;
}

.flywheel-arrow-loop {
    animation: rotate 3s linear infinite;
    opacity: 0.8;
}

@keyframes rotate {
    from {
        transform: translateX(-50%) rotate(0deg);
    }
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .flywheel-grid .flywheel-card:last-child .flywheel-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .flywheel-grid {
        margin-top: 30px;
        overflow: visible;
    }
    
    .flywheel-card {
        padding-bottom: 40px;
        padding-top: 40px;
        margin-top: 25px;
    }
    
    .flywheel-arrow {
        display: none;
    }
}

.solution-closing {
    max-width: 900px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.solution-closing-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.solution-closing-icon {
    font-size: 40px;
    flex-shrink: 0;
    margin-top: 4px;
}

.solution-closing-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.solution-closing-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .solution-closing {
        margin-top: 40px;
        padding-top: 32px;
    }
    
    .solution-closing-content {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .solution-closing-icon {
        margin-top: 0;
    }
    
    .solution-closing-content p {
        font-size: 16px;
    }
}


/* Approach Section */
.approach {
    background: var(--bg-secondary);
}

.approach-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.approach-text {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
}

.service-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* Form Styles */
form input[type="text"],
form input[type="email"],
form input[type="url"],
form select,
form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="url"]:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

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

form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 400;
}

form button[type="submit"] {
    width: 100%;
    text-align: center;
    display: block;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
}

table thead tr {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border);
}

table th {
    padding: 20px;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
}

table tbody tr {
    border-bottom: 1px solid var(--border);
}

table td {
    padding: 20px;
    color: var(--text-secondary);
}

/* Case Study Styles */
.case-studies-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.case-study {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    cursor: pointer;
}

.case-study a {
    position: relative;
    z-index: 2;
}

.case-study:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.case-study-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.case-study-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    flex-shrink: 0;
}

.case-study-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.case-study-logo span {
    display: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.case-study-logo span.show-fallback {
    display: block;
}

.case-study-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.case-study-content {
    margin-top: 32px;
    position: relative;
}

.case-study-preview {
    display: block;
}

.case-study-expanded {
    display: none;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.case-study.expanded .case-study-expanded {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.case-study-toggle {
    width: 100%;
    margin-top: 32px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.case-study-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.case-study-toggle:active {
    transform: translateY(0);
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.case-study.expanded .toggle-icon {
    transform: rotate(180deg);
}

.case-study.expanded .toggle-text {
    display: none;
}

.case-study-toggle::after {
    content: 'View Less';
    display: none;
}

.case-study.expanded .case-study-toggle::after {
    display: inline;
}

.case-study-toggle {
    position: relative;
    z-index: 1;
}

.case-study.expanded .case-study-toggle .toggle-text {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-study-subtitle {
    color: var(--text-primary);
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
}

.case-study-subtitle:first-of-type {
    margin-top: 0;
}

.case-study-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.case-study-list {
    list-style: none;
    margin: 24px 0;
    padding-left: 0;
}

.case-study-list li {
    padding: 16px 0;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    position: relative;
    padding-left: 32px;
}

.case-study-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 18px;
}

.case-study-results {
    list-style: none;
    margin: 24px 0;
    padding-left: 0;
}

.case-study-results li {
    padding: 16px 0;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    position: relative;
    padding-left: 32px;
    font-weight: 500;
}

.case-study-results li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 20px;
}

@media (max-width: 768px) {
    .case-studies-container {
        gap: 40px;
    }
    
    .case-study {
        padding: 32px 24px;
    }
    
    .case-study-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .case-study-logo {
        width: 60px;
        height: 60px;
    }
    
    .case-study-title {
        font-size: 24px;
    }
    
    .case-study-subtitle {
        font-size: 20px;
    }
}

/* reCAPTCHA Badge Positioning - Hidden */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}

/* Alternative: Make it very small and subtle (if you want to keep it visible but minimal) */
/*
.grecaptcha-badge {
    right: auto !important;
    left: 4px !important;
    bottom: 4px !important;
    width: 60px !important;
    height: 60px !important;
    opacity: 0.3 !important;
    transition: opacity 0.3s ease !important;
}

.grecaptcha-badge:hover {
    opacity: 1 !important;
}
*/

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Calendly Section */
.calendly-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.calendly-inline-widget {
    margin: 40px auto 0;
    border-radius: 16px;
    overflow: hidden;
    max-width: 900px;
}

/* Legal Pages */
.legal-page {
    padding: 140px 0 100px;
    min-height: 80vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.legal-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
}

.legal-text p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 16px;
}

.legal-text h2:first-of-type {
    margin-top: 0;
}

/* Footer */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 48px;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 4px;
}

.footer-logo-link {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-logo-link:hover {
    color: var(--accent);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 280px;
}

.footer-cta {
    margin-top: 8px;
}

.footer-cta-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.footer-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.footer-cta-link:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.footer-cta-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Navigation Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-family: 'Space Grotesk', 'Poppins', 'Inter', sans-serif;
    letter-spacing: -0.3px;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-list li {
    margin: 0;
    padding: 0;
}

.footer-link-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.footer-link-list a:hover {
    color: var(--accent);
}

.footer-link-list a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 48px 0 24px;
    }
    
    .footer-content {
        gap: 48px;
        margin-bottom: 40px;
    }
    
    .footer-brand {
        text-align: left;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--border);
    }
    
    .footer-logo-link {
        font-size: 24px;
        margin-bottom: 0;
    }
    
    .footer-tagline {
        font-size: 15px;
        line-height: 1.6;
        max-width: 100%;
        margin: 0;
    }
    
    .footer-cta {
        margin-top: 8px;
        width: 100%;
    }
    
    .footer-cta-link {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-column {
        text-align: left;
        padding: 24px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-column-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 16px 0;
        color: var(--text-primary);
    }
    
    .footer-link-list {
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .footer-link-list li {
        margin: 0;
        padding: 0;
    }
    
    .footer-link-list a {
        font-size: 15px;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        padding: 12px 0;
        min-height: 44px;
        transition: color 0.2s ease, padding-left 0.2s ease;
    }
    
    .footer-link-list a:hover,
    .footer-link-list a:focus {
        color: var(--accent);
        padding-left: 8px;
    }
    
    .footer-link-list a:active {
        opacity: 0.8;
    }
    
    .footer-bottom {
        padding-top: 24px;
        margin-top: 24px;
    }
    
    .footer-legal {
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-text {
        font-size: 13px;
        line-height: 1.6;
        color: var(--text-tertiary);
        margin: 0;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 40px;
        margin-bottom: 32px;
    }
    
    .footer-brand {
        padding-bottom: 24px;
        gap: 12px;
    }
    
    .footer-logo-link {
        font-size: 22px;
    }
    
    .footer-tagline {
        font-size: 14px;
    }
    
    .footer-cta-link {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .footer-column {
        padding: 20px 0;
    }
    
    .footer-column-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-link-list a {
        font-size: 14px;
        padding: 10px 0;
        min-height: 44px;
    }
    
    .footer-bottom {
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .footer-text {
        font-size: 12px;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    mix-blend-mode: difference;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding-top: 80px;
}

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

.mobile-nav-content {
    padding: 0 24px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    display: block;
    padding: 20px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
    width: 100%;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--accent);
}

.mobile-nav-link.mobile-btn-nav {
    background: var(--accent-gradient);
    color: white !important;
    border-radius: 8px;
    padding: 16px 24px;
    margin-top: 24px;
    text-align: center;
    border: none !important;
    font-weight: 600;
}

.mobile-nav-link.mobile-btn-nav:hover,
.mobile-nav-link.mobile-btn-nav:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white !important;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-item-header .mobile-nav-link {
    flex: 1;
    border-bottom: none;
    padding: 20px 0;
}

.mobile-dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.2s ease;
    min-width: 48px;
    border-left: 1px solid var(--border);
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown-toggle:focus {
    color: var(--accent);
}

.mobile-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.mobile-nav-item.active .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    padding: 16px 0 16px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.mobile-nav-item.active .mobile-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-dropdown-link {
    display: block;
    padding: 14px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-link:last-child {
    border-bottom: none;
}

.mobile-dropdown-link:hover,
.mobile-dropdown-link:focus {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .dropdown-menu {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .nav-links {
        display: none;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Show mobile navigation */
    .mobile-nav {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

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

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-description,
    .approach-text {
        font-size: 18px;
    }
    
    .hero-headline {
        font-size: clamp(28px, 8vw, 48px);
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: clamp(28px, 6vw, 40px);
        margin-bottom: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .problem-card {
        padding: 24px;
    }
    
    /* Disable custom cursor on mobile */
    .cursor {
        display: none !important;
    }
    
    /* Reduce animations on mobile for performance */
    .service-card,
    .client-logo {
        transition: all 0.2s ease;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .clients-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 20px;
    }
    
    .problem-card {
        padding: 20px;
    }
    
    .hero-headline {
        font-size: clamp(24px, 7vw, 36px);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .section-title {
        font-size: clamp(24px, 6vw, 32px);
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .service-title {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 15px;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* Glitch Effect (for hover) */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.glitch:hover {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.2) 50%,
        rgba(99, 102, 241, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--text-primary);
}

