/* ===================================
   CSS Variables & Reset
   =================================== */

@font-face {
    font-family: 'Zing Script Rust';
    src: url('../assets/zing.script-rust-semibold-demo-base.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brand Colors - Apple-inspired: Black, White, Grey, Blue */
    --primary-color: #0071e3;
    --secondary-color: #86868b;
    --accent-color: #0071e3;
    --accent-blue: #2997ff;
    --accent-cyan: #00C6FF;
    --accent-teal: #00D8A0;
    --dark-bg: #1a1a1a;
    --dark-bg-2: #1d1d1f;
    --dark-bg-3: #2d2d2d;
    --dark-bg-4: #3a3a3c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Gradients - Clean Apple-style */
    --gradient-primary: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    --gradient-cyan: linear-gradient(135deg, #00C6FF 0%, #00D8A0 100%);
    --gradient-legal: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    --gradient-tech: linear-gradient(135deg, #00C6FF 0%, #00D8A0 100%);
    --gradient-hero: linear-gradient(180deg, rgba(26, 26, 26, 1) 0%, rgba(29, 29, 31, 0.9) 50%, rgba(26, 26, 26, 1) 100%);
    --gradient-dark: linear-gradient(180deg, #1a1a1a 0%, #1d1d1f 100%);
    --gradient-card: linear-gradient(135deg, rgba(29, 29, 31, 0.95) 0%, rgba(45, 45, 45, 0.9) 100%);
    --gradient-violet: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    --gradient-blue: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    --card-padding: 30px;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Zing Script Rust', 'Inter', sans-serif;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --line-height: 1.6;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows - Clean Apple-style */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(0, 113, 227, 0.3);
    --shadow-glow-violet: 0 0 20px rgba(41, 151, 255, 0.3);
    --shadow-glow-cyan: 0 0 20px rgba(0, 198, 255, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Light Mode Theme */
[data-theme="light"] {
    --dark-bg: #ffffff;
    --dark-bg-2: #f5f5f7;
    --dark-bg-3: #e8e8ed;
    --dark-bg-4: #d2d2d7;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-muted: #86868b;
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* Light mode gradients */
    --gradient-hero: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 247, 0.9) 50%, rgba(255, 255, 255, 1) 100%);
    --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
    --gradient-card: linear-gradient(135deg, rgba(245, 245, 247, 0.95) 0%, rgba(232, 232, 237, 0.9) 100%);
    
    /* Light mode shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 113, 227, 0.15);
    --shadow-glow-violet: 0 0 20px rgba(41, 151, 255, 0.15);
}

/* Light mode element overrides */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-lang,
[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-lang:hover,
[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .data-grid-overlay {
    background-image: 
        linear-gradient(rgba(0, 113, 227, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .service-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .about-content,
[data-theme="light"] .stat-card,
[data-theme="light"] .faq-item {
    background: var(--gradient-card);
    border-color: var(--border-color);
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    border-color: var(--primary-color);
}

[data-theme="light"] .logo-icon {
    background: var(--gradient-primary);
    color: #ffffff;
}

[data-theme="light"] .scan-line {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 113, 227, 0.2), 
        transparent
    );
}

[data-theme="light"] section::before {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 0, 0, 0.1), 
        transparent
    );
}

[data-theme="light"] .hamburger,
[data-theme="light"] .hamburger::before,
[data-theme="light"] .hamburger::after {
    background: var(--text-primary);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .newsletter-form input {
    background: var(--dark-bg-2);
}

[data-theme="light"] .founder-tags .tag {
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(3.5rem, 7vw, 4.25rem); 
    font-weight: 800;
    letter-spacing: -0.03em;
}
h2 { 
    font-size: clamp(2.25rem, 4.5vw, 3.5rem); 
    font-weight: 700;
}
h3 { 
    font-size: clamp(1.5rem, 3vw, 2.25rem); 
    font-weight: 600;
}
h4 { 
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   Utility Classes
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.gradient-text {
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding-bottom: 0.2em;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 20px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background: var(--gradient-primary);
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: var(--font-size-lg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 113, 227, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 20px;
    direction: ltr; /* Keep navbar layout consistent in RTL languages */
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 100px;
}

.logo-image {
    height: 36px;
    width: auto;
    display: block;
}

.logo-image-dark {
    display: block;
}

.logo-image-light {
    display: none;
}

[data-theme="light"] .logo-image-dark {
    display: none;
}

[data-theme="light"] .logo-image-light {
    display: block;
}

/* Dual Box Images Theme Switching */
.dual-box-image-dark {
    display: block;
}

.dual-box-image-light {
    display: none;
}

[data-theme="light"] .dual-box-image-dark {
    display: none;
}

[data-theme="light"] .dual-box-image-light {
    display: block;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: var(--transition);
}

.nav-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 1rem;
    background: var(--dark-bg-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 280px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--dark-bg-3);
    color: var(--text-primary);
}

.dropdown-nested > .dropdown-link {
    padding-right: 3rem;
}

.dropdown-link i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.dropdown-link:nth-child(1) i {
    color: var(--accent-cyan);
}

.dropdown-link:nth-child(3) i {
    color: var(--accent-teal);
}

.dropdown-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-text strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.dropdown-text span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Nested Dropdown Styles */
.dropdown-nested {
    position: relative;
}

.dropdown-nested > .dropdown-link {
    position: relative;
}

.dropdown-nested > .dropdown-link::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    position: absolute;
    right: 1.25rem;
    opacity: 0.7;
    transition: var(--transition);
}

.dropdown-nested:hover > .dropdown-link::after {
    opacity: 1;
    transform: translateX(2px);
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
    background: var(--dark-bg-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 220px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
}

.dropdown-nested:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu .dropdown-link {
    padding: 0.75rem 1.25rem;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.dropdown-submenu .dropdown-link:hover {
    background: var(--dark-bg-3);
    color: var(--primary-color);
}

/* RTL adjustments for Hebrew dropdown menus */
html[lang="he"] .dropdown-submenu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.5rem;
    transform: translateX(10px);
    direction: rtl;
}

html[lang="he"] .dropdown-nested:hover .dropdown-submenu {
    transform: translateX(0);
}

html[lang="he"] .dropdown-nested > .dropdown-link::after {
    right: auto;
    left: 1.25rem;
    content: '\f053';
}

html[lang="he"] .dropdown-nested:hover > .dropdown-link::after {
    transform: translateX(-2px);
}

html[lang="he"] .dropdown-submenu .dropdown-link {
    direction: rtl;
    text-align: right;
}

html[lang="he"] .dropdown-nested > .dropdown-link {
    padding-left: 3rem;
    padding-right: 1.25rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav Actions Container - Always on the right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Tooltip Styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 6px 10px;
    background: var(--dark-bg-2);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Language Buttons */
.lang-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: var(--transition);
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

.btn-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-lang svg {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: block;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lang .flag-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* Language Toggle & Dropdown */
.lang-toggle {
    display: none; /* Show only on mobile */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
    font-size: 1.1rem;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.lang-dropdown {
    position: fixed;
    top: 60px;
    right: 60px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1100;
    min-width: 150px;
}

[data-theme="light"] .lang-dropdown {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.lang-dropdown.active {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.lang-option:hover {
    background: rgba(0, 113, 227, 0.1);
}

.lang-option svg {
    flex-shrink: 0;
}

/* Menu Toggle (Hamburger to X) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.hamburger {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-toggle.active .hamburger:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg);
    z-index: 999;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .mobile-menu-overlay {
    background: #ffffff;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Menu Levels */
.mobile-menu-level {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 6rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-level.active {
    transform: translateX(0);
}

.mobile-menu-level.sliding-out-left {
    transform: translateX(-100%);
}

.mobile-menu-level.sliding-in-left {
    transform: translateX(0);
}

/* Menu Header (Back button) */
.mobile-menu-header {
    margin-bottom: 2rem;
}

.mobile-menu-back {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.mobile-menu-back:hover {
    opacity: 0.8;
}

.mobile-menu-back i {
    font-size: 1rem;
}

.mobile-menu-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1rem;
}

/* Menu List */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list li:last-child {
    border-bottom: none;
}

/* Menu Links */
.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-link:hover {
    color: var(--primary-color);
}

.mobile-menu-link.has-submenu i {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* RTL adjustments for Hebrew mobile menu */
html[lang="he"] .mobile-menu-link.has-submenu i.fa-chevron-right::before {
    content: '\f053'; /* Change right chevron to left chevron */
}

html[lang="he"] .mobile-menu-back i.fa-chevron-left::before {
    content: '\f054'; /* Change left chevron to right chevron */
}

/* Menu Items with Icon and Description */
.mobile-menu-item-with-icon {
    gap: 1rem;
}

.menu-item-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.menu-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.menu-item-content strong {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.menu-item-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

/* CTA Button at Bottom */
.mobile-menu-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* background-image: url('../assets/background.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 113, 227, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
}

#heroCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.title-line {
    display: block;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.title-line:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ===================================
   Services Section
   =================================== */

.services {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

/* Unified Approach Content */
.approach-content {
    max-width: 1200px;
    margin: 0 auto;
}

.approach-main {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 3rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
}

.approach-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.approach-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-glow);
}

.approach-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.approach-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.approach-text:last-child {
    margin-bottom: 0;
}

/* Process Steps */
.approach-process {
    margin-bottom: 4rem;
}

.process-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

.step-content h5 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.capability-item {
    text-align: center;
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.capability-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-violet);
    border-color: var(--secondary-color);
}

.capability-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-violet);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.capability-item h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.capability-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

/* Keep original service grid styling for backwards compatibility */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 10px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 113, 227, 0.3);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.9) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.service-link:hover {
    gap: 1rem;
}

/* ===================================
   About Section
   =================================== */

.about {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.value-item h4 {
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-muted);
    margin: 0;
}

.about-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.visual-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow-violet);
}

.visual-content h3 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.visual-content p {
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   Founders Section
   =================================== */

.founders {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.founders-hero {
    padding-top: 60px;
}

.founders-sidebyside {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.founder-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.4),
        0 10px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.founder-legal {
    border-top: 3px solid var(--primary-color);
}

.founder-tech {
    border-top: 3px solid var(--primary-color);
}

.founder-card:hover {
    transform: translateY(-5px);
}

.founder-legal:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 113, 227, 0.3);
}

.founder-tech:hover {
    border-color: var(--primary-color);
    box-shadow: 
        0 20px 40px -10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 113, 227, 0.3);
}

.founder-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.founder-tech .founder-badge {
    background: var(--gradient-primary);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.founder-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: var(--gradient-primary);
    padding: 3px;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.founder-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.founder-info {
    text-align: center;
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.founder-role {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.founder-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.founder-tags .tag {
    background: rgba(0, 113, 227, 0.1);
    border: 1px solid rgba(0, 113, 227, 0.3);
    color: var(--primary-color);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.founder-tech .founder-tags .tag {
    background: rgba(0, 113, 227, 0.1);
    border: 1px solid rgba(0, 113, 227, 0.3);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .founders-grid,
    .founders-sidebyside {
        grid-template-columns: 1fr;
    }
    
    .founder-card {
        padding: 2rem;
    }
    
    .founder-image {
        width: 150px;
        height: 150px;
    }
}

/* ===================================
   Stats Section
   ===================================*/

.stats {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-muted);
    margin: 0;
}

/* ===================================
   Testimonials Section
   =================================== */

.testimonials {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--primary-color);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===================================
   Contact Form
   =================================== */

.contact-form-wrapper {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 16px;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
}

.newsletter-form input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.newsletter-form button {
    padding: 10px 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* RTL positioning for scroll-top button */
[dir="rtl"] .scroll-top {
    right: auto;
    left: 30px;
}

/* ===================================
   Responsive Design
   =================================== */

/* Desktop menu styles - shown by default */
.mobile-menu-overlay {
    display: none;
}

/* Hide mobile-only elements on desktop */
.lang-toggle,
.menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    /* Hide desktop menu, show mobile elements */
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .lang-toggle,
    .menu-toggle {
        display: flex;
    }
    
    /* Hide desktop-only elements */
    .lang-buttons {
        display: none;
    }
    
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    /* Adjust navbar for mobile */
    .navbar {
        height: 60px;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --card-padding: 20px;
    }
    
    /* Mobile navbar optimizations */
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .logo-image {
        height: 44px;
    }
    
    .theme-toggle,
    .lang-toggle,
    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .theme-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    .lang-toggle {
        font-size: 1.3rem;
    }
    
    .hamburger {
        width: 100%;
        height: 3px;
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-main {
        padding: 2rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Mobile portrait navbar optimizations */
    .nav-container {
        padding: 0.5rem 8px;
    }
    
    .logo {
        min-width: 50px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .theme-toggle,
    .lang-toggle,
    .menu-toggle,
    .btn-lang {
        width: 30px;
        height: 30px;
        padding: 2px;
    }
    
    .theme-toggle svg {
        width: 30px;
        height: 30px;
    }
    
    .lang-toggle {
        font-size: 1.1rem;
    }
    
    .btn-lang {
        font-size: 0.7rem;
    }
    
    .btn-lang .flag-icon {
        font-size: 1.1rem;
    }
    
    .nav-actions {
        gap: 0.375rem;
    }
    
    .lang-buttons {
        gap: 0.375rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-visual {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Palantir-Inspired Enhancements
   =================================== */

/* Data Grid Overlay Effect */
/* .data-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 113, 227, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 113, 227, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
} */

/* Glowing Border Animation */
@keyframes glowing-border {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 113, 227, 0.25);
    }
    50% {
        box-shadow: 0 0 25px rgba(41, 151, 255, 0.35);
    }
}

.glow-border {
    animation: glowing-border 3s ease-in-out infinite;
}

/* Pulse Animation for CTAs */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 113, 227, 0.25);
    }
    50% {
        box-shadow: 0 0 25px rgba(41, 151, 255, 0.4);
    }
}

/* Scan Line Effect */
@keyframes scan-line {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 113, 227, 0.4), 
        transparent
    );
    animation: scan-line 4s linear infinite;
    pointer-events: none;
}

/* Bold Typography for Headers */
h1, h2 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.hero-title {
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Enhanced Service Icon Variations */
.service-card:nth-child(1) .service-icon {
    background: var(--gradient-cyan);
}

.service-card:nth-child(2) .service-icon {
    background: var(--gradient-primary);
}

.service-card:nth-child(3) .service-icon {
    background: var(--gradient-tech);
}

.service-card:nth-child(4) .service-icon {
    background: var(--gradient-violet);
}

/* Stat Number Electric Effect */
.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.stat-item {
    position: relative;
}

/* Enhanced Navigation */
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
    background: var(--gradient-primary);
}

/* Card Backdrop Blur */
.service-card,
.testimonial-card,
.visual-card {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* Stronger Section Dividers */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 113, 227, 0.2),
        transparent
    );
}

/* ===================================
   Solution Pages Styling
   =================================== */

.solution-hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--gradient-hero);
    text-align: center;
}

.solution-hero::before {
    display: none;
}

.solution-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.solution-hero-image {
    flex: 0 0 400px;
    max-width: 400px;
}

.solution-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.solution-hero-text {
    flex: 1;
    text-align: left;
}

.solution-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cyan);
    border-radius: var(--radius-xl);
    font-size: 4rem;
    color: white;
    box-shadow: var(--shadow-glow-cyan);
}

.solution-hero h1 {
    margin-bottom: 1.5rem;
}

.solution-features {
    padding: var(--section-padding);
    background: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.solution-approach {
    padding: var(--section-padding);
    background: var(--dark-bg-2);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.approach-step {
    position: relative;
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.approach-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 1rem;
}

.approach-step h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.approach-step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.solution-cta {
    padding: 80px 0;
    background: var(--gradient-hero);
    text-align: center;
}

.solution-cta h2 {
    margin-bottom: 1rem;
}

.solution-cta p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Page Specific Styles */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.breadcrumb:hover {
    color: var(--secondary-color);
    gap: 0.75rem;
}

.breadcrumb i {
    font-size: 0.75rem;
}

.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 59, 92, 0.5);
    box-shadow: 0 10px 30px rgba(255, 59, 92, 0.1);
}

.problem-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 59, 92, 0.1), rgba(255, 107, 129, 0.1));
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ff3b5c;
}

.problem-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.problem-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.approach-steps {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.approach-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-number {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-glow-cyan);
}

.step-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.benefit-item h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Development Timeline Styles */
.development-timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    width: 2px;
    height: calc(100% + 1rem);
    background: var(--border-color);
}

