/* ===================================
   NawaOS Website - Professional Theme
   =================================== */

/* CSS Variables */
:root {
    --primary: #9400D3;
    --primary-light: #B041FF;
    --primary-dark: #6A0DAD;
    --secondary: #00D4FF;
    --accent: #FF6B35;

    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f17;
    --bg-card: #13131d;
    --bg-card-hover: #1a1a28;

    --text-primary: #ffffff;
    --text-secondary: #8b8b9e;
    --text-muted: #5c5c6d;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(148, 0, 211, 0.4);

    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-bg: radial-gradient(ellipse at top, #1a1a2e 0%, var(--bg-primary) 70%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(148, 0, 211, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.15s ease;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Cairo', 'Inter', sans-serif;
}

/* Light Mode */
html[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;
    
    --text-primary: #1a1a2e;
    --text-secondary: #5c5c6d;
    --text-muted: #8b8b9e;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(148, 0, 211, 0.3);
    
    --gradient-bg: radial-gradient(ellipse at top, #e8e8f0 0%, var(--bg-primary) 70%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 60px rgba(148, 0, 211, 0.1);
}

html[data-theme="light"] .hero-bg,
html[data-theme="light"] .hero-gradient {
    opacity: 0.3;
}

html[data-theme="light"] .comparison-table th,
html[data-theme="light"] .comparison-table td {
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .phone-mockup {
    background: linear-gradient(145deg, #e0e0e8, #f5f5f7);
    border-color: #d0d0d8;
}

html[data-theme="light"] .phone-screen {
    background: linear-gradient(180deg, #f8f8fc 0%, #f0f0f5 100%);
}

html[data-theme="light"] .navbar.scrolled {
    background: rgba(245, 245, 247, 0.95);
}

/* RTL Support */
html[dir="rtl"] {
    --font-primary: var(--font-ar);
}

html[dir="ltr"],
html:not([dir]) {
    --font-primary: var(--font-en);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

html[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

html[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-nav {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(148, 0, 211, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(148, 0, 211, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-download {
    padding: 18px 40px;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 40px rgba(148, 0, 211, 0.4);
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 50px rgba(148, 0, 211, 0.5);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(148, 0, 211, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(148, 0, 211, 0.1);
    border: 1px solid rgba(148, 0, 211, 0.2);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge svg {
    color: var(--secondary);
}

.debian-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(215, 7, 81, 0.1);
    border: 1px solid rgba(215, 7, 81, 0.3);
    border-radius: 100px;
    color: #d70751;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    margin-left: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.debian-badge:hover {
    background: rgba(215, 7, 81, 0.2);
    border-color: rgba(215, 7, 81, 0.5);
    transform: translateY(-2px);
}

.debian-badge svg {
    color: #d70751;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Mockup */
.hero-visual {
    position: relative;
}

.hero-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.mockup-dots .dot:nth-child(1) {
    background: #ff5f57;
}

.mockup-dots .dot:nth-child(2) {
    background: #febc2e;
}

.mockup-dots .dot:nth-child(3) {
    background: #28c840;
}

.mockup-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mockup-content {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 60px;
    padding: 16px 0;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.sidebar-icon.active {
    background: rgba(148, 0, 211, 0.2);
    color: var(--primary-light);
}

.sidebar-icon svg {
    width: 20px;
    height: 20px;
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-content: start;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.app-card:hover {
    background: rgba(148, 0, 211, 0.1);
    border-color: var(--border-hover);
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.app-icon.steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
}

.app-icon.lutris {
    background: linear-gradient(135deg, #ff6600, #ee5500);
}

.app-icon.retroarch {
    background: linear-gradient(135deg, #000, #333);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(148, 0, 211, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(148, 0, 211, 0.1);
    border: 1px solid rgba(148, 0, 211, 0.2);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===================================
   Features
   =================================== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   Gaming Section
   =================================== */
.gaming {
    background: var(--gradient-bg);
}

.gaming-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gaming-content .section-tag {
    margin-bottom: 12px;
}

.gaming-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.gaming-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.platforms-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.platform-item:hover {
    border-color: var(--border-hover);
    transform: translateX(-4px);
}

.platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 0, 211, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
}

.platform-icon svg {
    width: 24px;
    height: 24px;
}

.platform-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.platform-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Gaming Visual */
.gaming-visual {
    position: relative;
    height: 400px;
}

.gaming-cards {
    position: relative;
    height: 100%;
}

.game-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}

.game-card svg {
    color: var(--primary-light);
}

.gc-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.gc-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

.gc-3 {
    top: 55%;
    left: 10%;
    animation-delay: 2s;
}

.gc-4 {
    top: 75%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ===================================
   Comparison Section
   =================================== */
.comparison {
    background: var(--bg-secondary);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table th.highlight {
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.3), rgba(0, 212, 255, 0.2));
    color: var(--primary);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table td.highlight {
    background: rgba(148, 0, 211, 0.05);
}

.comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table .check {
    color: #22c55e;
    font-size: 1.2rem;
}

.comparison-table .partial {
    color: #f59e0b;
    font-size: 1.2rem;
}

.comparison-table .cross {
    color: #ef4444;
    font-size: 1.2rem;
}

.comparison-legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comparison-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .comparison-legend {
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ===================================
   Screenshots / Gallery Showcase
   =================================== */
.screenshots {
    background: var(--bg-primary);
    overflow: hidden;
}

/* Gallery Showcase Container */
.gallery-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

/* Main Showcase Frame */
.showcase-main {
    margin-bottom: 32px;
}

.showcase-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(148, 0, 211, 0.1);
    transition: var(--transition);
}

.showcase-frame:hover {
    box-shadow:
        0 25px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(148, 0, 211, 0.2),
        0 0 40px rgba(148, 0, 211, 0.1);
}

.frame-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
}

.frame-dots {
    display: flex;
    gap: 6px;
}

.frame-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.frame-dots span:nth-child(1) {
    background: #ff5f57;
}

.frame-dots span:nth-child(2) {
    background: #febc2e;
}

.frame-dots span:nth-child(3) {
    background: #28c840;
}

.frame-title {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Showcase Image Container */
.showcase-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.showcase-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.showcase-main-img:hover {
    transform: scale(1.02);
}

/* Navigation Buttons */
.showcase-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-image-container:hover .showcase-nav {
    opacity: 1;
}

.showcase-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.showcase-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.showcase-btn svg {
    width: 24px;
    height: 24px;
}

/* Counter */
.showcase-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 100px;
    font-size: 0.85rem;
    color: white;
    backdrop-filter: blur(10px);
}

/* Thumbnails */
.showcase-thumbnails {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    position: relative;
    width: 140px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(148, 0, 211, 0.4);
}

.thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.thumbnail:hover .thumbnail-overlay {
    transform: translateY(0);
}

.thumbnail-overlay span {
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-thumbnails {
        gap: 10px;
    }

    .thumbnail {
        width: 100px;
        height: 60px;
    }

    .showcase-btn {
        width: 40px;
        height: 40px;
    }

    .showcase-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* ===================================
   Download Section
   =================================== */
.download {
    background: var(--bg-secondary);
}

.download-card {
    position: relative;
    padding: 64px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(148, 0, 211, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 212, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.download-content>p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.download-specs {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec svg {
    color: var(--primary-light);
}

.spec-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.spec-value {
    font-weight: 600;
}

.download-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.credentials-box {
    margin-top: 24px;
    padding: 20px 28px;
    background: rgba(148, 0, 211, 0.08);
    border: 1px solid rgba(148, 0, 211, 0.2);
    border-radius: var(--radius-md);
    display: inline-block;
}

.credentials-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.credentials-info {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.credential {
    display: flex;
    align-items: center;
    gap: 8px;
}

.credential-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.credential-value {
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-primary);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-col a.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.footer-col a.coming-soon::after {
    content: ' (Soon)';
    font-size: 0.7rem;
    color: var(--primary-light);
}

.footer-email {
    display: block;
    color: var(--primary-light);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Newsletter */
.newsletter {
    margin-top: 24px;
}

.newsletter h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.btn-subscribe {
    padding: 10px 14px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.btn-subscribe:hover {
    transform: scale(1.05);
}

.newsletter-msg {
    margin-top: 8px;
    font-size: 0.8rem;
    min-height: 20px;
}

.newsletter-msg.success {
    color: #4ade80;
}

.newsletter-msg.error {
    color: #f87171;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* ===================================
   RTL Styles
   =================================== */
html[dir="rtl"] body {
    font-family: var(--font-ar);
}

html[dir="rtl"] .hero-container {
    direction: rtl;
}

html[dir="rtl"] .platform-item:hover {
    transform: translateX(4px);
}

html[dir="rtl"] .gaming-content .section-title {
    text-align: right;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gaming-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .gaming-content .section-title {
        text-align: center;
    }

    .gaming-visual {
        display: none;
    }

    .screenshots-grid {
        grid-template-columns: 1fr 1fr;
    }

    .screenshot-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-color);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-item.large {
        grid-column: span 1;
    }

    .download-card {
        padding: 40px 24px;
    }

    .download-specs {
        flex-direction: column;
        gap: 20px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: var(--radius-md);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: rgba(148, 0, 211, 0.5);
    border-color: var(--primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.screenshot-img {
    cursor: pointer;
}

/* ===================================
   Changelog Section
   =================================== */
.changelog {
    background: var(--bg-primary);
}

.changelog-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.changelog-item {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 48px;
}

.changelog-item:last-child {
    padding-bottom: 0;
}

.changelog-item:last-child .marker-line {
    display: none;
}

.changelog-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--border-color);
    z-index: 1;
    transition: var(--transition);
}

.changelog-item.latest .marker-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(148, 0, 211, 0.3), 0 0 20px rgba(148, 0, 211, 0.4);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(148, 0, 211, 0.3), 0 0 20px rgba(148, 0, 211, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(148, 0, 211, 0.2), 0 0 30px rgba(148, 0, 211, 0.6);
    }
}

.marker-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--border-color), transparent);
    margin-top: 8px;
}

.changelog-content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.changelog-item.latest .changelog-content {
    border-color: rgba(148, 0, 211, 0.3);
    box-shadow: 0 0 30px rgba(148, 0, 211, 0.1);
}

.changelog-content:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.version-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.version-badge.latest-badge {
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.2), rgba(0, 212, 255, 0.2));
    border-color: rgba(148, 0, 211, 0.4);
    color: var(--primary-light);
}

.version-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.version-date {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.changelog-body {
    padding: 24px;
}

.changelog-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.changelog-body h4:not(:first-child) {
    margin-top: 24px;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.changelog-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.changelog-list .check-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #28c840;
    margin-top: 2px;
}

.changelog-list .arrow-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--secondary);
    margin-top: 2px;
}

.changelog-list.improvements li {
    color: var(--text-muted);
}

/* RTL Support for Changelog */
html[dir="rtl"] .changelog-content:hover {
    transform: translateX(-4px);
}

html[dir="rtl"] .version-date {
    margin-left: 0;
    margin-right: auto;
}

/* Responsive Changelog */
@media (max-width: 768px) {
    .changelog-item {
        gap: 16px;
    }

    .changelog-header {
        padding: 16px 20px;
    }

    .version-title {
        font-size: 1.1rem;
    }

    .version-date {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
        order: 3;
    }

    .changelog-body {
        padding: 20px;
    }

    .changelog-list li {
        font-size: 0.9rem;
    }
}

/* ===================================
   Android Companion App Section
   =================================== */
.android-app {
    background: var(--gradient-bg);
    padding: 100px 0;
}

.android-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.android-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.android-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: var(--transition);
}

.android-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.android-feature .feature-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.android-feature .feature-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.android-feature .feature-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.android-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.phone-mockup {
    width: 280px;
    height: 500px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(148, 0, 211, 0.15);
    border: 3px solid #2a2a3e;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
    border-radius: 28px;
    overflow: hidden;
}

.app-preview {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.app-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-stats .stat-item {
    background: rgba(148, 0, 211, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.app-stats .stat-value {
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 280px;
}

.btn-android, .btn-fdroid {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.btn-android:hover:not(.disabled), .btn-fdroid:hover:not(.disabled) {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.btn-android.disabled, .btn-fdroid.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-android svg, .btn-fdroid svg {
    width: 28px;
    height: 28px;
    color: #3ddc84;
}

.btn-fdroid svg {
    color: #1976d2;
}

.btn-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.android-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Responsive Android Section */
@media (max-width: 992px) {
    .android-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .android-download {
        order: -1;
    }
    
    .phone-mockup {
        width: 240px;
        height: 420px;
    }
}

@media (max-width: 576px) {
    .android-features {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Open Source Section
   =================================== */
.opensource {
    background: var(--bg-secondary);
}

.opensource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.opensource-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.opensource-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.opensource-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.opensource-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.opensource-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.opensource-card .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.opensource-card .btn-outline:hover {
    background: var(--primary);
    color: white;
}

.code-notice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    text-align: center;
}

.code-notice p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 992px) {
    .opensource-grid {
        grid-template-columns: 1fr;
    }
}