/* ============================================
   VITALII.DEV - Premium WordPress Developer
   Apple-Inspired Liquid Glass Design
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --font-size-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
    --font-size-xs: clamp(0.75rem, 0.73rem + 0.1vw, 0.8125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    --font-size-3xl: clamp(1.875rem, 1.4rem + 2.5vw, 2.75rem);
    --font-size-4xl: clamp(2.25rem, 1.5rem + 3.75vw, 3.75rem);
    --font-size-5xl: clamp(2.75rem, 1.75rem + 5vw, 4.5rem);

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.1;
    --line-height-snug: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.65;

    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;

    /* Spacing */
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    --space-2xl: clamp(3rem, 2rem + 5vw, 6rem);
    --space-3xl: clamp(4rem, 2.5rem + 7.5vw, 8rem);

    /* Layout */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 0.5rem + 2.5vw, 2rem);

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;
}

/* Light Theme (Default) */
:root,
[data-theme="light"] {
    --color-bg: #f8f9fa;
    --color-bg-alt: #ffffff;
    --color-bg-subtle: #f0f2f5;

    --color-text: #1d1d1f;
    --color-text-secondary: #515154;
    --color-text-muted: #86868b;

    --color-primary: #0071e3;
    --color-primary-hover: #0077ed;
    --color-primary-light: rgba(0, 113, 227, 0.1);

    --color-accent: #6e6e73;
    --color-success: #34c759;
    --color-error: #ff3b30;

    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-subtle: rgba(0, 0, 0, 0.04);

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-bg-solid: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --glass-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
    --glass-blur: blur(20px);
    --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 50%);

    /* Gradients */
    --gradient-hero: linear-gradient(180deg, #f5f7fa 0%, #e8ecf1 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.02) 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cta: linear-gradient(135deg, #0071e3 0%, #00c7be 100%);

    /* Orbs/Decorative */
    --orb-1: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
    --orb-2: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);

    /* Cybercore beams (light theme — subtle blue) */
    --beam-color: rgba(0, 113, 227, 0.35);
    --beam-color-highlight: rgba(102, 126, 234, 0.45);
    --beam-glow: rgba(0, 113, 227, 0.15);
    --floor-glow-1: rgba(0, 113, 227, 0.08);
    --floor-glow-2: rgba(102, 126, 234, 0.06);
    --grid-color: rgba(0, 113, 227, 0.04);
    --column-glow: rgba(0, 113, 227, 0.06);
}

/* Dark Theme */
[data-theme="dark"] {
    --color-bg: #0d1117;
    --color-bg-alt: #161b22;
    --color-bg-subtle: #1c2128;

    --color-text: #f0f6fc;
    --color-text-secondary: #b1bac4;
    --color-text-muted: #7d8590;

    --color-primary: #58a6ff;
    --color-primary-hover: #79b8ff;
    --color-primary-light: rgba(88, 166, 255, 0.15);

    --color-accent: #8b949e;
    --color-success: #3fb950;
    --color-error: #f85149;

    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-subtle: rgba(255, 255, 255, 0.05);

    /* Glass Effects */
    --glass-bg: rgba(22, 27, 34, 0.75);
    --glass-bg-solid: rgba(22, 27, 34, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    --glass-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
    --glass-shine: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);

    /* Gradients */
    --gradient-hero: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    --gradient-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-cta: linear-gradient(135deg, #58a6ff 0%, #3fb950 100%);

    /* Orbs/Decorative */
    --orb-1: radial-gradient(circle, rgba(88, 166, 255, 0.2) 0%, transparent 70%);
    --orb-2: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

    /* Cybercore beams (dark theme — vibrant cyan/amber) */
    --beam-color: rgba(0, 229, 255, 0.6);
    --beam-color-highlight: rgba(255, 184, 108, 0.55);
    --beam-glow: rgba(0, 229, 255, 0.25);
    --floor-glow-1: rgba(0, 229, 255, 0.15);
    --floor-glow-2: rgba(0, 150, 255, 0.1);
    --grid-color: rgba(0, 229, 255, 0.06);
    --column-glow: rgba(0, 229, 255, 0.12);
}


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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}


