/* ============================================
   MODERN PROFESSIONAL GAME SITE STYLES
   ============================================ */

/* CSS Variables - Modern Color Palette - Blue Theme */
:root {
    --main-color: #2563eb;
    --accent-color: #3b82f6;
    --secondary-color: #0ea5e9;
    --tertiary-color: #06b6d4;
    --orange-red: #ff6b4a;
    --orange-red-dark: #e55a3a;
    --background-color: #0f172a;
    --text-color: #ffffff;
    --section-bg: #1e293b;
    --card-bg: #1e293b;
    --glow-blue: rgba(37, 99, 235, 0.6);
    --glow-cyan: rgba(14, 165, 233, 0.6);
    --glow-orange: rgba(255, 107, 74, 0.5);
    --shadow-dark: rgba(0, 0, 0, 0.8);
    --gradient-primary: linear-gradient(135deg, var(--main-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--tertiary-color));
    --gradient-accent: linear-gradient(135deg, var(--orange-red), var(--orange-red-dark));
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* تخصيص شريط السكرول - لون أسود */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #000000;
}

body {
    font-family: 'Pixelify Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    visibility: visible;
}

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

.loading-content {
    text-align: center;
    position: relative;
}

.loading-logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 3rem;
    animation: loadingLogoFloat 2s ease-in-out infinite;
}

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

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--main-color);
    border-radius: 50%;
    animation: spinnerRotate 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: 0s;
    border-top-color: var(--main-color);
}

.spinner-ring:nth-child(2) {
    animation-delay: 0.5s;
    border-top-color: var(--secondary-color);
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.spinner-ring:nth-child(3) {
    animation-delay: 1s;
    border-top-color: var(--tertiary-color);
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
}

@keyframes spinnerRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 3px;
    animation: loadingTextPulse 1.5s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    box-shadow: 0 0 10px var(--glow-blue);
    transition: width 0.1s ease;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Section Title with Glow Effect */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    display: none;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: none;
}

header.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 4px 30px rgba(37, 99, 235, 0.4);
    background-color: rgba(15, 23, 42, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
    text-shadow: 0 0 20px var(--glow-blue);
    animation: logoFloat 4s ease-in-out infinite;
}

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

.nav-links {
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 60%;
    gap: 2rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--glow-blue);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--glow-cyan);
    transform: translateY(-2px);
}

.download-btn {
    background: var(--gradient-primary);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    z-index: 1;
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.download-btn:hover::before {
    width: 200px;
    height: 200px;
}

.download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    color: var(--text-color);
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--glow-blue);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulseGlow 5s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title,
.hero h2 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease-out 0.3s both;
}


.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: var(--text-color);
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: buttonPulse 2s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    isolation: isolate;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 99, 235, 0.7);
    }
}

.button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.7);
}

.cta-button:hover .button-icon {
    transform: translateY(3px);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-button:hover::after {
    width: 400px;
    height: 400px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

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

#hero-img {
    max-width: 90%;
    filter: drop-shadow(0 0 30px var(--glow-blue));
    animation: float 6s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 30px;
    border: 4px solid rgba(37, 99, 235, 0.2);
    padding: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1), rgba(255, 107, 74, 0.05));
}

#hero-img:hover {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 0 60px var(--glow-cyan)) drop-shadow(0 0 40px var(--glow-blue));
    border-color: var(--secondary-color);
    border-radius: 35px;
    box-shadow: 
        0 0 50px var(--glow-blue),
        inset 0 0 30px rgba(37, 99, 235, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(1deg);
    }
    50% {
        transform: translateY(-30px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-1deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 30px var(--glow-blue));
    }
    50% {
        filter: drop-shadow(0 0 50px var(--glow-cyan));
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 8rem 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}


.about-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: none !important;
    border: none !important;
    padding: 0;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.about-content::before,
.about-content::after {
    display: none !important;
}

.about-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
    background: none !important;
    border: none !important;
    padding: 0;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.about-wrapper::before,
.about-wrapper::after {
    display: none !important;
}

.about-text {
    flex: 1;
    padding-right: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
}

#gameplay-img {
    border-radius: 30px;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 8rem 0;
    background-color: var(--background-color);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    display: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 41, 59, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 25px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    animation: featureCardFloat 4s ease-in-out infinite;
}

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

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

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

.feature-card:hover {
    transform: translateY(-20px) scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    border-color: var(--main-color);
    border-radius: 30px;
    animation-play-state: paused;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(255, 107, 74, 0.2));
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
        transform: scale(1.05);
    }
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: none;
    animation-play-state: paused;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

