/* ============================================
   Font Face - Bestime
   ============================================ */
@font-face {
    font-family: 'Bestime';
    src: url('assets/fonts/Bestime.ttf') format('truetype'),
         url('assets/fonts/Bestime.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #141420;
    --bg-card: #1a1a2e;
    --bg-card-hover: #1f1f3a;
    
    /* Brand Colors */
    --color-purple: #BDB5E8;
    --color-pink: #FFC8CD;
    --color-green: #B4D58E;
    --color-yellow: #FCD57B;
    --color-orange: #FE6136;
    --color-blue: #574AEB;
    --color-magenta: #FD93D5;
    --color-dark-green: #147B58;
    --color-gold: #F3B216;
    --color-red: #F14314;
    
    /* Primary brand colors for main elements */
    --brand-primary: #574AEB;
    --brand-secondary: #BDB5E8;
    --brand-accent: #FD93D5;
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6b6b7a;
    
    /* Gradients using brand colors */
    --gradient-primary: linear-gradient(135deg, #574AEB, #BDB5E8);
    --gradient-secondary: linear-gradient(135deg, #FD93D5, #FFC8CD);
    --gradient-accent: linear-gradient(135deg, #FCD57B, #FE6136);
    --gradient-vibrant: linear-gradient(135deg, #574AEB, #FD93D5, #FE6136);
    
    /* Shadows with brand colors */
    --shadow-neon: 0 0 20px rgba(87, 74, 235, 0.4), 0 0 40px rgba(87, 74, 235, 0.3);
    --shadow-pink: 0 0 20px rgba(253, 147, 213, 0.4), 0 0 40px rgba(253, 147, 213, 0.3);
    --shadow-orange: 0 0 20px rgba(254, 97, 54, 0.4), 0 0 40px rgba(254, 97, 54, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Bestime', 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Bestime', 'Orbitron', sans-serif;
    font-weight: 700;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(87, 74, 235, 0.4);
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Bestime', 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-purple);
    text-shadow: 0 0 10px rgba(189, 181, 232, 0.6);
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(189, 181, 232, 0.7));
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(189, 181, 232, 0.9));
}

.logo-icon {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-purple);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Orbitron', sans-serif;
}

.lang-btn:hover {
    border-color: var(--brand-purple-light);
    color: var(--brand-purple-light);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--gradient-primary);
    border-color: var(--brand-purple-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-neon);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-purple);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0.3;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.neon-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent, var(--color-blue), transparent),
        linear-gradient(0deg, transparent, var(--color-magenta), transparent);
    background-size: 200% 200%;
    animation: neonPulse 4s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes neonPulse {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero-banner {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    animation: floatLogo 3s ease-in-out infinite;
}

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

.hero-brand-logo {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(189, 181, 232, 0.6));
    transition: var(--transition);
}

@media (min-width: 768px) {
    .hero-brand-logo {
        max-height: 280px;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-glow {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(87, 74, 235, 0.6);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.title-main {
    display: block;
    color: var(--text-primary);
    font-weight: 900;
    margin-top: 0.5rem;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Buttons
   ============================================ */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Bestime', 'Orbitron', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--gradient-primary);
    border: 2px solid var(--color-purple);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-neon);
    cursor: pointer;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(87, 74, 235, 0.7), 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--color-blue);
    background: var(--gradient-vibrant);
}

.btn-download:active {
    transform: translateY(-1px);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* How to Play Button */
.btn-how-to-play {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 2px solid var(--brand-purple-light);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.btn-how-to-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--brand-purple);
    background: rgba(139, 92, 246, 0.1);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.4rem;
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% { transform: translate(-100%, -100%) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(100%, 100%) rotate(360deg); opacity: 0; }
}

/* ============================================
   Sections
   ============================================ */
section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.screenshot-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.2);
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-card);
}

.screenshot-item:hover {
    transform: translateY(-5px);
    border-color: var(--brand-purple-light);
    box-shadow: var(--shadow-neon);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    background: var(--bg-secondary);
}

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

