*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Base Theme Colors */
    --background-dark: #0b0f2f;
    --background-gradient: linear-gradient(135deg, #0b0f2f 0%, #000 100%);
    --text-color: #ffffff;
    --text-muted: #cecece;

    /* Neon Accent Colors */
    --accent-cyan: #21caab;
    --accent-pink: #00ff6a;
    --accent-blue: #2688b9;

    /* Button Gradient */
    --btn-gradient: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));

    /* Shadows & Effects */
    --neon-shadow: 0 0 20px rgba(0, 255, 209, 0.6);
    --header-shadow: 0 0 20px rgba(0, 255, 209, 0.2);
}


body {
    position: relative;
    background: var(--background-dark);
    font-family: "Calibri", "sans-serif";
    overflow-x: hidden;
}

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;

    /* Bigger particles */
    background-image: radial-gradient(rgba(0, 255, 209, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    /* more spaced & bigger particles */

    /* Slower animation */
    animation: moveParticles 560s linear infinite;
}

@keyframes moveParticles {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 5000px 5000px;
    }

    /* slower, smooth movement */
}

a,
a:focus {
    text-decoration: none;
    color: var(--text-color);
    font-family: "Calibri", "sans-serif";
}

ul,
li {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: 16px;
    margin: 0;
    font-family: "Calibri", "sans-serif";
}

input,
input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.btn {
    outline: none;
    border: none;
}

section {
    padding-top: 70px;
}


/* ---------------------------------------
Style Section
--------------------------------------- */

/* ==============================
   Gaming Header Section
============================== */
.game-header {
    background: var(--background-gradient);
    padding: 10px 0;
    box-shadow: var(--header-shadow);
}

.logo-img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 420px;
}

.search-input {
    width: 100%;
    border-radius: 50px;
    border: none;
    padding: 8px 14px;
    background: rgba(0, 255, 209, 0.15);
    color: var(--text-color);
    transition: 0.3s;
}

.search-input:focus {
    outline: none;
    background: rgba(0, 255, 209, 0.25);
    color: var(--text-color);
}

.search-input::placeholder {
    color: var(--text-color);
}

.search-btn {
    border: none;
    background: var(--btn-gradient);
    color: #fff;
    border-radius: 50px;
    padding: 6px 12px;
    margin-left: 6px;
    box-shadow: var(--neon-shadow);
    transition: 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Menu Icon */
.menu-dropdown {
    position: relative;
}

#menuIcon {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.menu-categories {
    top: 50px;
    left: 0;
    width: 230px;
    background: linear-gradient(145deg, #0b0f2f, #000);
    border: 1px solid #1e2a5a;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    animation: fadeInDown 0.3s ease;
}

.menu-categories.show {
    display: flex;
}

.category-link {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover,
.category-link.active {
    background: #04415f;
    transform: translateX(3px);
}

/* Scrollable Pills */
.categories-scroll {
    gap: 10px;
    padding: 8px 0;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;
    background: rgba(0, 255, 209, 0.2);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s;
}

.category-pill:hover,
.category-pill.active {
    background: var(--btn-gradient);
    box-shadow: var(--neon-shadow);
}

/* Auth Buttons */
.auth-section .auth-btn {
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Login Button */
.auth-section .auth-login {
    color: #fff;
    border: 1px solid #fff;
    background: transparent;
}

.auth-section .auth-login:hover {
    background: #fff;
    color: #333;
}

/* Register Button */
.auth-section .auth-register {
    background: #ff6b6b;
    color: #fff;
    border: none;
}

.auth-section .auth-register:hover {
    background: #ff5252;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: #fff;
    color: #333;
    padding: 6px 16px;
    border-radius: 30px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: #f1f1f1;
}

/* Dropdown Menu */
.user-dropdown .dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 99;
}

/* Show dropdown */
.user-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

/* Dropdown Items */
.dropdown-menu .dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: #f1f1f1;
    border-radius: 5px;
}

/* Divider */
.dropdown-divider {
    margin: 4px 0;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-section {
        flex-direction: column;
        gap: 8px;
    }

    .user-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Responsive Breakpoints ====== */
@media (max-width: 992px) {
    .header-search {
        max-width: 100%;
        order: 3;
    }

    .menu-dropdown {
        order: 2;
    }

    .logo {
        justify-content: center;
        order: 1;
    }

    .game-header .d-flex {
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }

    .search-input {
        padding: 6px 12px;
        font-size: 14px;
    }

    .search-btn {
        padding: 5px 10px;
    }

    .menu-categories {
        width: 100vw;
        top: 55px;
        left: 0;
        left: -80px;
        border-radius: 0;
        text-align: left;
        background: rgba(0, 0, 0, 0.9);
    }

    .category-link {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .category-link:last-child {
        border-bottom: none;
    }

    .categories-scroll {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 45px;
    }

    .header-search {
        margin: 0;
    }

    .search-input {
        font-size: 13px;
    }

    .menu-categories {
        font-size: 14px;
    }
}


/* ========================== Hero */
.hero-slider {
    background: var(--background-gradient);
}

.heroSwiper {
    overflow-x: visible;
}

.hero-slider .swiper-slide {
    width: auto;
    /* allow auto width for slidesPerView: 'auto' */
}

.hero-slider .game-card {
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1f3f;
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text-color);
    margin-right: 15px;
    /* spacing between cards */
}

.hero-slider .game-card:hover {
    box-shadow: 0 0 5px rgba(0, 255, 209, 0.1);
}

.hero-slider .game-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.hero-slider .game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.25);
}

.hero-slider .game-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.hero-slider .play-btn {
    background: var(--btn-gradient);
    border: none;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: var(--accent-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 1);
    box-shadow: var(--neon-shadow);
}

