/* ============================================================
   ELEVA - Premium Design System
   Modern, Professional, Elegant CSS Framework
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & ROOT STYLING
   ============================================================ */
:root {
    /* Primary Colors - Purple & Lavender Palette */
    --primary-color: #6a0dad;        /* Deep Purple - Brand Primary */
    --primary-dark: #5a0ca0;         /* Darker Purple for hover/shadow */
    --primary-light: #7d1fb8;        /* Lighter Purple for accents */
    --secondary-color: #e0b0ff;      /* Light Lavender - Accents */
    --secondary-dark: #c990ff;       /* Darker Lavender */
    --accent-purple: #9c27b0;        /* Medium Purple */
    
    /* Neutrals & Backgrounds */
    --text-dark: #1a1a2e;            /* Very Dark - Primary text */
    --text-gray: #4a5568;            /* Medium Gray */
    --text-light: #ffffff;           /* White - Light text */
    --text-muted: #7a8fa6;           /* Muted text */
    
    --bg-white: #ffffff;             /* Pure White */
    --bg-light: #f8fafc;             /* Off-white Light */
    --bg-lighter: #f1f5f9;           /* Lighter Gray */
    --bg-accent: #fafbff;            /* Subtle purple tint */
    
    /* Utility Colors */
    --border-light: #e2e8f0;         /* Light Border */
    --border-medium: #cbd5e1;        /* Medium Border */
    --success: #10b981;              /* Green Success */
    --warning: #f59e0b;              /* Orange Warning */
    --error: #ef4444;                /* Red Error */
    
    /* Shadows - Layered depth */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.20);
    --shadow-purple: 0 8px 20px rgba(106, 13, 173, 0.20);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing Scale */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ============================================================
   2. GLOBAL STYLES & RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'IBM Plex Sans Arabic', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove focus outline for mouse users, keep for keyboard */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================================
   3. TYPOGRAPHY & HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary-color);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

ul, ol {
    list-style: none;
}

/* ============================================================
   5. BUTTONS & CALL-TO-ACTIONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    gap: var(--spacing-sm);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Button improvements: more modern, accessible, and crisp micro-interactions */
.btn {
    --btn-elevation: var(--shadow-sm);
    --btn-elevation-hover: var(--shadow-xl);
    --btn-press-transform: translateY(0);
    -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
    outline: 3px solid rgba(106,13,173,0.18);
    outline-offset: 4px;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn { transition: none !important; animation: none !important; }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    box-shadow: var(--shadow-purple);
}

/* Primary button micro-interaction: subtle lift and stronger shadow */
.btn-primary {
    transition: transform var(--transition-fast), box-shadow var(--transition-normal), background var(--transition-normal);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #4a0a88 100%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-lighter);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Secondary style refinement: outline style with soft inner glow */
.btn-secondary {
    background: transparent;
    border: 2px solid rgba(106,13,173,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
    transition: all var(--transition-normal);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: linear-gradient(135deg, rgba(106,13,173,0.06), rgba(224,176,255,0.03));
    color: var(--primary-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Small / large button modifiers */
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; border-radius: var(--radius-xl); }

/* Icon buttons (compact) */
.btn-icon { padding: 10px 12px; border-radius: var(--radius-full); }

/* Ensure contrast and clickable area for accessibility */
.btn, .btn-primary, .btn-secondary { min-height: 44px; }

/* Improve ::before shimmer to be less aggressive on hover */
.btn:hover::before { transform: translateX(0); opacity: 0.95; }

.btn-icon {
    padding: 12px 16px;
    font-size: 1.2rem;
}

/* ============================================================
   6. HEADER & NAVIGATION
   ============================================================ */
.header {
    background: rgba(255, 255, 255, 0.581) !important ;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.184) !important;
    padding: 11px 0;
    position: sticky ;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    transition: transform var(--transition-normal);
}

.logo:hover img {
    transform: scale(1.05);
}

.navbar {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-normal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-menu span {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-dark);
    font-weight: 600;
    transition: color var(--transition-normal);
}

.dropdown-caret {
    font-size: 0.85rem;
    transition: transform var(--transition-normal);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: 1200;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all var(--transition-normal);
    border-right: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--bg-lighter);
    color: var(--primary-color);
    border-right-color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.1) 0%, rgba(224, 176, 255, 0.05) 100%),
                url('Import.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.55);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .slogan-style {
    display: block;
    font-size: 0.8em;
    color: var(--secondary-color);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content .sub-title {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-content .english-slogan {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-2xl);
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   8. SECTIONS - GENERAL STYLES
   ============================================================ */
section {
    padding: 80px var(--spacing-md);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
}

.intro-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.9;
    color: var(--text-gray);
}

/* ============================================================
   9. SOCIAL MEDIA FLOATING MENU - ENHANCED DESIGN
   ============================================================ */

/* Stunning Glow & Pulse Animations */
@keyframes socialGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.7),
                    0 12px 32px rgba(106, 13, 173, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(106, 13, 173, 0),
                    0 12px 32px rgba(106, 13, 173, 0.5);
    }
}

