/* ========================================
   KLOVIX - Premium AI Marketing Agency
   Stylesheet v2.0 - With Pro Animations
   ======================================== */

/* ========================================
   CSS VARIABLES & ROOT
   ======================================== */
:root {
    /* Colors */
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    --bg-light: #f8fafc;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --text-light: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #94a3b8; /* IMPROVED CONTRAST */
    --text-gray-light: #cbd5e1; /* IMPROVED CONTRAST */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1280px;

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

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Loading Animation */
body {
    animation: pageLoad 0.6s ease-out;
}

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

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ========================================
   CUSTOM CURSOR (DISABLED)
   ======================================== */
/* Custom cursor desactivado - usar cursor normal del sistema */

/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .header-nav,
[dir="rtl"] .footer-content {
    flex-direction: row-reverse;
}

/* Language content visibility */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Flex containers need to stay flex when active */
.lang-content.active.services-nav,
.services-nav.lang-content.active {
    display: flex;
}

/* Currency visibility */
.price-eur, .price-aed {
    display: none;
}

.price-eur.active, .price-aed.active {
    display: inline;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray-light);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
}

.section-darker {
    background-color: var(--bg-dark-secondary);
}

.section-gradient {
    background: var(--gradient-hero);
    position: relative;
}

.section-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

/* ========================================
   WAVE SEPARATORS
   ======================================== */
.wave-separator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-separator .shape-fill {
    fill: var(--bg-dark-secondary);
}

.wave-separator-top {
    top: -1px;
    bottom: auto;
    transform: rotate(180deg);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.25rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-gray-light);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-light);
}

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

.nav-link.active {
    color: var(--text-light);
}

.nav-link.active::after {
    width: 100%;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-gray-light);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--text-light);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition-normal);
    border-radius: 2px;
}

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

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

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

/* Animated Background Gradient */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #1a1a2e);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(-1%, 3%) rotate(-1deg); }
    75% { transform: translate(3%, -1%) rotate(0.5deg); }
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: particleFloat 20s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 28s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 26s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 24s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 27s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 21s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 23s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3s; animation-duration: 29s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Floating Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.1;
    animation: geoFloat 15s ease-in-out infinite;
}

.geo-shape-1 {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.geo-shape-2 {
    top: 60%;
    right: 15%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-cyan);
    transform: rotate(45deg);
    animation-delay: -5s;
}

.geo-shape-3 {
    bottom: 20%;
    left: 20%;
    width: 60px;
    height: 60px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation-delay: -10s;
}

@keyframes geoFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-10px, 10px) rotate(180deg); }
    75% { transform: translate(15px, 15px) rotate(270deg); }
}

/* Floating Orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: orbFloat 15s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-cyan);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Typewriter effect for hero title */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-gray-light);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* ========================================
   BUTTONS WITH EFFECTS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

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