/* Feature Icons - Base64 Encoded (keeping existing) */
.feature-icon.color-change::before {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48ZGVmcz48cmFkaWFsR3JhZGllbnQgaWQ9InJhaW5ib3ciIGN4PSI1MCUiIGN5PSI1MCUiIHI9IjUwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmM2QwMCIvPjxzdG9wIG9mZnNldD0iMTYlIiBzdG9wLWNvbG9yPSIjZmYzZDAwIi8+PHN0b3Agb2Zmc2V0PSIxNyUiIHN0b3AtY29sb3I9IiNmZjlhMDAiLz48c3RvcCBvZmZzZXQ9IjMzJSIgc3RvcC1jb2xvcj0iI2ZmOWEwMCIvPjxzdG9wIG9mZnNldD0iMzQlIiBzdG9wLWNvbG9yPSIjY2ZmZjAwIi8+PHN0b3Agb2Zmc2V0PSI1MCUiIHN0b3AtY29sb3I9IiNjZmZmMDAiLz48c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iIzAwZmYyMSIvPjxzdG9wIG9mZnNldD0iNjclIiBzdG9wLWNvbG9yPSIjMDBmZjIxIi8+PHN0b3Agb2Zmc2V0PSI2OCUiIHN0b3AtY29sb3I9IiMwMDgxZmYiLz48c3RvcCBvZmZzZXQ9Ijg0JSIgc3RvcC1jb2xvcj0iIzAwODFmZiIvPjxzdG9wIG9mZnNldD0iODUlIiBzdG9wLWNvbG9yPSIjYTkwMGZmIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG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CAyMDhoNDh2NDhoLTQ4eiIgZmlsbD0iIzAwZmY2NiIvPjxwYXRoIGQ9Ik0zMzYgMjA4aDQ4djQ4aC00OHoiIGZpbGw9IiNmZmQ3MDAiLz48cGF0aCBkPSJNMTQ0IDI3Mmg0OHY0OGgtNDh6IiBmaWxsPSIjYjQwMGZmIi8+PHBhdGggZD0iTTI3MiAyNzJoNDh2NDhoLTQ4eiIgZmlsbD0iI2ZmOTEwMCIvPjxjaXJjbGUgY3g9IjI1NiIgY3k9IjI1NiIgcj0iMTYiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMTQ0IDM0MGgyMjRNMTcyIDEyOHYyMjQiIHN0cm9rZT0iIzc3NGRjZiIgc3Ryb2tlLXdpZHRoPSI2IiBzdHJva2UtZGFzaGFycmF5PSIxMiA4Ii8+PGNpcmNsZSBjeD0iMjU2IiBjeT0iMTY4IiByPSI4IiBmaWxsPSIjZmZmIi8+PGNpcmNsZSBjeD0iMTY4IiBjeT0iMjU2IiByPSI4IiBmaWxsPSIjZmZmIi8+PGNpcmNsZSBjeD0iMzQ0IiBjeT0iMjU2IiByPSI4IiBmaWxsPSIjZmZmIi8+PGNpcmNsZSBjeD0iMjU2IiBjeT0iMzQ0IiByPSI4IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTIxNiAyNTZoODBNMjU2IDIxNnY4MCIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIG9wYWNpdHk9IjAuNSIvPjwvc3ZnPg==");
    background-size: 100% 100%;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--main-color);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.feature-card p {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   GALLERY SECTION - PROFESSIONAL PHOTO ALBUM
   ============================================ */
.gallery-section {
    padding: 8rem 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 2500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    padding: 4rem 3rem;
    min-height: 400px;
    /* iOS Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gallery-section::before {
    display: none;
}

.gallery-section .section-title {
    position: relative;
    z-index: 1;
}


.gallery-item {
    overflow: hidden;
    border-radius: 35px;
    position: relative;
    cursor: pointer;
    height: 320px;
    border: 3px solid transparent;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(37, 99, 235, 0.3);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.6),
            0 0 30px rgba(37, 99, 235, 0.5);
    }
}

@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .gallery-item {
        height: 300px;
    }
}

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

.gallery-item:hover::before {
    opacity: 0.15;
}

.gallery-item:hover {
    border-color: var(--main-color);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.9),
        0 0 50px var(--glow-blue),
        0 0 80px var(--glow-orange),
        inset 0 0 30px rgba(37, 99, 235, 0.2);
    transform: translateY(-20px) scale(1.05) rotate(1deg);
    border-radius: 40px;
    animation-play-state: paused;
}

.gallery-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(0.9);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    background: transparent;
    display: block;
    margin: 0 auto;
    border-radius: 30px;
    animation: galleryImagePulse 4s ease-in-out infinite;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: default;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
    transition: transform 0.3s ease, opacity 0.2s ease;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
}

/* أنيميشن ظهور أولي - قرص دوار مع تراقص */
@keyframes discSpin {
    0% {
        transform: scale(0) rotate(0deg) translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        transform: scale(0.3) rotate(45deg) translateY(-20px) translateX(10px);
        opacity: 0.3;
    }
    20% {
        transform: scale(0.6) rotate(90deg) translateY(15px) translateX(-15px);
        opacity: 0.5;
    }
    30% {
        transform: scale(0.9) rotate(135deg) translateY(-10px) translateX(20px);
        opacity: 0.6;
    }
    40% {
        transform: scale(1.15) rotate(180deg) translateY(25px) translateX(-10px);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3) rotate(225deg) translateY(-15px) translateX(15px);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.2) rotate(270deg) translateY(20px) translateX(-20px);
        opacity: 0.85;
    }
    70% {
        transform: scale(1.1) rotate(315deg) translateY(-12px) translateX(12px);
        opacity: 0.9;
    }
    80% {
        transform: scale(1.05) rotate(340deg) translateY(8px) translateX(-8px);
        opacity: 0.95;
    }
    90% {
        transform: scale(0.98) rotate(355deg) translateY(-5px) translateX(5px);
        opacity: 0.98;
    }
    95% {
        transform: scale(1.01) rotate(358deg) translateY(3px) translateX(-3px);
        opacity: 0.99;
    }
    100% {
        transform: scale(1) rotate(360deg) translateY(0px) translateX(0px);
        opacity: 1;
    }
}

