:root {
    /* Colors */
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --primary-blue-light: #60a5fa;
    --accent-teal: #14b8a6;
    --accent-cyan: #00f5ff;
    
    /* Backgrounds */
    --dark-bg-primary: #0f0f23;
    --dark-bg-secondary: #1a1a3e;
    
    /* Text */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-subtle: rgba(255, 255, 255, 0.5);
    
    /* Borders */
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Transitions - FAST */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.2s ease-out;
    
    /* Spacing */
    --container-max: 1280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ============================================================================
   BASE - OPTIMIZED FOR PERFORMANCE
   ============================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================================================
   CRITICAL: CSS CONTAINMENT FOR BETTER RENDERING
   ============================================================================ */
section {
    contain: layout style;
    content-visibility: auto;
    position: relative;
    padding: 3rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

/* ============================================================================
   CURSOR REVEAL - ULTRA LIGHT (Disabled by default for performance)
   ============================================================================ */
.cursor-reveal-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.15;
    will-change: auto;
}

.cursor-reveal-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cursor-reveal-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%),
        transparent 0%,
        rgba(15, 15, 35, 0.97) 100%
    );
    transition: background 0.1s linear;
}

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

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   HEADER - OPTIMIZED
   ============================================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-base);
    contain: layout style;
}

header.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform var(--transition-base);
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.05) translate3d(0, 0, 0);
}

.logo-icon img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}

/* Mobile Menu */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg-secondary), var(--dark-bg-primary));
    backdrop-filter: blur(8px);
    padding: 5rem 2rem 2rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    transition: right 0.25s ease-out;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
    border-left: 1px solid var(--border-light);
    z-index: 999;
    contain: layout style;
}

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

.nav-links li {
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-base);
}

.nav-links.active li {
    opacity: 1;
    transform: translateX(0) translate3d(0, 0, 0);
}

.nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
.nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
.nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
.nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
.nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
.nav-links.active li:nth-child(6) { transition-delay: 0.3s; }
.nav-links.active li:nth-child(7) { transition-delay: 0.35s; }

.nav-links a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px) translate3d(0, 0, 0);
}

.nav-links a:hover::before {
    width: 0.5rem;
}

.lang-switcher {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-light);
    transition: all var(--transition-base);
}

.lang-switcher:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.nav-cta .cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--text-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    display: inline-block;
    transition: all var(--transition-base);
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
}

.nav-cta .cta-button:hover {
    transform: translateY(-2px) translate3d(0, 0, 0);
    box-shadow: 0 5px 18px rgba(0, 245, 255, 0.4);
}

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    z-index: 1001;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.mobile-menu-btn:hover {
    background: rgba(0, 245, 255, 0.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================================
   FLOATING BUTTONS
   ============================================================================ */
.floating_buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.floating_btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-base);
    pointer-events: all;
    border: 2px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.floating_btn:hover {
    transform: scale(1.1) translateY(-5px) translate3d(0, 0, 0);
}

.floating_btn:active {
    transform: scale(0.95) translate3d(0, 0, 0);
}

.floating_btn svg {
    width: 28px;
    height: 28px;
}

/* ============================================================================
   HERO SECTION - ULTRA OPTIMIZED
   ============================================================================ */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 1rem 3rem;
    overflow: hidden;
    contain: layout style;
}

/* Background - SIMPLIFIED! */
.hero-modern__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.25;
}

/* PERFORMANCE: Reduced blur and opacity */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px); /* REDUCED from 30px! */
    opacity: 0.2;
}

.gradient-orb--1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: -150px;
    right: -100px;
}

.gradient-orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-teal), transparent);
    bottom: -175px;
    left: -150px;
}

.gradient-orb--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* SVG Shapes - STATIC */
.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

.hero-modern__container {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.hero-modern__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-modern__content {
    text-align: center;
    color: var(--text-white);
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.hero-badge:hover {
    background: rgba(0, 245, 255, 0.15);
    transform: translateY(-2px) translate3d(0, 0, 0);
}

.hero-badge__dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

/* Title */
.hero-modern__title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    margin-bottom: 0.5rem;
}

.title-line--gradient {
    background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--accent-cyan) 50%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    display: block;
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.hero-modern__subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-modern__subtitle strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Feature Pills */
.hero-modern__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.feature-pill:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-3px) translate3d(0, 0, 0);
}

