/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 200, 100, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(100, 200, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(200, 100, 255, 0.1) 0%, transparent 30%);
    z-index: -1;
}

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

/* Header styles */
header {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
}

.logo span {
    color: #4ecca3;
}

nav {
    float: right;
    margin-top: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #4ecca3;
    background: rgba(78, 204, 163, 0.1);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
    margin: 30px 0;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #4ecca3, #00eeff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #eeeeee;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.search-box button {
    padding: 15px 25px;
    border: none;
    border-radius: 0 50px 50px 0;
    background: #4ecca3;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #3da58a;
}

/* Categories section */
.categories {
    padding: 50px 0;
}

.categories h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    width: 180px;
    transition: transform 0.3s, background 0.3s;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-10px);
    background: rgba(78, 204, 163, 0.2);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #4ecca3;
}

.category-card h4 {
    font-size: 1.2rem;
}

/* Games section */
.games {
    padding: 50px 0;
}

.games h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.game-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: opacity 0.3s;
}

.game-thumb.lazy {
    opacity: 0;
    background: #2a2a4a;
}

.game-thumb.loaded {
    opacity: 1;
}

.game-info {
    padding: 20px;
}

.game-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.game-info p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-tag {
    background: rgba(78, 204, 163, 0.2);
    color: #4ecca3;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.rating {
    color: #ffd700;
}

/* Contact page */
.contact {
    padding: 50px 0;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    color: #ccc;
    line-height: 1.8;
}

.contact-method {
    display: flex;
    margin-bottom: 25px;
}

.contact-method i {
    font-size: 1.5rem;
    color: #4ecca3;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-method h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecca3;
}

/* Privacy Policy page */
.privacy {
    padding: 50px 0;
}

.privacy h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.privacy-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.privacy-content h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #ccc;
}

.privacy-content a {
    color: #4ecca3;
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-content ul {
    padding-left: 30px;
    margin-bottom: 20px;
}

.privacy-content li {
    margin-bottom: 10px;
}

/* Game detail page */
.game-detail {
    padding: 50px 0;
}

.game-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.game-detail-image {
    flex: 1;
    min-width: 300px;
}

.game-detail-image img {
    width: 100%;
    border-radius: 15px;
    transition: opacity 0.3s;
}

.game-detail-image img.loaded {
    opacity: 1;
}

.game-detail-info {
    flex: 2;
    min-width: 300px;
}

.game-detail-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.game-detail-info .category-tag {
    display: inline-block;
    margin-bottom: 20px;
}

.game-detail-info .rating {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.game-detail-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.btn-play {
    display: inline-block;
    background: #4ecca3;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-play:hover {
    background: #3da58a;
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        text-align: center;
    }
    
    nav {
        float: none;
        margin-top: 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .game-detail-container {
        flex-direction: column;
    }
}