/* ============================================
   Modern CSS for Sonic Racing Save Manager
   ============================================ */

/* CSS Variables */
:root {
    --primary: #7c4dff;
    --primary-dark: #6200ea;
    --secondary: #9575cd;
    --accent: #ff6b00;
    --accent-light: #ff8534;
    --dark: #0a0a0f;
    --dark-light: #1a1a24;
    --gray: #8e8e93;
    --light: #f5f5f7;
    --white: #ffffff;
    --success: #00c9a7;
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation Bar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.nav-logo i {
    color: var(--primary);
    font-size: 24px;
}

.nav-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 77, 255, 0.3);
}

/* Language Selector */
.language-selector {
    position: relative;
    margin-left: 16px;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 77, 255, 0.5);
}

.flag-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.flag-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-btn.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-light);
    border: 1px solid rgba(124, 77, 255, 0.2);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    font-size: 14px;
}

.language-option:hover {
    background: rgba(124, 77, 255, 0.1);
}

.language-option.selected {
    background: rgba(124, 77, 255, 0.2);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(124, 77, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 77, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn i {
    font-size: 18px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 77, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-github {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.btn-github-alt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--white);
    margin-top: 20px;
}

.btn-github-alt:hover {
    border-color: var(--primary);
    background: rgba(124, 77, 255, 0.05);
    transform: translateY(-2px);
}

.btn-github-primary {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.3);
}

.btn-github-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(124, 77, 255, 0.4);
}

.btn-gamebanana {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
    border: none;
    font-weight: 700;
}

.btn-gamebanana:hover {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

.btn-gamebanana-alt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(255, 193, 7, 0.3);
    background: transparent;
    color: var(--white);
    margin-top: 20px;
}

.btn-gamebanana-alt:hover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.btn-gamebanana-primary {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.3);
}

.btn-gamebanana-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffd54f 0%, #ffb74d 100%);
}

