/* ========================================
   Rewindly Landing Page - Styles (V2.0 Clean)
   ======================================== */

/* CSS Variables - Color Palette from Logo */
:root {
    /* Primary Colors */
    --orange-primary: #FF6B00;
    --orange-light: #FF8C42;
    --orange-dark: #E55D00;
    --yellow-primary: #FFD93D;
    --yellow-light: #FFE566;
    
    /* Secondary Colors */
    --blue-primary: #1E88E5;
    --blue-dark: #1565C0;
    --teal-accent: #26C6DA;
    --green-accent: #4CAF50;
    --purple-accent: #9C27B0;
    --red-accent: #E53935;
    
    /* Neutrals */
    --dark-bg: #0D0D0D;
    --dark-surface: #1A1A1A;
    --dark-elevated: #252525;
    --dark-border: #333333;
    --light-text: #FFFFFF;
    --muted-text: #A0A0A0;
    --subtle-text: #666666;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--orange-primary), var(--yellow-primary));
    --gradient-hero: linear-gradient(180deg, var(--dark-bg) 0%, #1a0a00 50%, var(--dark-bg) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,107,0,0.1), rgba(255,217,61,0.05));
    --gradient-glow: radial-gradient(ellipse at center, rgba(255,107,0,0.3) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Righteous', cursive;
    --font-body: 'Outfit', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(255,107,0,0.3);
    --shadow-glow-intense: 0 0 60px rgba(255,107,0,0.5);
}

/* RTL Support */
html[dir="rtl"] {
    --font-body: 'Cairo', sans-serif;
    --font-display: 'Cairo', sans-serif;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic Font Override */
html[lang="ar"] body,
html[lang="ar"] * {
    font-family: var(--font-arabic) !important;
}

.lang-selector,
.lang-selector * {
    font-family: var(--font-arabic) !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ========================================
   Noise Overlay & Background Effects
   ======================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.float-element.vinyl {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.float-element.star {
    top: 40%;
    right: 10%;
    animation-delay: -5s;
    color: var(--orange-primary);
}

.float-element.cassette {
    top: 70%;
    left: 15%;
    animation-delay: -10s;
}

.float-element.star-2 {
    top: 15%;
    right: 20%;
    animation-delay: -3s;
    color: var(--yellow-primary);
}

.float-element.tv {
    top: 60%;
    right: 5%;
    animation-delay: -7s;
}

.float-element.star-3 {
    top: 85%;
    left: 40%;
    animation-delay: -12s;
    color: var(--teal-accent);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
    }
    75% {
        transform: translateY(-40px) rotate(3deg);
    }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    padding: var(--space-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-base);
}

.navbar.scrolled .nav-logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted-text);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-menu a:hover {
    color: var(--light-text);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--dark-elevated);
    border-radius: var(--radius-full);
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
    border: 1px solid var(--dark-border);
}

.lang-btn:hover {
    background: var(--dark-border);
    border-color: var(--orange-primary);
}

.lang-icon {
    font-size: 1rem;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: var(--transition-base);
}

.lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--muted-text);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.lang-option:hover {
    background: var(--dark-border);
    color: var(--light-text);
}

.lang-option.active {
    background: rgba(255, 107, 0, 0.2);
    color: var(--orange-primary);
}

.flag {
    font-size: 1.2rem;
}

/* CTA Button */
.cta-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--dark-bg);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-glow);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-intense);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light-text);
    transition: var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section (Consolidated & Fixed)
   ======================================== */
/* ========================================
   Hero Section (Centered & Optimized)
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh; /* Force la pleine hauteur */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.15) 0%, transparent 60%);
    filter: blur(60px);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.1) 2px, rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
    opacity: 0.3;
}

.color-bars {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #fff 14.28%, #ff0 14.28% 28.56%, #0ff 28.56% 42.84%, #0f0 42.84% 57.12%, #f0f 57.12% 71.4%, #f00 71.4% 85.68%, #00f 85.68%);
}

.hero-container {
    width: 100%;
    max-width: 1000px; /* Largeur contenue pour la lecture */
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Centered Content Styling */
.hero-content.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Logo Management */
.hero-main-logo {
    margin-bottom: var(--space-lg);
    max-width: 500px; /* Taille max du logo sur PC */
    width: 100%;
    filter: drop-shadow(0 0 30px rgba(255, 107, 0, 0.2));
    animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--orange-light);
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--light-text);
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.title-highlight {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--orange-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ========================================
   FIX: BOUTONS HERO & SCROLL
   ======================================== */

/* 1. Zone des boutons : Espacement */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 40px; /* Espace avant les stats */
    width: 100%;
    position: relative;
    z-index: 10;
}

/* 2. Style de base des boutons (Taille & Forme) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px; /* Donne du volume */
    border-radius: 50px; /* Forme pilule */
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    line-height: 1;
}

/* 3. Bouton Principal (Orange avec dégradé) */
.btn-primary {
    background: linear-gradient(135deg, #FF6B00 0%, #FFD93D 100%);
    color: #1a0a00; /* Texte foncé pour contraste */
    border: none;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.6);
}

/* 4. Bouton Secondaire (Transparent avec bordure) */
.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    transform: translateY(-3px);
}

/* 5. CORRECTION STATISTIQUES (Éviter le conflit) */
.hero-stats {
    /* Garde vos styles existants de glassmorphism */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* LE FIX EST ICI : Marge en bas pour ne pas toucher le scroll */
    margin-bottom: 80px; 
}