@keyframes socialFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes socialSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes socialButtonGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.4),
                    0 10px 28px rgba(106, 13, 173, 0.22);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(106, 13, 173, 0),
                    0 12px 32px rgba(106, 13, 173, 0.28);
    }
}

/* Continuous lightning effect for social button */
@keyframes socialLightning {
    0%, 100% {
        background: linear-gradient(135deg, rgba(106, 13, 173, 0.7) 0%, rgba(93, 12, 160, 0.65) 100%);
        box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.5),
                    0 10px 28px rgba(106, 13, 173, 0.22),
                    inset -2px -2px 6px rgba(0, 0, 0, 0.12),
                    inset 2px 2px 6px rgba(255, 255, 255, 0.14);
    }
    20% {
        background: linear-gradient(135deg, rgba(106, 13, 173, 0.85) 0%, rgba(93, 12, 160, 0.75) 100%);
        box-shadow: 0 0 24px rgba(224, 176, 255, 0.35),
                    0 12px 36px rgba(106, 13, 173, 0.35),
                    inset -2px -2px 8px rgba(0, 0, 0, 0.15),
                    inset 2px 2px 8px rgba(255, 255, 255, 0.16);
    }
    40% {
        background: linear-gradient(135deg, rgba(106, 13, 173, 0.72) 0%, rgba(93, 12, 160, 0.68) 100%);
        box-shadow: 0 0 16px rgba(224, 176, 255, 0.25),
                    0 11px 32px rgba(106, 13, 173, 0.26),
                    inset -2px -2px 6px rgba(0, 0, 0, 0.12),
                    inset 2px 2px 6px rgba(255, 255, 255, 0.14);
    }
    60% {
        background: linear-gradient(135deg, rgba(224, 176, 255, 0.2) 0%, rgba(156, 39, 176, 0.15) 100%),
                    linear-gradient(135deg, rgba(106, 13, 173, 0.7) 0%, rgba(93, 12, 160, 0.65) 100%);
        box-shadow: 0 0 32px rgba(224, 176, 255, 0.5),
                    0 14px 40px rgba(106, 13, 173, 0.38),
                    inset -2px -2px 8px rgba(0, 0, 0, 0.1),
                    inset 2px 2px 8px rgba(255, 255, 255, 0.16);
    }
    80% {
        background: linear-gradient(135deg, rgba(106, 13, 173, 0.75) 0%, rgba(93, 12, 160, 0.67) 100%);
        box-shadow: 0 0 20px rgba(224, 176, 255, 0.32),
                    0 12px 32px rgba(106, 13, 173, 0.28),
                    inset -2px -2px 6px rgba(0, 0, 0, 0.12),
                    inset 2px 2px 6px rgba(255, 255, 255, 0.14);
    }
}

@keyframes ringPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.7),
                    0 12px 32px rgba(106, 13, 173, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(106, 13, 173, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 13, 173, 0),
                    0 12px 32px rgba(106, 13, 173, 0.4);
    }
}

@keyframes shine {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.social-menu-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.7) 0%, rgba(93, 12, 160, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    touch-action: manipulation;
    pointer-events: auto !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    color: var(--text-light);
    backdrop-filter: blur(10px) saturate(130%);
    box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.5),
                0 10px 28px rgba(106, 13, 173, 0.22),
                inset -2px -2px 6px rgba(0, 0, 0, 0.12),
                inset 2px 2px 6px rgba(255, 255, 255, 0.14);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Continuous lightning effect */
    animation: socialLightning 3.5s ease-in-out infinite,
               socialFloat 3s ease-in-out infinite;
    font-weight: bold;
}

.social-menu-toggle i {
    pointer-events: none;
    position: relative;
    z-index: 2;
}

.social-menu-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid rgba(224, 176, 255, 0.5);
    border-right: 2px solid rgba(224, 176, 255, 0.3);
    animation: socialSpin 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.social-menu-toggle:hover {
    transform: scale(1.12);
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.8) 0%, rgba(93, 12, 160, 0.74) 100%);
    box-shadow: 0 0 30px rgba(106, 13, 173, 0.4),
                0 14px 36px rgba(106, 13, 173, 0.28),
                0 0 24px rgba(106, 13, 173, 0.18),
                inset -3px -3px 8px rgba(0, 0, 0, 0.15),
                inset 3px 3px 8px rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    animation: ringPulse 1.5s ease-out;
}

.social-menu-toggle:active {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(106, 13, 173, 0.8),
                0 15px 40px rgba(106, 13, 173, 0.5),
                inset -3px -3px 8px rgba(0, 0, 0, 0.3),
                inset 3px 3px 8px rgba(255, 255, 255, 0.15);
}

/* Accessible focus and reduced-motion handling for social toggle */
.social-menu-toggle:focus-visible {
    outline: 3px solid rgba(106,13,173,0.22);
    outline-offset: 4px;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 10px 30px rgba(106,13,173,0.28), 0 0 0 6px rgba(106,13,173,0.06);
}

