:root {
    --bg-color: #050505;
    --surface-color: rgba(255, 255, 255, 0.03);
    --primary-color: #00ffcc;
    --primary-glow: rgba(0, 255, 204, 0.5);
    --secondary-color: #ff0055;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}
.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}
.nav-links li a:hover, .nav-links li a.active {
    color: var(--text-main);
}
.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    gap: 0.8rem;
}
.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
    width: 150px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    cursor: pointer;
}

/* Main Content */
main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    height: 80vh;
    padding: 4rem;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-image: url('../assets/hero_bg.png');
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
.badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(0, 255, 204, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary-glow);
}
.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.hero h1 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}
.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-primary:hover {
    box-shadow: 0 0 40px var(--primary-glow);
    transform: translateY(-2px);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    margin-left: 1rem;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sections General */
section:not(.hero) {
    padding: 4rem;
}
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 600;
}
.category-card i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.category-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}
.category-card:hover i {
    transform: scale(1.1);
}

/* Trending Games */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.game-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}
.img-container {
    overflow: hidden;
    height: 250px;
    border-bottom: 1px solid var(--border-color);
}
.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.game-info {
    padding: 1.5rem;
}
.game-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.game-info .genre {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.game-info .rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
}
.game-card:hover img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 4rem;
    margin-top: 2rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}
.socials {
    display: flex;
    gap: 1.5rem;
}
.socials i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.socials i:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; flex-wrap: wrap; gap: 1rem; }
    .nav-links { display: none; }
    .nav-actions { width: 100%; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; }
    .search-bar { width: 100%; flex: 1; padding: 0.8rem 1.2rem; }
    .search-bar input { width: 100%; font-size: 1rem; }
    
    main { padding-top: 130px; }
    
    .hero { height: auto; padding: 3rem 1rem; text-align: center; }
    .hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
    .hero p { font-size: 1.05rem; margin-bottom: 2rem; }
    .hero-content { margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
    
    .hero-buttons { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
    .btn { width: 100%; justify-content: center; padding: 1.2rem; font-size: 1.1rem; }
    .btn-secondary { margin-left: 0; }
    
    section:not(.hero) { padding: 2.5rem 1rem; }
    h2 { font-size: 1.8rem; text-align: center; margin-bottom: 1.5rem; }
    
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .category-card { padding: 1.5rem 0.5rem; font-size: 0.9rem; border-radius: 12px; }
    .category-card i { font-size: 1.5rem; }
    
    .game-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .game-info { padding: 1.2rem; }
    .game-info h3 { font-size: 1.3rem; }
    
    .game-card img { height: 180px; }
    
    footer { padding: 2rem 1rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .category-grid { grid-template-columns: 1fr; }
    .game-card img { height: 150px; }
    .game-info { padding: 1rem; }
    .btn { padding: 1rem; font-size: 1rem; }
}
