
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --text-color: #d6d6d6;
    --highlight-color: #e94560;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 2.5rem;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 250px;
}

.search-bar button {
    background-color: var(--highlight-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: -40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background-color: var(--accent-color);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    height: 400px;
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)), url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    padding: 12px 30px;
    background-color: var(--highlight-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.hero-btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.hero-btn:hover::before {
    left: 100%;
}

/* Game Showcase */
.game-showcase {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
}

.game-carousel {
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.game-carousel::-webkit-scrollbar {
    display: none;
}

.game-card {
    min-width: 300px;
    margin-right: 20px;
    background-color: var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.game-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.game-rating {
    color: #ffd700;
}

.game-likes {
    display: flex;
    align-items: center;
    color: var(--highlight-color);
}

.game-likes i {
    margin-right: 5px;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Floating Game Cards */
.floating-cards {
    position: relative;
    height: 400px;
    margin-bottom: 60px;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background-color: var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s ease;
    cursor: pointer;
}

.floating-card:hover {
    transform: translateY(-20px);
}

.card1 {
    width: 300px;
    height: 200px;
    top: 50px;
    left: 50px;
    animation: float1 8s infinite ease-in-out;
}

.card2 {
    width: 250px;
    height: 180px;
    top: 100px;
    right: 100px;
    animation: float2 7s infinite ease-in-out;
}

.card3 {
    width: 280px;
    height: 190px;
    bottom: 60px;
    left: 200px;
    animation: float3 9s infinite ease-in-out;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.05); }
}

/* Game Categories */
.categories {
    margin-bottom: 60px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.category-item {
    color:#d6d6d6;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.game-title {
    color:#d6d6d6;
}

.category-item:hover, .category-item.active {
    background-color: var(--highlight-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--highlight-color);
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}
a{
    text-decoration: none;
}
/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    .search-bar {
        margin-top: 20px;
        width: 100%;
    }

    .search-bar input {
        width: 98%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .floating-cards {
        height: 600px;
    }

    .card1 {
        top: 30px;
        left: 20px;
        width: 250px;
        height: 150px;
    }

    .card2 {
        top: 150px;
        right: 20px;
        width: 220px;
        height: 140px;
    }

    .card3 {
        bottom: 30px;
        left: 150px;
        width: 240px;
        height: 160px;
    }
}