/* Ensure keyboard users can see focus (button element already focusable) */
.social-menu-toggle[aria-expanded="true"] {
    transform: rotate(45deg) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .social-menu-toggle,
    .social-menu-toggle::before,
    .social-menu-toggle:hover {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes socialButtonPress {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(0, -12px) scale(1.08);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes menuCloseSmooth {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
    }
}

@keyframes linkScaleOut {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0) translateY(10px);
        opacity: 0;
    }
}

.social-menu-toggle.open {
    transform: rotate(45deg) scale(1.1);
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.82) 0%, rgba(74, 10, 136, 0.76) 100%);
    box-shadow: 0 0 40px rgba(106, 13, 173, 0.32),
                0 14px 36px rgba(106, 13, 173, 0.24),
                0 0 28px rgba(106, 13, 173, 0.16),
                inset -3px -3px 8px rgba(0, 0, 0, 0.15),
                inset 3px 3px 8px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    animation: socialLightning 3.5s ease-in-out infinite,
               socialFloat 3s ease-in-out infinite,
               socialButtonPress 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Social Menu */
.social-menu {
    position: fixed;
    bottom: 95px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-menu.open {
    opacity: 1;
    visibility: visible;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
                inset -1px -1px 3px rgba(0, 0, 0, 0.15),
                inset 1px 1px 3px rgba(255, 255, 255, 0.12);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0);
    transform-origin: bottom center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-menu.open .social-link {
    transform: scale(1);
}

.social-link:nth-child(1) {
    transition-delay: 0.05s;
}

.social-link:nth-child(2) {
    transition-delay: 0.1s;
}

.social-link:nth-child(3) {
    transition-delay: 0.15s;
}

.social-link:nth-child(4) {
    transition-delay: 0.2s;
}

.social-link:hover {
    transform: scale(1.18) translateY(-8px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28),
                0 0 20px rgba(0, 0, 0, 0.12),
                inset -2px -2px 6px rgba(0, 0, 0, 0.2),
                inset 2px 2px 6px rgba(255, 255, 255, 0.12);
    animation: socialPulseCustom 1s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-link:hover::after {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}


/* Brand Colors for Social Links - Ultra Premium Design */

/* WhatsApp - Green Premium */
.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 50%, #128c7e 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3),
                inset 0 1px 3px rgba(255, 255, 255, 0.4),
                inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp::after {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.whatsapp:hover {
    background: linear-gradient(135deg, #20ba5a 0%, #1da851 50%, #0a7b6e 100%);
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.5),
                0 0 30px rgba(37, 211, 102, 0.3),
                inset 0 1px 3px rgba(255, 255, 255, 0.5),
                inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.whatsapp:active {
    transform: scale(0.95);
}

/* Instagram - Gradient Premium */
.instagram {
    background: linear-gradient(135deg, #f7a621 0%, #d62976 50%, #9c4dff 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(214, 41, 118, 0.3),
                inset 0 1px 3px rgba(255, 255, 255, 0.4),
                inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.instagram::after {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.instagram:hover {
    background: linear-gradient(135deg, #f59a1a 0%, #c41d66 50%, #8b3dff 100%);
    box-shadow: 0 20px 50px rgba(214, 41, 118, 0.5),
                0 0 40px rgba(214, 41, 118, 0.4),
                inset 0 1px 3px rgba(255, 255, 255, 0.5),
                inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    filter: brightness(1.15) saturate(1.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instagram:active {
    transform: scale(0.95);
}

/* TikTok - Dark Premium */
.tiktok {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #25252d 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5),
                inset 0 1px 2px rgba(255, 255, 255, 0.1),
                inset 0 -2px 5px rgba(0, 0, 0, 0.4);
    position: relative;
}

.tiktok::after {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.tiktok:hover {
    background: linear-gradient(135deg, #0d0d0d 0%, #1f1f27 50%, #2a2a38 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(255, 255, 255, 0.1),
                inset 0 1px 2px rgba(255, 255, 255, 0.15),
                inset 0 -2px 8px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tiktok:active {
    transform: scale(0.95);
}

/* Facebook - Blue Premium */
.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0a66c2 50%, #0052cc 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3),
                inset 0 1px 3px rgba(255, 255, 255, 0.4),
                inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.facebook::after {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.facebook:hover {
    background: linear-gradient(135deg, #0d5fd3 0%, #0952b8 50%, #003d99 100%);
    box-shadow: 0 20px 50px rgba(24, 119, 242, 0.5),
                0 0 35px rgba(24, 119, 242, 0.3),
                inset 0 1px 3px rgba(255, 255, 255, 0.5),
                inset 0 -2px 8px rgba(0, 0, 0, 0.3);
    filter: brightness(1.12);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.facebook:active {
    transform: scale(0.95);
}

.social-link i {
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}

/* Social Menu Tooltip - Enhanced */
.social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 85px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: 10px 16px;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(106, 13, 173, 0.3);
    letter-spacing: 0.5px;
    transform: translateX(10px);
}

.social-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   10. CARDS & GRIDS
   ============================================================ */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-content {
    padding: var(--spacing-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(224, 176, 255, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
    color: var(--primary-color);
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2d2d4a 100%);
    color: var(--text-light);
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-lg);
}

.footer a {
    color: var(--secondary-color);
}

.footer a:hover {
    color: var(--text-light);
}

/* ============================================================
   12. RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-light);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .social-menu-toggle {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        bottom: 20px;
        left: 20px;
        animation: socialGlow 2.5s ease-in-out infinite,
                   socialFloat 3s ease-in-out infinite;
    }

    .social-menu-toggle::before {
        border-top: 2px solid rgba(224, 176, 255, 0.4);
        border-right: 2px solid rgba(224, 176, 255, 0.2);
    }

    .social-menu {
        bottom: 85px;
        left: 20px;
        gap: 12px;
    }

    .social-link {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .social-link::before {
        right: 65px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    section {
        padding: 60px var(--spacing-md);
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-content .sub-title {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .social-menu-toggle {
        width: 48px;
        height: 48px;
    }

    section {
        padding: 50px var(--spacing-md);
    }
}

/* ============================================================
   13. ANIMATIONS & TRANSITIONS
   ============================================================ */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease;
}

/* ============================================================
   14. PREMIUM ANIMATION SUITE - Luxury & Professional Effects
   ============================================================ */

/* Hero section premium entrance and parallax effects */
.hero h1 {
    animation: heroTitleReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards !important;
}

.hero .sub-title {
    animation: heroSubReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

.hero .english-slogan {
    animation: heroSloganReveal 0.75s ease-out 0.5s backwards;
}

.hero-actions {
    animation: heroActionsReveal 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s backwards;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroSubReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSloganReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroActionsReveal {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Floating subtle animation for cards and elements */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Enhanced card entrance animation */
.card {
    animation: cardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

/* Number counter animation */
@keyframes countUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.count-number {
    animation: countUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Checkmark animation for feature lists */
@keyframes checkmarkBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

li i.fas.fa-check-circle {
    animation: checkmarkBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

li:nth-child(1) i { animation-delay: 0.05s; }
li:nth-child(2) i { animation-delay: 0.1s; }
li:nth-child(3) i { animation-delay: 0.15s; }
li:nth-child(4) i { animation-delay: 0.2s; }
li:nth-child(5) i { animation-delay: 0.25s; }
li:nth-child(6) i { animation-delay: 0.3s; }

/* Image zoom and fade entrance */
@keyframes imageZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

img[loading="lazy"] {
    animation: imageZoomIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Section title underline animation */
.section-title::after {
    animation: underlineExpand 0.8s ease-out forwards;
    transform-origin: left;
}

@keyframes underlineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

/* Premium button wave effect on click */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: inherit;
    pointer-events: none;
    animation: buttonWave 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes buttonWave {
    0% {
        transform: translateX(-100%);
        opacity: 0.6;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Smooth page progress bar */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 10000;
    transition: width 0.3s ease;
}

/* Reduce motion respect for all animations */
@media (prefers-reduced-motion: reduce) {
    .hero h1,
    .hero .sub-title,
    .hero .english-slogan,
    .hero-actions,
    .card,
    .count-number,
    li i.fas.fa-check-circle,
    img[loading="lazy"],
    .btn-primary::after,
    body::before {
        animation: none !important;
    }
}

/* Mobile optimization for heavy animations */
@media (max-width: 768px) {
    .hero h1 {
        animation-duration: 0.7s;
    }
    
    .card {
        animation-duration: 0.5s;
    }
    
    body::before {
        height: 2px;
    }
}

/* ============================================================
   15. UTILITY HELPERS
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid-auto { display: grid; }

/* ============================================================
   END OF CSS - Professional, Modern & Elegant
   ============================================================ */

/* ============================================================
   MENU OVERRIDES - Luxury & Modern Nav (overrides earlier rules)
   - Uses more specific selectors so these rules win without editing HTML
   ============================================================ */
.header .navbar .nav-links {
    gap: var(--spacing-md);
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.50), rgba(255,255,255,0.32));
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(26,26,46,0.06);
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    overflow: visible;
}

.header .navbar .nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--text-dark);
    font-weight: 700;
    transition: all var(--transition-normal);
}

.header .navbar .nav-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-dark);
    background: linear-gradient(90deg, rgba(106,13,173,0.06), rgba(224,176,255,0.03));
}

.header .navbar .nav-links a::after { bottom: -8px; height: 4px; border-radius: 6px; }

/* Hamburger: use <i> pseudo-lines so we don't have to change HTML */
.header .navbar .hamburger-menu {
    display: none; /* desktop hidden; shown on small screens via media queries */
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    border-radius: 12px;
    padding: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.40));
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}

.header .navbar .hamburger-menu i {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header .navbar .hamburger-menu i::before,
.header .navbar .hamburger-menu i::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.header .navbar .hamburger-menu i::before { top: -8px; }
.header .navbar .hamburger-menu i::after { top: 8px; }

.header .navbar .hamburger-menu:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.header .navbar .hamburger-menu.active { background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)); color: var(--text-light); }
.header .navbar .hamburger-menu.active i { background: transparent; }
.header .navbar .hamburger-menu.active i::before { transform: translateY(8px) rotate(45deg); background: var(--text-light); }
.header .navbar .hamburger-menu.active i::after { transform: translateY(-8px) rotate(-45deg); background: var(--text-light); }

/* Mobile: ensure nav appears with a soft slide */
@media (max-width: 768px) {
    .header .navbar .hamburger-menu { 
        display: flex; 
    }
    
    .header .navbar .nav-links {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 8px;
        right: 8px;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        border-radius: 12px;
        box-shadow: 0 14px 40px rgba(26,26,46,0.12);
        opacity: 0;
        transform: translateY(-10px);
        transition: transform 0.36s cubic-bezier(.2,.9,.2,1), opacity 0.28s ease;
        z-index: 998;
        visibility: hidden;
        width: calc(100% - 16px);
    }

    .header .navbar .nav-links.active { 
        display: flex !important; 
        opacity: 1; 
        transform: translateY(0);
        visibility: visible;
    }
}

/* ============================================================
   MENU STYLING - Clean & Elegant (No Dropdowns)
   ============================================================ */

.header .navbar .nav-links {
    gap: var(--spacing-md);
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.50), rgba(255,255,255,0.32));
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(26,26,46,0.06);
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    overflow: visible;
}

.header .navbar .nav-links li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .navbar .nav-links a {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.header .navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width var(--transition-normal);
}

.header .navbar .nav-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-dark);
    background: linear-gradient(90deg, rgba(106,13,173,0.08), rgba(224,176,255,0.04));
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.1);
}

.header .navbar .nav-links a:hover::after,
.header .navbar .nav-links a.active::after {
    width: 60%;
}

.header .navbar .nav-links a.active {
    color: var(--primary-dark);
}

/* Hamburger button styling */
.header .navbar .hamburger-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    border-radius: 12px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.08), rgba(224, 176, 255, 0.05));
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.08);
    transition: all var(--transition-normal);
    cursor: pointer;
    z-index: 1100;
    border: 1px solid rgba(106, 13, 173, 0.1);
}

.header .navbar .hamburger-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.15);
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.12), rgba(224, 176, 255, 0.08));
}

