/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #102a43;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}


/* =========================
   VARIABLES
========================= */

:root {
    --green: #16b364;
    --green-dark: #07844a;

    --blue: #092f5f;
    --blue-dark: #061e3d;

    --text: #102a43;
    --muted: #62748a;

    --light: #f5f9fc;

    --white: #ffffff;

    --radius: 22px;

    --shadow:
        0 20px 50px rgba(15, 45, 75, 0.12);
}


/* =========================
   CONTAINER
========================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 28px;
    font-weight: 800;

    color: var(--green-dark);
}

.logo-icon {
    font-size: 30px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;

    color: #243b53;

    position: relative;

    padding: 28px 0;

    transition: 0.25s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 17px;

    height: 3px;

    border-radius: 20px;

    background: var(--green);
}

.nav-button {
    background: var(--green);

    color: white;

    padding: 12px 22px;

    border-radius: 30px;

    font-weight: 700;

    transition: 0.25s;
}

.nav-button:hover {
    transform: translateY(-2px);
    background: var(--green-dark);
}

.menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 25px;
    height: 2px;

    margin: 5px auto;

    background: var(--blue);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 700px;

    padding-top: 150px;
    padding-bottom: 90px;

    position: relative;
    overflow: hidden;

    color: white;

    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(0, 190, 170, 0.4),
            transparent 35%
        ),
        linear-gradient(
            125deg,
            #063d54,
            #092a67 50%,
            #075e78
        );
}

.hero-container {
    display: grid;

    grid-template-columns:
        1fr 0.9fr;

    align-items: center;

    gap: 60px;

    position: relative;

    z-index: 2;
}

.eyebrow {
    font-size: 14px;

    letter-spacing: 5px;

    margin-bottom: 18px;

    opacity: 0.9;
}

.hero h1 {
    font-size: clamp(52px, 7vw, 82px);

    line-height: 0.98;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;

    color: #3df28a;
}

.hero-description {
    max-width: 570px;

    font-size: 19px;

    opacity: 0.9;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 45px;
}

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 15px 25px;

    border-radius: 35px;

    font-weight: 700;

    transition: 0.3s;
}

.primary-button {
    color: white;

    background: #16d878;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.15);
}

.primary-button:hover {
    transform: translateY(-3px);
}

.secondary-button {
    border: 1px solid rgba(255, 255, 255, 0.8);

    color: white;
}

.secondary-button:hover {
    background: white;
    color: var(--blue);
}

.hero-features {
    display: flex;

    flex-wrap: wrap;

    gap: 35px;
}

.hero-feature {
    display: flex;

    align-items: center;

    gap: 10px;
}

.hero-feature strong,
.hero-feature span {
    display: block;
}

.hero-feature span {
    opacity: 0.75;
    font-size: 14px;
}

.feature-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
}


/* =========================
   HERO PHONE
========================= */

.hero-visual {
    min-height: 520px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}

.phone {
    width: 270px;
    height: 520px;

    padding: 9px;

    border-radius: 43px;

    transform:
        rotate(8deg)
        translateY(5px);

    background:
        linear-gradient(
            145deg,
            #cdd8e4,
            #17273d
        );

    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.4);
}

.phone-screen {
    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 36px;

    position: relative;

    background:
        linear-gradient(
            160deg,
            #0c725b,
            #0a344c
        );
}

.phone-notch {
    position: absolute;

    width: 105px;
    height: 25px;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    background: #071521;

    border-radius:
        0 0 18px 18px;

    z-index: 2;
}

.phone-content {
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;

    padding: 35px;
}

.phone-logo {
    font-size: 50px;

    margin-bottom: 5px;
}

.phone-content h2 {
    font-size: 34px;
}

.phone-content p {
    opacity: 0.8;
}

.phone-game-icon {
    width: 105px;
    height: 105px;

    display: grid;
    place-items: center;

    margin: 45px 0 25px;

    border-radius: 30px;

    font-size: 48px;

    background:
        linear-gradient(
            135deg,
            #2ee66f,
            #0ca67d
        );

    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.25);
}

.phone-content h3 {
    font-size: 18px;
}