.category-card {
    background: var(--bg-card);
    border: 2px solid rgba(189, 181, 232, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-purple);
    box-shadow: 0 0 20px rgba(189, 181, 232, 0.5), 0 0 40px rgba(189, 181, 232, 0.3);
}

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

.category-card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(189, 181, 232, 0.7));
    transition: var(--transition);
}

.category-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-purple);
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-purple), transparent);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.category-card:hover .card-glow {
    opacity: 0.2;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    background: var(--bg-primary);
}

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

.feature-item {
    background: var(--bg-card);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--color-magenta);
    box-shadow: var(--shadow-pink);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(176, 38, 255, 0.5));
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-magenta);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    text-align: center;
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.installation-instructions {
    margin-top: 4rem;
    background: var(--bg-card);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
}

.instructions-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-purple);
    text-align: center;
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
    margin-bottom: 1.5rem;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: 1rem 0 1rem 3rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.8;
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-neon);
}

.instructions-list li strong {
    color: var(--color-purple);
}

.instructions-note {
    background: rgba(189, 181, 232, 0.15);
    border-left: 4px solid var(--color-purple);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--color-purple);
}

.footer-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(189, 181, 232, 0.6));
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand-text {
    font-size: 1.5rem;
}


.footer-heading {
    font-size: 1.2rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-purple);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(0.8);
}

.social-link:hover {
    border-color: var(--brand-purple-light);
    box-shadow: var(--shadow-neon);
    transform: translateY(-3px) scale(1.1);
    background: rgba(139, 92, 246, 0.1);
}

.social-link:hover .social-icon-img {
    filter: brightness(1.2);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(87, 74, 235, 0.3);
    color: var(--text-muted);
}

/* ============================================
   Video Modal
   ============================================ */
.video-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);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 2px solid var(--brand-purple-light);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-neon);
    transform: scale(0.8);
    transition: var(--transition);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--brand-purple-light);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    line-height: 1;
}

.video-modal-close:hover {
    background: var(--brand-purple);
    border-color: var(--brand-purple-light);
    transform: rotate(90deg);
    box-shadow: var(--shadow-neon);
}

.video-modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-purple-light);
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%; /* Slightly smaller to fit more content */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    background: var(--bg-primary);
    margin-bottom: 1rem;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-instructions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.video-instructions-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.video-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--brand-purple-light);
    transition: var(--transition);
}

.video-step:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-neon);
}

.video-step p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.btn-submit-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    background: var(--gradient-primary);
    border: 2px solid var(--brand-purple-light);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-neon);
    cursor: pointer;
    margin-top: 1rem;
}

.btn-submit-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.7), 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--brand-purple);
}

[dir="rtl"] .video-step {
    border-left: none;
    border-right: 3px solid var(--brand-purple-light);
}

[dir="rtl"] .video-step:hover {
    transform: translateX(-5px);
}

/* Video Follow Us Section */
.video-follow-us {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
    text-align: center;
    display: block;
}

.video-follow-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.btn-follow-instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border: 2px solid rgba(188, 24, 136, 0.5);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(188, 24, 136, 0.3);
    cursor: pointer;
}

.btn-follow-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(188, 24, 136, 0.5), 0 10px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(188, 24, 136, 0.8);
}