.header .navbar .hamburger-menu i {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.header .navbar .hamburger-menu i::before,
.header .navbar .hamburger-menu i::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.header .navbar .hamburger-menu i::before { 
    top: -8px; 
}

.header .navbar .hamburger-menu i::after { 
    top: 8px; 
}

.header .navbar .hamburger-menu.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 8px 24px rgba(106, 13, 173, 0.25);
    border-color: var(--primary-color);
}

.header .navbar .hamburger-menu.active i {
    background: transparent;
}

.header .navbar .hamburger-menu.active i::before {
    transform: translateY(8px) rotate(45deg);
    background: var(--text-light);
}

.header .navbar .hamburger-menu.active i::after {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--text-light);
}

@media (max-width: 768px) {
    .header .navbar .hamburger-menu {
        display: flex;
    }

    .header .navbar .nav-links {
        display: none !important;
        position: fixed;
        top: 80px;
        left: 8px;
        right: 8px;
        background: linear-gradient(135deg, 
            var(--bg-white) 0%, 
            rgba(250, 251, 255, 0.98) 100%);
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        border-radius: 18px;
        box-shadow: 0 25px 70px rgba(26, 26, 46, 0.16), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(226, 232, 240, 0.7);
        opacity: 0;
        transform: translateY(-15px) scale(0.94);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 0.4s ease-out,
                    visibility 0.4s ease-out;
        z-index: 998;
        visibility: hidden;
        width: calc(100% - 16px);
        backdrop-filter: blur(12px);
    }

    .header .navbar .nav-links li {
        margin: 0;
        list-style: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header .navbar .nav-links li:last-child {
        border-bottom: none;
    }

    .header .navbar .nav-links li:hover {
        background: linear-gradient(90deg, 
            rgba(106, 13, 173, 0.05) 0%, 
            rgba(224, 176, 255, 0.03) 100%);
    }

    .header .navbar .nav-links a {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 18px 24px;
        color: var(--text-dark);
        font-weight: 700;
        font-size: 1.08rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        letter-spacing: 0.5px;
        text-decoration: none;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(106, 13, 173, 0.02) 100%);
    }

    .header .navbar .nav-links a::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) scaleX(1);
        transform-origin: right;
        width: 5px;
        height: 32px;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        border-radius: 3px 0 0 3px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 8px 16px rgba(106, 13, 173, 0.2);
        opacity: 0.9;
    }

    .header .navbar .nav-links a {
        color: var(--text-dark);
        padding-right: 32px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(106, 13, 173, 0.02) 100%);
    }

    .header .navbar .nav-links a:hover {
        color: var(--primary-color);
        text-shadow: 0 2px 8px rgba(106, 13, 173, 0.12);
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(106, 13, 173, 0.06) 100%);
    }

    .header .navbar .nav-links a:hover::before {
        box-shadow: -4px 12px 24px rgba(106, 13, 173, 0.25);
        opacity: 1;
    }

    .header .navbar .nav-links a::after {
        display: none;
    }

    .header .navbar .nav-links.active {
        display: flex !important;
        opacity: 1;
        transform: translateY(0) scale(1);
        visibility: visible;
        animation: slideDownSmooth 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes slideDownSmooth {
        from { 
            opacity: 0; 
            transform: translateY(-20px) scale(0.92);
        }
        to { 
            opacity: 1; 
            transform: translateY(0) scale(1);
        }
    }
}