/* 6. CORRECTION SCROLL INDICATOR */
.hero-scroll {
    position: absolute;
    bottom: 20px; /* Collé en bas de l'écran */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    pointer-events: none; /* Pour cliquer au travers si besoin */
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .btn {
        width: 100%; /* Boutons pleine largeur sur mobile */
        padding: 14px 20px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
        width: 90%;
        margin-bottom: 100px; /* Plus d'espace sur mobile car le scroll est plus gros */
    }
    
    .stat-divider {
        display: none; /* Cache les lignes verticales sur mobile */
    }
    
    .stat-item {
        flex: 1; /* Distribue l'espace équitablement */
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--yellow-primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* ========================================
   CSS ANIMATION SCROLL (SOURIS)
   ======================================== */

/* 1. Conteneur global (Texte + Souris) */
.hero-scroll {
    position: absolute;
    bottom: 15px;          /* Positionné tout en bas */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;              /* Espace entre le texte et la souris */
    z-index: 20;
    cursor: pointer;
    transition: opacity 0.3s;
    opacity: 0.7;
}

.hero-scroll:hover {
    opacity: 1;
}

/* 2. Style du texte "DÉFILER" */
.hero-scroll span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* 3. La forme de la souris (Cadre) */
.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8); /* Bordure blanche */
    border-radius: 20px;      /* Arrondi complet */
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* 4. La petite roulette (Point à l'intérieur) */
.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #FF6B00;      /* Orange (couleur de votre marque) */
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite; /* Lancement de l'animation */
}

/* 5. L'animation de la roulette qui descend */
@keyframes scrollAnim {
    0% {
        top: 6px;
        opacity: 1;
    }
    100% {
        top: 22px;            /* La roulette descend */
        opacity: 0;           /* Et disparaît */
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-main-logo { max-width: 400px; }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .hero { padding-top: 100px; } /* Plus d'espace pour la nav mobile */
    
    .hero-main-logo { max-width: 280px; margin-bottom: var(--space-md); }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; padding: 0 10px; }
    
    /* Stats en grille sur mobile */
    .hero-stats {
        flex-wrap: wrap;
        padding: 20px;
        border-radius: 20px;
        gap: 20px;
        width: 100%;
        max-width: 340px;
    }
    
    .stat-item { flex: 1 1 40%; } /* 2 par ligne */
    
    .stat-divider { display: none; } /* On cache les lignes verticales sur mobile */
    
    .stat-number { font-size: 1.5rem; }
}

/* ========================================
   Section Styles
   ======================================== */
section {
    position: relative;
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 107, 0, 0.15);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--orange-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--gradient-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,0,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-elevated);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 2rem;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    filter: blur(20px);
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover .icon-glow {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Eras Section
   ======================================== */
.eras {
    position: relative;
    overflow: hidden;
}

.eras-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(38, 198, 218, 0.1) 0%, transparent 50%);
}

.eras-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--dark-border);
    transform: translateX(-50%);
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-primary);
    animation: timeline-fill 2s ease-out forwards;
    animation-play-state: paused;
}

.eras.animated .timeline-line::before {
    animation-play-state: running;
}

@keyframes timeline-fill {
    to {
        height: 100%;
    }
}

.era-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.era-item:nth-child(even) {
    flex-direction: row-reverse;
}

.era-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-bg);
    z-index: 10;
    box-shadow: var(--shadow-glow);
}

.era-card {
    width: calc(50% - 60px);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.era-item:nth-child(odd) .era-card {
    margin-right: auto;
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .era-item:nth-child(odd) .era-card {
    text-align: left;
}

.era-item:nth-child(even) .era-card {
    margin-left: auto;
}

.era-card:hover {
    transform: scale(1.02);
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-glow);
}

.era-image {
    flex-shrink: 0;
}

.era-tv {
    width: 80px;
    height: 70px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.tv-50s {
    background: linear-gradient(145deg, #654321 0%, #3d2817 100%);
    border-radius: 15px;
}

.tv-50s::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 20px;
    background: url('../img/tvstatic.gif') center/cover;
    border-radius: 50%;
}

.tv-60s {
    background: linear-gradient(145deg, #8B4513 0%, #654321 100%);
}

.tv-60s::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 25px;
    bottom: 15px;
    background: url('../img/tvstatic.gif') center/cover;
    border-radius: 8px;
}

.tv-70s {
    background: linear-gradient(145deg, #D2691E 0%, #8B4513 100%);
}

.tv-70s::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 20px;
    bottom: 10px;
    background: url('../img/tvstatic.gif') center/cover;
    border-radius: 5px;
}

.tv-80s {
    background: linear-gradient(145deg, #2f2f2f 0%, #1a1a1a 100%);
}

.tv-80s::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 15px;
    bottom: 8px;
    background: url('../img/tvstatic.gif') center/cover;
    border-radius: 3px;
}

.tv-90s {
    background: linear-gradient(145deg, #4a4a4a 0%, #2d2d2d 100%);
}

.tv-90s::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 10px;
    background: url('../img/tvstatic.gif') center/cover;
    border-radius: 2px;
}

.tv-2000s {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 5px;
}

.tv-2000s::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: url('../img/tvstatic.gif') center/cover;
    border-radius: 3px;
}

.era-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.era-info p {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* ========================================
   Screenshots Section - New Gallery Design
   ======================================== */
.screenshots {
    background: var(--dark-surface);
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .screenshots-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-top: var(--space-xl);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .screenshots-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .screenshots-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.screenshot-item {
    position: relative;
}

.screenshot-frame {
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    aspect-ratio: 16/10;
}

.screenshot-frame:hover {
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.screenshot-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.screenshot-frame:hover .screenshot-image img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 80%,
        rgba(0,0,0,0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: var(--transition-base);
}

.screenshot-frame:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-zoom {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transform: scale(0);
    transition: var(--transition-bounce);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.screenshot-frame:hover .screenshot-zoom {
    transform: scale(1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .screenshot-frame {
        border-radius: var(--radius-md);
    }
    
    .screenshot-overlay {
        padding: var(--space-md);
        /* Always show on mobile for better UX */
        opacity: 1;
        background: linear-gradient(
            180deg,
            transparent 0%,
            transparent 85%,
            rgba(0,0,0,0.6) 100%
        );
    }
    
    .screenshot-zoom {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        /* Always visible on mobile */
        transform: scale(1);
        background: rgba(255, 107, 0, 0.8);
    }
}

/* ========================================
   Screenshot Modal
   ======================================== */
.screenshot-modal {
    z-index: 10001;
}

.screenshot-modal-content {
    position: relative;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.screenshot-modal.active .screenshot-modal-content {
    transform: scale(1) translateY(0);
}

.screenshot-modal-image {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.screenshot-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.screenshot-modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    color: white;
}

.screenshot-modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--orange-primary);
}

.screenshot-modal-info p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.screenshot-modal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--dark-bg);
    border-top: 1px solid var(--dark-border);
}

.screenshot-nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--dark-elevated);
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-base);
    border: 1px solid var(--dark-border);
}