.timeline-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.timeline-item.completed .timeline-icon {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.timeline-item.active .timeline-icon {
    background: var(--gradient-cyan);
    color: white;
    box-shadow: var(--shadow-glow-cyan);
}

.timeline-item.future .timeline-icon {
    background: var(--dark-bg-2);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.timeline-content {
    flex: 1;
    padding-top: 0.5rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-xl);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.timeline-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.timeline-item.completed .timeline-status {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.timeline-item.active .timeline-status {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.timeline-item.future .timeline-status {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .solution-hero {
        padding: 120px 0 60px;
    }
    
    .solution-hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .solution-hero-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .solution-hero-text {
        text-align: center;
    }
    
    .solution-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .features-grid,
    .approach-steps {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Dual Boxes Hero Section
   =================================== */

.dual-boxes-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: var(--dark-bg);
}
/* 
[data-theme="light"] .dual-boxes-hero {
    background-image: url('../assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
} */

.dual-boxes-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.3;
}

.dual-boxes-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dual-box {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    transition: var(--transition);
    overflow: hidden;
}

.dual-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.dual-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.dual-box:hover::before {
    opacity: 0.1;
}

.dual-box-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

.dual-box-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dual-box-content {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.dual-box-content p {
    margin-bottom: 1.5rem;
}

.dual-box-content p:last-child {
    margin-bottom: 0;
}

.dual-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.dual-box.services-box .dual-box-icon {
    background: var(--gradient-primary);
}

.dual-box.services-box .dual-box-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dual-box.services-box::before {
    background: var(--gradient-primary);
}

/* Responsive Design for Dual Boxes */
@media (max-width: 968px) {
    .dual-boxes-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dual-boxes-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .dual-box {
        padding: 2.5rem;
    }
}

@media (max-width: 640px) {
    .dual-box {
        padding: 2rem;
    }
    
    .dual-box-header {
        margin-bottom: 1.5rem;
    }
    
    .dual-box-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* ===================================
   Splash Screen
   =================================== */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeSplashOut 0.5s ease-in-out 1.5s forwards;
}

[data-theme="light"] .splash-screen {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.splash-logo {
    height: 120px;
    width: auto;
    animation: splashLogoScale 1.5s ease-in-out infinite;
}

.splash-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 113, 227, 0.2);
    border-top-color: #0071e3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes splashLogoScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeSplashOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* ===================================
   Enhanced Dual Boxes
   =================================== */

.dual-boxes-tagline {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 3rem;
    animation: slideUp 0.8s ease-out;
}

.tagline-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.tagline-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    text-align: center;
}

.clickable-box {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickable-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.dual-box-icon-image {
    width: 100%;
    height: 280px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dual-box-icon-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.clickable-box:hover .dual-box-icon-image img {
    transform: scale(1.05);
}

/* Logo Hero Section */
.logo-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    padding: 120px 20px 60px;
}

.logo-hero-section .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 1;
    min-height: 60vh;
}

#neuralCanvas {
    width: 100%;
    height: 100%;
    display: none; /* Disabled - no 3D animation */
}

.logo-container {
    position: relative;
    z-index: 1;
    animation: logoFadeIn 1.5s ease-out;
}

.hero-logo {
    max-width: 800px;
    width: 80%;
    height: auto;
    margin: 0 auto;
}

/* Override for theme-based logo switching */
.hero-logo.logo-image-dark {
    display: block;
}

.hero-logo.logo-image-light {
    display: none;
}

[data-theme="light"] .hero-logo.logo-image-dark {
    display: none;
}

[data-theme="light"] .hero-logo.logo-image-light {
    display: block;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tagline Hero Section */
.tagline-hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: var(--dark-bg);
}

.tagline-content {
    text-align: center;
    animation: slideUp 0.8s ease-out 0.3s both;
}

.tagline-text {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

/* Breathing Animation for Coming Soon Badge */
.coming-soon-badge {
    animation: breathing 2.5s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { 
        opacity: 0.85; 
        transform: translateX(-50%) scale(1);
        background: linear-gradient(135deg, #6e6e73 0%, #86868b 100%);
        box-shadow: 0 0 15px rgba(110, 110, 115, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: translateX(-50%) scale(1.05);
        background: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
        box-shadow: 0 0 25px rgba(0, 113, 227, 0.5);
    }
}

/* Scroll Reveal Animation */
.dual-box.scroll-reveal {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dual-box.scroll-reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.dual-box.scroll-reveal:nth-child(3) {
    transition-delay: 0.15s;
}

/* Dual Boxes Hero Adjustments */
.dual-boxes-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 80px 0;
    background: var(--dark-bg);
}

.dual-box-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 360px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL adjustments for Hebrew tagline */
[data-theme="light"] .dual-boxes-tagline .tagline-text {
    direction: ltr;
    text-align: center;
}

/* Mobile adjustments for tagline */
@media (max-width: 968px) {
    .logo-hero-section {
        min-height: 40vh;
        padding: 130px 20px 40px;
    }
    
    .hero-logo {
        max-width: 280px;
    }
    
    .tagline-hero-section {
        min-height: 25vh;
        padding: 40px 20px;
    }
    
    .tagline-text {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* ===================================
   Cookie Banner
   =================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg-2);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text p strong {
    color: var(--text-primary);
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* .btn-text as a button type (standalone) */
.btn.btn-text {
    background: transparent;
    color: var(--primary-color);
    border: none;
    transition: transform 0.3s ease;
}

.btn.btn-text:hover {
    transform: scale(1.10);
}

/* .btn-text as inner span (inherits parent color) */
.btn .btn-text {
    color: inherit;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .logo-hero-section {
        min-height: 35vh;
        padding: 120px 20px 30px;
    }
    
    .hero-logo {
        max-width: 220px;
    }
    
    .tagline-hero-section {
        min-height: 20vh;
        padding: 30px 20px;
    }
    
    .dual-box-icon-image {
        height: 200px;
    }
    
    .dual-box-header {
        min-height: 300px;
    }
}

/* ===================================
   Accessibility Utilities
   =================================== */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   Accessibility Widget
   =================================== */

/* Accessibility Toggle Button */
.accessibility-toggle {
    position: fixed;
    bottom: 90px; /* Moved higher to clear footer links */
    left: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.accessibility-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.accessibility-toggle:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* RTL positioning for accessibility toggle */
[dir="rtl"] .accessibility-toggle {
    left: auto;
    right: 30px;
}

@media (max-width: 480px) {
    .accessibility-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 80px; /* Higher to clear footer */
        left: 20px;
    }

    [dir="rtl"] .accessibility-toggle {
        left: auto;
        right: 20px;
    }

    /* RTL positioning for scroll-top button on mobile */
    [dir="rtl"] .scroll-top {
        right: auto;
        left: 20px;
    }
}

/* Accessibility Overlay */
.a11y-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.a11y-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: var(--dark-bg-2);
    border-right: 1px solid var(--border-color);
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.accessibility-panel.active {
    transform: translateX(0);
}

/* RTL panel positioning */
[dir="rtl"] .accessibility-panel {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border-color);
    transform: translateX(100%);
}

[dir="rtl"] .accessibility-panel.active {
    transform: translateX(0);
}

.accessibility-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.accessibility-panel-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.accessibility-panel-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.accessibility-panel-close:hover {
    background: var(--dark-bg-3);
}

.accessibility-panel-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.a11y-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.a11y-section:last-child {
    border-bottom: none;
}

.a11y-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.a11y-control {
    margin-bottom: 16px;
}

.a11y-control:last-child {
    margin-bottom: 0;
}

.a11y-control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.a11y-control-value {
    font-weight: 600;
    color: var(--primary-color);
}

.a11y-button-group {
    display: flex;
    gap: 8px;
}

.a11y-btn {
    flex: 1;
    padding: 10px 12px;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.a11y-btn:hover {
    background: var(--dark-bg-4);
    border-color: var(--primary-color);
}

.a11y-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.a11y-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.a11y-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.a11y-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.a11y-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-bg-4);
    transition: 0.3s;
    border-radius: 28px;
    border: 1px solid var(--border-color);
}

.a11y-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
    border-radius: 50%;
}

.a11y-toggle input:checked + .a11y-toggle-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.a11y-toggle input:checked + .a11y-toggle-slider:before {
    transform: translateX(22px);
}

.a11y-toggle:focus-within .a11y-toggle-slider {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.a11y-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.a11y-select:hover {
    border-color: var(--primary-color);
    background: var(--dark-bg-4);
}

.a11y-select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.a11y-shortcuts {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
    .accessibility-panel,
    .a11y-overlay {
        transition: none;
    }
}

/* ===================================
   Font Size Utility Classes
   =================================== */

html.font-size-100 { --font-size-multiplier: 1; }
html.font-size-110 { --font-size-multiplier: 1.1; }
html.font-size-120 { --font-size-multiplier: 1.2; }
html.font-size-130 { --font-size-multiplier: 1.3; }
html.font-size-140 { --font-size-multiplier: 1.4; }
html.font-size-150 { --font-size-multiplier: 1.5; }
html.font-size-160 { --font-size-multiplier: 1.6; }
html.font-size-170 { --font-size-multiplier: 1.7; }
html.font-size-180 { --font-size-multiplier: 1.8; }
html.font-size-190 { --font-size-multiplier: 1.9; }
html.font-size-200 { --font-size-multiplier: 2; }

html[class*="font-size-"] {
    font-size: calc(16px * var(--font-size-multiplier, 1));
}

html[class*="font-size-"] body {
    font-size: calc(var(--font-size-base) * var(--font-size-multiplier, 1));
}

/* ===================================
   High Contrast Mode
   =================================== */

html.high-contrast-mode {
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #e0e0e0;
}

html.high-contrast-mode[data-theme="light"] {
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #333333;
    --dark-bg: #ffffff;
    --dark-bg-2: #ffffff;
    --dark-bg-3: #f0f0f0;
    --dark-bg-4: #e0e0e0;
}

html.high-contrast-mode a,
html.high-contrast-mode button,
html.high-contrast-mode input,
html.high-contrast-mode select,
html.high-contrast-mode textarea {
    border: 2px solid currentColor !important;
}

/* ===================================
   Dyslexia Mode (OpenDyslexic Font)
   =================================== */

html.dyslexia-mode {
    --font-primary: 'OpenDyslexic', sans-serif !important;
}

html.dyslexia-mode body,
html.dyslexia-mode h1,
html.dyslexia-mode h2,
html.dyslexia-mode h3,
html.dyslexia-mode h4,
html.dyslexia-mode h5,
html.dyslexia-mode h6,
html.dyslexia-mode p,
html.dyslexia-mode span,
html.dyslexia-mode div,
html.dyslexia-mode li,
html.dyslexia-mode a,
html.dyslexia-mode button,
html.dyslexia-mode input,
html.dyslexia-mode textarea,
html.dyslexia-mode select,
html.dyslexia-mode label {
    font-family: 'OpenDyslexic', sans-serif !important;
}

html.dyslexia-mode:not(.high-contrast-mode) {
    background: #FFFF99 !important;
}

html.dyslexia-mode:not(.high-contrast-mode) body {
    background: #FFFF99 !important;
}

html.dyslexia-mode:not(.high-contrast-mode) .navbar,
html.dyslexia-mode:not(.high-contrast-mode) .footer,
html.dyslexia-mode:not(.high-contrast-mode) section,
html.dyslexia-mode:not(.high-contrast-mode) .card,
html.dyslexia-mode:not(.high-contrast-mode) .service-card,
html.dyslexia-mode:not(.high-contrast-mode) .accessibility-panel {
    background: #FFFF99 !important;
    color: #000000 !important;
}

html.dyslexia-mode:not(.high-contrast-mode) * {
    color: #000000 !important;
}

/* ===================================
   Animations Paused
   =================================== */

html.animations-paused *,
html.animations-paused *::before,
html.animations-paused *::after {
    animation: none !important;
    animation-play-state: paused !important;
    transition: none !important;
}

html.animations-paused #particles-canvas {
    display: none !important;
}

/* ===================================
   Line Height Adjustments
   =================================== */

html.line-height-relaxed {
    line-height: 1.8 !important;
}

html.line-height-relaxed body,
html.line-height-relaxed p,
html.line-height-relaxed li,
html.line-height-relaxed span {
    line-height: 1.8 !important;
}

html.line-height-loose {
    line-height: 2.2 !important;
}

html.line-height-loose body,
html.line-height-loose p,
html.line-height-loose li,
html.line-height-loose span {
    line-height: 2.2 !important;
}

/* ===================================
   Letter Spacing Adjustments
   =================================== */

html.letter-spacing-wide {
    letter-spacing: 0.05em !important;
}

html.letter-spacing-wide * {
    letter-spacing: 0.05em !important;
}

html.letter-spacing-wider {
    letter-spacing: 0.1em !important;
}

html.letter-spacing-wider * {
    letter-spacing: 0.1em !important;
}

/* ===================================
   Hide Images
   =================================== */

html.hide-images img {
    visibility: hidden !important;
}

html.hide-images .logo-image {
    visibility: visible !important;
}

/* ===================================
   Highlight Links
   =================================== */

html.highlight-links a:not(.accessibility-toggle):not(.a11y-btn):not(.accessibility-panel-close) {
    border: 2px solid var(--primary-color) !important;
    padding: 2px 4px !important;
    background: rgba(0, 113, 227, 0.1) !important;
    border-radius: 4px !important;
}

/* ===================================
   Toast Notifications
   =================================== */

.a11y-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg-2);
    color: var(--text-primary);
    padding: 12px 24px 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    z-index: 10001;
    font-size: 14px !important;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastSlideDown 0.3s ease forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.a11y-toast::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #34C759;
    color: white;
    border-radius: 50%;
    font-size: 12px !important;
    flex-shrink: 0;
}

.a11y-toast.hiding {
    animation: toastSlideUp 0.3s ease forwards;
}

@keyframes toastSlideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastSlideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* RTL Toast positioning */
[dir="rtl"] .a11y-toast {
    left: 50%;
    right: auto;
}

/* ===================================
   Focus Indicators (WCAG 2.1 AA)
   =================================== */

/* Focus visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Enhanced focus for buttons */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.2);
}

/* Focus for navigation links */
.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    background: rgba(0, 113, 227, 0.1);
}