@media (max-width: 480px) {
    .header .navbar .nav-links {
        gap: 0;
    }

    .header .navbar .nav-links a {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* END MENU STYLING */

/* ============================================================
   LTR (ENGLISH) LAYOUT OVERRIDES
   ============================================================ */


/* Desktop: logo on the left, nav on the right */
html[dir="ltr"] .header .container {
    flex-direction: row; /* normal left-to-right flow */
}

html[dir="ltr"] .logo {
    order: 1;
    margin-right: auto; /* push nav to the right */
    margin-left: 0;
    z-index: 1160;
}

html[dir="ltr"] .navbar {
    order: 2;
}

/* Ensure navbar layout stays correct */
html[dir="ltr"] .header .container .navbar {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Mobile fixes: avoid logo sticking to hamburger and prevent overlap */
@media (max-width: 992px) {
    html[dir="ltr"] .header .container {
        flex-direction: row; /* keep logo & hamburger inline */
        align-items: center;
        justify-content: space-between;
    }

    html[dir="ltr"] .logo {
        order: 1;
        margin-right: 12px;
    }

    /* keep hamburger visually separate and on the right */
    html[dir="ltr"] .hamburger-menu {
        order: 2;
        margin-left: auto;
        margin-right: 12px;
        z-index: 1200;
    }

    /* mobile dropdown should align to the right side for LTR */
    html[dir="ltr"] .navbar .nav-links {
        left: auto !important;
        right: 8px !important;
    }

    html[dir="ltr"] .navbar .nav-links.active {
        left: auto !important;
        right: 8px !important;
    }
}

/* --- GLOBAL MOBILE FIXES (apply to both Arabic and English pages) --- */
@media (max-width: 992px) {
    /* Make header opaque on small screens so logo doesn't visually sit on hero */
    .header {
        background: rgba(255, 255, 255, 0.581) !important;
        backdrop-filter: none !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.123) !important;
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    /* Ensure header takes space above hero (avoid hero sliding underneath) */
    .header + .hero,
    header + .hero {
        margin-top: 12px !important;
        padding-top: 18px !important;
    }

    /* Neutralize any hero negative margins that could pull it up under the header */
    .hero {
        margin-top: 0 !important;
        padding-top: calc(var(--spacing-md) + 8px) !important;
    }

    /* Prevent logo and hamburger from growing or sticking together */
    .header .container .logo,
    .header .container .hamburger-menu {
        flex: 0 0 auto !important;
    }

    /* Give fixed spacing around logo and hamburger so they don't overlap */
    .logo { margin: 0 12px !important; }
    .hamburger-menu { margin: 0 12px !important; z-index:1300 !important; }

    /* Make mobile-nav align correctly and not full-width oddity */
    .navbar .nav-links {
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
        min-width: calc(100% - 32px) !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    .logo img { height: 50px !important; }
    .hamburger-menu { margin-right: 10px !important; margin-left: 10px !important; }
}

/* ============================================================
   LANGUAGE PILL POSITIONING & MIRRORING (New overrides)
   Ensure the language pill sits exactly opposite the social button
   on mobile (and desktop). Add premium shimmer, sparkle, and
   a stronger glow so it visually matches the social button.
   Changes are confined to this stylesheet to avoid HTML edits.
   ============================================================ */
.lang-float { 
    position: fixed;
    /* sensible defaults (will be overridden by sibling rules) */
    bottom: 30px;
    right: 110px;
    z-index: 10001;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 8px 14px;
    color: var(--text-light);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.2,.9,.3,1);
    /* Premium transparent gradient matching social button */
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.65) 0%, rgba(93, 12, 160, 0.58) 100%);
    backdrop-filter: blur(10px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(106, 13, 173, 0.25),
                inset -2px -2px 6px rgba(0, 0, 0, 0.1),
                inset 2px 2px 6px rgba(255, 255, 255, 0.12);
    overflow: hidden;
    /* Gentle float animation only */
    animation: subtleFloat 6s ease-in-out infinite;
}/* mirror exactly: when social button is present (left), place pill at matching right offset */
.social-menu-toggle ~ .lang-float { right: 30px; left: auto; bottom: 30px; }

/* when social menu is on the right (has .right), place pill on left */
.social-menu-toggle.right ~ .lang-float { left: 30px; right: auto; bottom: 30px; }

/* Dot and label */
.lang-float .lang-dot { 
    width: 36px; 
    height: 36px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2),
                inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}
.lang-float .lang-label { 
    color: var(--text-light); 
    margin-left: 6px; 
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Shimmer (moving sheen) and sparkle animations */
@keyframes pillShimmer {
    0% { transform: translateX(-120%) skewX(-12deg); opacity: 0.0; }
    40% { transform: translateX(-30%) skewX(-6deg); opacity: 0.6; }
    100% { transform: translateX(120%) skewX(0deg); opacity: 0; }
}

@keyframes sparklePop {
    0% { transform: scale(0.2) translateY(2px); opacity: 0; }
    50% { transform: scale(1.1) translateY(-8px); opacity: 1; }
    100% { transform: scale(1.3) translateY(-14px); opacity: 0; }
}

.lang-float::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -40%;
    width: 60%;
    height: 140%;
    background: linear-gradient(120deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0.02) 60%, rgba(255,255,255,0.0) 100%);
    transform: rotate(-18deg);
    filter: blur(8px);
    opacity: 0;
    pointer-events: none;
}