.screenshot-nav-btn:hover {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.screenshot-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.screenshot-nav-btn:disabled:hover {
    background: var(--dark-elevated);
    border-color: var(--dark-border);
    color: var(--light-text);
}

.screenshot-counter {
    font-size: 1rem;
    color: var(--muted-text);
    font-weight: 600;
}

/* Badge styles for What's New */
.new-badge.improved {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* Responsive Design */
@media (max-width: 768px) {
    .screenshots-gallery {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .screenshot-modal-content {
        width: 98%;
        max-height: 95vh;
    }
    
    .screenshot-modal-info {
        padding: var(--space-lg) var(--space-md) var(--space-md);
    }
    
    .screenshot-modal-info h3 {
        font-size: 1.2rem;
    }
    
    .screenshot-modal-info p {
        font-size: 0.9rem;
    }
    
    .screenshot-modal-nav {
        padding: var(--space-md);
    }
    
    .screenshot-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* RTL Support */
html[dir="rtl"] .screenshot-nav-btn.prev i {
    transform: rotate(180deg);
}

html[dir="rtl"] .screenshot-nav-btn.next i {
    transform: rotate(180deg);
}

/* ========================================
   Community Section
   ======================================== */
.community {
    background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

.community-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.community-content .section-tag {
    margin-bottom: var(--space-md);
}

.community-content .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

html[dir="rtl"] .community-content .section-title {
    text-align: right;
}

.community-desc {
    color: var(--muted-text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.community-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.community-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--dark-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--dark-border);
    transition: var(--transition-base);
}

.community-features li:hover {
    border-color: var(--orange-primary);
    transform: translateX(8px);
}

html[dir="rtl"] .community-features li:hover {
    transform: translateX(-8px);
}

.cf-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cf-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cf-content strong {
    font-size: 1rem;
}

.cf-content span {
    font-size: 0.9rem;
    color: var(--muted-text);
}

/* Social Preview */
.community-visual {
    display: flex;
    justify-content: center;
}

.social-preview {
    perspective: 1000px;
}

.social-card {
    width: 100%;
    max-width: 380px;
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.social-card:hover {
    transform: rotateY(0) rotateX(0);
    box-shadow: var(--shadow-glow);
}

.social-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--dark-border);
}

.social-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.social-user {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 700;
}

.badge {
    font-size: 0.8rem;
    color: var(--yellow-primary);
}

.social-content {
    padding: var(--space-lg);
}

.social-content p {
    margin-bottom: var(--space-md);
}

.social-media {
    height: 150px;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-border));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-media::before {
    content: '▶';
    font-size: 2rem;
    color: var(--orange-primary);
    opacity: 0.5;
}

.social-actions {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--dark-border);
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
}

.cta-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(255, 107, 0, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(255, 217, 61, 0.15) 0%, transparent 50%);
    animation: cta-pulse 6s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--muted-text);
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    margin-bottom: var(--space-xl);
}

.cta-note {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--dark-elevated);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--muted-text);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-elevated);
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    color: var(--muted-text);
    font-size: 1rem;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
    color: var(--light-text);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    color: var(--muted-text);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--orange-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--dark-border);
    font-size: 0.85rem;
    color: var(--muted-text);
}

.footer-note {
    font-size: 0.8rem;
    color: var(--subtle-text);
}

/* ========================================
   Modal - Enhanced Coming Soon Design
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, var(--dark-elevated), var(--dark-surface));
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-base);
    box-shadow: 
        var(--shadow-lg),
        0 0 50px rgba(255, 107, 0, 0.2);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    border-radius: 50%;
    color: var(--muted-text);
    font-size: 1.2rem;
    transition: var(--transition-fast);
    border: 1px solid var(--dark-border);
}

html[dir="rtl"] .modal-close {
    right: auto;
    left: var(--space-lg);
}

.modal-close:hover {
    background: var(--orange-primary);
    color: var(--dark-bg);
    border-color: var(--orange-primary);
    transform: scale(1.1);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    color: var(--orange-primary);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: var(--muted-text);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    font-size: 1.05rem;
}

.modal-form {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.modal-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-full);
    color: var(--light-text);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.modal-form input:focus {
    outline: none;
    border-color: var(--orange-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.modal-form input::placeholder {
    color: var(--subtle-text);
}

.modal-form .btn {
    white-space: nowrap;
    padding: var(--space-md) var(--space-xl);
}

/* Enhanced notification message */
.modal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: var(--transition-base);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.modal-notification.show {
    transform: translateX(0);
}

.modal-notification i {
    font-size: 1.2rem;
}

html[dir="rtl"] .modal-notification {
    right: auto;
    left: 20px;
    transform: translateX(-400px);
}

