/* CSS Reset & Variables */
:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #FFD700;
    /* Gold */
    --accent-glow: rgba(255, 215, 0, 0.3);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}



a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
    border-color: #fff;
    color: #fff;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.95);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomOut 20s linear infinite alternate;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 10%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Games Section */
.games-section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 1rem auto 0;
}

/* Games Section - Swiper */
.games-section {
    padding: 8rem 0;
    overflow: hidden;
    /* Prevent horizontal scrollbar due to wide swiper */
}

/* Swiper Container */
.game-swiper {
    padding-bottom: 4rem;
    /* Space for pagination */
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: visible;
    /* Allow 3D tilt to go outside bounds if needed */
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.3;
    width: 10px;
    height: 10px;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.2);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 2rem;
    font-weight: bold;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Limit card width in slider */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.game-card:hover {
    /* Transform handled by Vanilla-Tilt */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.game-thumb {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.1);
}

.game-info {
    padding: 2rem;
    position: relative;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.game-info p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
}

.btn-text:hover {
    color: #fff;
}

/* Studio Section */
.studio-section {
    padding: 8rem 0;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-color) 100%);
    text-align: center;
}

.studio-content {
    max-width: 800px;
    margin: 0 auto;
}

.studio-content h2 {
    margin-bottom: 2rem;
}

.studio-content p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* News Section */
.news-section {
    padding: 6rem 0;
    background-color: #0a0a0a;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.news-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.news-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Community Section */
.community-section {
    padding: 8rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    text-align: center;
}

.community-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.community-content p {
    font-size: 1.2rem;
    color: #ddd;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752C4;
}



/* Footer (Small tweak) */
.footer {
    padding: 4rem 0 2rem;
    background-color: #080808;
    border-top: 1px solid #222;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand img {
    height: 35px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.link-column h4 {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: #fff;
    opacity: 0.6;
}

.link-column a {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.link-column a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: #555;
}

/* Animations */
@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsibility */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* In real implementation, add mobile menu JS */
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        text-align: center;
    }

    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
}