/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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


/* ============================================
   GLASS CARD COMPONENT
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-shine);
    pointer-events: none;
    border-radius: inherit;
}

.glass-card:hover:not(.hero__card) {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
    border-color: rgba(0, 113, 227, 0.2);
}

.hero__card.glass-card:hover {
    box-shadow: var(--glass-shadow-lg);
    border-color: rgba(0, 113, 227, 0.2);
}

.glass-card--accent {
    background: var(--gradient-accent);
    color: #ffffff;
    border-color: transparent;
}

.glass-card--accent::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
}

.glass-card--accent:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-lg);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75em 1.5em;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border-radius: var(--radius-full);
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

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

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.45);
}

.btn--primary:active {
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.btn--secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn--secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn--large {
    padding: 1em 2em;
    font-size: var(--font-size-base);
    min-height: 48px;
}

@media (max-width: 480px) {
    .btn--large {
        padding: 1em 1.5em;
        width: 100%;
    }
}


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

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.section-label--accent {
    color: var(--color-primary);
}


/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-tooltip);
    padding: var(--space-sm) 0;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--color-border-subtle);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Disable backdrop-filter when mobile menu is open to fix stacking context */
.header.menu-open,
.header.scrolled.menu-open,
.header.scrolled:has(.mobile-open) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--color-bg) !important;
    transition: none !important;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
    .header__container {
        gap: 0.5rem;
    }
}

.header__logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .header__logo {
        font-size: var(--font-size-lg);
    }
}

.logo-dot {
    color: var(--color-primary);
}

.header__nav {
    display: none;
}

@media (min-width: 1024px) {
    .header__nav {
        display: block;
    }
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 4px;
}

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

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}

.nav__link.active::after {
    width: 100%;
}

.nav__link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .header__actions {
        gap: 0.5rem;
    }
}

.header__cta {
    display: none;
}

@media (min-width: 768px) {
    .header__cta {
        display: inline-flex;
    }
}

.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.lang-switch {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 32px;
    line-height: 1;
}

@media (max-width: 768px) {
    .lang-switcher {
        padding: 0.2rem;
        gap: 0.2rem;
    }

    .lang-switch {
        min-width: 38px;
        min-height: 34px;
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .lang-switch {
        min-width: 36px;
        min-height: 32px;
        padding: 0.45rem 0.65rem;
        font-size: 0.7rem;
    }
}

.lang-switch:hover {
    color: var(--color-text);
    background: var(--color-bg-subtle);
}

.lang-switch--active {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    cursor: default;
}

.lang-switch--active:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
}

@media (max-width: 480px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
}

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

@media (max-width: 480px) {
    .theme-icon {
        width: 18px;
        height: 18px;
    }
}

.theme-icon--moon {
    display: none;
}

[data-theme="dark"] .theme-icon--sun {
    display: none;
}

[data-theme="dark"] .theme-icon--moon {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
        gap: 4px;
    }
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

@media (max-width: 480px) {
    .mobile-menu-toggle span {
        width: 18px;
    }
}

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

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

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

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Navigation */
.header__nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    padding: var(--space-lg);
    z-index: 9999;
    overflow-y: auto;
}

[data-theme="dark"] .header__nav.mobile-open {
    background: #0d1117;
}

.header__nav.mobile-open .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
}

.header__nav.mobile-open .nav__link {
    display: block;
    padding: var(--space-md);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}

.header__nav.mobile-open .nav__link.active {
    background: var(--color-primary);
    color: #fff;
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-xl)) 0 var(--space-2xl);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero__orb--1 {
    width: clamp(300px, 50vw, 600px);
    height: clamp(300px, 50vw, 600px);
    top: -10%;
    right: -10%;
    background: var(--orb-1);
}