.progress {
    width: 120px;
    height: 7px;

    margin-top: 30px;

    overflow: hidden;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.2);
}

.progress span {
    display: block;

    width: 55%;
    height: 100%;

    background: #40ed8c;

    border-radius: inherit;
}

.floating-icon {
    position: absolute;

    font-size: 38px;

    z-index: 3;

    animation:
        float 4s ease-in-out infinite;
}

.star {
    top: 65px;
    left: 50px;
}

.heart {
    top: 100px;
    right: 20px;

    animation-delay: 1s;
}

.play {
    right: 10px;
    bottom: 100px;

    background: #2587e8;

    padding: 18px;

    border-radius: 20px;

    animation-delay: 2s;
}

.hero-message {
    position: absolute;

    right: -10px;
    bottom: 65px;

    font-size: 25px;

    font-weight: 500;

    transform: rotate(-8deg);
}

.hero-message span {
    color: #53f59a;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

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

.hero-shape {
    position: absolute;

    border-radius: 50%;

    filter: blur(1px);

    opacity: 0.15;
}

.shape-one {
    width: 400px;
    height: 400px;

    left: -180px;
    bottom: -200px;

    background: #19db80;
}

.shape-two {
    width: 300px;
    height: 300px;

    right: -150px;
    top: 120px;

    background: #23b8ff;
}

.shape-three {
    width: 200px;
    height: 200px;

    left: 40%;
    top: -100px;

    background: #8d67ff;
}


/* =========================
   GAMES
========================= */

.games-section {
    padding: 100px 0;

    background: #f6fafc;
}

.section-heading {
    text-align: center;

    max-width: 650px;

    margin:
        0 auto
        55px;
}

.section-label {
    display: inline-block;

    font-size: 13px;

    letter-spacing: 3px;

    font-weight: 800;

    color: var(--green-dark);

    margin-bottom: 10px;
}

.section-heading h2,
.about-content h2,
.contact-box h2 {
    font-size: clamp(35px, 5vw, 52px);

    line-height: 1.1;

    color: var(--blue);

    margin-bottom: 15px;
}

.section-heading p {
    color: var(--muted);

    font-size: 17px;
}

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 28px;
}

.game-card {
    background: white;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow:
        0 10px 35px rgba(20, 50, 80, 0.08);

    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-8px);

    box-shadow: var(--shadow);
}

.game-image {
    height: 240px;

    position: relative;

    overflow: hidden;
}

.car-game {
    background:
        linear-gradient(
            135deg,
            #52d6ff,
            #165ac5
        );
}

.road {
    position: absolute;

    width: 180px;
    height: 330px;

    left: 50%;

    transform:
        translateX(-50%)
        rotate(12deg);

    background: #3d424b;
}

.road::before,
.road::after {
    content: "";

    position: absolute;

    width: 7px;
    height: 100%;

    background: #f7d84b;

    left: 0;
}

.road::after {
    left: auto;
    right: 0;
}

.road-line {
    position: absolute;

    width: 9px;
    height: 100%;

    left: 50%;

    transform: translateX(-50%);

    background:
        repeating-linear-gradient(
            to bottom,
            white 0 35px,
            transparent 35px 65px
        );
}

.car {
    position: absolute;

    font-size: 90px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-5deg);

    z-index: 2;

    filter:
        drop-shadow(
            0 15px 15px
            rgba(0, 0, 0, 0.25)
        );
}

.coming-game {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #ffd42a;

    background:
        linear-gradient(
            135deg,
            #31343a,
            #17191d
        );

    font-weight: 900;

    font-size: 35px;

    text-align: center;
}

.coming-game.purple {
    background:
        linear-gradient(
            135deg,
            #4d3a7c,
            #201838
        );
}

.coming-icon {
    font-size: 55px;

    margin-bottom: 10px;
}

.game-content {
    padding: 28px;
}

