* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #0b0b0b;
    color: #fff;
}

/* HEADER */
.header {
    height: 64px;
    background: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid #1c1c1c;
}

.left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #aaa;
    font-size: 13px;
}

nav a:hover {
    color: #fff;
}

.right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
}

.auth:hover {
    color: #fff;
}

/* BUTTON */
.btn {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.primary {
    background: #1e90ff;
    color: #fff;
}

.gold {
    background: #f5b700;
    color: #000;
}

.outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}



.hero-content {
    max-width: 540px;
}

.hero-content h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 20px 0;
}

.hero-content p {
    color: #ccc;
    margin-bottom: 20px;
}

/* FILTER */
.filter {
    padding: 20px 40px;
    display: flex;
    gap: 10px;
}

.filter button {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #aaa;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
}

.filter .active,
.filter button:hover {
    background: #1e90ff;
    color: #fff;
    border-color: transparent;
}

/* GAMES */
.games {
    padding: 0 40px 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

.card {
    background: #141414;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.info {
    padding: 12px;
}

.info h3 {
    font-size: 14px;
    margin-bottom: 4px;
}

.info span {
    font-size: 12px;
    color: #999;
}



.hero {
    height: 460px;
    background: 
        linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2)),
        url("./Img/B1.png") center / cover;
    display: flex;
    align-items: center;
    padding-left: 60px;
    overflow: hidden;
    animation: heroBackgroundChange 15s ease-in-out infinite, heroZoom 10s ease-in-out infinite alternate;
}

/* Keyframes để thay đổi nền */
@keyframes heroBackgroundChange {
    0% {
        background: 
            linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2)),
            url("./Img/B1.png") center / cover;
    }
    33% {
        background: 
            linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2)),
            url("./Img/B2.png") center / cover;
    }
    66% {
        background: 
            linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2)),
            url("./Img/B3.png") center / cover;
    }
    100% {
        background: 
            linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2)),
            url("./Img/B1.png") center / cover;
    }
}

/* Animation cho zoom ảnh nền */
@keyframes heroZoom {
    from {
        background-size: 100%;
    }
    to {
        background-size: 108%;
    }
}








.hero-content {
    max-width: 540px;
}

.game-logo {
    margin-bottom: 16px;
}

/* Base animation states */
.fade-in,
.slide-in {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Fade only */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Slide + fade */
.slide-in {
    transform: translateX(-30px);
    animation: slideIn 0.9s ease forwards;
}

/* Delay helpers */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Keyframes */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}



.btn.outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn.outline:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}









/* FOOTER */
.footer {
    background-color: #111;
    color: #fff;
    padding: 40px 0;
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.footer-left, .footer-right {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-links, .social-media {
    display: flex;
    gap: 15px;
}

.footer-links a, .social-media a {
    color: #aaa;
    text-decoration: none;
}

.footer-links a:hover, .social-media a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 12px;
    color: #ccc;
}