.feature-pill svg {
    color: var(--accent-cyan);
}

/* CTA Buttons */
.hero-modern__cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 5rem;
}

.btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    text-decoration: none;
}

.btn-modern__content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.btn-modern__icon {
    display: flex;
    align-items: center;
    transition: transform var(--transition-fast);
}

.btn-modern:hover .btn-modern__icon {
    transform: scale(1.1) translate3d(0, 0, 0);
}

.btn-modern--primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: var(--text-white);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.btn-modern--primary:hover {
    transform: translateY(-3px) translate3d(0, 0, 0);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.5);
}

.btn-modern--secondary {
    background: rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(0, 245, 255, 0.3);
    color: var(--accent-cyan);
}

.btn-modern--secondary:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--accent-cyan);
    transform: translateY(-3px) translate3d(0, 0, 0);
}

.btn-modern--outline {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-modern--outline:hover {
    background: var(--accent-cyan);
    color: var(--dark-bg-primary);
    transform: translate3d(0, 0, 0);
}

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

/* ============================================================================
   PHONE VISUAL - FIXED SCALING ISSUE
   ============================================================================ */
.hero-modern__visual {
    height: auto;
    min-height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 8rem 0;  /* FIXED: Added 8rem bottom padding for stats bar */
}

.phone-showcase {
    position: relative;
    margin: 0 auto;
    padding: 1rem 0;
    max-width: 100%;
    width: 100%;
}

/* Floating Elements */
.float-element {
    position: absolute;
    z-index: 10;
    display: none;  /* FIXED: Hidden on mobile by default */
}

.float-element--1 {
    top: 5%;
    left: 0%;
}

.float-element--2 {
    top: 50%;
    right: 0%;
}

.float-element--3 {
    bottom: 15%;
    left: 0%;
}

.float-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    transition: all var(--transition-base);
}

.float-card:hover {
    border-color: rgba(0, 245, 255, 0.3);
    transform: scale(1.05) translate3d(0, 0, 0);
}

.float-card__icon {
    font-size: 1.5rem;
}

.float-card__content {
    text-align: left;
}

.float-card__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1;
}

.float-card__value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0.25rem 0 0;
    line-height: 1;
}

/* FIXED: Hero Image Scaling - NO MORE EXCESSIVE TRANSFORM! */
.phone-mockup-modern {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 280px;
}

.phone-mockup-modern img,
.phone-mockup-modern .illustartion {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: translate3d(0, 0, 0);
    display: block;
    border-radius: 2rem;
}

/* PERFORMANCE: Reduced blur significantly */
.phone-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.2), transparent 60%);
    filter: blur(10px); /* REDUCED from 15px! */
    z-index: -1;
    pointer-events: none;
}

/* Scroll Indicator */
.scroll-indicator-modern {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(0, 245, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Stats Bar */
.hero-stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-light);
    padding: 1rem 1rem;  /* FIXED: Reduced from 1.5rem to 1rem on mobile */
    z-index: 3;
}

.stats-bar__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;  /* FIXED: Reduced from 1.5rem to 1rem on mobile */
}

.stat-item-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.stat-item-bar:hover {
    transform: translateY(-3px) translate3d(0, 0, 0);
}

.stat-icon-bar {
    width: 40px;  /* FIXED: Reduced from 44px */
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
}

.stat-number-bar {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
    margin: 0 0 0.25rem;
}

.stat-label-bar {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================================
   SECTION HEADERS
   ============================================================================ */
.section-header-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--accent-cyan);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.section-header-modern h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-header-modern p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================================
   3D CAROUSEL - FIXED VISIBILITY & PERFORMANCE
   ============================================================================ */
.carousel-3d-section {
    padding: 4rem 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background: transparent;
    overflow: hidden;
    position: relative;
    contain: layout style;
}

.carousel-3d-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.carousel-3d-bg .gradient-orb {
    filter: blur(20px); /* REDUCED from 30px */
}

.carousel-3d-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header-3d {
    margin-bottom: 3rem;
}

.banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 450px;
    perspective: 1200px;
    margin-bottom: 2rem;
}