.hero__orb--2 {
    width: clamp(250px, 40vw, 500px);
    height: clamp(250px, 40vw, 500px);
    bottom: -5%;
    left: -10%;
    background: var(--orb-2);
}

.hero__container {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__container {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-2xl);
    }
}

.hero__content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero__content {
        text-align: left;
    }
}

.hero__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
}

@media (min-width: 1440px) {
    .hero__title {
        font-size: var(--font-size-5xl);
    }
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

@media (min-width: 1024px) {
    .hero__subtitle {
        margin-left: 0;
        margin-right: auto;
    }
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

@media (min-width: 1024px) {
    .hero__ctas {
        justify-content: flex-start;
    }
}

.hero__trust {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.hero__card {
    padding: var(--space-lg);
    display: flex !important;
    flex-direction: column;
    gap: var(--space-md);
    opacity: 1 !important;
    visibility: visible !important;
    position: relative;
    z-index: 2;
}

@media (max-width: 1023px) {
    .hero__card {
        max-width: 600px;
        margin: 0 auto;
    }
}

.hero__card-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    opacity: 1 !important;
    visibility: visible !important;
}

.hero__card-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}


/* ============================================
   PROBLEMS SECTION
   ============================================ */
.problems {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-alt);
}

.problems__grid {
    display: grid;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .problems__grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.problems__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.problems__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
}

.problems__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.problems__icon--x {
    color: var(--color-error);
}

.problems__solution {
    padding: var(--space-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problems__solution-text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.problems__solution-cta {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-md);
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--space-2xl) 0;
}

.services__grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

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

.service-card {
    padding: var(--space-lg);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.service-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.service-card__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.services__cta {
    text-align: center;
}

.services__cta p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}


/* ============================================
   WHY ME SECTION
   ============================================ */
.why-me {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-alt);
}

.why-me__grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

@media (min-width: 1024px) {
    .why-me__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-me__item {
    padding: var(--space-lg);
    text-align: center;
}

.why-me__icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    margin: 0 auto var(--space-sm);
}

.why-me__item p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.why-me__statement {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
}

.why-me__statement p {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
}


/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    padding: var(--space-2xl) 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.process__timeline {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

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

.process__step {
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.process__number {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.process__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
}

.process__icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.process__title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.process__desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.process__reassurance {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: var(--space-md);
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .process__reassurance {
        margin-top: var(--space-lg);
    }
}


/* ============================================
   WORK / PORTFOLIO SECTION
   ============================================ */
.work {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-alt);
}

.work__grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

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

.work-card {
    overflow: hidden;
}

.work-card__image {
    aspect-ratio: 16 / 10;
    background: var(--color-bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card__placeholder {
    width: 64px;
    height: 64px;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.work-card__content {
    padding: var(--space-md);
}

.work-card__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.work-card__highlights {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.work-card__outcome {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.work__cta {
    text-align: center;
}

.work__cta p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: var(--space-2xl) 0;
}

.testimonials__grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

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

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

.testimonial-card {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.testimonial-card__quote {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: var(--space-md);
}

.testimonial-card__text {
    flex: 1;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-full);
}

.testimonials__note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}


/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-alt);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq__item {
    padding: 0;
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    transition: transform var(--transition-base);
}

.faq__item[open] .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq__answer p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-2xl) 0;
}

.contact__hero {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-snug);
}

@media (min-width: 768px) {
    .contact__title {
        font-size: var(--font-size-3xl);
    }
}

.contact__subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

.contact__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.contact__ctas .btn--primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact__ctas .btn--secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.contact__form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.contact__form-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.form-label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    cursor: pointer;
}

.form-input {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    min-height: 48px;
}

.form-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.form-input:hover {
    border-color: var(--color-border);
    background: var(--color-bg-alt);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
    background: var(--color-bg-alt);
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: var(--color-error);
}

