* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070812;
    --card: #101221;
    --card2: #15182b;
    --white: #ffffff;
    --muted: #969bb4;
    --blue: #5865ff;
    --cyan: #26d9ff;
    --purple: #a855f7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: white;
    overflow-x: hidden;
}


/* ================= HEADER ================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: rgba(7, 8, 18, 0.72);
    backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(255,255,255,.06);

    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 22px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span span {
    color: var(--cyan);
}

.logo-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--blue), var(--purple));

    border-radius: 9px;

    font-weight: 900;
}

.nav {
    display: flex;
    gap: 34px;
}

.nav a,
.footer-links a {
    color: #b9bdd1;
    text-decoration: none;
    font-size: 14px;
    transition: .25s;
}

.nav a:hover,
.footer-links a:hover {
    color: white;
}

.header-actions {
    display: flex;
    gap: 10px;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.search-btn {
    width: 42px;
    height: 42px;

    background: #171a2b;
    color: white;

    border-radius: 10px;

    font-size: 24px;
}

.login-btn,
.signup-btn {
    padding: 11px 18px;
    border-radius: 9px;
    font-weight: 700;
}

.login-btn {
    color: white;
    background: transparent;
}

.signup-btn {
    background: white;
    color: #080910;
}

.menu-btn {
    display: none;
    background: transparent;
    color: white;
    font-size: 25px;
}


/* ================= MOBILE MENU ================= */

.mobile-menu {
    position: fixed;

    top: 76px;
    left: 0;

    width: 100%;

    background: #0b0d19;

    padding: 25px;

    display: none;
    flex-direction: column;
    gap: 18px;

    z-index: 999;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
}

.mobile-login,
.mobile-signup {
    padding: 13px;
    border-radius: 9px;
}

.mobile-signup {
    background: var(--blue);
    color: white;
}


/* ================= HERO ================= */

.hero {
    min-height: 850px;

    padding: 150px 8% 100px;

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 75% 40%, rgba(88,101,255,.22), transparent 30%),
        radial-gradient(circle at 30% 10%, rgba(168,85,247,.12), transparent 30%);
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    right: -300px;
    top: 100px;

    background: radial-gradient(
        circle,
        rgba(38,217,255,.12),
        transparent 70%
    );

    filter: blur(40px);
}

.hero-content {
    width: 55%;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    border-radius: 30px;

    background: rgba(88,101,255,.12);
    border: 1px solid rgba(88,101,255,.3);

    color: #aeb5ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

.pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #45ff9a;

    box-shadow: 0 0 15px #45ff9a;
}

.hero h1 {
    margin-top: 25px;

    font-size: clamp(60px, 8vw, 115px);

    line-height: .84;

    letter-spacing: -7px;

    font-weight: 900;
}

.hero h1 span {
    color: transparent;

    -webkit-text-stroke: 2px white;

    text-shadow: 0 0 30px rgba(88,101,255,.35);
}

.hero p {
    max-width: 580px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 35px;
}

.primary-btn,
.secondary-btn {
    padding: 15px 23px;

    border-radius: 11px;

    font-weight: 800;

    transition: .25s;
}

.primary-btn {
    color: white;

    background: linear-gradient(
        135deg,
        var(--blue),
        var(--purple)
    );

    box-shadow: 0 10px 35px rgba(88,101,255,.25);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(88,101,255,.4);
}

.secondary-btn {
    color: white;

    background: rgba(255,255,255,.06);

    border: 1px solid rgba(255,255,255,.1);
}

.secondary-btn:hover {
    background: rgba(255,255,255,.1);
}