/* CRITICAL: Fixed 3D Carousel for better visibility */
.slider {
    position: relative;
    width: 160px;  /* FIXED: Smaller from 200px */
    height: 260px;  /* FIXED: Smaller from 320px */
    transform-style: preserve-3d;
    transform: rotateX(-8deg) rotateY(0deg) translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-out;
}

.slider::before {
    content: '⏸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
    z-index: 100;
    color: var(--accent-cyan);
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.9),
                 0 0 60px rgba(0, 245, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.8));
}

.slider.paused::before {
    opacity: 0.95;
}

.slider.paused {
    filter: brightness(1.15);
}

.slider:hover {
    transform: rotateX(-8deg) rotateY(0deg) translate3d(0, 0, 0) scale(1.02);
}

/* FIXED: Better positioning for 3D carousel items */
.slider .item {
    position: absolute;
    inset: 0;
    transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
               translateZ(350px);  /* FIXED: Reduced from 400px to match smaller cards */
    transition: transform 0.3s ease-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slider .item img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.slider .item:hover img {
    transform: scale(1.05) translate3d(0, 0, 0);
    box-shadow: 0 12px 35px rgba(0, 245, 255, 0.35);
}

/* ============================================================================
   SERVICES - OPTIMIZED
   ============================================================================ */
.services-modern {
    padding: 4rem 1rem;
    background: transparent;
    contain: layout style;
}

.services-modern__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.2;
}

.services-modern{
    direction: ltr !important;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px); /* REDUCED from 40px */
    opacity: 0.2;
}

.gradient-blob--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: -200px;
    right: -100px;
}

.gradient-blob--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-teal), transparent);
    bottom: -250px;
    left: -150px;
}

.category-carousel-modern {
    margin-bottom: 3rem;
}

.carousel-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.carousel-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-emoji {
    font-size: 2rem;
}

.carousel-header-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.carousel-nav-modern {
    display: flex;
    gap: 0.5rem;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: scale(1.1) translate3d(0, 0, 0);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-wrapper-modern {
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
}

.carousel-wrapper-modern::before,
.carousel-wrapper-modern::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
}

.carousel-wrapper-modern::before {
    left: 0;
    background: linear-gradient(90deg, 
        var(--dark-bg-primary) 0%, 
        transparent 100%);
}

.carousel-wrapper-modern::after {
    right: 0;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--dark-bg-primary) 100%);
}

.carousel-track-modern {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease-out;
    transform: translate3d(0, 0, 0);
}

.service-card-modern {
    flex: 0 0 260px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.25s ease-out;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.service-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card-modern:hover::after {
    transform: scaleX(1);
}

.service-card-modern:hover {
    transform: translateY(-8px) translate3d(0, 0, 0);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
    border-color: rgba(0, 245, 255, 0.5);
    background: rgba(0, 245, 255, 0.05);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform var(--transition-base);
}

.service-card-modern:hover .service-card__icon {
    transform: scale(1.1) rotate(5deg) translate3d(0, 0, 0);
}

.service-card-modern h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.service-card__count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    font-size: 0.875rem;
}

.rating-value {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 0.875rem;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================================================
   WHY BRICOLE
   ============================================================================ */
.why_bricole {
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.why_bricole_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit_card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.25s ease-out;
    contain: layout style;
}

.benefit_card:hover {
    transform: translateY(-8px) translate3d(0, 0, 0);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 12px 35px rgba(0, 245, 255, 0.3);
}

.benefit_card_icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.25s ease-out;
}

.benefit_card:hover .benefit_card_icon {
    transform: scale(1.1) translate3d(0, 0, 0);
}

.benefit_card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.benefit_card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.why_bricole_cta {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================================================
   FOR WORKERS
   ============================================================================ */
.for-workers-modern {
    padding: 4rem 1rem;
    position: relative;
    contain: layout style;
}

.workers-modern__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.2;
}

.workers-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.2;
}

.workers-gradient--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: -200px;
    left: -100px;
}

.workers-gradient--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-teal), transparent);
    bottom: -250px;
    right: -150px;
}

.workers-modern__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.workers-modern__visual {
    position: relative;
}

.workers-image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
}

.workers-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.workers-image-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.15), transparent 60%);
    filter: blur(15px);
    z-index: -1;
    pointer-events: none;
}

.workers-stat-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.workers-stat-float--1 {
    top: 10%;
    right: -5%;
}

