* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background-color: #0f1220;
    color: #ffffff;
    overflow-x: hidden;
}

/* NAV */

.topnav {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    background: #181c3a;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links {
    margin-left: auto;
    display: flex;
    gap: 12px;
}

.topnav a {
    color: #f2f2f2;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
    border-radius: 6px;
}

/* HERO */

.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #1f254f, #0f1220);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background: #04AA6D;
    color: white;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* ADS */

.ad-300 {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.ad-container {
    margin: 50px 0;
    text-align: center;
}

/* LAYOUT */

.main-layout {
    display: flex;
    justify-content: center;
    max-width: 1600px;
    margin: auto;
    padding: 40px 20px;
    gap: 40px;
}

.content {
    flex: 1;
    max-width: 1000px;
}

.sidebar-ad {
    width: 160px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* GAMES */

.games {
    text-align: center;
}

.games h2 {
    margin-bottom: 35px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.game-card {
    background: #181c3a;
    border-radius: 14px;
    padding: 25px 20px;
}

/* FOOTER */

footer {
    background: #0b0e1a;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* MOBILE */

.mobile-sticky-ad {
    display: none;
}

@media (max-width: 1100px) {
    .sidebar-ad {
        display: none;
    }
}

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        background: #181c3a;
        flex-direction: column;
        padding: 90px 20px 20px;
        gap: 10px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 10;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-sticky-ad {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        text-align: center;
        background: #ffffff;
        padding: 5px 0;
        z-index: 9999;
    }

    body {
        padding-bottom: 60px;
    }
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 32, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}