/* ephemeral moving sheen (runs on hover and every few seconds subtly) */
.lang-float:hover::before { animation: pillShimmer 1.1s ease forwards; opacity: 1; }
.lang-float.pulse-shimmer::before { animation: pillShimmer 1.6s ease forwards; opacity: 0.9; }

/* small animated sparkle near the dot for premium effect */
.lang-float .sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    right: 16px;
    top: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, rgba(255, 255, 255, 0.7) 25%, rgba(156, 39, 176, 0.5) 60%, rgba(156, 39, 176, 0) 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
                0 0 16px rgba(224, 176, 255, 0.4);
    transform: scale(0.2);
    opacity: 0;
    pointer-events: none;
}

.lang-float:hover .sparkle { animation: sparklePop 800ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

.lang-float .lang-dot svg { filter: drop-shadow(0 6px 18px rgba(0,0,0,0.26)); }

/* stronger hover glow to pair with the social button */
.lang-float:hover {
    transform: translateY(-4px) scale(1.04);
    background: linear-gradient(135deg, rgba(106, 13, 173, 0.75) 0%, rgba(93, 12, 160, 0.68) 100%);
    box-shadow: 0 16px 40px rgba(106, 13, 173, 0.35),
                0 0 30px rgba(106, 13, 173, 0.20),
                inset -3px -3px 8px rgba(0, 0, 0, 0.15),
                inset 3px 3px 8px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Accessibility: visible focus ring and keyboard interactions for language pill */
.lang-float:focus-visible,
.lang-float:focus {
    outline: 3px solid rgba(156,39,176,0.18);
    outline-offset: 4px;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 18px 44px rgba(106,13,173,0.32), 0 0 8px rgba(156,39,176,0.08);
}

.lang-float:active {
    transform: translateY(-2px) scale(1.02);
}

/* Respect reduced motion for shimmer/sparkle */
@media (prefers-reduced-motion: reduce) {
    .lang-float,
    .lang-float::before,
    .lang-float .sparkle {
        animation: none !important;
        transition: none !important;
    }
}

/* Mobile: reduce size and adjust spacing */
@media (max-width: 768px) {
    .lang-float { 
        height: 50px; 
        padding: 6px 12px; 
        font-size: 0.9rem;
        animation: subtleFloat 4.5s ease-in-out infinite;
    }
    .lang-float .lang-dot { width: 34px; height: 34px; }
    .lang-float .sparkle { right: 12px; top: 5px; width: 10px; height: 10px; }
    .lang-menu { bottom: 64px; }

    .social-menu-toggle { 
        bottom: 20px; 
        left: 20px;
        animation: socialLightning 2.8s ease-in-out infinite,
                   socialFloat 2.5s ease-in-out infinite,
                   socialPulseStrong 2s ease-in-out infinite 1.2s;
    }
    .social-menu-toggle.right { right: 20px; left: auto; }
    .social-menu-toggle ~ .lang-float { right: 20px; bottom: 20px; }
    .social-menu-toggle.right ~ .lang-float { left: 20px; bottom: 20px; }
    
    /* Enhanced mobile button press feedback */
    @keyframes mobileButtonPulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.5),
                        0 10px 28px rgba(106, 13, 173, 0.22);
            transform: scale(1);
        }
        50% {
            box-shadow: 0 0 0 12px rgba(106, 13, 173, 0),
                        0 10px 28px rgba(106, 13, 173, 0.28);
            transform: scale(1.02);
        }
    }
    
    /* Enhanced mobile pill pulse */
    @keyframes mobilePillPulse {
        0%, 100% {
            box-shadow: 0 8px 24px rgba(106, 13, 173, 0.25),
                        inset -2px -2px 6px rgba(0, 0, 0, 0.1),
                        inset 2px 2px 6px rgba(255, 255, 255, 0.12);
        }
        50% {
            box-shadow: 0 12px 32px rgba(106, 13, 173, 0.38),
                        0 0 24px rgba(106, 13, 173, 0.18),
                        inset -2px -2px 6px rgba(0, 0, 0, 0.1),
                        inset 2px 2px 6px rgba(255, 255, 255, 0.12);
        }
    }
    
    /* Stronger lightning pulse for mobile */
    @keyframes socialPulseStrong {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(106, 13, 173, 0.5),
                        0 10px 28px rgba(106, 13, 173, 0.22);
        }
        50% {
            box-shadow: 0 0 28px rgba(224, 176, 255, 0.6),
                        0 0 40px rgba(106, 13, 173, 0.5);
        }
    }
}