/* Focus for icon buttons */
.theme-toggle:focus-visible,
.btn-lang:focus-visible,
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.15);
}

/* ===================================
   High Contrast Mode Support
   =================================== */

@media (prefers-contrast: high) {
    /* Force borders on interactive elements */
    button,
    a,
    input,
    select,
    textarea {
        border: 2px solid currentColor !important;
    }
    
    /* Ensure sufficient contrast */
    .btn-primary,
    .btn-secondary {
        border: 2px solid #ffffff !important;
    }
    
    /* Make focus indicators more visible */
    *:focus-visible {
        outline: 4px solid currentColor !important;
        outline-offset: 4px;
    }
    
    /* Ensure icons are visible */
    .service-icon,
    .stat-icon {
        border: 2px solid currentColor;
    }
}

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Hide animated canvas */
    #particles-canvas {
        display: none !important;
    }
    
    /* Disable parallax effects */
    [data-scroll] {
        transform: none !important;
    }
    
    /* Stop spinning/rotating animations */
    .service-icon,
    .stat-icon {
        animation: none !important;
    }
    
    /* Disable hover transforms */
    .service-card:hover,
    .testimonial-card:hover,
    .stat-card:hover {
        transform: none !important;
    }
}

/* ===================================
   Form Validation Styles
   =================================== */