.workers-stat-float--2 {
    bottom: 10%;
    left: -5%;
}

.stat-float-icon {
    font-size: 2rem;
}

.stat-float-value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-white);
    margin: 0;
    line-height: 1;
}

.stat-float-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
    line-height: 1;
}

.workers-modern__content {
    color: var(--text-white);
}

.workers-modern__intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.workers-benefits-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.benefit-item-modern {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: all 0.25s ease-out;
}

.benefit-item-modern:hover {
    transform: translateX(5px) translate3d(0, 0, 0);
    background: rgba(0, 245, 255, 0.05);
}

.benefit-icon-modern {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: transform 0.25s ease-out;
}

.benefit-item-modern:hover .benefit-icon-modern {
    transform: scale(1.1) translate3d(0, 0, 0);
}

.benefit-content-modern h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.benefit-content-modern p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.workers-testimonial-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-cyan);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    transition: all var(--transition-base);
}

.workers-testimonial-link:hover {
    gap: 0.75rem;
}

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */
.how-it-works-modern {
    padding: 4rem 1rem;
    contain: layout style;
}

.steps-timeline {
    position: relative;
    margin-bottom: 3rem;
}

.steps-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.steps-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step-card-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.25s ease-out;
    contain: layout style;
}

.step-card-modern:hover {
    transform: translateY(-8px) translate3d(0, 0, 0);
    box-shadow: 0 12px 35px rgba(0, 245, 255, 0.3);
    border-color: rgba(0, 245, 255, 0.5);
}

.step-number-modern {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.step-number-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.3), transparent);
    filter: blur(10px);
    z-index: -1;
}

.step-icon-modern {
    margin: 2rem 0 1.5rem;
    color: var(--accent-cyan);
}

.step-card-modern h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.step-card-modern p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.step-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.step-feature svg {
    color: var(--accent-cyan);
}

.how-it-works-cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================================================
   TIPS
   ============================================================================ */
.tips-modern {
    padding: 4rem 1rem;
    contain: layout style;
}

.tips-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tip-card-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    transition: all 0.25s ease-out;
    contain: layout style;
}

.tip-card-modern:hover {
    transform: translateY(-8px) translate3d(0, 0, 0);
    box-shadow: 0 12px 35px rgba(0, 245, 255, 0.3);
    border-color: rgba(0, 245, 255, 0.5);
}

.tip-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

.tip-icon-modern {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.25s ease-out;
}

.tip-card-modern:hover .tip-icon-modern {
    transform: scale(1.1) translate3d(0, 0, 0);
}

.tip-card-modern h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.tip-card-modern p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================================
   FAQ
   ============================================================================ */
.faq-modern {
    padding: 4rem 1rem;
    contain: layout style;
}

.faq-container-modern {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item-modern {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.25s ease-out;
}

.faq-item-modern:hover {
    border-color: rgba(0, 245, 255, 0.3);
}

.faq-item-modern.active {
    border-color: rgba(0, 245, 255, 0.5);
}

.faq-question-modern {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-base);
}

.faq-question-modern:hover {
    background: rgba(0, 245, 255, 0.05);
}

.faq-question-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    flex: 1;
    padding-right: 1rem;
}

.faq-icon-modern {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: transform 0.25s ease-out;
}

.faq-item-modern.active .faq-icon-modern {
    transform: rotate(45deg);
}

.faq-answer-modern {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-item-modern.active .faq-answer-modern {
    max-height: 500px;
}

.faq-answer-content-modern {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-cta {
    margin-top: 3rem;
}

.faq-cta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
}

.faq-cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--text-white);
}

.faq-cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.faq-cta-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ============================================================================
   FINAL CTA
   ============================================================================ */
.cta-final {
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
    contain: layout style;
}

.cta-final__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.2;
}

.cta-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.25;
}

.cta-gradient--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent);
    top: -200px;
    right: -100px;
}

.cta-gradient--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.7), transparent);
    bottom: -250px;
    left: -150px;
}

.cta-gradient--3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.6), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-final__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-white);
}

.cta-final__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    font-weight: 600;
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.cta-final__content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.cta-final__content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.cta-final__buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.store-btn-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.store-btn-modern:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.5);
    transform: translateY(-3px) translate3d(0, 0, 0);
}