html[dir="rtl"] .modal-notification.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: var(--space-2xl);
        margin: var(--space-lg);
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    .modal-form {
        flex-direction: column;
    }
    
    .modal-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
        transform: translateY(-100px);
    }
    
    .modal-notification.show {
        transform: translateY(0);
    }
    
    html[dir="rtl"] .modal-notification {
        transform: translateY(-100px);
    }
    
    html[dir="rtl"] .modal-notification.show {
        transform: translateY(0);
    }
}

/* ========================================
   Animations (AOS-like)
   ======================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] { transform: translateY(30px); }
[data-aos="fade-down"] { transform: translateY(-30px); }
[data-aos="fade-left"] { transform: translateX(30px); }
html[dir="rtl"] [data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-right"] { transform: translateX(-30px); }
html[dir="rtl"] [data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="zoom-in"] { transform: scale(0.9); }

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Animation Delays */
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* ========================================
   Responsive Design
   ======================================== */

/* Desktop / Tablet Landscape */
@media (max-width: 1200px) {
    .timeline-line { left: 30px; }
    .era-marker { left: 30px; width: 50px; height: 50px; font-size: 0.9rem; }
    
    .era-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        flex-direction: row !important;
        text-align: left !important;
    }
    
    html[dir="rtl"] .era-card {
        text-align: right !important;
        margin-left: 0 !important;
        margin-right: 80px !important;
    }
    
    html[dir="rtl"] .timeline-line { left: auto; right: 30px; }
    html[dir="rtl"] .era-marker { left: auto; right: 30px; transform: translateX(50%); }
}

/* Tablet Portrait / Small Desktop */
@media (max-width: 992px) {
    /* Hero Responsiveness */
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 20px;
    }

    .hero-content {
        flex: 1;
        align-items: center;
        text-align: center;
        max-width: 100%;
        margin-bottom: var(--space-xl);
    }
    
    html[dir="rtl"] .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tv-wrapper {
        display: none; /* Hide TV on mobile to save space */
    }
    
    .hero-stats {
        margin: 0 auto var(--space-3xl);
    }

    /* Other Sections */
    .screenshots-gallery { grid-template-columns: 1fr; }
    
    .screenshots-side {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .screenshots-side .screenshot-frame { flex: 1; min-width: 200px; }
    
    .community-wrapper { grid-template-columns: 1fr; gap: var(--space-3xl); }
    .community-visual { order: -1; }
    
    .footer-main { grid-template-columns: 1fr; gap: var(--space-3xl); }
    .footer-brand { max-width: 100%; text-align: center; }
    .footer-social { justify-content: center; }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --space-4xl: 4rem; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-2xl);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-menu.active { opacity: 1; visibility: visible; }
    .nav-menu a { font-size: 1.5rem; }
    
    .mobile-menu-btn { display: flex; z-index: 1001; }
    .cta-btn .btn-text { display: none; }
    
    .hero-logo-mobile { display: block; max-width: 280px; margin: 0 auto var(--space-lg); }
    
    .hero-stats { gap: var(--space-lg); padding: 10px 20px; }
    .stat-number { font-size: 1.5rem; }
    .stat-divider { height: 25px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .era-card { flex-direction: column !important; text-align: center !important; }
    
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
    .modal-form { flex-direction: column; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-badge { font-size: 0.8rem; padding: var(--space-xs) var(--space-md); }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    
    .hero-stats { flex-direction: column; gap: var(--space-md); width: 100%; }
    .stat-divider { width: 60px; height: 1px; }
    
    .screenshot-placeholder { min-height: 250px; }
    .screenshots-side { flex-direction: column; }
    .screenshots-side .screenshot-frame { min-width: 100%; }
    
    .footer-links { grid-template-columns: 1fr; text-align: center; }
}


/* ========================================
   FIX FINAL : ARABE (CAIRO) & ICÔNES
   ======================================== */

/* 1. Configuration des variables pour l'Arabe */
html[lang="ar"] {
    --font-display: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;
    direction: rtl;
}

/* 2. Application de la police (Sans casser les icônes) */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, 
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] p, html[lang="ar"] span, html[lang="ar"] a, 
html[lang="ar"] button, html[lang="ar"] input, 
html[lang="ar"] textarea, html[lang="ar"] label,
html[lang="ar"] .btn, html[lang="ar"] .nav-menu a {
    font-family: 'Cairo', sans-serif !important;
}

/* 3. PROTECTION DES ICÔNES (C'est la partie la plus importante) */
/* On force le navigateur à utiliser FontAwesome pour les classes d'icônes */
html[lang="ar"] .fa,
html[lang="ar"] .fas,
html[lang="ar"] .fa-solid,
html[lang="ar"] .fa-regular,
html[lang="ar"] .fa-brands,
html[lang="ar"] .badge-icon i,
html[lang="ar"] .btn-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900; /* Solid nécessite souvent weight 900 */
}

/* 4. Miroir des flèches en RTL (Pour qu'elles pointent vers la gauche) */
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .fa-long-arrow-alt-right,
html[dir="rtl"] .btn-arrow {
    transform: rotate(180deg);
    display: inline-block;
}

/* 5. Correction des espacements dans les boutons en RTL */
html[dir="rtl"] .btn {
    flex-direction: row; /* On garde l'ordre naturel qui sera inversé par dir=rtl */
}

/* En RTL, le gap de flexbox gère l'espace, mais si des marges traînent : */
html[dir="rtl"] .btn-content {
    direction: rtl;
    gap: 10px;
}

/* Correction spécifique pour le Hero Badge */
html[dir="rtl"] .hero-badge {
    padding-right: 15px; /* Ajustement visuel */
    padding-left: 15px;
}

/* ========================================
   What's New Section
   ======================================== */
.whats-new {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a0f00 50%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.whats-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    opacity: 0.1;
    pointer-events: none;
}

.new-features-grid {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.new-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: rgba(255, 107, 0, 0.05);
    border: 1px solid rgba(255, 107, 0, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.new-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: var(--transition-base);
}

.new-feature:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.new-feature:hover::before {
    transform: scaleY(1);
}

.new-feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.new-feature-content {
    flex: 1;
    position: relative;
}

.new-feature-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: var(--space-sm);
}