.hero-stats {
    display: flex;
    gap: 50px;

    margin-top: 55px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-stats strong {
    font-size: 22px;
}

.hero-stats span {
    color: var(--muted);
    font-size: 12px;
}


/* ================= CHARACTER ================= */

.hero-character {
    position: absolute;

    right: 8%;
    top: 180px;

    width: 420px;
    height: 500px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.character-glow {
    position: absolute;

    width: 350px;
    height: 350px;

    background: var(--blue);

    filter: blur(100px);

    opacity: .25;
}

.character {
    position: relative;

    width: 220px;
    height: 350px;

    animation: float 4s ease-in-out infinite;
}

.head {
    position: absolute;

    top: 0;
    left: 35px;

    width: 150px;
    height: 150px;

    background: linear-gradient(
        135deg,
        #ffe0b2,
        #c88962
    );

    border-radius: 25px;

    box-shadow:
        inset -15px -15px 0 rgba(0,0,0,.1),
        0 25px 50px rgba(0,0,0,.3);
}

.eye {
    position: absolute;

    top: 60px;

    width: 17px;
    height: 24px;

    background: #161722;

    border-radius: 50%;
}

.left-eye {
    left: 40px;
}

.right-eye {
    right: 40px;
}

.smile {
    position: absolute;

    left: 60px;
    top: 95px;

    width: 30px;
    height: 13px;

    border-bottom: 4px solid #1a1620;

    border-radius: 50%;
}

.body {
    position: absolute;

    top: 145px;
    left: 40px;

    width: 140px;
    height: 125px;

    border-radius: 15px 15px 8px 8px;

    background: linear-gradient(
        135deg,
        #5865ff,
        #783cff
    );
}

.arm {
    position: absolute;

    top: 155px;

    width: 42px;
    height: 120px;

    border-radius: 20px;

    background: #d69a72;
}

.left-arm {
    left: 0;
    transform: rotate(12deg);
}

.right-arm {
    right: 0;
    transform: rotate(-12deg);
}

.leg {
    position: absolute;

    top: 260px;

    width: 55px;
    height: 105px;

    border-radius: 8px;

    background: #222743;
}

.left-leg {
    left: 43px;
}

.right-leg {
    right: 43px;
}

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 12px 15px;

    background: rgba(18,20,38,.8);

    border: 1px solid rgba(255,255,255,.1);

    backdrop-filter: blur(15px);

    border-radius: 12px;

    box-shadow: 0 20px 40px rgba(0,0,0,.3);

    font-size: 12px;
    font-weight: 700;
}

.card-one {
    top: 80px;
    right: 0;
}

.card-two {
    bottom: 80px;
    left: 0;
}

@keyframes float {

    0%,100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(1deg);
    }
}


/* ================= SECTIONS ================= */

.section,
.categories {
    padding: 100px 8%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;

    margin-bottom: 35px;
}

.small-title {
    color: var(--cyan);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

h2 {
    margin-top: 7px;

    font-size: 38px;

    letter-spacing: -1.5px;
}

.view-btn {
    background: transparent;
    color: #aeb5ff;

    font-weight: 700;
}


/* ================= GAMES ================= */

.game-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.game-card {
    background: var(--card);

    border: 1px solid rgba(255,255,255,.06);

    border-radius: 17px;

    overflow: hidden;

    transition: .3s;

    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-7px);

    border-color: rgba(88,101,255,.5);

    box-shadow:
        0 20px 50px rgba(0,0,0,.35),
        0 0 30px rgba(88,101,255,.08);
}

.game-image {
    height: 220px;

    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

.game-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent,
            rgba(255,255,255,.08)
        );
}