.store-btn-text {
    text-align: left;
}

.store-btn-small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1;
}

.store-btn-large {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.25rem;
}

.cta-final__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-base);
}

.trust-item:hover {
    color: var(--accent-cyan);
}

.trust-item svg {
    color: var(--accent-cyan);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer-modern {
    background: linear-gradient(180deg, var(--dark-bg-secondary) 0%, var(--dark-bg-primary) 100%);
    color: var(--text-white);
}

.footer-modern__top {
    padding: 3rem 1rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-logo:hover {
    transform: scale(1.05) translate3d(0, 0, 0);
}

.footer-logo-icon img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link-modern {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-link-modern:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-color: transparent;
    transform: translateY(-3px) translate3d(0, 0, 0);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px) translate3d(0, 0, 0);
}

.footer-modern__bottom {
    padding: 2rem 1rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-subtle);
    font-size: 0.95rem;
}

.scroll-to-top {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: all var(--transition-base);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-color: transparent;
    transform: translateY(-3px) translate3d(0, 0, 0);
}

/* ============================================================================
   MODAL
   ============================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-out;
    padding: 1rem;
}

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

.modal-content {
    background: linear-gradient(135deg, var(--dark-bg-secondary), var(--dark-bg-primary));
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 24px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.25s ease-out;
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.4);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translate3d(0, 0, 0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease-out;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.5);
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}

.modal-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-notify-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease-out;
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.4);
}

.modal-notify-btn:hover {
    transform: translateY(-3px) translate3d(0, 0, 0);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.6);
}

/* ============================================================================
   ANIMATION CLASSES
   ============================================================================ */