.lightbox-img.initial-appear {
    animation: discSpin 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center center;
}

/* أنيميشن تحريك صفحة كتاب - للانتقال بين الصور */
@keyframes pageTurnLeft {
    0% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: perspective(1000px) rotateY(-90deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes pageTurnRight {
    0% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: perspective(1000px) rotateY(90deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: perspective(1000px) rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.lightbox-img.page-turn-left {
    animation: pageTurnLeft 1.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lightbox-img.page-turn-right {
    animation: pageTurnRight 1.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 50%;
    color: #0ea5e9;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.lightbox-close {
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
}

.lightbox-nav {
    width: 60px;
    height: 60px;
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(37, 99, 235, 0.4);
    border-color: rgba(14, 165, 233, 0.5);
    color: #3b82f6;
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

@media screen and (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
}

@keyframes galleryImagePulse {
    0%, 100% {
        filter: brightness(0.9) drop-shadow(0 0 10px rgba(37, 99, 235, 0.3));
    }
    50% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(37, 99, 235, 0.5));
    }
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.2) drop-shadow(0 0 30px var(--glow-blue));
    border-radius: 35px;
    animation-play-state: paused;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* iOS Glassmorphism Effect - White Transparent */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    padding: 2rem;
    border-radius: 35px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 0.85;
}

.gallery-icon {
    font-size: 3rem;
    transform: scale(0) rotate(0deg);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    color: white;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1) rotate(360deg);
}

.gallery-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Gallery filter buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--card-bg);
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 25px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: var(--main-color);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Hide filtered items */
.gallery-item.hidden {
    display: none;
}

/* ============================================
   CHARACTERS SECTION
   ============================================ */
.characters-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--background-color) 0%, var(--section-bg) 100%);
    position: relative;
    overflow: hidden;
}

.characters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
}

.character-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-radius: 30px;
    padding: 2.5rem;
    border: 3px solid transparent;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    animation: characterCardGlow 4s ease-in-out infinite;
}

@keyframes characterCardGlow {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(37, 99, 235, 0.3);
    }
}

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

.character-card:hover::before {
    opacity: 0.1;
}

.character-card:hover {
    transform: translateY(-20px) scale(1.05) rotate(1deg);
    border-color: var(--main-color);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.9),
        0 0 50px var(--glow-blue),
        0 0 80px var(--glow-orange),
        inset 0 0 30px rgba(37, 99, 235, 0.2);
    border-radius: 35px;
    animation-play-state: paused;
}

.character-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px var(--glow-blue);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    animation: characterImageFloat 5s ease-in-out infinite;
}