.game-one {
    background:
        linear-gradient(135deg,#087fce,#16d2a5);
}

.game-two {
    background:
        linear-gradient(135deg,#7b35e9,#f04bcb);
}

.game-three {
    background:
        linear-gradient(135deg,#080d3c,#1937b7);
}

.game-four {
    background:
        linear-gradient(135deg,#f48b28,#ffce47);
}

.game-five {
    background:
        linear-gradient(135deg,#d52343,#5316a6);
}

.game-six {
    background:
        linear-gradient(135deg,#151c26,#693b9e);
}

.game-icon {
    font-size: 75px;

    position: relative;
    z-index: 2;

    filter: drop-shadow(0 20px 15px rgba(0,0,0,.3));

    transition: .3s;
}

.game-card:hover .game-icon {
    transform: scale(1.12) rotate(4deg);
}

.game-tag {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 5;

    padding: 6px 9px;

    border-radius: 7px;

    background: rgba(0,0,0,.45);

    font-size: 9px;
    font-weight: 900;

    backdrop-filter: blur(10px);
}

.game-info {
    padding: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-info h3 {
    font-size: 15px;
}

.game-info p {
    color: var(--muted);

    font-size: 11px;

    margin-top: 5px;
}

.players {
    color: #48e8a1;

    font-size: 10px;
}


/* ================= CATEGORIES ================= */

.categories {
    background: #0a0c17;
}

.category-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 15px;
}

.category-card {
    padding: 25px 15px;

    text-align: center;

    background: var(--card);

    border: 1px solid rgba(255,255,255,.05);

    border-radius: 15px;

    transition: .3s;
}

.category-card:hover {
    transform: translateY(-5px);

    background: var(--card2);

    border-color: rgba(88,101,255,.4);
}

.category-card span {
    font-size: 35px;
}

.category-card h3 {
    margin-top: 12px;

    font-size: 14px;
}

.category-card p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;
}


/* ================= CREATE ================= */

.create-section {
    min-height: 650px;

    padding: 100px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;

    overflow: hidden;
}

.create-content {
    max-width: 540px;
}

.create-content h2 {
    font-size: clamp(45px,5vw,70px);

    line-height: .95;
}

.create-content h2 span {
    color: var(--cyan);
}

.create-content p {
    margin: 25px 0;

    color: var(--muted);

    line-height: 1.8;
}


/* STUDIO */

.studio-box {
    width: 520px;

    background: #121524;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,.1);

    box-shadow: 0 40px 100px rgba(0,0,0,.4);

    transform: rotate(2deg);

    transition: .5s;
}

.studio-box:hover {
    transform: rotate(0deg) translateY(-8px);
}

.studio-top {
    height: 45px;

    padding: 0 15px;

    display: flex;
    align-items: center;

    gap: 7px;

    background: #191c2d;

    border-radius: 18px 18px 0 0;
}

.studio-top span {
    font-size: 10px;
}

.studio-top strong {
    margin-left: 15px;

    font-size: 11px;
}

.studio-screen {
    height: 350px;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #161b38,
            #080b17
        );
}

.cube {
    position: absolute;

    width: 90px;
    height: 90px;

    background: linear-gradient(
        135deg,
        #5865ff,
        #a855f7
    );

    border-radius: 10px;

    box-shadow: 0 20px 40px rgba(88,101,255,.3);
}

.cube-a {
    top: 70px;
    left: 70px;

    transform: rotate(15deg);
}

.cube-b {
    top: 180px;
    right: 70px;

    transform: rotate(-20deg);

    background: linear-gradient(
        135deg,
        #26d9ff,
        #5865ff
    );
}

.cube-c {
    bottom: 40px;
    left: 210px;

    width: 55px;
    height: 55px;

    background: #f04bcb;
}

.studio-character {
    position: absolute;

    top: 110px;
    left: 220px;

    font-size: 75px;

    animation: float 3s infinite;
}

.code-line {
    position: absolute;

    width: 100px;
    height: 7px;

    border-radius: 10px;

    background: #424862;
}

.line-one {
    left: 30px;
    bottom: 30px;
}

.line-two {
    left: 145px;
    bottom: 30px;
}

.line-three {
    right: 30px;
    bottom: 30px;
}


/* ================= COMMUNITY ================= */

.community {
    padding: 100px 8%;
}

.community-box {
    padding: 70px;

    border-radius: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(168,85,247,.3),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #161a36,
            #0d1021
        );

    border: 1px solid rgba(255,255,255,.08);
}

.community h2 {
    font-size: 48px;
}

.community p {
    margin-top: 15px;

    color: var(--muted);
}


/* ================= FOOTER ================= */

footer {
    padding: 35px 8%;

    border-top: 1px solid rgba(255,255,255,.06);

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--muted);

    font-size: 11px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;

    color: white;

    font-weight: 900;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;

    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
}


/* ================= SEARCH ================= */

.search-modal {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,.7);

    backdrop-filter: blur(10px);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 2000;
}

.search-box {
    width: min(500px,90%);

    padding: 35px;

    background: #121525;

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 20px;

    position: relative;
}

.search-box h2 {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;

    padding: 15px;

    border: none;
    outline: none;

    border-radius: 10px;

    background: #20243a;

    color: white;

    font-size: 15px;
}

.close-search {
    position: absolute;

    top: 15px;
    right: 18px;

    background: transparent;

    color: white;

    font-size: 28px;
}

.search-result {
    padding: 15px 5px;

    border-bottom: 1px solid rgba(255,255,255,.06);

    color: #ddd;
}


/* ================= RESPONSIVE ================= */

@media(max-width:1000px) {

    .nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-content {
        width: 100%;
    }

    .hero-character {
        opacity: .18;

        right: -100px;
    }

    .game-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .create-section {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media(max-width:650px) {

    .header {
        padding: 0 5%;
    }

    .hero {
        min-height: 800px;

        padding: 130px 5% 80px;
    }

    .hero h1 {
        font-size: 65px;

        letter-spacing: -4px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-character {
        display: none;
    }

    .section,
    .categories,
    .create-section,
    .community {
        padding: 70px 5%;
    }

    .section-heading {
        align-items: start;
    }

    h2 {
        font-size: 30px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .studio-box {
        width: 100%;
    }

    .community-box {
        padding: 35px 25px;

        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }

    .community h2 {
        font-size: 35px;
    }

    footer {
        flex-direction: column;
        gap: 20px;

        text-align: center;
    }

}