.animate-slide-up {
    opacity: 0;
    transform: translateY(20px) translate3d(0, 0, 0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-slide-up.visible {
    opacity: 1;
    transform: translateY(0) translate3d(0, 0, 0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.animate-fade-in.visible {
    opacity: 1;
}

[data-delay="0.1"] { transition-delay: 0.1s; }
[data-delay="0.2"] { transition-delay: 0.2s; }
[data-delay="0.3"] { transition-delay: 0.3s; }
[data-delay="0.4"] { transition-delay: 0.4s; }
[data-delay="0.5"] { transition-delay: 0.5s; }
[data-delay="0.6"] { transition-delay: 0.6s; }
[data-delay="0.7"] { transition-delay: 0.7s; }
[data-delay="0.8"] { transition-delay: 0.8s; }
[data-delay="0.9"] { transition-delay: 0.9s; }
[data-delay="1.0"] { transition-delay: 1.0s; }

/* ============================================================================
   3D CUBE
   ============================================================================ */
.scene {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: scale(0.5) translate3d(0, 0, 0);
}

.cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(0deg) translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.9), rgba(0, 100, 255, 0.3));
    border: 3px solid #00d4ff;
    border-radius: 20px;
    box-shadow: 0 0 15px #00d4ff;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    overflow: hidden;
    backface-visibility: hidden;
}

.face img {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 15px #00d4ff) brightness(1.2);
    position: relative;
    z-index: 1;
}

.front {
    transform: translateZ(150px);
}

.back {
    transform: rotateY(180deg) translateZ(150px);
}

.right {
    transform: rotateY(90deg) translateZ(150px);
}

.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.top {
    transform: rotateX(90deg) translateZ(150px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

/* ============================================================================
   RESPONSIVE - TABLET
   ============================================================================ */
@media (min-width: 640px) {
    nav {
        padding: 1rem 2rem;
    }

    .hero-modern__title {
        font-size: 2.75rem;
    }

    /* Fixed phone mockup for tablets */
    .phone-mockup-modern {
        max-width: 320px;
    }

    /* Fixed carousel for tablets */
    .slider {
        width: 200px;  /* FIXED: Reduced from 240px */
        height: 320px;  /* FIXED: Reduced from 380px */
    }
    
    .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
                   translateZ(380px);  /* FIXED: Reduced from 440px */
    }

    .service-card-modern {
        flex: 0 0 280px;
    }

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

    .cta-final__buttons {
        flex-direction: row;
    }

    .store-btn-modern {
        flex: 1;
    }

    /* REMOVED: Stats bar stays 2 columns on tablets */

    .section-header-modern h2 {
        font-size: 2.5rem;
    }
}

/* ============================================================================
   RESPONSIVE - DESKTOP
   ============================================================================ */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        flex-direction: row;
        gap: 2rem;
        box-shadow: none;
        border: none;
    }

    .nav-links li {
        opacity: 1;
        transform: none;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 0;
    }

    .nav-links a::before {
        left: 0;
        top: auto;
        bottom: -4px;
        width: 0;
        height: 2px;
        transform: none;
    }

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

    .nav-links a:hover {
        transform: none;
    }

    .hero-modern {
        padding: 8rem 2rem 2rem;
    }

    .hero-modern__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-modern__content {
        text-align: left;
    }

    .hero-modern__title {
        font-size: 3.5rem;
    }

    .title-underline {
        margin: 1rem 0 0;
    }

    .hero-modern__subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-modern__features {
        justify-content: flex-start;
    }

    .hero-modern__cta {
        flex-direction: row;
    }

    /* FIXED: Better desktop phone mockup */
    .phone-showcase {
        max-width: 400px;
    }

    .phone-mockup-modern {
        max-width: 360px;
    }

    /* Show and position float elements on desktop */
    .float-element {
        display: flex;  /* FIXED: Show on desktop where there's space */
    }
    
    .float-element--1 {
        top: 10%;
        left: -10%;
    }
    
    .float-element--2 {
        top: 50%;
        right: -10%;
    }
    
    .float-element--3 {
        bottom: 15%;
        left: -5%;
    }

    /* FIXED: Larger 3D carousel on desktop */
    /* .carousel-3d-section {
        min-height: 750px;
    }
    
    .banner {
        min-height: 500px;
        perspective: 1400px;
    }
    
    .slider {
        width: 240px;
        height: 380px;
    }
    
    .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
                   translateZ(480px);
    } */

    .section-header-modern h2 {
        font-size: 3rem;
    }

    .workers-modern__grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .steps-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .tips-grid-modern {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Stats bar now 4 columns on desktop */
    .stats-bar__container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;  /* Restored larger gap on desktop */
    }

    /* Restore larger stats bar padding on desktop */
    .hero-stats-bar {
        padding: 1.5rem 1rem;
    }

    /* Restore larger stat icons on desktop */
    .stat-icon-bar {
        width: 44px;
        height: 44px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

/* ============================================================================
   RESPONSIVE - LARGE DESKTOP
   ============================================================================ */
@media (min-width: 1024px) {
    section {
        padding: 5rem 2rem;
    }

    .hero-modern__title {
        font-size: 4rem;
    }

    .section-header-modern h2 {
        font-size: 3.5rem;
    }

    .service-card-modern {
        flex: 0 0 300px;
    }

    .phone-showcase {
        max-width: 450px;
    }

    .phone-mockup-modern {
        max-width: 400px;
    }

    /* FIXED: Smaller cards for full visibility on large screens */
    .slider {
        width: 220px;
        height: 350px;
    }
    
    .slider .item {
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
                   translateZ(450px);
    }

    .cta-final__content h2 {
        font-size: 3rem;
    }
}

/* ============================================================================
   RTL SUPPORT
   ============================================================================ */
[dir="rtl"] .nav-links a::before {
    left: auto;
    right: -1rem;
}

[dir="rtl"] .nav-links a:hover {
    transform: translateX(-5px) translate3d(0, 0, 0);
}

[dir="rtl"] .hero-modern__content {
    text-align: center;
}

[dir="rtl"] .benefit-item-modern {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-5px) translate3d(0, 0, 0);
}

@media (min-width: 768px) {
    [dir="rtl"] .hero-modern__content {
        text-align: right;
    }
    
    [dir="rtl"] .hero-modern__features {
        justify-content: flex-end;
    }
    
    [dir="rtl"] .title-underline {
        margin: 1rem auto 0 0;
    }

    [dir="rtl"] .nav-links a::before {
        left: 0;
        right: auto;
    }

    [dir="rtl"] .nav-links a:hover {
        transform: none;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* ============================================================================
   PRINT
   ============================================================================ */
@media print {
    header,
    .hero-modern__bg,
    .gradient-orb,
    .scroll-indicator-modern,
    .hero-stats-bar,
    .cta-final,
    footer,
    .floating_buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}