/* ============================================
   يُسر - العرض التقديمي
   تصميم احترافي من PUIUX
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Colors - PUIUX (Black/White) + Yusr (Gold) */
    --primary-gold: #C9A96E;
    --primary-gold-dark: #B8956A;
    --primary-gold-light: #D4B896;

    --bg-dark: #0a0a0a;
    --bg-dark-secondary: #111111;
    --bg-dark-tertiary: #1a1a1a;

    --text-light: #ffffff;
    --text-muted: #9ca3af;
    --text-muted-light: #6b7280;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(255, 255, 255, 0.05);

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #C9A96E 0%, #D4B896 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);

    /* Typography */
    --font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-glow-gold: 0 0 40px rgba(201, 169, 110, 0.3);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    cursor: none;
}

/* ============================================
   Loading Screen
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-gold);
    border-right: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: loaderSpin 1s linear infinite;
}

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

.loader-logo {
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1);
}

.loader-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   Custom Cursor
   ============================================ */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    direction: ltr;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--text-light);
    border-radius: 50%;
    margin-left: -4px;
    margin-top: -4px;
    transition: transform 0.1s ease;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
    margin-left: -20px;
    margin-top: -20px;
    transition: width 0.15s ease-out, height 0.15s ease-out;
    opacity: 0.5;
}

.custom-cursor.hover .cursor-ring {
    width: 60px;
    height: 60px;
    opacity: 1;
}

.custom-cursor.clicking .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
    .custom-cursor {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.progress-bar.visible {
    opacity: 1;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-gold);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--primary-gold);
}

/* ============================================
   Typography Scale
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
   Slide Base Styles
   ============================================ */
.slide {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ============================================
   SLIDE 1: شاشة البداية (Intro) - Redesigned
   ============================================ */
.slide-intro {
    background: var(--bg-dark);
    overflow: hidden;
    position: relative;
}

/* Cover Background Image - Very Light Opacity */
.intro-cover-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.intro-cover-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right bottom;
    opacity: 0.04;
    filter: grayscale(30%);
}

/* Gradient Overlay for depth */
.intro-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 169, 110, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Intro Particles */
.intro-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.intro-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 5s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.5;
        transform: scale(1);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(0);
    }
}

/* Main Wrapper */
.intro-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-xl);
}

/* Top Section */
.intro-top {
    display: flex;
    justify-content: center;
    padding-top: var(--spacing-lg);
}

.intro-logo {
    width: clamp(100px, 15vw, 160px);
    opacity: 0;
    transform: translateY(-20px);
}

.intro-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Center Section */
.intro-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vh, 2rem);
}

/* App Name Badge */
.intro-app-badge {
    opacity: 0;
    transform: translateY(20px);
}

.badge-text {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(201, 169, 110, 0.2);
}

/* Play Button - Redesigned */
.play-button {
    position: relative;
    width: clamp(70px, 12vw, 100px);
    height: clamp(70px, 12vw, 100px);
    border-radius: var(--radius-full);
    background: rgba(201, 169, 110, 0.1);
    border: 2px solid rgba(201, 169, 110, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: scale(0.8);
    backdrop-filter: blur(10px);
}

.play-button::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 169, 110, 0.15);
    opacity: 1;
    transition: all var(--transition-normal);
}

.play-button:hover {
    background: rgba(201, 169, 110, 0.2);
    border-color: rgba(201, 169, 110, 0.5);
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(201, 169, 110, 0.2);
}

.play-button:hover::before {
    inset: -12px;
    border-color: rgba(201, 169, 110, 0.25);
}

.play-button:active {
    transform: scale(1);
}

.play-icon {
    width: 35%;
    height: 35%;
    color: var(--primary-gold);
    margin-right: -8%;
    transition: transform var(--transition-normal);
}

.play-button:hover .play-icon {
    transform: scale(1.1);
}

.play-icon svg {
    width: 100%;
    height: 100%;
}

/* Ripple Effect */
.play-ripple {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    border: 2px solid rgba(201, 169, 110, 0.4);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* CTA Text */
.intro-cta {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.02em;
}

/* Bottom Section */
.intro-bottom {
    display: flex;
    justify-content: center;
    padding-bottom: var(--spacing-lg);
}

.intro-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateY(20px);
}

.intro-title {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.intro-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.5;
}