.form-group {
    position: relative;
}

.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: #34C759 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2334C759' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #FF3B30 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF3B30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-error {
    color: #FF3B30;
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error::before {
    content: '⚠';
    font-size: 0.75rem;
}

/* RTL Support for validation icons */
[dir="rtl"] .form-group input.valid,
[dir="rtl"] .form-group input.invalid,
[dir="rtl"] .form-group textarea.valid,
[dir="rtl"] .form-group textarea.invalid {
    background-position: left 12px center;
    padding-right: 1rem;
    padding-left: 40px;
}

/* ===================================
   Qualification Modal
   =================================== */

.qualification-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.qualification-modal.active {
    opacity: 1;
    visibility: visible;
}

.qualification-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.qualification-modal-content {
    position: relative;
    background: var(--dark-bg-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 560px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
}

.qualification-modal.active .qualification-modal-content {
    transform: scale(1) translateY(0);
}

.qualification-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 1;
}

.qualification-modal-close:hover {
    background: var(--dark-bg-3);
    color: var(--text-primary);
}

/* RTL close button */
[dir="rtl"] .qualification-modal-close {
    right: auto;
    left: 1rem;
}

.qualification-modal-body {
    padding: 2.5rem;
}

.qualification-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

/* Step 1: Interest Selection */
.qualification-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qualification-option {
    cursor: pointer;
}