.btn-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-icon-img-small {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.download-section-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.stat i {
    color: var(--primary);
    font-size: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease-out 1s both;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0%, 20% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

.scroll-indicator p {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Section Header (Reusable)
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 120px 0;
    position: relative;
    background: var(--dark-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 77, 255, 0.3);
    box-shadow: 0 16px 48px rgba(124, 77, 255, 0.1);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots {
    padding: 120px 0;
    background: var(--dark);
}

.screenshots-grid {
    display: grid;
    gap: 48px;
}

.screenshot-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.screenshot-item:nth-child(even) {
    direction: rtl;
}

.screenshot-item:nth-child(even) > * {
    direction: ltr;
}

.screenshot-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.screenshot-image:hover {
    transform: scale(1.02);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.screenshot-image img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(124, 77, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.screenshot-overlay i {
    font-size: 48px;
    color: var(--white);
}

.screenshot-image:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-info {
    position: relative;
}

.screenshot-number {
    font-size: 64px;
    font-weight: 900;
    color: rgba(124, 77, 255, 0.2);
    line-height: 1;
    margin-bottom: 16px;
}

.screenshot-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.screenshot-info p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

/* ============================================
   Download Section
   ============================================ */
.download-section {
    padding: 120px 0;
    background: var(--dark-light);
}

.download-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 64px 48px;
    max-width: 700px;
    margin: 0 auto;
}

.download-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.download-icon i {
    font-size: 36px;
    color: var(--white);
}

.download-card h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-card > p {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 32px;
}

.btn-download {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 20px 48px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: 0 12px 32px rgba(124, 77, 255, 0.3);
    margin-bottom: 32px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-download i {
    font-size: 24px;
    margin-bottom: 4px;
}

.btn-download span {
    display: block;
}

.btn-download small {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    display: block;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(124, 77, 255, 0.4);
}

.download-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.info-item i {
    color: var(--success);
    font-size: 16px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 48px 0;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand i {
    color: var(--primary);
    font-size: 24px;
}

.footer-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-text p {
    color: var(--gray);
    font-size: 14px;
    margin: 4px 0;
}

.footer-text i {
    color: #ff4458;
}

/* ============================================
   Download Modal
   ============================================ */
.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: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
    overflow: hidden;
}

.modal-content {
    position: relative;
    background: var(--dark-light);
    border: 1px solid rgba(124, 77, 255, 0.2);
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    font-size: 18px;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 48px 40px 32px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon i {
    font-size: 36px;
    color: var(--white);
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--white);
}

.modal-header p {
    color: var(--gray);
    font-size: 16px;
}

.modal-body {
    padding: 0 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-with-footer {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-body-with-footer {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.modal-footer {
    padding: 20px 40px;
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    bottom: 0;
    border-radius: 0 0 24px 24px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
    cursor: pointer;
}

.download-option:hover {
    background: rgba(124, 77, 255, 0.05);
    border-color: rgba(124, 77, 255, 0.3);
    transform: translateX(8px);
}

.download-option-icon {
    width: 60px;
    height: 60px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-option-icon i {
    font-size: 28px;
    color: var(--primary);
}

.download-option-info {
    flex: 1;
}

.download-option-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.download-option-info p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
}

.download-option-meta {
    display: flex;
    gap: 8px;
}

.download-option-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary);
    background: rgba(124, 77, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.download-option-meta i {
    font-size: 10px;
}

.download-option-arrow {
    flex-shrink: 0;
    color: var(--gray);
    font-size: 20px;
    transition: var(--transition);
}

.download-option:hover .download-option-arrow {
    color: var(--primary);
    transform: translateX(4px);
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(124, 77, 255, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 77, 255, 0.5);
}

/* GitHub Modal Specific Styles */
.modal-large {
    max-width: 800px;
}

.modal-icon-github {
    background: linear-gradient(135deg, #24292e 0%, #1a1e22 100%);
}

.github-preview {
    width: 100%;
}

.github-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 20px;
}

.github-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
}

.github-breadcrumb i {
    font-size: 18px;
    color: var(--white);
}

.github-breadcrumb span:nth-child(2),
.github-breadcrumb span:nth-child(4) {
    color: var(--white);
    font-weight: 600;
}

.github-branch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.github-file-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.github-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.github-file-item:last-child {
    border-bottom: none;
}

.github-file-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.github-file-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.github-file-item.folder i {
    color: #54aeff;
}

.github-file-item.file i {
    color: var(--gray);
}

.github-file-item span {
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
}

/* GameBanana Modal Styles */
.modal-icon-gamebanana {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.gamebanana-preview {
    width: 100%;
}

.gamebanana-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 24px;
}

.gamebanana-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gamebanana-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    flex-shrink: 0;
}

.gamebanana-title-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.gamebanana-category {
    color: #ffc107;
    font-size: 14px;
    font-weight: 600;
}

.gamebanana-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.gamebanana-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.1);
    border-radius: 12px;
}

.gamebanana-stat i {
    font-size: 24px;
    color: #ffc107;
}

.gamebanana-stat div strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.gamebanana-stat div span {
    font-size: 12px;
    color: var(--gray);
}

.gamebanana-description {
    margin-bottom: 24px;
}

.gamebanana-description h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.gamebanana-description p {
    color: var(--gray);
    line-height: 1.6;
}

.gamebanana-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gamebanana-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 20px;
    font-size: 13px;
    color: #ffc107;
    font-weight: 600;
}

.gamebanana-feature-tag i {
    font-size: 12px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .modal-header {
        padding: 32px 24px 24px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-body {
        padding: 0 24px 24px;
    }

    .download-option {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .download-option-arrow {
        display: none;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .nav-cta {
        padding: 6px 16px;
        font-size: 14px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots {
        padding: 80px 0;
    }

    .screenshot-item,
    .screenshot-item:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .screenshot-number {
        font-size: 48px;
    }

    .screenshot-info h3 {
        font-size: 24px;
    }

    .download-section {
        padding: 80px 0;
    }

    .download-card {
        padding: 48px 24px;
    }

    .download-card h2 {
        font-size: 28px;
    }

    .download-info {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-logo span {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}
