* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    animation: fadeIn 0.8s ease-in-out;
    overflow-x: hidden;
}

.navbar {
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideDown 0.8s ease-in-out;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.logo span {
    color: #00e0ff;
}
.navbar nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}
.navbar nav a:hover {
    color: #00e0ff;
    text-shadow: 0 0 10px #00e0ff;
}

.hero {
    background: url('https://i.pinimg.com/736x/61/8f/08/618f083c61a7460ce0a6064319af41bd.jpg') center/cover no-repeat fixed;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    min-height: 350px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeUp 1s ease-in-out;
}
.hero-content h1 {
    font-size: 2.8rem;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
}
.hero-content span {
    color: #00e0ff;
}
.hero-content p {
    margin-top: 10px;
    font-size: 1.1rem;
}
.btn-start {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 28px;
    background: linear-gradient(90deg, #00e0ff, #8f94fb);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-start:hover {
    background: linear-gradient(90deg, #8f94fb, #00e0ff);
    transform: scale(1.07);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 20px;
    animation: fadeIn 1s ease-in-out;
}
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 5% 50px;
}
.game-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: black;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeUp 0.8s ease-in-out;
    perspective: 1000px;
}
.game-card:hover {
    transform: translateY(-8px) scale(1.05) rotateX(5deg);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
.card-image img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s;
}
.game-card:hover img {
    transform: scale(1.1);
}

.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-bar input {
    padding: 10px;
    border-radius: 25px;
    border: 1px solid #ccc;
    width: 200px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: #4e54c8;
    box-shadow: 0 0 8px rgba(78, 84, 200, 0.5);
}

.search-bar button {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #00e0ff, #8f94fb);
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.search-bar button:hover {
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: white;
    font-size: 0.9rem;
    animation: slideUp 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
@keyframes fadeUp {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}
@keyframes slideDown {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}
@keyframes slideUp {
    from {opacity: 0; transform: translateY(50px);}
    to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 768px) {
    .game-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 0 10px 30px;
    }

    .game-card {
        max-width: 100%;
        word-wrap: break-word;
        font-size: 0.8rem;
        padding: 10px;
    }

    .card-image img {
        width: 100%;
        max-width: 60px; 
        height: auto;
    }

    body {
        overflow-x: hidden;
    }
}