/* Accessibility & menu styling */
.lang-menu { 
    border-radius: 14px; 
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 251, 255, 0.92) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12),
                0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.lang-option { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 14px 16px;
    transition: all 0.2s ease;
}
.lang-option:hover {
    background: linear-gradient(90deg, rgba(106, 13, 173, 0.08) 0%, rgba(224, 176, 255, 0.05) 100%);
}
.lang-option.active { 
    background: linear-gradient(90deg, rgba(106, 13, 173, 0.12) 0%, rgba(224, 176, 255, 0.08) 100%);
    border-left: 3px solid var(--primary-color);
    padding-left: 13px;
}
.lang-option .opt-label { 
    font-weight: 700; 
    color: var(--text-dark);
}

/* Smooth open animation */
.lang-menu { transform: translateY(6px) scale(0.98); transition: transform 180ms cubic-bezier(.2,.9,.3,1), opacity 160ms ease; }
.lang-menu.open { transform: translateY(0) scale(1); opacity: 1; }

/* Focus outline for accessibility */
.lang-float:focus, .lang-float:focus-visible { outline: 3px solid rgba(106,13,173,0.18); outline-offset: 4px; }
.lang-option:focus { outline: 2px solid rgba(106,13,173,0.14); outline-offset: 4px; }

@keyframes subtleFloat {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.005); }
}

