body {
    background: linear-gradient(to bottom, #fee2e2, #ffffff, #fee2e2);
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #111;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #EF4B4B;
    border-radius: 3px;
}

::-webkit-scrollbar-track {
    background: #FEE2E2;
}

.nav-item {
    position: relative;
    cursor: pointer;
}

.top {
    position: relative;
    color: rgba(0, 0, 0, 0.55);
    transition: color 0.3s ease;
}

.top::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #dc3545;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.top:hover,
.top:focus {
    color: #dc3545;
}

.top:hover::after,
.top:focus::after,
.top.active::after {
    transform: scaleX(1);
    transform-origin: center;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #EF4B4B;
    border-radius: 10px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item.active::after {
    transform: scaleX(1);
}

.section {
    margin-top: 40px;
    position: relative;
}

.cardcus {
    --card-bg: #ffffff;
    --card-accent: #ed3a3a;
    --card-text: #3b1e1e;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: auto;
    background: var(--card-bg);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, sans-serif;
}

.card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card__glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle at 50% 0%,
            rgba(237, 58, 58, 0.3) 0%,
            rgba(237, 58, 58, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card__content {
    padding: 1.25em;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
    position: relative;
    z-index: 2;
}

.card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff0000;
    color: white;
    padding: 0.25em 0.5em;
    border-radius: 999px;
    font-size: 0.9em;
    font-weight: 600;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.card__image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, #fa8b8b, #f65c5c);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    image-rendering: auto;
}

.card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    image-rendering: auto;
}

.card__text {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
}

.card__title {
    color: var(--card-text);
    font-size: 1.1em;
    margin: 0;
    font-weight: 700;
    transition: all 0.3s ease;
}

.card__description {
    color: var(--card-text);
    font-size: 0.75em;
    margin: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card__footer p {
    font-size: 12px;
    /* mặc định mobile */
}

@media (min-width: 768px) {
    .card__footer p {
        font-size: 16px;
        /* tablet trở lên */
    }
}

@media (min-width: 1200px) {
    .card__footer p {
        font-size: 16px;
        /* màn lớn */
    }
}


.card__price {
    color: var(--card-text);
    font-weight: 700;
    transition: all 0.3s ease;
}

.card__button {
    width: 28px;
    height: 28px;
    background: var(--card-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

/* Hover Effects */
.cardcus:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(237, 58, 58, 0.2);
}

.cardcus:hover .card__shine {
    opacity: 1;
    animation: shine 3s infinite;
}

.cardcus:hover .card__glow {
    opacity: 1;
}

.cardcus:hover .card__badge {
    transform: scale(1);
    opacity: 1;
    z-index: 1;
}

.cardcus:hover .card__image {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cardcus:hover .card__title {
    color: var(--card-accent);
    transform: translateX(2px);
}

.cardcus:hover .card__description {
    opacity: 1;
    transform: translateX(2px);
}

.cardcus:hover .card__price {
    color: var(--card-accent);
    transform: translateX(2px);
}

.cardcus:hover .card__button {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(237, 58, 58, 0.2);
}

.cardcus:hover .card__button svg {
    animation: pulse 1.5s infinite;
}

/* Active State */
.cardcus:active {
    transform: translateY(-5px) scale(0.98);
}

/* Animations */
@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}


/* Banner */
.banner {
    background-size: cover;
    background-position: center;
    border-radius: 1.5rem;
    position: relative;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(185, 28, 28, 0.6);
    border-radius: 1.5rem;
}

.banner-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

.banner-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffe4e6;
}

.banner-img {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 450px;
}

.about-icon {
    color: #6f42c1;
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #991b1b;
    color: #fee2e2;
}

footer a {
    color: #fee2e2;
    text-decoration: none;
}

footer li {
    margin-top: 10px;
}

footer a:hover {
    color: #facc15;
}

.navbar-toggler {
    outline: none;
}

.active a {
    color: red;
}

/* From Uiverse.io by mrhyddenn */
.card-button {
    width: 100%;
    position: relative;
    padding: 10px 20px;
    border-radius: 7px;
    border: 1px solid rgb(0, 0, 0);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: rgb(255, 255, 255);
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
    background-color: #000;
}

.cardcus:hover .card-button {
    background: rgb(255, 61, 61);
    /* box-shadow: 0 0 20px 5px rgba(236, 0, 0, 0.815); */
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
    color: white;
    border: 1px solid rgb(255, 61, 61);
}

.card-button:hover::before {
    -webkit-animation: sh02 0.5s 0s linear;
    -moz-animation: sh02 0.5s 0s linear;
    animation: sh02 0.5s 0s linear;
}

.card-button::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    -o-transform: skewX(-20deg);
    transform: skewX(-20deg);
}

@keyframes sh02 {
    from {
        opacity: 0;
        left: 0%;
    }

    50% {
        opacity: 1;
    }

    to {
        opacity: 0;
        left: 100%;
    }
}

button:active {
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: box-shadow 0.2s ease-in;
    -moz-transition: box-shadow 0.2s ease-in;
    transition: box-shadow 0.2s ease-in;
}

.games {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.games img {
    width: 100%;
    height: auto;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    image-rendering: auto;
    border-radius: 12px;
}

.games:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}