.new-feature-content p {
    color: var(--muted-text);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.new-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.new-badge.improved {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

/* RTL Support for What's New */
html[dir="rtl"] .new-feature {
    text-align: right;
}

html[dir="rtl"] .new-feature::before {
    left: auto;
    right: 0;
}

/* Responsive Design for What's New */
@media (max-width: 768px) {
    .new-feature {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .new-feature-icon {
        align-self: center;
    }
    
    html[dir="rtl"] .new-feature {
        text-align: center;
    }
}

/* Animation for What's New */
.new-feature[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
}

.new-feature[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
}

.new-feature.aos-animate {
    transform: translateX(0);
    opacity: 1;
}
/* ========================================
   Demo Section - Desktop Mockup
   ======================================== */
.demo-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0a0a0a 50%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,107,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.demo-container {
    margin-top: var(--space-3xl);
    perspective: 1000px;
}

/* Desktop Mockup */
.desktop-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

/* Monitor Frame */
.monitor-frame {
    position: relative;
    transform-style: preserve-3d;
    animation: float-monitor 6s ease-in-out infinite;
}

@keyframes float-monitor {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(2deg); }
}

/* Screen Content */
.screen-content {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

/* Browser Chrome */
.browser-chrome {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #444;
}

.browser-controls {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.control-btn.close {
    background: #ff5f57;
    animation: blink-red 4s ease-in-out infinite;
}

.control-btn.minimize {
    background: #ffbd2e;
}

.control-btn.maximize {
    background: #28ca42;
}

@keyframes blink-red {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

.address-bar {
    flex: 1;
    background: #1a1a1a;
    border-radius: 6px;
    padding: 8px 12px;
    margin-right: 15px;
    position: relative;
    overflow: hidden;
}

.url-container {
    color: #fff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.protocol {
    color: #4CAF50;
}

.domain {
    color: var(--orange-primary);
    font-weight: bold;
}

.loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gradient-primary);
    width: 0%;
    animation: loading-progress 3s ease-in-out infinite;
}

@keyframes loading-progress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 100%; opacity: 0; }
}

.browser-tabs {
    display: flex;
}

.tab {
    background: #2a2a2a;
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #ccc;
}

.tab.active {
    background: #000;
    color: var(--orange-primary);
}

.tab-icon {
    font-size: 14px;
}

/* App Content */
.app-content {
    height: calc(100% - 60px);
    display: flex;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    position: relative;
}

/* TV Interface */
.demo-tv-interface {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tv-screen {
    width: 300px;
    height: 200px;
    background: #000;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(255,107,0,0.1);
    animation: tv-glow 4s ease-in-out infinite;
}

@keyframes tv-glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,107,0,0.1); }
    50% { box-shadow: 0 10px 30px rgba(255,107,0,0.3), inset 0 0 20px rgba(255,107,0,0.3); }
}

.tv-static {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/tvstatic.gif') center/cover;
    opacity: 0.1;
    animation: static-flicker 0.1s infinite;
}

@keyframes static-flicker {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.05; }
}

.tv-video {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(45deg, #ff6b00, #ffd93d);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: video-pulse 3s ease-in-out infinite;
}

@keyframes video-pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.02); opacity: 1; }
}

.play-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
    animation: play-bounce 2s ease-in-out infinite;
}

@keyframes play-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.video-title {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.tv-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    pointer-events: none;
    animation: scanlines-move 0.1s linear infinite;
}

@keyframes scanlines-move {
    0% { transform: translateY(0px); }
    100% { transform: translateY(4px); }
}

.tv-controls {
    margin-top: var(--space-md);
    display: flex;
    gap: var(--space-lg);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--orange-primary);
}

.channel-display {
    animation: channel-blink 2s ease-in-out infinite;
}

@keyframes channel-blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.5; }
}

/* Remote Control */
.demo-remote {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 200px;
    background: linear-gradient(145deg, #333, #1a1a1a);
    border-radius: 15px;
    padding: 15px 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    animation: remote-float 4s ease-in-out infinite;
}

@keyframes remote-float {
    0%, 100% { transform: translateY(-50%) rotateZ(0deg); }
    50% { transform: translateY(-55%) rotateZ(2deg); }
}

.remote-screen {
    background: #000;
    color: var(--orange-primary);
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    animation: remote-display 3s ease-in-out infinite;
}

@keyframes remote-display {
    0%, 80%, 100% { opacity: 1; }
    90% { opacity: 0.3; }
}

.remote-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.remote-btn {
    width: 20px;
    height: 20px;
    background: linear-gradient(145deg, #444, #222);
    border: none;
    border-radius: 50%;
    color: #ccc;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.remote-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 10px rgba(255,107,0,0.5);
    animation: button-glow 2s ease-in-out infinite;
}

@keyframes button-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255,107,0,0.5); }
    50% { box-shadow: 0 0 20px rgba(255,107,0,0.8); }
}