/* Smaller arrow icon */
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 18px;
    /* smaller size */
}

/* Hover effect for buttons */
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--background-dark);
    color: var(--text-color);
}

/* ====================== Game Section */
.games-section {
    color: #fff;
}

.games-section .section-title {
    font-size: 2rem;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* Grid layout */
.games-section .games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
}

/* Game Card */
.games-section .game-card {
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.games-section .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.games-section .game-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.games-section .game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 6px;
    background: rgba(0, 0, 0, 0.5);
}

.games-section .game-title {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
}

.games-section .play-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    color: #000;
    transition: all 0.3s;
}

.games-section .play-btn:hover {
    transform: scale(1.05);
}

.games-section .rating-ring {
    position: absolute;
    top: 10px; 
    left: 10px; 
    width: 40px; 
    height: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
}

.games-section .circular-chart {
    display: block;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
}

.games-section .circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 3.8;
}

.games-section .circle {
    fill: none;
    stroke: var(--accent-cyan); /* Use your accent color */
    stroke-width: 3.8;
    stroke-linecap: round; 
    transition: stroke-dasharray 0.8s ease-out; 
    transform: rotate(-90deg); 
    transform-origin: 50% 50%;
}

/* Updated Text Class */
.games-section .rating-text {
    position: absolute;
    font-size: 10px; /* Size of the rating text */
    font-weight: bold;
    color: #fff;
}

/* Skeleton Loader */
.games-section .skeleton .game-img {
    height: 180px;
    background: #22264b;
    animation: pulse 1.2s infinite;
}

.games-section .skeleton .game-title,
.games-section .skeleton .play-btn {
    height: 18px;
    width: 60%;
    background: #22264b;
    margin: 8px 0;
    border-radius: 8px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media(max-width:768px) {
    .games-section .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*========================== Footer ==========================*/
.game-footer {
    background: linear-gradient(135deg, #0b0f2f 0%, #000 100%);
    color: #cecece;
    overflow: hidden;
    position: relative;
    font-family: "Poppins", sans-serif;
}

.game-footer .logo-img {
    height: 70px;
}

/* Neon Glow Logo Text */
.logo-text {
    color: #00ffd1;
    font-size: 1.7rem;
    font-weight: 700;
    text-shadow: 0 0 10px #00ffd1, 0 0 20px #00ffd1;
    animation: neonGlow 1.5s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    0% {
        text-shadow: 0 0 10px #00ffd1, 0 0 20px #00ffd1;
    }

    50% {
        text-shadow: 0 0 20px #00aaff, 0 0 30px #00ff6a;
    }

    100% {
        text-shadow: 0 0 15px #00ffd1, 0 0 25px #00aaff;
    }
}

/* Footer Headings */
.footer-heading {
    color: #00ffd1;
    text-shadow: 0 0 5px #00ffd1;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Footer Links */
.footer-links li a {
    color: #cecece;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
    font-weight: 500;
}

.footer-links li a:hover {
    color: #00ffd1;
    text-shadow: 0 0 8px #00ffd1, 0 0 20px #00ff6a;
    transform: translateX(4px);
}

/* Social Icons */
.social-links li a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #00ffd1;
    font-size: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 255, 209, 0.1);
    box-shadow: 0 0 5px #00ffd1;
    transition: 0.3s ease-in-out;
    animation: pulseGlow 2s infinite alternate;
}

.social-links li a:hover {
    color: #00ff6a;
    box-shadow: 0 0 20px #00ff6a, 0 0 30px #00aaff;
    transform: translateY(-3px);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px #00ffd1, 0 0 10px #00aaff;
    }

    50% {
        box-shadow: 0 0 15px #00ff6a, 0 0 25px #00ffd1;
    }

    100% {
        box-shadow: 0 0 10px #00aaff, 0 0 20px #00ff6a;
    }
}

/* Newsletter */
.newsletter {
    margin-top: 10px;
}

.newsletter-input {
    background: transparent;
    border: 1px solid rgba(0, 255, 209, 0.3);
    border-radius: 50px;
    color: #fff;
    padding: 8px 14px;
    box-shadow: 0 0 5px rgba(0, 255, 209, 0.4);
    transition: 0.3s;
    width: 100%;
}

.newsletter-input::placeholder {
    color: #cecece;
}

.newsletter-input:focus {
    box-shadow: 0 0 15px #00ffd1, 0 0 25px #00aaff;
}

.neon-btn {
    background: linear-gradient(90deg, #00ffd1, #00aaff);
    color: #000;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(0, 255, 209, 0.6);
    transition: all 0.3s ease;
}

.neon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px #00ffd1;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #cecece;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(0, 255, 209, 0.2);
}

/* ===================== Responsive Design ===================== */
@media (max-width: 992px) {
    .footer-top .row>div {
        text-align: center;
    }

    .footer-links li a {
        font-size: 15px;
    }

    .newsletter-input {
        margin-bottom: 10px;
    }

    .newsletter form {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .newsletter form .neon-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .game-footer .logo-img {
        height: 60px;
    }

    .footer-heading {
        font-size: 1.1rem;
    }

    .footer-desc {
        font-size: 14px;
    }

    .social-links li a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .neon-btn {
        padding: 7px 16px;
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 13px;
        padding: 15px 10px;
    }
}

@media (max-width: 576px) {
    .footer-top .row>div {
        margin-bottom: 25px;
    }

    .footer-desc {
        text-align: center;
        padding: 0 10px;
    }

    .newsletter p {
        font-size: 14px;
        margin-bottom: 12px;
    }
}