.form-input:invalid:focus:not(:placeholder-shown) {
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.form-input:valid:not(:placeholder-shown) {
    border-color: var(--color-success);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    margin-top: var(--space-sm);
    cursor: pointer;
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-submit {
    margin-top: var(--space-sm);
}

.contact__privacy {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

.contact__email {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.contact__email a {
    color: var(--color-primary);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
}

.footer__content {
    text-align: center;
}

.footer__copyright {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.footer__tagline {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}


/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.45);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: var(--space-md);
        width: 48px;
        height: 48px;
    }
}


/* ============================================
   ANIMATION CLASSES (FOR GSAP)
   ============================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in {
    opacity: 0;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.95);
}

.animate-stagger {
    opacity: 0;
    transform: translateY(20px);
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 480px) {
    .hero__ctas {
        flex-direction: column;
    }

    .hero__ctas .btn {
        width: 100%;
    }

    .contact__ctas {
        flex-direction: column;
    }

    .contact__ctas .btn {
        width: 100%;
    }
}

@media (min-width: 1440px) {
    :root {
        --container-max: 1400px;
    }
}

@media (min-width: 2000px) {
    :root {
        --container-max: 1600px;
    }
}


/* ============================================
   ACCESSIBILITY FOCUS STYLES
   ============================================ */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
details:focus-visible summary {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}


/* ============================================
   STICKY MOBILE CTA BAR
   ============================================ */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg-solid);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: var(--z-sticky);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.mobile-cta-bar.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }
}

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


/* ============================================
   ADDITIONAL UX ENHANCEMENTS
   ============================================ */

/* Smooth touch targets for mobile */
@media (max-width: 768px) {
    a, button, .nav__link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Better link styles throughout */
a:not(.btn):not(.nav__link):not(.lang-switch) {
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

a:not(.btn):not(.nav__link):not(.lang-switch):hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Improve FAQ accordion */
.faq__item {
    cursor: pointer;
}

.faq__item[open] {
    background: var(--color-primary-light);
}

.faq__item summary {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

/* Service and work card enhancements */
.service-card,
.work-card,
.testimonial-card {
    cursor: default;
}

.service-card:hover,
.work-card:hover,
.testimonial-card:hover {
    border-color: var(--color-primary);
}

/* Better selection colors */
::selection {
    background: var(--color-primary-light);
    color: var(--color-text);
}

::-moz-selection {
    background: var(--color-primary-light);
    color: var(--color-text);
}

/* Loading state for forms */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-submit.loading {
    position: relative;
    color: transparent;
}

.form-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .back-to-top,
    .theme-toggle,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .glass-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* ============================================
   BENTO GALLERY SHOWCASE
   ============================================ */
.bento-showcase {
    position: relative;
    background: var(--color-bg);
}

.bento-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bento-gallery {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    gap: 0.5vh;
    grid-template-columns: repeat(3, 32vw);
    grid-template-rows: repeat(4, 23vh);
    justify-content: center;
    align-content: center;
}

.bento-gallery--final {
    grid-template-columns: repeat(3, 100vw);
    grid-template-rows: repeat(4, 49.5vh);
    gap: 0.5vh;
}

.bento-gallery__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bento-gallery--final .bento-gallery__item {
    border-radius: 0;
}

/* Bento Grid Positioning */
.bento-gallery__item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
}

.bento-gallery__item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
}

.bento-gallery__item:nth-child(3) {
    grid-area: 2 / 2 / 4 / 3;
}

.bento-gallery__item:nth-child(4) {
    grid-area: 1 / 3 / 3 / 4;
}

.bento-gallery__item:nth-child(5) {
    grid-area: 3 / 1 / 4 / 2;
}

.bento-gallery__item:nth-child(6) {
    grid-area: 3 / 3 / 5 / 4;
}

.bento-gallery__item:nth-child(7) {
    grid-area: 4 / 1 / 5 / 2;
}

.bento-gallery__item:nth-child(8) {
    grid-area: 4 / 2 / 5 / 3;
}

/* Placeholder Images with Premium Gradients */
.bento-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.bento-image--1 {
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.03) 20px
        );
}

