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

:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --pink: #ff00ff;
    --blue: #00ffff;
    --gradient: linear-gradient(45deg, var(--pink), var(--blue));
    --gradient-reverse: linear-gradient(45deg, var(--blue), var(--pink));
    --text-light: #ffffff;
    --text-gray: #bbbbbb;
    --shadow: 0 0 20px rgba(255,0,255,0.3), 0 0 30px rgba(0,255,255,0.3);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Design Tokens */
    --font-size-base: 1rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2.5rem;
    --font-size-xxl: 3.5rem;
    --border-radius-sm: 5px;
    --border-radius-md: 15px;
    --border-radius-lg: 50px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --animation-duration-fast: 0.3s;
    --animation-duration-normal: 0.4s;
    --animation-duration-slow: 0.6s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: var(--font-size-base);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    /* Keep essential transitions but make them instant */
    .hero .btn,
    .tab-btn,
    .feature-card {
        transition-duration: 0.001ms !important;
    }
}

/* Changelog Styles */
.changelog-items {
    margin-top: 1.5rem;
}
.changelog-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,0,255,0.1);
}
.changelog-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.version-badge {
    background: var(--gradient);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: bold;
}
.changelog-header h3 {
    margin: 0;
    font-size: 1.25rem;
}
.changelog-description {
    margin-bottom: 1rem;
    color: var(--text-gray);
}
.changelog-details {
    list-style: none;
    padding: 0;
    margin: 0;
}
.changelog-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}
.changelog-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--pink);
}
.changelog-status {
    font-style: italic;
    color: var(--text-gray);
    margin-top: 1rem;
    display: block;
}

/* Credits Styles */
.credits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.credits-category {
    margin-bottom: 1rem;
}
.credits-category h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-light);
}
.credits-category p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
}
.credits-note {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-darker);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255,0,255,0.2);
}
.credits-note h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-light);
}
.credits-note p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Feature Card Inner Elements */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}
.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}
.feature-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    margin: 2rem 0;
}
.stat-item {
    text-align: center;
    padding: 1rem;
}
.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--gradient);
}
.stat-item h3 {
    font-size: 2rem;
    margin: 0.5rem 0;
    color: var(--text-light);
}
.stat-item p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Hero Actions */
.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-actions .btn {
    flex: 1 1 200px;
}

/* Info Box */
.info-box {
    background: var(--bg-darker);
    border: 1px solid rgba(255,0,255,0.2);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Placeholder Elements */
.placeholder-content {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
    font-style: italic;
}
.screenshot-placeholder,
.video-placeholder {
    background: var(--bg-darker);
    border-radius: var(--border-radius-md);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.screenshot-overlay,
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.screenshot-card:hover .screenshot-overlay,
.video-card:hover .video-overlay {
    opacity: 1;
}

/* Update Section */
.update-card {
    background: var(--bg-darker);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    border: 1px solid rgba(255,0,255,0.2);
}
.update-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-light);
}
.update-card p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
}
.update-card small {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Footer Inner Elements */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-info p {
    margin: 0;
}
.footer-disclaimer p {
    margin: 0;
    font-size: 0.875rem;
}

/* Utility Classes */
.fas {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Tab Content */
.tab-content {
    margin-top: 2rem;
}

/* Update Section */
.update-section {
    margin: 2rem 0;
}

/* Ensure features grid uses the same styles as .features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Gradient outline class */
.gradient-outline {
    position: relative;
    overflow: visible;
}

.gradient-outline::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    border-radius: inherit;
}

.gradient-outline:hover::before {
    opacity: 1;
}

/* Animated gradient for hover */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-outline:hover::before {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.8); /* Semi-transparent dark background */
    backdrop-filter: blur(10px);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

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

.navbar h1 {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    overflow: visible;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    font-size: 1.1rem;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

.navbar ul li a:hover {
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(255,0,255,0.5), 0 0 20px rgba(0,255,255,0.5);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url('https://via.placeholder.com/1920x1080/0a0a0a/ff00ff?text=GTA+SA+Neon+Nexus') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 70%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px rgba(255,0,255,0.5), 0 0 20px rgba(0,255,255,0.5); }
    100% { text-shadow: 0 0 20px rgba(255,0,255,0.8), 0 0 30px rgba(0,255,255,0.8), 0 0 40px rgba(255,0,255,0.6); }
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Base Button Styles */
.btn {
    display: inline-block;
    background: rgba(255,0,255,0.1);
    color: var(--text-light);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid var(--gradient);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(255,0,255,0.3);
    cursor: pointer;
}

/* Primary Button Variant */
.btn-primary {
    background: rgba(255,0,255,0.1);
    color: var(--text-light);
    border: 2px solid var(--gradient);
}

.btn-primary:hover {
    background: rgba(255,0,255,0.2);
    box-shadow: 0 0 25px rgba(255,0,255,0.5);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 0.3;
}

/* Secondary Button Variant */
.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--gradient);
}

.btn-secondary:hover {
    background: rgba(255,0,255,0.1);
    box-shadow: 0 0 25px rgba(255,0,255,0.5);
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    opacity: 0.3;
}

/* Hero Button Specific Styles (keeping existing for backward compatibility) */
.hero .btn {
    /* Inherits from .btn base class */
}

/* Add pseudo-element for all buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Animated gradient for hover on buttons */
.btn:hover::before {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.hero .btn:hover {
    background: rgba(255,0,255,0.2);
    box-shadow: 0 0 25px rgba(255,0,255,0.5);
    transform: translateY(-2px);
}

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

.hero .btn:hover::before {
    opacity: 0.3;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Features Grid */
/* Grid Systems */
.features,
.features-grid,
.stats-grid,
.screenshot-grid,
.video-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.features,
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.screenshot-grid,
.video-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-card {
    background: var(--bg-darker);
    border-radius: 15px;
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Tabs Styles - Modern Design */
.tabs {
    display: flex;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    padding: 16px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    text-align: center;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    color: var(--text-light);
}

.tab-btn.active {
    color: var(--text-light);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .tab-btn.active::after {
        height: 3px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

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

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,0,255,0.2);
}

footer p {
    color: var(--text-gray);
    margin: 0.5rem 0;
}

.info-text {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-gray);
}

.info-text-sm {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-gray);
}