
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0d12;
    color: #f5f5f5;
    font-family: 'Inter', sans-serif;
}

.navbar {
    height: 85px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #20232b;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: #7c5cff;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: #b0b0b8;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: white;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.nav-button {
    background: #7c5cff;
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s;
}

.nav-button:hover,
.main-button:hover {
    background: #927aff;
    transform: translateY(-2px);
}

.hero {
    min-height: 520px;
    padding: 75px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
}

.tag {
    color: #8b72ff;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(65px, 9vw, 105px);
    line-height: 0.94;
    letter-spacing: -7px;
    font-weight: 900;
}

.hero h1 span,
.section-heading h2 span,
.about-section h2 span {
    color: #7c5cff;
}

.hero-description {
    color: #92949f;
    line-height: 1.8;
    max-width: 400px;
    margin: 25px 0;
}

.main-button {
    background: #7c5cff;
    color: white;
    padding: 17px 25px;
    border-radius: 9px;
    font-weight: 800;
    transition: 0.3s;
}

.hero-art {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #38266d, #161222 65%, transparent);
    border: 1px solid #483580;
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.game-emoji {
    position: absolute;
    font-size: 150px;
    filter: drop-shadow(0 0 35px #7656ff);
    animation: float 3s infinite ease-in-out;
}

.floating-card {
    position: absolute;
    background: #191c25;
    border: 1px solid #343746;
    padding: 15px 22px;
    border-radius: 12px;
    font-weight: 800;
}

.card-one {
    top: 65px;
    right: -5px;
}

.card-two {
    bottom: 65px;
    left: 0;
}

.games-section {
    padding: 60px 8% 100px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 38px;
    letter-spacing: -2px;
}

.game-count {
    color: #6e707b;
    font-size: 14px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.game-card {
    background: #141720;
    border: 1px solid #252936;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.game-card:hover {
    transform: translateY(-7px);
    border-color: #7c5cff;
}

.game-image {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 75px;
    transition: 0.3s;
}

.space-image {
    background: linear-gradient(135deg, #171c3b, #30215c);
}

.race-image {
    background: linear-gradient(135deg, #3a162d, #6c234c);
}

.escape-image {
    background: linear-gradient(135deg, #192827, #53563a);
}

.flappy-image {
    position: relative;
    isolation: isolate;
    background: linear-gradient(#087ee2, #71d8f6 84%, #72bc36 84% 91%, #ba844a 91%);
}

.flappy-image::before,
.flappy-image::after {
    content: "";
    position: absolute;
    width: 16%;
    height: 37%;
    border: 3px solid #193b24;
    background: linear-gradient(90deg,#72c820,#b9f74e 27%,#7fd927 32% 71%,#489a25 72%);
}

.flappy-image::before { left: 14%; top: -3px; }
.flappy-image::after { right: 14%; bottom: 11%; }
.flappy-portrait {
    position: relative;
    z-index: 1;
    width: min(94%, 178px);
    height: 174px;
}
.flappy-portrait img {
    position: absolute;
    left: 50%;
    top: 19px;
    transform: translateX(-50%);
    width: 132px;
    height: auto;
    filter: drop-shadow(0 3px 2px #14284980);
}
.flappy-wing {
    position: absolute;
    top: 75px;
    width: 68px;
    height: 37px;
    border: 2px solid #253d61;
    border-radius: 35% 65% 50% 80%;
    background: #f7fbff;
    box-shadow: inset 0 -8px #c4ddf2;
}
.flappy-wing::after {
    content: "";
    position: absolute;
    width: 62%;
    height: 15px;
    right: 2px;
    bottom: -9px;
    border: 2px solid #253d61;
    border-top: 0;
    border-radius: 0 0 60% 80%;
    background: #e9f4ff;
}
.flappy-wing-left { left: 0; transform: rotate(25deg); }
.flappy-wing-right { right: 0; transform: scaleX(-1) rotate(25deg); }
.flappy-crown {
    position: absolute;
    left: 50%;
    top: 4px;
    transform: translateX(-45%) rotate(9deg);
    font-size: 39px;
    line-height: 1;
    filter: drop-shadow(0 2px 1px #57341b);
}

.puzzle-image {
    background: linear-gradient(135deg, #183b36, #226e67);
}

.jump-image {
    background: linear-gradient(135deg, #392c17, #6b4b22);
}

.game-card:hover .game-image {
    font-size: 90px;
}

.game-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.game-info p {
    font-size: 12px;
    color: #8a8d99;
}

.play-icon.flappy-play {
    flex: 0 0 auto;
    width: auto;
    height: 34px;
    margin-left: 8px;
    padding: 0 9px;
    border-radius: 8px;
    color: #e1d8ff;
    background: #28214c;
    font-size: 10px;
    font-weight: 800;
}

.play-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #373b48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.about-section {
    padding: 80px 8%;
    background: #12151d;
    border-top: 1px solid #222631;
}

.about-section h2 {
    font-size: 55px;
    line-height: 1.15;
    letter-spacing: -3px;
}

footer {
    padding: 35px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #20232b;
}

footer p {
    color: #777985;
    font-size: 13px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 950px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-art {
        width: 300px;
    }
}

@media (max-width: 650px) {
    .navbar {
        padding: 0 5%;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 12px;
    }

    .nav-button {
        display: none;
    }

    .hero {
        padding: 55px 6%;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-art {
        align-self: center;
        max-width: 100%;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .games-section {
        padding: 40px 6% 70px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-image {
        height: 230px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .about-section {
        padding: 60px 6%;
    }

    .about-section h2 {
        font-size: 42px;
    }

    footer {
        padding: 30px 6%;
    }
}