@keyframes langGlow {
    0%,100% { box-shadow: 0 8px 24px rgba(106, 13, 173, 0.25),
                          inset -2px -2px 6px rgba(0, 0, 0, 0.1),
                          inset 2px 2px 6px rgba(255, 255, 255, 0.12); }
    50% { box-shadow: 0 12px 32px rgba(106, 13, 173, 0.32),
                      0 0 20px rgba(106, 13, 173, 0.15),
                      inset -2px -2px 6px rgba(0, 0, 0, 0.1),
                      inset 2px 2px 6px rgba(255, 255, 255, 0.12); }
}

/* ============================================================
   HERO BUTTONS - PREMIUM LIGHTNING EFFECTS
   Enhanced "Watch Video" and "Get Started" buttons
   ============================================================ */

@keyframes buttonLightningFlash {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(106, 13, 173, 0.2);
    }
    25% {
        box-shadow: 0 8px 24px rgba(224, 176, 255, 0.35),
                    0 0 16px rgba(224, 176, 255, 0.25);
    }
    50% {
        box-shadow: 0 12px 32px rgba(106, 13, 173, 0.35),
                    0 0 20px rgba(224, 176, 255, 0.3),
                    0 0 8px rgba(224, 176, 255, 0.4);
    }
    75% {
        box-shadow: 0 8px 20px rgba(106, 13, 173, 0.25),
                    0 0 12px rgba(224, 176, 255, 0.2);
    }
}

@keyframes buttonGlowPulse {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 4px 8px rgba(106, 13, 173, 0.15));
    }
    50% {
        filter: brightness(1.05) drop-shadow(0 8px 20px rgba(224, 176, 255, 0.3));
    }
}

/* Apply to watch video button */
.watch-video-button {
    animation: buttonLightningFlash 3.5s ease-in-out infinite,
               buttonGlowPulse 2.8s ease-in-out infinite 0.5s;
    position: relative;
    overflow: hidden;
}

.watch-video-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(224, 176, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    animation: buttonLightningFlash 3.5s ease-in-out infinite;
    pointer-events: none;
}

/* Apply to start button */
.start-button {
    animation: buttonLightningFlash 3.8s ease-in-out infinite 0.3s,
               buttonGlowPulse 3s ease-in-out infinite 0.8s;
    position: relative;
    overflow: hidden;
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(224, 176, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    animation: buttonLightningFlash 3.8s ease-in-out infinite 0.3s;
    pointer-events: none;
}

@media (max-width: 768px) {
    .watch-video-button {
        animation: buttonLightningFlash 2.8s ease-in-out infinite,
                   buttonGlowPulse 2.2s ease-in-out infinite 0.4s;
    }
    
    .start-button {
        animation: buttonLightningFlash 3s ease-in-out infinite 0.25s,
                   buttonGlowPulse 2.4s ease-in-out infinite 0.6s;
    }
}



