* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    color: #fff;
    overflow-x: hidden;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: move linear infinite;
}

@keyframes move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(calc(var(--x) * 100vw), calc(var(--y) * 100vh));
    }
}

.header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #4f6fef;
    text-shadow: 0 0 10px rgba(79, 110, 239, 0.7);
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar form {
    display: flex;
    align-items: center;
}

.search-bar input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 200px;
    outline: none;
    transition: all 0.3s;
}

.search-bar input:focus {
    width: 250px;
    background: rgba(255, 255, 255, 0.15);
}

.search-bar button {
    background: #4f6fef;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: -40px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #3a5ae8;
    transform: scale(1.1);
}

.main-content {
    max-width: 1200px;
    margin: 120px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
    z-index: 2;
}
a{
    text-decoration: none;
}
.category {
    background: linear-gradient(45deg, #4f6fef, #5f5eed);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #3a5ae8, #4a5de5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    z-index: 2;
    margin-bottom: 40px;
}

.game-card {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
    cursor: pointer;
    height: 320px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
    text-decoration: none;
    color: white;
}

.game-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s;
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-info h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.game-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 36px;
}

.game-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(79, 110, 239, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.site-description {
    text-align: center;
    margin: 60px 0;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    z-index: 2;
    position: relative;
}

.footer {
    background: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 13px;
    position: fixed;
    bottom: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #4f6fef;
}

@media (max-width: 768px) {
    .header {
        padding: 10px 20px;
    }

    .logo {
        font-size: 24px;
    }

    .search-bar input {
        width: 150px;
    }

    .search-bar input:focus {
        width: 180px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .category {
        padding: 8px 16px;
        font-size: 13px;
    }

    .site-description {
        font-size: 14px;
    }

    .main-content {
        margin-bottom: 100px;
    }
}