.qualification-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qualification-option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--dark-bg-3);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.qualification-option-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.qualification-option input:checked + .qualification-option-content {
    border-color: var(--primary-color);
    background: rgba(0, 113, 227, 0.1);
}

.qualification-option:hover .qualification-option-content {
    border-color: var(--primary-color);
}

.qualification-option input:focus-visible + .qualification-option-content {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Step 2: Form */
.qualification-form .form-group {
    margin-bottom: 1.25rem;
}

.qualification-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.qualification-form input,
.qualification-form textarea,
.qualification-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.qualification-form input:focus,
.qualification-form textarea:focus,
.qualification-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.qualification-form textarea {
    resize: vertical;
    min-height: 100px;
}

.qualification-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

[dir="rtl"] .qualification-form select {
    background-position: left 1rem center;
    padding-right: 1rem;
    padding-left: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox styling */
.form-checkbox {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

/* Action buttons */
.qualification-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.qualification-actions .btn {
    flex: 1;
}

/* Success screen */
.qualification-success {
    text-align: center;
    padding: 1rem 0;
}

.success-icon {
    font-size: 4rem;
    color: #34C759;
    margin-bottom: 1.5rem;
}

.success-icon i {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.qualification-success h2 {
    margin-bottom: 0.75rem;
}

.qualification-success p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.calendly-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.calendly-container {
    background: var(--dark-bg-3);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.calendly-container iframe {
    display: block;
    border: none;
}

/* ===================================
   Exit Intent Popup
   =================================== */

.exit-intent-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.exit-intent-popup.active {
    opacity: 1;
    visibility: visible;
}

.exit-intent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.exit-intent-content {
    position: relative;
    background: var(--dark-bg-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 420px;
    width: 90%;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(-20px);
    transition: var(--transition);
}

.exit-intent-popup.active .exit-intent-content {
    transform: scale(1) translateY(0);
}

.exit-intent-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.exit-intent-close:hover {
    background: var(--dark-bg-3);
    color: var(--text-primary);
}

[dir="rtl"] .exit-intent-close {
    right: auto;
    left: 1rem;
}

.exit-intent-body h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.exit-intent-body > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.exit-intent-form .form-group {
    margin-bottom: 1rem;
}

.exit-intent-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.exit-intent-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.exit-intent-form .btn {
    margin-top: 0.5rem;
}

.exit-intent-success {
    text-align: center;
    padding: 1rem 0;
}

.exit-intent-success i {
    font-size: 3rem;
    color: #34C759;
    margin-bottom: 1rem;
    display: block;
}

.exit-intent-success p {
    color: var(--text-primary);
    font-size: 1.0625rem;
}

/* ===================================
   Section CTAs
   =================================== */

.section-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.section-cta-container {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* ===================================
   Enhanced Newsletter Form
   =================================== */

.newsletter-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-row {
    display: flex;
    gap: 0.5rem;
}

.newsletter-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--dark-bg-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
}

.newsletter-row input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.newsletter-row input::placeholder {
    color: var(--text-muted);
}

.newsletter-row .btn {
    padding: 0.75rem 1rem;
    min-width: 44px;
}

@media (max-width: 480px) {
    .newsletter-row {
        flex-direction: column;
    }

    .newsletter-row .btn {
        width: 100%;
    }
}

/* ===================================
   Light Mode Overrides for New Features
   =================================== */

[data-theme="light"] .qualification-modal-content,
[data-theme="light"] .exit-intent-content {
    background: var(--dark-bg);
    border-color: var(--border-color);
}

[data-theme="light"] .qualification-option-content,
[data-theme="light"] .qualification-form input,
[data-theme="light"] .qualification-form textarea,
[data-theme="light"] .qualification-form select,
[data-theme="light"] .exit-intent-form input,
[data-theme="light"] .newsletter-row input {
    background: var(--dark-bg-2);
}

[data-theme="light"] .a11y-toast {
    background: var(--dark-bg);
}

/* ===================================
   RTL Support for New Features
   =================================== */

[dir="rtl"] .qualification-option-content,
[dir="rtl"] .checkbox-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .qualification-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .newsletter-row {
    flex-direction: row-reverse;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
    .qualification-modal-body {
        padding: 2rem 1.5rem;
    }

    .qualification-modal-content,
    .exit-intent-content {
        width: 95%;
        max-height: 95vh;
    }

    .exit-intent-content {
        padding: 2rem 1.5rem;
    }
}

/* ===================================
   WhatsApp Floating Button
   =================================== */

.whatsapp-float {
    position: fixed;
    bottom: 90px; /* Same level as scroll-to-top button (moved higher to clear footer) */
    right: 95px; /* Positioned to the LEFT of scroll-to-top button (which is at right: 30px, width: 50px) */
    width: 50px;
    height: 50px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 997;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:focus {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}

.whatsapp-float i {
    font-size: 26px;
    color: white;
}

/* WhatsApp button responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 80px; /* Higher on mobile to clear footer */
        right: 80px; /* Left of scroll-to-top on mobile */
        width: 44px;
        height: 44px;
    }

    .whatsapp-float i {
        font-size: 22px;
    }
}

/* RTL adjustment for WhatsApp button - keep on RIGHT side (same as LTR) */
/* Accessibility button is on LEFT, scroll-top and WhatsApp stay on RIGHT */
[dir="rtl"] .whatsapp-float {
    right: 95px;
    left: auto;
}

@media (max-width: 768px) {
    [dir="rtl"] .whatsapp-float {
        right: 80px;
        left: auto;
    }
}

/* ===================================
   Lead Magnet CTA Button Styles
   =================================== */

.tagline-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tagline-cta .btn {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

.tagline-cta .btn i {
    margin-left: 0.5rem;
}

/* RTL adjustment for tagline CTA */
[dir="rtl"] .tagline-cta .btn i {
    margin-left: 0;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .tagline-cta {
        margin-top: 1.5rem;
    }

    .tagline-cta .btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
}

/* ===================================
   Newsletter Form Lead Magnet Update
   =================================== */

.newsletter-lead-magnet-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.newsletter-lead-magnet-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.gdpr-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.gdpr-consent label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.gdpr-consent a {
    color: var(--primary-color);
    text-decoration: underline;
}

.gdpr-consent a:hover {
    color: var(--accent-blue);
}

/* RTL adjustment for GDPR consent - remove row-reverse to keep checkbox on right */
[dir="rtl"] .gdpr-consent {
    text-align: right;
}

/* ===================================
   Utility Classes (moved from inline styles)
   =================================== */

/* Dropdown menu icons */
.dropdown-icon {
    width: 24px;
    height: 24px;
}

/* Team member profile links container */
.team-profiles {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
}

/* Team member profile link wrapper */
.profile-link {
    display: inline-block;
    overflow: hidden;
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

/* Team member profile image */
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Accessibility panel reset section */
.a11y-section-center {
    text-align: center;
}

/* Accessibility panel reset button full width */
.a11y-btn-full {
    width: 100%;
}

/* About content box styling */
.about-content-box {
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    box-sizing: border-box;
}