.remote-btn.power {
    background: linear-gradient(145deg, #ff4444, #cc0000);
    color: white;
}

/* Sidebar */
.demo-sidebar {
    width: 150px;
    background: rgba(255,107,0,0.1);
    border-left: 2px solid rgba(255,107,0,0.3);
    padding: var(--space-md);
}

.sidebar-header h4 {
    color: var(--orange-primary);
    font-size: 14px;
    margin-bottom: var(--space-md);
    text-align: center;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 11px;
    color: #ccc;
    cursor: pointer;
    transition: var(--transition-fast);
    animation: category-fade 0.5s ease-in-out;
}

.category-item.active {
    background: rgba(255,107,0,0.2);
    color: var(--orange-primary);
    transform: translateX(5px);
}

@keyframes category-fade {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Floating Elements */
.demo-floating-elements {
    position: absolute;
    top: 100px;
    right: 200px;
}

.floating-notification {
    background: rgba(255,107,0,0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    box-shadow: 0 5px 15px rgba(255,107,0,0.3);
    animation: notification-slide 4s ease-in-out infinite;
}

@keyframes notification-slide {
    0%, 80%, 100% { transform: translateX(100px); opacity: 0; }
    10%, 70% { transform: translateX(0); opacity: 1; }
}

/* Monitor Stand */
.monitor-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -10px;
}

.stand-neck {
    width: 60px;
    height: 40px;
    background: linear-gradient(145deg, #333, #1a1a1a);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.stand-base {
    width: 200px;
    height: 20px;
    background: linear-gradient(145deg, #444, #222);
    border-radius: 10px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Keyboard Mockup */
.keyboard-mockup {
    margin-top: var(--space-lg);
}

.keyboard-body {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    animation: keyboard-typing 3s ease-in-out infinite;
}

@keyframes keyboard-typing {
    0%, 90%, 100% { transform: scale(1); }
    95% { transform: scale(1.01); }
}

.key-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.key {
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #444, #222);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
}

.key.wide {
    width: 120px;
}

.key:nth-child(odd) {
    animation: key-press 4s ease-in-out infinite;
}

.key:nth-child(even) {
    animation: key-press 4s ease-in-out infinite 0.5s;
}

@keyframes key-press {
    0%, 95%, 100% { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
    97% { transform: translateY(2px); box-shadow: 0 1px 2px rgba(0,0,0,0.3); }
}

/* Demo Features */
.demo-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.demo-feature {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255,107,0,0.05);
    border: 1px solid rgba(255,107,0,0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.demo-feature:hover {
    background: rgba(255,107,0,0.1);
    border-color: rgba(255,107,0,0.3);
    transform: translateY(-5px);
}

.demo-feature .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 10px 30px rgba(255,107,0,0.3);
    animation: icon-bounce 3s ease-in-out infinite;
}

.demo-feature .feature-icon i {
    font-size: 1.5rem;
    color: white;
}

@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.demo-feature h4 {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.demo-feature p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .demo-remote {
        position: static;
        transform: none;
        margin: var(--space-md) auto;
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .demo-sidebar {
        width: 100%;
        border-left: none;
        border-top: 2px solid rgba(255,107,0,0.3);
    }
}

@media (max-width: 768px) {
    .tv-screen {
        width: 200px;
        height: 130px;
    }
    
    .keyboard-mockup {
        display: none;
    }
    
    .demo-features {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* RTL Support */
html[dir="rtl"] .demo-remote {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .demo-sidebar {
    border-left: none;
    border-right: 2px solid rgba(255,107,0,0.3);
}

html[dir="rtl"] .category-item.active {
    transform: translateX(-5px);
}

/* =================================
   ULTRA REALISTIC DESKTOP MOCKUP
   ================================= */

/* Desktop Mockup - Design Responsive */
.desktop-mockup {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Taille optimale pour tous les écrans */
    margin: 0 auto;
    perspective: 1200px;
    padding: 0 20px;
}

/* Monitor Frame Ultra Réaliste - Responsive */
.monitor-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 25px 25px 10px 10px;
    padding: 20px 20px 40px; /* Plus d'espace pour un look premium */
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.5),
        inset 0 2px 0 rgba(255,255,255,0.1),
        inset 0 -2px 0 rgba(0,0,0,0.3);
    transform: rotateX(3deg) rotateY(-1deg);
    transition: transform 0.3s ease;
    width: 100%;
}

.monitor-frame:hover {
    transform: rotateX(2deg) rotateY(-0.5deg) scale(1.02);
}

/* Monitor Bezel - Optimisé pour plus d'espace */
.monitor-bezel {
    background: #000;
    border-radius: 15px;
    padding: 3px; /* Légèrement plus pour le réalisme */
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.9),
        inset 0 3px 6px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.monitor-bezel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 15px 15px 0 0;
}

/* Screen Content - Maximisé et Responsive */
.screen-content {
    background: #000; /* Fond noir pour la vidéo */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9; /* Ratio parfait pour les vidéos */
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    min-height: 450px; /* Plus grand pour une meilleure visibilité */
    width: 100%;
}

/* App Content - Pleine taille */
.app-content {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* Browser Chrome Ultra Réaliste */
.browser-chrome {
    background: linear-gradient(180deg, #e8e8e8 0%, #d8d8d8 100%);
    border-bottom: 1px solid #c0c0c0;
    position: relative;
}

/* Traffic Lights (macOS style) */
.browser-controls {
    display: flex;
    gap: 6px; /* Réduit l'espacement */
    padding: 8px 12px 6px; /* Réduit le padding */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.control-btn {
    width: 10px; /* Réduit de 12px à 10px */
    height: 10px; /* Réduit de 12px à 10px */
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.control-btn.close {
    background: linear-gradient(135deg, #ff5f57, #ff3b30);
}

.control-btn.minimize {
    background: linear-gradient(135deg, #ffbd2e, #ff9500);
}

.control-btn.maximize {
    background: linear-gradient(135deg, #28ca42, #30d158);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.control-btn .btn-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px; /* Réduit de 6px à 4px */
    height: 4px; /* Réduit de 6px à 4px */
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.control-btn:hover .btn-inner {
    opacity: 1;
}

/* Address Bar Ultra Réaliste */
.address-bar {
    display: flex;
    align-items: center;
    padding: 6px 12px 8px; /* Réduit le padding */
    gap: 10px; /* Réduit l'espacement */
    margin-left: 60px; /* Réduit la marge gauche */
}

.nav-buttons {
    display: flex;
    gap: 4px;
}

.nav-btn {
    width: 24px; /* Réduit de 28px à 24px */
    height: 24px; /* Réduit de 28px à 24px */
    border: none;
    border-radius: 4px; /* Réduit de 6px à 4px */
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px; /* Réduit de 10px à 9px */
    transition: all 0.2s ease;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
    transform: translateY(-1px);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.url-container {
    flex: 1;
    background: white;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.security-icon {
    color: #34c759;
    font-size: 11px;
}

.protocol {
    color: #666;
    font-weight: 500;
}

.domain {
    color: #000;
    font-weight: 600;
}

.loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 60%;
    background: linear-gradient(90deg, #007aff, #5ac8fa);
    border-radius: 1px;
    animation: loading-progress 3s ease-in-out infinite;
}

@keyframes loading-progress {
    0% { width: 0%; opacity: 1; }
    50% { width: 80%; opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

.browser-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 24px; /* Réduit de 28px à 24px */
    height: 24px; /* Réduit de 28px à 24px */
    border: none;
    border-radius: 4px; /* Réduit de 6px à 4px */
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px; /* Réduit de 11px à 10px */
    transition: all 0.2s ease;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.5);
}

.action-btn:hover {
    background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
    color: #333;
}

/* Tabs Ultra Réalistes */
.browser-tabs {
    display: flex;
    align-items: flex-end;
    padding: 0 12px; /* Réduit de 16px à 12px */
    background: linear-gradient(180deg, #f0f0f0 0%, #e8e8e8 100%);
    border-bottom: 1px solid #d0d0d0;
    gap: 1px; /* Réduit de 2px à 1px */
}

.tab {
    background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 100%);
    border: 1px solid #c0c0c0;
    border-bottom: none;
    border-radius: 6px 6px 0 0; /* Réduit de 8px à 6px */
    padding: 6px 12px; /* Réduit de 8px 16px à 6px 12px */
    display: flex;
    align-items: center;
    gap: 6px; /* Réduit de 8px à 6px */
    font-size: 11px; /* Réduit de 12px à 11px */
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    max-width: 160px; /* Réduit de 200px à 160px */
    min-width: 100px; /* Réduit de 120px à 100px */
}

.tab.active {
    background: white;
    border-color: #d0d0d0;
    color: #000;
    z-index: 1;
    box-shadow: 
        0 -2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

.tab:hover:not(.active) {
    background: linear-gradient(180deg, #e8e8e8 0%, #d8d8d8 100%);
    color: #333;
}

.tab-icon {
    font-size: 11px;
    opacity: 0.7;
}

.tab.active .tab-icon {
    opacity: 1;
}

.tab-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.tab-close {
    width: 14px; /* Réduit de 16px à 14px */
    height: 14px; /* Réduit de 16px à 14px */
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px; /* Réduit de 8px à 7px */
    opacity: 0;
    transition: all 0.2s ease;
}

.tab:hover .tab-close {
    opacity: 1;
}

.tab-close:hover {
    background: rgba(0,0,0,0.1);
    color: #666;
}

.new-tab-btn {
    width: 24px; /* Réduit de 28px à 24px */
    height: 24px; /* Réduit de 28px à 24px */
    border: none;
    border-radius: 4px; /* Réduit de 6px à 4px */
    background: transparent;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px; /* Réduit de 10px à 9px */
    transition: all 0.2s ease;
    margin-left: 6px; /* Réduit de 8px à 6px */
}

.new-tab-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #333;
}

/* Monitor Stand Ultra Réaliste */
.monitor-stand {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.stand-neck {
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.neck-joint {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
    border-radius: 10px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.stand-base {
    width: 200px;
    height: 20px;
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    border-radius: 100px;
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.base-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 12px;
    border: 2px solid #4a4a4a;
    border-radius: 100px;
    background: transparent;
}

.base-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 8px;
    background: linear-gradient(135deg, #5a5a5a, #4a4a4a);
    border-radius: 100px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

/* Monitor Brand & Power LED - Repositionné */
.monitor-brand {
    position: absolute;
    bottom: 15px; /* Repositionné dans le bezel */
    right: 25px; /* Aligné à droite */
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    font-size: 9px;
    font-weight: 700;
    color: #888;
    letter-spacing: 1.5px;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.power-led.active {
    background: #34c759;
    box-shadow: 
        0 0 12px rgba(52, 199, 89, 0.8),
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 1px 3px rgba(0,0,0,0.3);
    animation: power-pulse 2s ease-in-out infinite;
}

@keyframes power-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design Complet */
@media (max-width: 1200px) {
    .desktop-mockup {
        max-width: 1000px;
        padding: 0 15px;
    }
    
    .monitor-frame {
        padding: 18px 18px 35px;
    }
    
    .screen-content {
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    .desktop-mockup {
        max-width: 800px;
        padding: 0 10px;
    }
    
    .monitor-frame {
        padding: 15px 15px 30px;
        border-radius: 20px 20px 8px 8px;
    }
    
    .monitor-bezel {
        border-radius: 12px;
    }
    
    .screen-content {
        min-height: 350px;
        border-radius: 10px;
    }
}

@media (max-width: 768px) {
    .desktop-mockup {
        padding: 0 5px;
    }
    
    .monitor-frame {
        transform: rotateX(1deg) rotateY(0deg); /* Moins d'inclinaison sur mobile */
        padding: 12px 12px 25px;
        border-radius: 15px 15px 6px 6px;
        box-shadow: 
            0 20px 40px rgba(0,0,0,0.4),
            inset 0 1px 0 rgba(255,255,255,0.1);
    }
    
    .monitor-frame:hover {
        transform: rotateX(1deg) rotateY(0deg) scale(1.01);
    }
    
    .monitor-bezel {
        border-radius: 10px;
    }
    
    .screen-content {
        min-height: 280px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .monitor-frame {
        transform: none; /* Pas d'inclinaison sur très petit écran */
        padding: 10px 10px 20px;
        border-radius: 12px 12px 4px 4px;
    }
    
    .monitor-frame:hover {
        transform: scale(1.01);
    }
    
    .screen-content {
        min-height: 220px;
        border-radius: 6px;
    }
}

/* Demo Video Container */
.demo-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.demo-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.video-upload-area {
    max-width: 400px;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.video-upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.video-upload-area p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    line-height: 1.5;
}

.video-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.video-specs span {
    display: block;
}

/* Styles pour les vraies vidéos quand elles seront ajoutées */
.demo-video-container iframe,
.demo-video-container video {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.demo-video-container video {
    object-fit: cover;
}

/* Animation pour le placeholder */
.demo-video-placeholder {
    animation: pulse-demo 3s ease-in-out infinite;
}

@keyframes pulse-demo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .video-upload-area {
        max-width: 300px;
        padding: 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .video-upload-area h3 {
        font-size: 1.2rem;
    }
    
    .video-upload-area p {
        font-size: 0.9rem;
    }
    
    .video-specs {
        font-size: 0.8rem;
    }
}
/* =================================
   VIDEO DEMO CONTROLS & PLAY BUTTON
   ================================= */

/* Video Overlay avec bouton PLAY */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button-container {
    text-align: center;
    color: white;
}

/* Bouton PLAY Ultra Stylé */
.play-button {
    position: relative;
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(255, 107, 53, 0.4),
        inset 0 2px 4px rgba(255,255,255,0.2),
        inset 0 -2px 4px rgba(0,0,0,0.2);
    overflow: hidden;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.6),
        inset 0 2px 4px rgba(255,255,255,0.3),
        inset 0 -2px 4px rgba(0,0,0,0.2);
}

.play-button:active {
    transform: scale(1.05);
}

.play-icon {
    font-size: 28px;
    color: white;
    margin-left: 4px; /* Centrage visuel du triangle */
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Effet Ripple */
.play-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    animation: ripple-effect 2s ease-out infinite;
}

@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 160px;
        height: 160px;
        opacity: 0;
    }
}

/* Texte du bouton PLAY */
.play-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.play-text p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Contrôles vidéo personnalisés */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 20px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 5;
    transition: all 0.3s ease;
}

.video-controls.hidden {
    opacity: 0;
    transform: translateY(100%);
}

.control-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(1.05);
}

/* Barre de progression */
.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transform: translate(50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive pour les contrôles vidéo */
@media (max-width: 768px) {
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-icon {
        font-size: 20px;
    }
    
    .play-text h3 {
        font-size: 18px;
    }
    
    .play-text p {
        font-size: 14px;
    }
    
    .video-controls {
        padding: 15px 15px 10px;
        gap: 10px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    .progress-fill::after {
        width: 10px;
        height: 10px;
    }
}
/* =================================
   MY APPS BUTTON STYLING
   ================================= */

/* Style spécial pour le bouton My Apps */
.nav-menu li:first-child a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu li:first-child a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.nav-menu li:first-child a:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

.nav-menu li:first-child a:hover::before {
    left: 100%;
}

.nav-menu li:first-child a:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.3),
        inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .nav-menu li:first-child a {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 15px;
    }
}

/* RTL Support pour le bouton My Apps */
html[dir="rtl"] .nav-menu li:first-child a::before {
    left: 100%;
}

html[dir="rtl"] .nav-menu li:first-child a:hover::before {
    left: -100%;
}
/* =================================
   VIDEO FALLBACK STYLES
   ================================= */

/* Fallback quand la vidéo n'est pas disponible */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.fallback-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px 20px;
}

.fallback-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: pulse-fallback 2s ease-in-out infinite;
}

@keyframes pulse-fallback {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.fallback-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fallback-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.fallback-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
    opacity: 0.95;
}

.feature-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.fallback-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.fallback-cta:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive pour le fallback */
@media (max-width: 768px) {
    .fallback-content {
        padding: 20px 15px;
    }
    
    .fallback-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .fallback-content h3 {
        font-size: 1.5rem;
    }
    
    .fallback-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .fallback-features {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .fallback-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
/* =================================
   SIMPLE DEMO SCREEN STYLES
   ================================= */

/* =================================
   SIMPLE DEMO SCREEN - CLEAN & RESPONSIVE
   ================================= */

/* ========================================
   Lecteur Vidéo Avancé - Demo Section
   ======================================== */

/* Conteneur principal du lecteur */
.advanced-demo-player {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advanced-demo-player video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changé de cover à contain pour afficher la vidéo complète */
    border-radius: 12px;
}

/* Overlay des contrôles */
.video-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

/* Bouton play central */
.center-play-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.play-pause-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 15px 30px rgba(255, 107, 53, 0.4),
        inset 0 2px 4px rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.play-pause-btn:hover {
    transform: scale(1.1);
    box-shadow: 
        0 20px 40px rgba(255, 107, 53, 0.6),
        inset 0 2px 4px rgba(255,255,255,0.3);
}

.play-button-text {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.play-button-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.play-button-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Barre de contrôles */
.video-controls-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    transition: all 0.3s ease;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.control-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

/* Affichage du temps */
.time-display {
    color: white;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    min-width: 40px;
    text-align: center;
}

/* Conteneur de progression */
.progress-container {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

/* Contrôles de volume */
.volume-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.volume-controls:hover .volume-slider {
    opacity: 1;
}

.volume-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    position: relative;
}

.volume-filled {
    height: 100%;
    background: #ff6b35;
    border-radius: 2px;
    width: 70%;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Responsive */
@media (max-width: 768px) {
    .play-pause-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .video-controls-bar {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .volume-slider {
        width: 40px;
    }
    
    .time-display {
        font-size: 10px;
        min-width: 35px;
    }
}