.intro-subtitle {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-muted);
    font-weight: 400;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.2);
    }
    50% {
        box-shadow: 0 0 0 25px rgba(201, 169, 110, 0);
    }
}

.play-button.pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .intro-wrapper {
        padding: var(--spacing-md);
    }

    .intro-top {
        padding-top: var(--spacing-md);
    }

    .intro-bottom {
        padding-bottom: var(--spacing-md);
    }
}

/* ============================================
   SLIDE 2: شاشة القيادة الرشيدة (Hero)
   ============================================ */
.slide-hero {
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(10, 10, 10, 0.2) 30%,
        rgba(10, 10, 10, 0.2) 70%,
        rgba(10, 10, 10, 0.6) 100%
    );
    pointer-events: none;
}

/* ============================================
   SLIDE 3: شاشة الترحيب والفريق (Welcome)
   ============================================ */
.slide-welcome {
    background: var(--bg-dark);
    overflow: hidden;
}

/* Animated Gradient Background */
.gradient-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-gold);
    top: -150px;
    right: -100px;
    animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.3);
    bottom: -100px;
    left: -50px;
    animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 10s ease-in-out infinite;
    opacity: 0.15;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(1.1); }
    66% { transform: translate(30px, -20px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.05); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

/* Welcome Slide V2 - Redesigned Layout */
.welcome-container-v2 {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    position: relative;
}

.welcome-logo-badge {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    opacity: 0;
    transform: translateY(-10px);
}

.welcome-logo-badge img {
    width: clamp(60px, 8vw, 90px);
    height: auto;
    filter: brightness(0) invert(1);
}

.welcome-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.75rem, 2vh, 1.25rem);
}

.welcome-badge-exclusive {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: var(--radius-full);
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--primary-gold);
    font-weight: 500;
    opacity: 0;
    transform: scale(0.9);
}

.badge-icon {
    font-size: 1em;
}

.welcome-greeting-v2 {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(10px);
}

.welcome-app-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    opacity: 0;
    transform: translateY(20px);
}

.app-name {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
    letter-spacing: -0.02em;
}

.app-tagline {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
}

.welcome-team-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
}

.team-label-v2 {
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    color: var(--text-muted-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.team-members-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

.member-v2 {
    font-size: clamp(0.75rem, 1.3vw, 0.9rem);
    color: var(--text-light);
    font-weight: 500;
}

.separator-v2 {
    color: var(--primary-gold);
    opacity: 0.5;
}

.welcome-footer-v2 {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
}

.welcome-footer-v2 span {
    font-size: clamp(0.6rem, 1vw, 0.7rem);
    color: var(--text-muted-light);
}

.welcome-footer-v2 img {
    width: clamp(50px, 6vw, 70px);
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

/* Mobile adjustments for welcome V2 */
@media (max-width: 480px) {
    .welcome-logo-badge {
        top: var(--spacing-md);
        right: var(--spacing-md);
    }

    .team-members-v2 {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .separator-v2 {
        display: none;
    }

    .welcome-footer-v2 {
        bottom: var(--spacing-md);
    }
}

/* Old welcome container - kept for backward compatibility */
.welcome-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-md) var(--spacing-lg);
    overflow: hidden;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    opacity: 0;
    transform: translateY(-20px);
}

.badge-exclusive {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: var(--text-muted);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 500;
}

.logo-puiux {
    width: clamp(80px, 10vw, 120px);
}

.logo-puiux img {
    width: 100%;
    height: auto;
}

.welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: clamp(0.75rem, 2vh, 1.5rem);
    padding: var(--spacing-sm) 0;
}

.welcome-greeting {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--text-muted);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    opacity: 0;
    transform: translateY(20px);
}

.greeting-emoji {
    font-size: 1.25em;
}

.welcome-title {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    opacity: 0;
    transform: translateY(30px);
}

