/* Base Styles */
:root {
    --primary-bg: #0a0e17;
    --secondary-bg: #161b2c;
    --accent-color: #38bdf8;
    --text-color: #e5e7eb;
    --muted-text: #94a3b8;
    --card-bg: rgba(22, 27, 44, 0.7);
    --card-hover: rgba(30, 36, 60, 0.9);
    --gradient-primary: linear-gradient(135deg, #1e293b, #0f172a);
    --gradient-secondary: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0e17, #1e293b, #3b82f6, #1d4ed8, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
    background-attachment: fixed;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #60a5fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: rgba(15, 23, 42, 0.8);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--muted-text);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container form {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-container input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.search-container input::placeholder {
    color: var(--muted-text);
}

.search-container button {
    background: var(--accent-color);
    border: none;
    width: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background: #60a5fa;
}



.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.showcase-header h2 {
    font-size: 2rem;
    color: var(--accent-color);
}

.view-all {
    color: var(--muted-text);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--accent-color);
}

.game-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.game-carousel::-webkit-scrollbar {
    display: none;
}

.game-slide {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 30px;
}

.game-item {
    background-color: rgba(22, 27, 44, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.game-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--card-hover);
}

.game-media {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-item:hover .game-media img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0), rgba(10, 14, 23, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-item:hover .game-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 2rem;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.play-icon:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: scale(1.1);
}

.game-details {
    padding: 20px;
}

.game-details h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.game-details p {
    color: var(--muted-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.game-rating {
    color: #ffcc00;
    font-weight: bold;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-text);
    cursor: pointer;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    color: var(--accent-color);
}

/* Tag Section */
.tag-section {
    padding: 60px 0;
    background-color: rgba(22, 27, 44, 0.7);
}

.tag-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tag-header h2 {
    font-size: 2rem;
    color: var(--accent-color);
}

.tag-toggle {
    color: var(--muted-text);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tag-toggle:hover {
    color: var(--accent-color);
}

.tag-sidebar {
    background-color: rgba(22, 27, 44, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: none;
}

.tag-sidebar.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tag-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.tag-item {
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--muted-text);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tag-item:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    transform: translateY(-3px);
}


.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-container h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.grid-game {
    background-color: rgba(22, 27, 44, 0.7);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.grid-game:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--card-hover);
}

.grid-game-media {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.grid-game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-game:hover .grid-game-media img {
    transform: scale(1.1);
}

.grid-game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0), rgba(10, 14, 23, 0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-game:hover .grid-game-overlay {
    opacity: 1;
}

.grid-game-info {
    padding: 20px;
}

.grid-game-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.grid-game-info p {
    color: var(--muted-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.grid-game-rating {
    color: #ffcc00;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: rgba(22, 27, 44, 0.7);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    list-style: none;
}

.footer-links a {
    margin-left: 20px;
    color: var(--muted-text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .game-carousel {
        padding: 10px 0;
    }

    .game-slide {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(22, 27, 44, 0.9);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 100;
    }

    nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .tag-group {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        margin-top: 20px;
        justify-content: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-all {
        margin-top: 10px;
    }

    .game-slide {
        width: 220px;
    }

    .tag-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tag-toggle {
        margin-top: 10px;
    }
}