/* ================= Global ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #0B1120;
    color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ================= Scrollbar ================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#7C3AED, #3B82F6);
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

/* ================= Navbar ================= */

.navbar {
    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: .35s;
}

.navbar-brand {
    color: #7C3AED;    font-size: 28px;
    font-weight: 700;
    letter-spacing: .5px;
}
.navbar-brand:hover {
    color: #7C3AED;
}
.navbar-brand i {
    color: #7C3AED;
}
.navbar-brand i :hover{
    color: #7C3AED;
}

.nav-link {
    color: #cbd5e1;
    margin-left: 18px;
    transition: .3s;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    left: 0;
    bottom: -5px;
    height: 2px;
    background: #7C3AED;
    transition: .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #8B5CF6;
}

/* ================= Hero ================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, #7C3AED40, transparent 35%),
        radial-gradient(circle at bottom left, #2563EB40, transparent 30%),
        #0B1120;
}

.hero h1 {
    font-size: 65px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    margin: 25px 0;
    color: #94A3B8;
    line-height: 1.9;
    max-width: 550px;
}

.hero img {
    max-width: 90%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(0);
    }

}

/* ================= Buttons ================= */

.btn-primary {

    background: linear-gradient(90deg, #7C3AED, #3B82F6);
    border: none;
    padding: 14px 35px;
    border-radius: 40px;
    transition: .35s;
    position: relative;
    overflow: hidden;

}

.btn-primary::before {

    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .18);
    transform: skewX(-25deg);
    transition: .6s;

}

.btn-primary:hover::before {

    left: 120%;

}

.btn-primary:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(124, 58, 237, .35);

}

/* ================= Search ================= */

.search-box {

    position: relative;

}

.search-box input {

    height: 60px;
    background: #1E293B;
    border: none;
    color: #fff;
    border-radius: 40px;
    padding-left: 55px;
    transition: .3s;

}

.search-box input:hover {

    box-shadow: 0 0 18px rgba(124, 58, 237, .18);

}

.search-box input:focus {

    background: #1E293B;
    color: #fff;
    box-shadow: 0 0 22px rgba(124, 58, 237, .35);

}

.search-box input::placeholder {

    color: #94A3B8;

}

.search-box i {

    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #7C3AED;

}

/* ================= Categories ================= */

.category {

    background: #1E293B;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 12px 28px;
    transition: .3s;
    font-weight: 500;

}

.category:hover,
.category.active {

    background: linear-gradient(90deg, #7C3AED, #3B82F6);
    border-color: #8B5CF6;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(124, 58, 237, .35);

}

/* ================= Games ================= */

.games {

    padding-bottom: 80px;

}

.game-card {

    background: linear-gradient(180deg, #1E293B, #172033);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    overflow: hidden;
    transition: .35s;
    cursor: pointer;
    animation: fadeUp .6s ease;

}

.game-card:hover {

    transform: translateY(-12px) scale(1.02);

    border-color: #7C3AED;

    box-shadow:
        0 20px 45px rgba(124, 58, 237, .28),
        0 0 20px rgba(59, 130, 246, .15);

}

.game-card img {

    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: .5s;

}

.game-card:hover img {

    transform: scale(1.08);

}

.game-info {

    padding: 20px;

}

.game-info h5 {

    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.game-info p {

    color: #94A3B8;
    font-size: 14px;
    line-height: 1.8;
    min-height: 72px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.badge {

    padding: 7px 14px;
    border-radius: 30px;
    font-weight: 500;

}

.game-bottom {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;

}

.genre {

    background: #334155;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;

}

.platform {

    background: linear-gradient(90deg, #7C3AED, #3B82F6);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;

}

.game-card .btn {

    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    padding: 10px;
    border: none;
    transition: .3s;

}

.game-card .btn:hover {

    letter-spacing: 1px;

}

@keyframes fadeUp {

    from {

        opacity: 0;
        transform: translateY(25px);

    }

    to {

        opacity: 1;
        transform: translateY(0);

    }

}
/* ================= Modal ================= */

.modal-content {
    background: linear-gradient(180deg, #172033, #111827);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.modal-title {
    font-weight: 600;
}

.modal .btn-close {
    filter: invert(1);
}

.modal img {
    border-radius: 15px;
    transition: .4s;
}

.modal img:hover {
    transform: scale(1.03);
}

.modal p {
    color: #CBD5E1;
    line-height: 1.8;
}

.modal strong {
    color: #fff;
}

.modal a.btn {
    margin-top: 10px;
}

/* ================= Footer ================= */

footer {
    background: linear-gradient(#111827, #0B1120);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

footer h3,
footer h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

footer p,
footer li {
    color: #94A3B8;
    line-height: 2;
}

footer ul {
    padding: 0;
}

footer li {
    transition: .3s;
    cursor: pointer;
}

footer li:hover {
    color: #fff;
    transform: translateX(6px);
}

.social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social i {
    width: 45px;
    height: 45px;
    background: #1E293B;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: .35s;
}

.social i:hover {
    background: linear-gradient(90deg, #7C3AED, #3B82F6);
    transform: translateY(-6px) rotate(8deg);
    box-shadow: 0 12px 25px rgba(124, 58, 237, .35);
}

/* ================= Utilities ================= */

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-subtitle {
    color: #94A3B8;
    margin-bottom: 40px;
}

.shadow-purple {
    box-shadow: 0 0 25px rgba(124, 58, 237, .25);
}

.text-gradient {
    background: linear-gradient(90deg, #7C3AED, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================= Responsive ================= */

@media (max-width: 1200px) {

    .hero h1 {
        font-size: 56px;
    }

}

@media (max-width: 992px) {

    .hero {
        text-align: center;
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        max-width: 100%;
        margin-inline: auto;
    }

    .hero img {
        margin-top: 40px;
        max-width: 70%;
    }

    .navbar-brand {
        font-size: 24px;
    }

    .game-card {
        margin-bottom: 25px;
    }

}

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 15px;
    }

    .navbar-brand {
        font-size: 22px;
    }

    .category {
        padding: 10px 18px;
        font-size: 14px;
    }

    .search-box input {
        height: 54px;
    }

    .game-info {
        padding: 18px;
    }

    .modal-body .row {
        text-align: center;
    }

    .modal-body img {
        margin-bottom: 20px;
    }

}

@media (max-width: 576px) {

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn-primary {
        width: 100%;
    }

    .category {
        width: 100%;
    }

    .game-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .genre,
    .platform {
        width: 100%;
        text-align: center;
    }

    footer {
        text-align: center;
    }

    .social {
        justify-content: center;
    }

}

/* ================= Selection ================= */

::selection {
    background: #7C3AED;
    color: #fff;
}