@keyframes characterImageFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid rgba(37, 99, 235, 0.3);
    animation: characterImageRotate 8s linear infinite;
}

@keyframes characterImageRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.character-card:hover .character-image img {
    animation-play-state: paused;
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--glow-orange);
}

.character-card:hover .character-image {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 60px var(--glow-orange), 0 0 80px var(--glow-blue);
    animation-play-state: paused;
}

.character-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: characterPulse 3s ease-in-out infinite;
    z-index: 1;
}

.character-icon {
    position: absolute;
    font-size: 2.5rem;
    z-index: 3;
    filter: drop-shadow(0 0 10px var(--glow-blue));
    opacity: 0.9;
    transition: all 0.4s ease;
    pointer-events: none;
    color: var(--secondary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-image img {
    display: block;
}

.character-card:hover .character-icon {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
}

@keyframes characterPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.character-info {
    text-align: center;
    position: relative;
    z-index: 1;
}

.character-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px var(--glow-blue);
}

.character-role {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.character-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    text-align: left;
}

.stat-name {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s ease;
    box-shadow: 0 0 10px var(--glow-blue);
    position: relative;
}

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   REQUIREMENTS SECTION
   ============================================ */
.requirements-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--section-bg) 0%, var(--background-color) 100%);
    position: relative;
}

.requirements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.requirements-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 30, 30, 0.9) 100%);
    border-radius: 25px;
    padding: 3rem;
    border: 3px solid rgba(37, 99, 235, 0.3);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: requirementsCardGlow 4s ease-in-out infinite;
}

@keyframes requirementsCardGlow {
    0%, 100% {
        border-color: rgba(37, 99, 235, 0.3);
    }
    50% {
        border-color: rgba(37, 99, 235, 0.5);
    }
}

.requirements-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.requirements-card:hover::before {
    transform: scaleX(1);
}

.requirements-card:hover {
    transform: translateY(-15px) scale(1.03) rotate(1deg);
    border-color: var(--main-color);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 40px var(--glow-blue),
        0 0 60px var(--glow-orange),
        inset 0 0 25px rgba(37, 99, 235, 0.2);
    border-radius: 30px;
    animation-play-state: paused;
}

.requirements-card.recommended {
    border-color: rgba(255, 107, 74, 0.3);
}

.requirements-card.recommended::before {
    background: var(--gradient-secondary);
}

.requirements-card.recommended:hover {
    border-color: var(--accent-color);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px var(--glow-orange);
}

.requirements-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
}

.requirements-card.recommended h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
}

.requirements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--main-color);
    transition: all 0.3s ease;
}

.requirements-list li:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateX(10px);
    border-left-color: var(--accent-color);
}

.req-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px var(--glow-blue));
}

.requirements-list li strong {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* ============================================
   TRAILER/STATS SECTION
   ============================================ */
.trailer-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--section-bg) 100%);
    position: relative;
    overflow: hidden;
}

.trailer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 107, 74, 0.2) 0%, transparent 50%);
    z-index: 0;
}

.trailer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.trailer-description {
    font-size: 1.3rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 30, 30, 0.8) 100%);
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: statCardPulse 3s ease-in-out infinite;
}

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

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

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card:hover {
    transform: translateY(-15px) scale(1.05) rotate(2deg);
    border-color: var(--main-color);
    box-shadow: 
        0 20px 50px rgba(37, 99, 235, 0.6),
        0 0 40px var(--glow-blue),
        inset 0 0 20px rgba(37, 99, 235, 0.2);
    border-radius: 30px;
    animation-play-state: paused;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px var(--glow-blue);
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, var(--background-color) 0%, #060606 100%);
    padding: 4rem 0;
    border-top: 1px solid rgba(37, 99, 235, 0.3);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--glow-blue);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo h2 {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px var(--glow-blue);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 1024px) {
    .nav-links {
        width: 70%;
        gap: 1.5rem;
    }
    
    .hero h2 {
        font-size: 3.5rem;
    }
    
    .about-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
    
    .about-text {
        padding-right: 0;
    }
}

/* Responsive adjustments for new sections */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
    }
    
    .requirements-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding: 6rem 0;
        z-index: 999;
        border-left: 2px solid var(--main-color);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .burger {
        display: flex;
        z-index: 1001;
    }
    
    .burger.active .line1 {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .gallery-item {
        height: 280px;
        padding: 8px;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .characters-grid {
        padding: 0 1rem;
    }
    
    .character-image {
        width: 150px;
        height: 150px;
    }
    
    .requirements-container {
        padding: 0 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}
