/* ================================================
   REELEX PREMIUM FRONTEND DESIGN SYSTEM
   Modern, Animated, Premium UI
   ================================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================
   CSS CUSTOM PROPERTIES (Variables)
   ================================================ */

:root {
    /* Primary Colors - Unified Brand Colors */
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-700) 100%);
    --primary-gradient-hover: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-color) 100%);
    --primary-start: var(--primary-color);
    --primary-end: var(--primary-700);
    --primary-rgb: 46, 49, 146; /* Matching #2e3192 */
    --accent-rgb: 243, 156, 18; /* Matching #f39c12 */

    /* Secondary Colors - System Secondary */
    --secondary-gradient: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-700) 100%);
    --secondary-start: var(--secondary-color);
    --secondary-end: var(--secondary-700);

    /* Accent Colors - System Accent */
    --accent-gradient: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-700) 100%);
    --accent-start: var(--accent-color);
    --accent-end: var(--accent-700);

    /* Success/Warning/Danger */
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);

    /* Neutral Colors */
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-900: #1f2937;
    --gray-800: #374151;
    --gray-700: #4b5563;
    --gray-600: #6b7280;
    --gray-500: #9ca3af;
    --gray-400: #d1d5db;
    --gray-300: #e5e7eb;
    --gray-200: #f3f4f6;
    --gray-100: #f9fafb;
    --white: #ffffff;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);
    --shadow-glow-secondary: 0 0 40px rgba(245, 87, 108, 0.4);

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

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography */
    --font-arabic: 'Cairo', sans-serif;
    --font-latin: 'Inter', sans-serif;

    /* Layout */
    --header-height: 80px;
    --container-max: 1400px;
    --section-padding: 100px;
}

/* ================================================
   GLOBAL RESET & BASE STYLES
   ================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-latin);
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
}

/* ================================================
   FLOATING PARTICLES ANIMATION
   ================================================ */

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 25%; animation-delay: 2s; }
.particle:nth-child(3) { width: 100px; height: 100px; left: 40%; animation-delay: 4s; }
.particle:nth-child(4) { width: 40px; height: 40px; left: 55%; animation-delay: 6s; }
.particle:nth-child(5) { width: 70px; height: 70px; left: 70%; animation-delay: 8s; }
.particle:nth-child(6) { width: 50px; height: 50px; left: 85%; animation-delay: 10s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ================================================
   PREMIUM ANIMATIONS
   ================================================ */

/* Fade Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Glow Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Rotate Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Shine Animation */
@keyframes shine {
    0% { left: -100%; transition: all 0.5s ease-in; }
    100% { left: 100%; transition: all 0.5s ease-in; }
}

/* Morph Animation for background shapes */
@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Modern Section Badge */
.section-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    backdrop-filter: blur(5px);
}

/* Section Title Refinement */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* ================================================
   BOXED WRAPPER
   ================================================ */

.boxed-wrapper {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
}

/* ================================================
   PREMIUM HEADER
   ================================================ */

.frontend-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

/* Top Bar */
.header-topbar {
    background: var(--primary-color);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

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

.topbar-contact {
    display: flex;
    gap: 25px;
}

.topbar-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
}

.topbar-contact a:hover {
    color: var(--white);
}

.topbar-contact i {
    color: var(--accent-start);
}

.topbar-social {
    display: flex;
    gap: 15px;
}

.topbar-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.topbar-social a:hover {
    background: var(--accent-gradient);
    transform: translateY(-3px) scale(1.1);
    color: var(--white);
}

/* Main Navbar */
.header-navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
    transition: all var(--transition-normal);
}

.frontend-header.sticky .header-logo-bar {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border: none;
    pointer-events: none;
    overflow: hidden;
}

/* Sticky State wrapper style */
.frontend-header.sticky {
    background: rgba(255, 255, 255, 0.0); /* Keep wrapper transparent, let children handle bg */
}