.bento-image--2 {
    background:
        linear-gradient(160deg, #0093E9 0%, #80D0C7 100%);
}

.bento-image--3 {
    background:
        linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.bento-image--4 {
    background:
        linear-gradient(135deg, rgba(250, 112, 154, 0.9) 0%, rgba(254, 225, 64, 0.9) 100%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.05) 8px,
            rgba(255, 255, 255, 0.05) 16px
        );
}

.bento-image--5 {
    background:
        linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bento-image--6 {
    background:
        linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bento-image--7 {
    background:
        linear-gradient(135deg, rgba(67, 233, 123, 0.9) 0%, rgba(56, 249, 215, 0.9) 100%),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 12px,
            rgba(255, 255, 255, 0.04) 12px,
            rgba(255, 255, 255, 0.04) 24px
        );
}

.bento-image--8 {
    background:
        linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Bento Text Overlay */
.bento-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-lg);
    color: #ffffff;
}

.bento-text__label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    opacity: 0.85;
    margin-bottom: var(--space-xs);
}

.bento-text__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .bento-showcase {
        display: none;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] .bento-image--1 {
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.02) 10px,
            rgba(255, 255, 255, 0.02) 20px
        );
}

[data-theme="dark"] .bento-image--2 {
    background: linear-gradient(160deg, #1e40af 0%, #0891b2 100%);
}

[data-theme="dark"] .bento-image--3 {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #c026d3 100%);
}

[data-theme="dark"] .bento-image--4 {
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.9) 0%, rgba(234, 179, 8, 0.9) 100%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.03) 8px,
            rgba(255, 255, 255, 0.03) 16px
        );
}

[data-theme="dark"] .bento-image--5 {
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

[data-theme="dark"] .bento-image--6 {
    background: linear-gradient(135deg, #db2777 0%, #ca8a04 100%);
}

[data-theme="dark"] .bento-image--7 {
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(20, 184, 166, 0.9) 100%),
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 12px,
            rgba(255, 255, 255, 0.02) 12px,
            rgba(255, 255, 255, 0.02) 24px
        );
}

[data-theme="dark"] .bento-image--8 {
    background: linear-gradient(135deg, #0d9488 0%, #be185d 100%);
}

/* Responsive Bento */
@media (max-width: 768px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 45vw);
        grid-template-rows: repeat(4, 22vh);
    }

    .bento-gallery--final {
        grid-template-columns: repeat(2, 100vw);
        grid-template-rows: repeat(4, 49vh);
    }

    .bento-gallery__item:nth-child(1) {
        grid-area: 1 / 1 / 2 / 2;
    }

    .bento-gallery__item:nth-child(2) {
        grid-area: 1 / 2 / 2 / 3;
    }

    .bento-gallery__item:nth-child(3) {
        grid-area: 2 / 1 / 3 / 2;
    }

    .bento-gallery__item:nth-child(4) {
        grid-area: 2 / 2 / 3 / 3;
    }

    .bento-gallery__item:nth-child(5) {
        grid-area: 3 / 1 / 4 / 2;
    }

    .bento-gallery__item:nth-child(6) {
        grid-area: 3 / 2 / 4 / 3;
    }

    .bento-gallery__item:nth-child(7) {
        grid-area: 4 / 1 / 5 / 2;
    }

    .bento-gallery__item:nth-child(8) {
        grid-area: 4 / 2 / 5 / 3;
    }
}

@media (max-width: 480px) {
    .bento-gallery {
        grid-template-columns: repeat(2, 47vw);
        grid-template-rows: repeat(4, 20vh);
        gap: 0.25vh;
    }

    .bento-gallery--final {
        grid-template-columns: repeat(2, 100vw);
        grid-template-rows: repeat(4, 49vh);
        gap: 0.25vh;
    }
}


/* ============================================
   LAYERED SECTIONS - STACKING SCROLL EFFECT
   ============================================ */
.layered-sections {
    position: relative;
}