.title-line {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.team-section {
    opacity: 0;
    transform: translateY(30px);
}

.team-label {
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    color: var(--text-muted-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.team-member {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-member:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.team-member:hover::before {
    opacity: 1;
}

.member-title {
    font-size: clamp(0.625rem, 1.2vw, 0.75rem);
    color: var(--text-muted-light);
    font-weight: 400;
}

.member-name {
    font-size: clamp(0.75rem, 1.5vw, 0.95rem);
    font-weight: 600;
    color: var(--text-light);
}

.welcome-cta {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--text-light);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.cta-button:hover {
    background: var(--primary-gold);
    color: var(--bg-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   SLIDE 4: شاشة وصف التطبيق (Description)
   ============================================ */
.slide-description {
    background: var(--bg-dark);
}

.description-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.description-content {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.description-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    opacity: 0;
    transform: translateY(30px);
}

.title-main {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
}

.title-sub {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-muted);
}

.description-text {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    opacity: 0;
    transform: translateY(30px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card {
    position: relative;
    padding: var(--spacing-md);
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(201, 169, 110, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow-gold);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(201, 169, 110, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================
   SLIDE 5: شاشة عرض واجهات التطبيق (Demo)
   ============================================ */
.slide-demo {
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

/* Figma Embed - Full Screen */
.figma-embed {
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
}

.figma-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-dark);
}

.demo-footer {
    position: fixed;
    bottom: var(--spacing-lg);
    left: var(--spacing-lg);
    z-index: 50;
    opacity: 0;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: clamp(0.625rem, 1.2vw, 0.75rem);
    color: var(--text-muted);
}

.powered-by img {
    width: clamp(60px, 8vw, 80px);
    height: auto;
    filter: brightness(0) invert(1);
}

/* ============================================
   SLIDE 6: شاشة الختام (Ending)
   ============================================ */
.slide-ending {
    background: var(--bg-dark);
}

.ending-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--text-muted-light);
    border-radius: 50%;
    opacity: 0.3;
}

.ending-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-md);
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1.5vh, 1rem);
}

.ending-title {
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 800;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
}

.qr-section {
    margin-bottom: 0;
    opacity: 0;
    transform: scale(0.8);
}

.qr-code {
    width: clamp(100px, 18vw, 140px);
    height: clamp(100px, 18vw, 140px);
    margin: 0 auto var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--text-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code canvas,
.qr-code img {
    width: 100% !important;
    height: 100% !important;
}

.qr-text {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    color: var(--text-muted);
}

.ending-team {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
}

.team-intro {
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    color: var(--text-muted-light);
    margin-bottom: 4px;
}

.team-names {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    color: var(--text-muted);
}

.team-names .separator {
    color: var(--text-muted-light);
}

.ending-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(20px);
}

.ending-logo img {
    width: clamp(70px, 12vw, 100px);
    height: auto;
    filter: brightness(0) invert(1);
}

.powered-text {
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    color: var(--text-muted-light);
}

/* ============================================
   Navigation Controls
   ============================================ */
.slide-nav {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    z-index: 100;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.slide-nav.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--bg-dark-tertiary);
    border-color: var(--text-muted);
    color: var(--text-light);
}

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

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-dots {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.nav-dot:hover {
    background: var(--text-muted);
    transform: scale(1.2);
}

.nav-dot:hover::after {
    border-color: var(--text-muted-light);
}

.nav-dot.active {
    width: 24px;
    background: var(--gradient-gold);
    box-shadow: 0 0 10px rgba(201, 169, 110, 0.4);
}

/* ============================================
   Fullscreen Control
   ============================================ */
.fullscreen-control {
    position: fixed;
    top: var(--spacing-lg);
    left: calc(var(--spacing-lg) + 54px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.fullscreen-control.visible {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-control:hover {
    background: var(--bg-dark-tertiary);
    border-color: var(--text-muted);
    color: var(--text-light);
}

.fullscreen-control svg {
    width: 20px;
    height: 20px;
}

.fullscreen-control .fs-exit {
    display: none;
}

.fullscreen-control.is-fullscreen .fs-enter {
    display: none;
}

.fullscreen-control.is-fullscreen .fs-exit {
    display: block;
}

/* ============================================
   Sound Control
   ============================================ */
.sound-control {
    position: fixed;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.sound-control.visible {
    opacity: 1;
    transform: translateY(0);
}

.sound-control:hover {
    background: var(--bg-dark-tertiary);
    border-color: var(--text-muted);
    color: var(--text-light);
}

.sound-control svg {
    width: 20px;
    height: 20px;
}

.sound-control .sound-off {
    display: none;
}

.sound-control.muted .sound-on {
    display: none;
}

.sound-control.muted .sound-off {
    display: block;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
    }

    .intro-footer {
        bottom: var(--spacing-lg);
    }

    .welcome-header {
        flex-direction: column-reverse;
        gap: var(--spacing-md);
        align-items: center;
    }

    .team-members {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .team-member {
        width: 100%;
    }

    .welcome-cta {
        bottom: var(--spacing-lg);
        width: calc(100% - var(--spacing-xl) * 2);
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

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

    .team-names {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .team-names .separator {
        display: none;
    }

    .slide-nav {
        bottom: var(--spacing-md);
        gap: var(--spacing-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .nav-btn {
        width: 32px;
        height: 32px;
    }

    .nav-dot {
        width: 6px;
        height: 6px;
    }

    .nav-dot.active {
        width: 18px;
    }

    .sound-control {
        top: var(--spacing-md);
        left: var(--spacing-md);
        width: 40px;
        height: 40px;
    }
}

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .team-members {
        flex-direction: column;
        align-items: center;
    }

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

/* Laptop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        gap: var(--spacing-md);
    }
}

/* Large Screens (1441px+) */
@media (min-width: 1441px) {
    html {
        font-size: 18px;
    }

    .description-content {
        max-width: 1100px;
    }
}

/* Ultra Wide Screens (1920px+) */
@media (min-width: 1920px) {
    html {
        font-size: 20px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .slide {
        overflow-y: auto;
    }

    .intro-container {
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .intro-logo {
        width: 100px;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .intro-footer {
        position: relative;
        bottom: auto;
        transform: none;
        margin-top: var(--spacing-md);
    }

    .welcome-content {
        gap: var(--spacing-md);
        padding: var(--spacing-md) 0;
    }
}

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

/* Print Styles */
@media print {
    .slide-nav,
    .sound-control,
    .play-button {
        display: none !important;
    }

    .slide {
        position: relative;
        opacity: 1;
        visibility: visible;
        page-break-after: always;
    }
}

/* ============================================
   Parallax Effect (Slide 2)
   ============================================ */
.hero-image.parallax-active {
    will-change: transform;
}

/* ============================================
   Statistics Counter
   ============================================ */
.stats-container {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    opacity: 0;
    transform: translateY(30px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.stat-number {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-gold);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
}

.stat-plus,
.stat-suffix {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-gold);
    margin-right: 2px;
}

.stat-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-muted);
}

/* ============================================
   Typing Effect Cursor
   ============================================ */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--primary-gold);
    margin-right: 4px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   Auto-play Control
   ============================================ */
.autoplay-control {
    position: fixed;
    top: var(--spacing-lg);
    left: calc(var(--spacing-lg) + 108px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.autoplay-control.visible {
    opacity: 1;
    transform: translateY(0);
}

.autoplay-control:hover {
    background: var(--bg-dark-tertiary);
    border-color: var(--text-muted);
    color: var(--text-light);
}

.autoplay-control svg {
    width: 18px;
    height: 18px;
}

.autoplay-control .autoplay-on {
    display: none;
}

.autoplay-control.playing .autoplay-off {
    display: none;
}

.autoplay-control.playing .autoplay-on {
    display: block;
}

.autoplay-control.playing {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* ============================================
   Keyboard Shortcuts Hint
   ============================================ */
.shortcuts-hint {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 100;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.shortcuts-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

.shortcuts-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.shortcuts-toggle:hover {
    background: var(--bg-dark-tertiary);
    border-color: var(--text-muted);
    color: var(--text-light);
}

.shortcuts-toggle svg {
    width: 20px;
    height: 20px;
}

.shortcuts-panel {
    position: absolute;
    bottom: calc(100% + var(--spacing-sm));
    right: 0;
    width: 220px;
    padding: var(--spacing-md);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.shortcuts-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shortcuts-panel h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-align: center;
}

.shortcuts-panel ul {
    list-style: none;
}

.shortcuts-panel li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: var(--spacing-xs) 0;
}

.shortcuts-panel .key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 var(--spacing-sm);
    background: var(--bg-dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ============================================
   Confetti Canvas
   ============================================ */
#confettiCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#confettiCanvas.active {
    opacity: 1;
}

/* ============================================
   Additional Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .stats-container {
        gap: var(--spacing-lg);
        flex-wrap: wrap;
    }

    .shortcuts-hint {
        display: none;
    }

    .autoplay-control {
        left: calc(var(--spacing-md) + 100px);
    }
}

@media (max-width: 480px) {
    .stats-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .autoplay-control {
        left: calc(var(--spacing-md) + 90px);
        width: 40px;
        height: 40px;
    }
}