.game-category {
    color: var(--green-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}

.game-content h3 {
    color: var(--blue);

    font-size: 25px;

    margin:
        6px
        0
        8px;
}

.game-content p {
    color: var(--muted);

    margin-bottom: 20px;
}

.game-button {
    display: inline-block;

    border: 0;

    cursor: pointer;

    padding: 10px 18px;

    border-radius: 30px;

    background: #e1faec;

    color: var(--green-dark);

    font-weight: 700;
}


/* =========================
   ABOUT
========================= */

.about-section {
    padding: 110px 0;

    background: white;
}

.about-container {
    display: grid;

    grid-template-columns:
        0.9fr 1fr;

    align-items: center;

    gap: 90px;
}

.about-visual {
    min-height: 420px;

    position: relative;

    display: grid;

    place-items: center;
}

.about-circle {
    width: 280px;
    height: 280px;

    display: grid;

    place-items: center;

    font-size: 100px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #d8fff0,
            #b8e8ff
        );

    box-shadow: var(--shadow);
}

.about-card {
    position: absolute;

    padding: 15px 20px;

    background: white;

    border-radius: 15px;

    box-shadow: var(--shadow);

    font-weight: 800;
}

.about-card span {
    margin-left: 5px;
}

.card-one {
    top: 40px;
    left: 30px;
}

.card-two {
    top: 120px;
    right: 0;
}

.card-three {
    bottom: 50px;
    left: 60px;
}

.about-content h2 span {
    color: var(--green);
}

.about-content p {
    color: var(--muted);

    margin:
        0 0
        17px;

    font-size: 17px;
}

.about-points {
    display: grid;

    gap: 12px;

    margin-top: 25px;
}

.about-points div {
    font-weight: 700;
}

.about-points span {
    color: var(--green);

    margin-right: 8px;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    padding: 80px 0;

    background: #f5f9fc;
}

.contact-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    padding: 55px;

    border-radius: 30px;

    color: white;

    background:
        linear-gradient(
            120deg,
            #073454,
            #075d71
        );
}

.contact-box h2 {
    color: white;
}

.contact-box p {
    max-width: 600px;

    opacity: 0.8;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding-top: 55px;

    color: white;

    background: #071f3a;
}

.footer-container {
    display: grid;

    grid-template-columns:
        1fr 1fr 1fr;

    align-items: center;

    gap: 30px;
}

.footer-logo {
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.65);

    margin-top: 5px;
}

.footer-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 22px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);

    font-size: 14px;
}

.footer-links a:hover {
    color: #42ed8c;
}

.footer-social {
    display: flex;

    justify-content: flex-end;

    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    font-weight: 800;
}

.footer-social a:hover {
    background: var(--green);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-top: 50px;

    padding:
        25px 0;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.1);

    color:
        rgba(255, 255, 255, 0.6);

    font-size: 13px;
}


/* =========================
   TOAST
========================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    transform:
        translate(-50%, 100px);

    padding: 13px 22px;

    border-radius: 30px;

    color: white;

    background: #12263a;

    box-shadow: var(--shadow);

    opacity: 0;

    transition: 0.3s;

    z-index: 2000;
}

.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================
   ANIMATION
========================= */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .nav {
        position: fixed;

        top: 78px;
        left: 20px;
        right: 20px;

        display: none;

        flex-direction: column;

        padding: 20px;

        background: white;

        border-radius: 18px;

        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        padding: 10px;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-button {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons,
    .hero-features {
        justify-content: center;
    }

    .hero-visual {
        min-height: 520px;
    }

    .games-grid {
        grid-template-columns: 1fr 1fr;
    }

    .game-card:first-child {
        grid-column: span 2;
    }

    .about-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .about-points {
        justify-items: center;
    }

    .contact-box {
        flex-direction: column;

        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}


@media (max-width: 600px) {

    .container {
        width:
            min(
                100% - 28px,
                1180px
            );
    }

    .logo {
        font-size: 24px;
    }

    .hero {
        padding-top: 125px;
    }

    .hero h1 {
        font-size: 48px;

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-features {
        gap: 18px;
    }

    .hero-visual {
        transform: scale(0.85);

        min-height: 470px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card:first-child {
        grid-column: auto;
    }

    .game-image {
        height: 210px;
    }

    .about-circle {
        width: 220px;
        height: 220px;
    }

    .contact-box {
        padding: 35px 22px;
    }

    .footer-bottom {
        flex-direction: column;

        text-align: center;
    }
}