/* Navbar specific sticky style */
.frontend-header.sticky .header-navbar {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Softer shadow */
    background: rgba(var(--primary-rgb), 0.95); /* Primary color with slight transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 45px;
    transition: transform var(--transition-fast);
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Navigation */
.navbar-menu {
    display: flex;
    align-items: center;
}

.main-nav {
    list-style: none;
    display: flex;
    gap: 35px;
}

.main-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: all var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-start);
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Navbar Right */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.navbar-btn.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.navbar-btn.btn-outline:hover {
    border-color: var(--primary-start);
    color: var(--primary-start);
}

.navbar-btn.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
}

.navbar-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.lang-switcher-btn:hover {
    background: var(--gray-200);
}

/* News Ticker */
.topbar-ticker {
    flex: 1;
    margin: 0 100px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px 0;
}

/* Professional Edge Fade */
.topbar-ticker::before,
.topbar-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.topbar-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.topbar-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-color), transparent);
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 60s linear infinite; /* Slower, more professional speed */
}

.ticker-item {
    display: inline-block;
    padding: 0 20px;
    color: var(--white);
}

.ticker-item a {
    color: var(--accent-start);
    text-decoration: none;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Logo & Ad Bar */
/* Logo & Ad Bar */
.header-logo-bar {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
    /* Specific transitions for smoother effect */
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-out,
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-bottom-color 0.3s ease;
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    will-change: max-height, opacity, padding;
}

.mobile-navbar-logo {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.frontend-header.sticky .mobile-navbar-logo {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-right: 25px;
}

[dir="rtl"] .frontend-header.sticky .mobile-navbar-logo {
    margin-right: 0;
    margin-left: 25px;
}

.navbar-mobile-actions {
    display: none;
}

.frontend-header.sticky .header-logo-bar {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    border-bottom-color: transparent; /* Smooth fade for border */
    pointer-events: none;
}

.logo-bar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-ad-space {
    width: 728px;
    height: 90px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.header-ad-space .ad-container {
    position: relative;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-50);
}

.header-ad-space .ad-label {
    top: 0;
    left: 10px;
    transform: translateY(-50%);
}

/* Improved Navbar Actions */
.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Unified Premium Icon Button Style */
.icon-btn, .search-btn, .cart-btn, .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1.15rem;
    width: 42px;
    height: 42px;
    border-radius: 12px; /* Modern Squircle style */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

.icon-btn:hover, .search-btn:hover, .cart-btn:hover, .mobile-menu-btn:hover {
    background: var(--accent-gradient);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4); /* Accent glow */
}

.icon-btn i, .search-btn i, .cart-btn i, .mobile-menu-btn i {
    transition: transform 0.4s var(--transition-bounce);
}

.icon-btn:hover i, .search-btn:hover i, .cart-btn:hover i, .mobile-menu-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Cart Specific Styles */
.cart-btn .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

/* Mobile Menu Button - Inherit Icon Style */
.mobile-menu-btn {
    outline: none;
    padding: 0;
    line-height: 1;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

/* Mobile Menu Offcanvas (Premium Redesign) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98); /* Deep royal blue glass */
    backdrop-filter: blur(15px);
    z-index: 2100;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 40px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

[dir="rtl"] .mobile-menu.active {
    left: 0;
    right: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: var(--danger-color);
    transform: rotate(90deg);
}

.mobile-menu-body {
    padding: 30px 20px;
    overflow-y: auto;
    flex: 1;
}

.mobile-nav {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 5px;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav a i {
    font-size: 1.3rem;
    color: var(--accent-start);
}

.mobile-nav a:hover, .mobile-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.mobile-nav a.active {
    background: var(--primary-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2050;
    display: none;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-tools {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
}

.mobile-tool-btn {
    display: block;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-tool-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

/* ================================================
   HERO SECTION - PREMIUM
   ================================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    color: var(--accent-start);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-bounce);
}

.hero-btn.primary {
    background: var(--white);
    color: var(--primary-start);
}

.hero-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-5px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
}

/* Hero Shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 15%;
    animation-delay: 4s;
}

/* ================================================
   SECTION STYLES
   ================================================ */

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ================================================
   SERVICE CARDS (Premium Glass)
   ================================================ */
.service-card-new {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

[dir="rtl"] .service-card-new {
    text-align: right;
    align-items: flex-start;
}

.service-card-new:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.service-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card-new:hover h3, .service-card-new:hover p {
    color: var(--white);
}

.service-card-new:hover .service-icon-new {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.1) rotate(10deg);
}

.service-icon-new {
    width: 70px;
    height: 70px;
    background: var(--gray-100);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.service-title-new {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.service-desc-new {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ERP System Card Style */
.erp-card-premium {
    background: var(--white);
    border-radius: 30px;
    padding: 50px 40px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.erp-card-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.erp-card-premium .erp-logo {
    margin-bottom: 30px;
    height: 60px;
    transition: transform 0.4s ease;
}

.erp-card-premium:hover .erp-logo {
    transform: translateY(-5px);
}

/* Stats Premium Box */
.stat-box-modern {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
}

.stat-box-modern .stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.4));
}

.stat-box-modern .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 5px;
}

.stat-box-modern .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* ================================================
   SERVICE CARDS - 3D FLIP EFFECT
   ================================================ */

.service-card {
    position: relative;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-front {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.service-card-back {
    background: var(--primary-gradient);
    color: var(--white);
    transform: rotateY(180deg);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 25px;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    animation: pulse 1s infinite;
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.service-card-back .service-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-start);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.service-card-back .service-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Simple Service Cards (Premium) */
.service-card-simple {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-100);
    transition: all 0.4s var(--transition-smooth);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s var(--transition-smooth);
}

.service-card-simple:hover::before {
    transform: translateY(0);
}

.service-card-simple:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card-simple:hover .service-title,
.service-card-simple:hover .service-description {
    color: var(--white);
}

.service-card-simple:hover .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.service-card-simple:hover .btn-outline-primary {
    color: white;
    border-color: white;
}

.service-card-simple .service-icon {
    margin: 0 auto 25px;
}

.service-card-simple:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-start);
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
    transition: gap var(--transition-fast);
}

.service-link:hover {
    gap: 15px;
}

/* ================================================
   STATS COUNTER SECTION
   ================================================ */

.stats-section {
    background: var(--primary-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: spin 30s linear infinite;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 auto 20px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ================================================
   WHY CHOOSE US
   ================================================ */

.why-section {
    background: var(--gray-100);
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-start);
}

.why-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 25px;
    transition: all var(--transition-normal);
}

.why-card:hover .why-icon {
    transform: rotate(10deg) scale(1.1);
}

.why-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.why-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ================================================
   CTA SECTION
   ================================================ */

.cta-section {
    background: var(--secondary-gradient);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--white);
    color: var(--secondary-end);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all var(--transition-bounce);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ================================================
   NEWSLETTER SECTION
   ================================================ */

.newsletter-section {
    background: var(--gray-100);
    padding: 80px 0;
}

.newsletter-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 25px;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.newsletter-description {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-start);
    box-shadow: var(--shadow-glow);
}

.newsletter-btn {
    padding: 15px 35px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ================================================
   PREMIUM FOOTER
   ================================================ */

.frontend-footer {
    background: var(--dark);
    color: var(--gray-300);
    padding-top: 80px;
    position: relative;
}

.frontend-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-brand img {
    height: 45px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--gray-400);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
}

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

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

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent-start);
    font-size: 1.1rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    margin-top: 60px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

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

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

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

.bg-gradient-primary { background: var(--primary-gradient); }
.bg-gradient-secondary { background: var(--secondary-gradient); }
.bg-gradient-accent { background: var(--accent-gradient); }

.animate-fade-in { animation: fadeIn 0.8s ease both; }
.animate-fade-up { animation: fadeInUp 0.8s ease both; }
.animate-fade-down { animation: fadeInDown 0.8s ease both; }
.animate-scale { animation: scaleIn 0.8s ease both; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

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

@media (max-width: 1200px) {
    :root {
        --container-max: 100%;
        --section-padding: 80px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .header-topbar {
        display: none; /* Hide topbar on mobile for cleaner look */
    }

    .header-logo-bar {
        display: none !important; /* Force hide logo bar on mobile */
    }

    .mobile-navbar-logo {
        display: block !important;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 6px 10px !important;
        width: 100% !important;
        position: relative;
        min-height: 60px;
    }

    .navbar-mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 5px;
        flex: 1;
        justify-content: flex-start;
    }

    .mobile-navbar-logo {
        display: block !important;
        flex: 0 1 auto; /* Allow shrinking slightly if needed */
        text-align: center;
        margin: 0 10px;
        min-width: 80px; /* Ensure space for logo */
    }

    .mobile-navbar-logo img {
        height: 24px !important; /* Smaller logo for mobile */
        width: auto;
        display: inline-block !important;
    }

    .navbar-right {
        display: flex !important;
        align-items: center;
        gap: 4px;
        flex: 1;
        justify-content: flex-end;
    }

    /* Smaller icons for mobile */
    .icon-btn, .mobile-menu-btn, .search-btn, .cart-btn {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .icon-btn i, .mobile-menu-btn i, .search-btn i, .cart-btn i {
        font-size: 16px !important;
    }

    /* Cart badge adjustment */
    .cart-count {
        width: 14px !important;
        height: 14px !important;
        font-size: 9px !important;
        top: -4px !important;
        right: -4px !important;
    }

    /* Small mobile tweaks */
    @media (max-width: 380px) {
        .navbar-container {
            padding: 4px 5px !important;
        }
        .navbar-mobile-actions, .navbar-right {
            gap: 2px !important;
        }
        .mobile-navbar-logo {
            margin: 0 2px !important;
            min-width: 60px !important;
        }
        .mobile-navbar-logo img {
            height: 20px !important;
        }
    }

    .navbar-left {
        display: none !important;
    }

    /* RTL specific fixes for mobile header */
    [dir="rtl"] .navbar-mobile-actions {
        justify-content: flex-start;
    }

    [dir="rtl"] .navbar-right {
        justify-content: flex-end;
    }

    [dir="rtl"] .mobile-navbar-logo {
        margin: 0 10px;
    }

    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }

    .hero-buttons .hero-btn {
        margin: 0 !important;
        width: 100%;
    }

    .hero-stats {
        justify-content: center;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    /* Adjust main content padding for fixed mobile header */
    #main-content {
        padding-top: 60px !important;
    }
}

/* Default padding for desktop top handle multi-level header */
#main-content {
    padding-top: 230px;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .topbar-contact span {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .newsletter-box {
        padding: 40px 20px;
    }
}

/* ================================================
   RTL SUPPORT
   ================================================ */

[dir="rtl"] .hero-buttons,
[dir="rtl"] .topbar-contact,
[dir="rtl"] .topbar-social,
[dir="rtl"] .footer-social {
    flex-direction: row-reverse;
}

[dir="rtl"] .service-link:hover {
    gap: 15px;
}

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

/* ================================================
   VIDEO PLAYER STYLES
   ================================================ */

.video-inner-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-player-modern {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
    pointer-events: none;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 20;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.play-icon-ripple {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.video-play-overlay:hover .play-icon-ripple {
    box-shadow: var(--shadow-xl);
}

.play-icon-ripple i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-left: 3px; /* Center the play icon */
}

.video-play-overlay.playing {
    display: none;
}

.video-overlay-glow {
    display: none;
}

.video-badge-fixed {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Team (Notre Équipe) — ensure names are white */
.team-overlay h5 {
    color: #ffffff !important;
}

.team-overlay p,
.team-overlay .small,
.team-overlay .position {
    color: rgba(255,255,255,0.9) !important;
}

.team-card .team-overlay {
    background: rgba(0,0,0,0.65) !important;
}

.team-card .social-icons a {
    color: #ffffff !important;
}

/* Ensure social icon buttons in team overlay are white and visible */
.team-card .social-icons a.btn {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
}

.team-card .social-icons a.btn i,
.team-card .social-icons a i {
    color: #ffffff !important;
}

.team-overlay .social-icons {
    opacity: 1 !important; /* ensure visible when needed */
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
    pointer-events: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 8px auto 0 auto !important;
    width: auto !important;
    text-align: center !important;
}

/* Ensure social icons are visible and interactive (override opacity-0 from markup) */
.team-overlay .social-icons {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
    pointer-events: auto !important;
}

/* Show icons on hover as well for compatibility */
.team-card:hover .team-overlay .social-icons {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