/* Shine Effect */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.btn:hover::after {
    left: 150%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ========================================
   CARDS - GLASSMORPHISM WITH 3D TILT
   ======================================== */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

/* 3D Tilt Effect - Applied via JS */
.card.tilt-active {
    transition: transform 0.1s ease;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.card-text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    margin-top: 16px;
}

.card-link:hover {
    color: var(--accent-cyan);
    gap: 12px;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* Different animation types */
.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.animate-slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-slide-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Legacy fade-in class support */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible,
.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ========================================
   BENEFITS GRID
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.benefit-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-text {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px 32px;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-text {
    margin-bottom: 20px;
}

/* ========================================
   SERVICE CARD IMPROVED STRUCTURE
   ======================================== */
.service-card h3,
.service-card .service-item-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.service-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-gray-light);
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1rem;
}

[dir="rtl"] .service-features li {
    padding-left: 0;
    padding-right: 28px;
}

[dir="rtl"] .service-features li::before {
    left: auto;
    right: 0;
}

.service-ideal {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-ideal strong {
    color: var(--accent-cyan);
}

.service-card .btn {
    width: 100%;
    margin-top: auto;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Currency Selector */
.currency-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.currency-btn {
    padding: 10px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--text-gray-light);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.currency-btn:hover {
    border-color: var(--primary);
    color: var(--text-light);
}

.currency-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

/* Pricing Card */
.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 40px 32px;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-target {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.pricing-price {
    margin-bottom: 8px;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-gray);
}

.pricing-setup {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-gray-light);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

[dir="rtl"] .pricing-features {
    text-align: right;
}

[dir="rtl"] .pricing-features li {
    flex-direction: row-reverse;
}

.pricing-cta {
    margin-top: auto;
}

/* ========================================
   PROCESS SECTION
   ======================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent-cyan), transparent);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-glow);
}

.process-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.process-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    text-align: center;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    margin: 0 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark-secondary);
    padding: 80px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.footer-tagline {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-light);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(37, 211, 102, 0.6); }
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 998;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 100px;
}

/* ========================================
   PAGE HEROES (Small)
   ======================================== */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    background: var(--gradient-hero);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SERVICES PAGE SPECIFIC
   ======================================== */
.services-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
}

/* Override: .services-nav with lang-content must respect language visibility */
.services-nav.lang-content {
    display: none;
}

.services-nav.lang-content.active {
    display: flex;
}

.services-nav-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.services-nav-btn:hover,
.services-nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.service-category {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.category-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-item {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.service-item-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.service-item-description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ========================================
   ABOUT PAGE SPECIFIC
   ======================================== */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-story-image {
    position: relative;
}

.about-story-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0.2;
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    position: relative;
}

.about-story-content h3 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.about-story-content p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.value-text {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.mission-card,
.vision-card {
    padding: 48px;
    text-align: center;
}

.mission-card .card-icon,
.vision-card .card-icon {
    margin: 0 auto 24px;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.team-text h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.team-text p {
    line-height: 1.8;
}

.team-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}

.team-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.team-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.team-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    padding: 40px 32px;
}

.case-category {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.case-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.case-item {
    margin-bottom: 16px;
}

.case-label {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-text {
    font-size: 0.9rem;
    color: var(--text-gray-light);
    margin: 0;
}

/* ========================================
   CONTACT PAGE SPECIFIC
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.contact-form-card {
    padding: 48px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-gray);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.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 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.form-select option {
    background: var(--bg-dark);
    color: var(--text-light);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-info-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

.contact-info-content a {
    color: var(--primary-light);
}

.contact-info-content a:hover {
    color: var(--accent-cyan);
}

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

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

/* ========================================
   PARALLAX CONTAINER
   ======================================== */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    will-change: transform;
}

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

/* Tablets and smaller */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

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

    .process-grid {
        gap: 30px;
    }

    .process-grid::before {
        display: none;
    }

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

    .about-story,
    .team-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

/* Mobile landscape and tablets */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .nav-link {
        font-size: 1.25rem;
    }

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

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

    .pricing-card.featured {
        transform: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-links li {
        margin: 0;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .cta-section {
        padding: 60px 24px;
        margin: 0 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .service-items-grid {
        grid-template-columns: 1fr;
    }

    .about-story-image {
        order: -1;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    :root {
        --section-padding: 48px;
    }

    html {
        font-size: 14px;
    }

    .container {
        padding: 0 16px;
    }

    .card {
        padding: 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .contact-form-card {
        padding: 32px 24px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        right: 80px;
        bottom: 20px;
    }

    [dir="rtl"] .whatsapp-float {
        left: 20px;
    }

    [dir="rtl"] .back-to-top {
        left: 80px;
    }

    .services-nav {
        gap: 8px;
    }

    .services-nav-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .lang-selector {
        flex-wrap: wrap;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}

/* Print styles */
@media print {
    .header,
    .whatsapp-float,
    .back-to-top,
    .cta-section,
    .scroll-progress {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

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

/* ----------------------------------------
   1. FADE-IN AL SCROLL (Reveal Animations)
   ---------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variants */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ----------------------------------------
   2. HOVER 3D EN TARJETAS (Tilt Effect)
   ---------------------------------------- */
.tilt-card,
.service-card,
.pricing-card,
.benefit-card,
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

@media (min-width: 1024px) and (hover: hover) {
    .tilt-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .benefit-card:hover,
    .team-card:hover {
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(99, 102, 241, 0.15);
    }
}

/* Smooth tilt reset */
.tilt-card,
.service-card,
.pricing-card,
.benefit-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                box-shadow 0.3s ease;
}

/* ----------------------------------------
   3. PARALLAX SUAVE EN HERO
   ---------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    bottom: -50px;
    background: var(--gradient-hero);
    z-index: -2;
    will-change: transform;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
}

.hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.hero-particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.hero-particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.hero-particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.hero-particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.hero-particle:nth-child(7) { left: 70%; animation-delay: 2s; }
.hero-particle:nth-child(8) { left: 80%; animation-delay: 4s; }
.hero-particle:nth-child(9) { left: 90%; animation-delay: 1s; }
.hero-particle:nth-child(10) { left: 95%; animation-delay: 3s; }

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.5;
        transform: translateY(10vh) scale(0.5);
    }
}

/* Geometric shapes parallax */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(60px);
    pointer-events: none;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: -50px;
    left: -50px;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ----------------------------------------
   4. BOTONES CON EFECTO SHINE
   ---------------------------------------- */
.btn-shine {
    position: relative;
    overflow: hidden;
}

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

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

/* Ensure btn-primary has shine by default */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

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

/* Ripple effect for clicks */
.btn-ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

/* ----------------------------------------
   5. WAVE SEPARATORS
   ---------------------------------------- */
.wave-separator {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-separator svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-separator.wave-top {
    transform: rotate(180deg);
    margin-bottom: -1px;
}

.wave-separator.wave-bottom {
    margin-top: -1px;
}

/* Wave colors */
.wave-dark svg path {
    fill: var(--bg-dark);
}

.wave-dark-secondary svg path {
    fill: var(--bg-dark-secondary);
}

.wave-primary svg path {
    fill: var(--primary);
    opacity: 0.1;
}

/* Animated wave */
.wave-animated svg path {
    animation: wave-motion 8s ease-in-out infinite;
}

@keyframes wave-motion {
    0%, 100% {
        d: path("M0,64 C320,100,640,20,960,64 C1280,108,1600,28,1920,64 L1920,100 L0,100 Z");
    }
    50% {
        d: path("M0,64 C320,20,640,100,960,64 C1280,28,1600,108,1920,64 L1920,100 L0,100 Z");
    }
}

/* Section divider wave */
.section-wave {
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
    z-index: 1;
}

.section-wave.top {
    top: -1px;
}

.section-wave.bottom {
    bottom: -1px;
    transform: rotate(180deg);
}

/* ----------------------------------------
   6. ADDITIONAL PRO EFFECTS
   ---------------------------------------- */

/* Glow pulse animation */
.glow-pulse {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

/* Text gradient animation */
.text-gradient-animated {
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--accent-cyan),
        var(--secondary),
        var(--primary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation for icons */
.float-icon {
    animation: float 3s ease-in-out infinite;
}

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

/* Border gradient animation */
.border-gradient {
    position: relative;
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-lg);
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-gradient:hover::before {
    opacity: 1;
}

/* ----------------------------------------
   7. REDUCED MOTION FOR MOBILE
   ---------------------------------------- */
@media (max-width: 768px) {
    /* Reduce fade-in animations on mobile */
    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .fade-in-scale {
        transform: translateY(20px);
        transition-duration: 0.4s;
    }

    .fade-in-left,
    .fade-in-right {
        transform: translateY(20px);
    }

    /* Disable tilt on mobile */
    .tilt-card,
    .service-card,
    .pricing-card,
    .benefit-card,
    .team-card {
        transform: none !important;
    }

    /* Reduce parallax */
    .hero-shape {
        display: none;
    }

    .hero-particle {
        display: none;
    }

    /* Simplify wave separators */
    .wave-separator svg {
        height: 50px;
    }

    /* Disable animated gradient text on mobile for performance */
    .text-gradient-animated {
        animation: none;
        background-size: 100% 100%;
    }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in,
    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .fade-in-scale {
        opacity: 1;
        transform: none;
    }
}