.layered-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: transform;
}

/* Ensure each panel has a solid background for stacking effect */
.layered-panel.problems {
    background: var(--color-bg-alt);
}

.layered-panel.services {
    background: var(--color-bg);
}

.layered-panel.why-me {
    background: var(--color-bg-alt);
}

.layered-panel.process {
    background: var(--color-bg);
}

.layered-panel.work {
    background: var(--color-bg-alt);
}

.layered-panel.testimonials {
    background: var(--color-bg);
}

/* Panel shadow for depth when stacking */
.layered-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        transparent 100%
    );
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .layered-panel::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        transparent 100%
    );
}

.layered-panel.is-pinned::before {
    opacity: 1;
}

/* Section number indicator */
.layered-panel__number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-border);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Responsive adjustments for layered panels */
@media (max-width: 768px) {
    .layered-panel {
        min-height: auto;
        padding: var(--space-2xl) 0;
    }

    .layered-panel__number {
        font-size: var(--font-size-3xl);
        top: var(--space-md);
        right: var(--space-md);
    }
}

/* Disable layered effect on very small screens for better UX */
@media (max-width: 480px) {
    .layered-panel::before {
        display: none;
    }
}


/* ============================================
   CYBERCORE HERO BACKGROUND
   ============================================ */

/* Scene — sits inside .hero__bg, behind content */
.cybercore-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Perspective grid floor */
.cybercore-floor {
    position: absolute;
    bottom: 0;
    left: -25%;
    width: 150%;
    height: 55%;
    background:
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        linear-gradient(0deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 40px;
    transform: perspective(500px) rotateX(55deg);
    transform-origin: center bottom;
    animation: cyberMoveGrid 12s linear infinite;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 85%);
}

/* Floor glow pulse */
.cybercore-floor::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 40%;
    background: radial-gradient(ellipse at center bottom, var(--floor-glow-1), var(--floor-glow-2), transparent 70%);
    animation: cyberFloorGlow 6s ease-in-out infinite;
}

/* Central vertical glow column */
.cybercore-column {
    position: absolute;
    left: 50%;
    top: 10%;
    width: 200px;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, var(--column-glow), transparent 70%);
    filter: blur(40px);
    animation: cyberMainGlow 4s ease-in-out infinite alternate;
}

/* Beam container */
.cybercore-beams {
    position: absolute;
    inset: 0;
}

/* Individual light beam */
.cybercore-beam {
    position: absolute;
    bottom: 0;
    height: 100%;
    border-radius: 2px;
    animation-name: cyberRise, cyberFade;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite;
    will-change: transform, opacity;
    opacity: 0;
}

.cybercore-beam.primary {
    background: linear-gradient(to top, var(--beam-color), transparent);
    box-shadow: 0 0 6px var(--beam-glow);
}

.cybercore-beam.secondary {
    background: linear-gradient(to top, var(--beam-color-highlight), transparent);
    box-shadow: 0 0 8px var(--beam-color-highlight);
}

/* Animations */
@keyframes cyberRise {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(-5%);
        opacity: 0;
    }
}

@keyframes cyberFade {
    0%, 100% {
        opacity: 0;
    }
    5%, 85% {
        opacity: 0.8;
    }
}

@keyframes cyberFloorGlow {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes cyberMainGlow {
    from {
        opacity: 0.5;
        filter: blur(40px);
    }
    to {
        opacity: 0.7;
        filter: blur(25px);
    }
}

@keyframes cyberMoveGrid {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -60px -40px;
    }
}

/* Reduce beams on mobile for performance */
@media (max-width: 768px) {
    .cybercore-floor {
        height: 40%;
        background-size: 40px 30px;
    }
    .cybercore-column {
        width: 120px;
        filter: blur(30px);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cybercore-beam,
    .cybercore-floor,
    .cybercore-floor::after,
    .cybercore-column {
        animation: none !important;
    }
    .cybercore-beam {
        opacity: 0.3;
    }
}