.instagram-icon-btn {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ============================================
   Responsive Design
   ============================================ */
/* RTL Support for Arabic */
[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    flex-direction: row-reverse;
}

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

[dir="rtl"] .footer-content {
    direction: rtl;
}

[dir="rtl"] .instructions-list li {
    padding: 1rem 3rem 1rem 0;
}

[dir="rtl"] .instructions-list li::before {
    right: 0;
    left: auto;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        padding: 0 15px;
    }
    
    .nav-brand {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .nav-logo {
        height: 35px;
    }
    
    .language-switcher {
        order: -1;
        margin-right: auto;
        gap: 0.25rem;
    }
    
    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        padding: 2rem;
        border-top: 1px solid rgba(87, 74, 235, 0.4);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding-top: 70px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-banner {
        padding: 1rem 0.5rem;
    }
    
    .hero-brand-logo {
        max-height: 150px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        font-size: clamp(0.95rem, 3vw, 1.2rem);
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .btn-download {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-how-to-play {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .screenshots-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .screenshot-item {
        border-radius: 12px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 3rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .download-content {
        padding: 0 0.5rem;
    }
    
    .download-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .download-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .btn-large {
        width: 100%;
        max-width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .installation-instructions {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .instructions-title {
        font-size: 1.2rem;
    }
    
    .instructions-list li {
        padding: 0.75rem 0 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .instructions-list li::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.85rem;
    }
    
    .video-modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
        overflow-y: auto;
        margin: 1rem;
    }
    
    .video-modal-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .video-container {
        padding-bottom: 56.25%;
        margin-bottom: 1rem;
    }
    
    .video-instructions {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .video-instructions-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .video-steps {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .video-step {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .video-step p {
        font-size: 0.85rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .btn-submit-video {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .video-follow-us {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .video-follow-text {
        font-size: 0.9rem;
    }
    
    .btn-follow-instagram {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        height: 30px;
    }
    
    .footer-brand-text {
        font-size: 1.3rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-icon-img {
        width: 20px;
        height: 20px;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
        margin-bottom: 2rem;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar .container {
        padding: 0 10px;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .nav-logo {
        height: 30px;
    }
    
    .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .hero-banner {
        padding: 0.5rem;
    }
    
    .hero-brand-logo {
        max-height: 120px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }
    
    .hero-tagline {
        font-size: clamp(0.85rem, 4vw, 1.1rem);
        margin-bottom: 1.25rem;
    }
    
    .btn-download,
    .btn-how-to-play {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-icon {
        font-size: 1.2rem;
    }
    
    .btn-large {
        padding: 0.95rem 1.5rem;
        font-size: 1rem;
    }
    
    .category-card,
    .feature-item {
        padding: 1.25rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-description {
        font-size: 0.85rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }
    
    .section-subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }
    
    .download-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
    }
    
    .download-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    
    .installation-instructions {
        padding: 1.25rem;
    }
    
    .instructions-title {
        font-size: 1.1rem;
    }
    
    .instructions-list li {
        padding: 0.65rem 0 0.65rem 2.25rem;
        font-size: 0.85rem;
    }
    
    .instructions-list li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
        top: 0.65rem;
    }
    
    .video-modal-content {
        width: 98%;
        padding: 1.25rem;
        margin: 0.5rem;
    }
    
    .video-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .video-modal-title {
        font-size: 1.1rem;
    }
    
    .video-step {
        padding: 0.65rem;
    }
    
    .video-step p {
        font-size: 0.8rem;
    }
    
    .btn-follow-instagram {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .instagram-icon-btn {
        width: 18px;
        height: 18px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section {
        padding: 0;
    }
    
    .footer-title {
        font-size: 1.2rem;
    }
    
    .footer-brand-text {
        font-size: 1.1rem;
    }
    
    .footer-heading {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .social-icon-img {
        width: 18px;
        height: 18px;
    }
    
    .hero-section {
        padding-top: 60px;
        min-height: auto;
    }
    
    .section-title {
        line-height: 1.2;
    }
    
    .title-accent,
    .title-main {
        display: block;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .nav-brand {
        font-size: 0.9rem;
    }
    
    .nav-logo {
        height: 28px;
    }
    
    .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 8vw, 2rem);
    }
    
    .hero-tagline {
        font-size: clamp(0.8rem, 4.5vw, 1rem);
    }
    
    .btn-download,
    .btn-how-to-play {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .category-card,
    .feature-item {
        padding: 1rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
    
    .video-modal-content {
        width: 98%;
        padding: 1rem;
    }
}

/* ============================================
   Scroll Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

