* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

body.mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    opacity: 0.9;
    z-index: 998;
    /* Below close icon */
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #188837;
    color: white;
}

.btn-primary:hover {
    background-color: #136e2c;
}

.section {
    padding: 100px 0;
}

.section-title {
    /* text-align: center; */
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    font-weight: bold;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #188837;
}

.social-icons {
    display: flex;
    list-style: none;
}

.social-icons li {
    margin-left: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
}

.store-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    /* space between buttons */
    flex-wrap: wrap;
    margin-top: 10px;
}

.menu-toggle,
.close-icon {
    display: none;
}


.hero {
    height: 100vh;
    background: url('images/imagewebsite.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}



.hero-download-buttons {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;

}



.hero h1 {
    font-size: 4.6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
    /* text-transform: uppercase; */
}

.hero h2 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
    /* text-transform: uppercase; */
}

 .hero-content .store-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
 }
 .hero-content .store-buttons .download-btn img {
    width: 350px;  /* ⬅️ Increase size */
    height: auto;
    transition: transform 0.2s ease;
}

.scroll-down {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* @keyframes fadeSlideUph1 {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUph2 {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(20px);
    }
} */

@keyframes shine {
    0% {
        background-position: -200%;
    }

    100% {
        background-position: 200%;
    }
}

.shiny-text {
    /* position: relative; */
    /* display: inline-block; */
    margin-top: 5rem;
    background: linear-gradient(90deg,
            #ee2f58 0%,
            #a9cf46 50%,
            #ee2f58 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: #a9cf46;
    /* Needed to show gradient on text */
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    font-weight: bold;
}



/* About Section */
.about {
    background-color: #f8f8f8;
    height: 100vh;
}

.about-content {
    max-width: 600px;
    margin: 2rem auto;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}


/* .games {
    background-color: white;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
} */


.games {
    background-color: white;
    min-height: 100vh;
    width: 100%;
    padding: 60px 0;
}

.games .container {
    max-width: 100%;
    width: 95%;
    margin: 2rem auto;
}

/* .games-scroll-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
} */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    justify-items: center;
}



.game-card {
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}


.game-card:hover {
    transform: translateY(-10px);
}

.game-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.game-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.download-btn img {
    width: 250px;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.download-btn img:hover {
    transform: scale(1.05);
}


/* Jobs Section */
.jobs {
    background: url('https://fomo.gs/media/2020/11/fomo-care.jpg') no-repeat center center/cover;
    position: relative;
    color: white;
    height: 100vh;
}

.jobs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.jobs-content {
    position: relative;
    z-index: 1;
}

.job-list {
    margin-top: 50px;
}

.job-card {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.job-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Contact Section */
.contact {
    background-color: #0094d7;
    color: white;
    height: 100vh;
    position: relative;
}

.contact-logo {
    position: absolute;
    bottom: 20px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-30%);
    /* Shift left to center slightly over logo */
}

.contact-logo img {
    height: 80px;
}

.store-icons {
    margin-bottom: 10px;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.store-icons img {
    height: 70px;
    transition: transform 0.3s ease;
}

.store-icons img:hover {
    transform: scale(1.05);
}


.contact-content {
    max-width: 500px;
    margin: 0 auto;
}

.contact-info {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    /* Center the block horizontally */
}

.contact-item {
    display: flex;
    align-items: flex-start;
    max-width: 400px;
    /* Optional: limit width for better alignment */
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-text {
    text-align: center;
}


/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-links a {
    margin: 0 10px;
}

/* Mobile Styles */
@media (max-width: 768px) {

    .menu-toggle,
    .close-icon {
        position: absolute;
        top: 22px;
        right: 40px;
        font-size: 24px;
        color: white;
        cursor: pointer;
        z-index: 999;
    }


    .menu-toggle.show {
        display: block;
    }

    .close-icon.show {
        display: block;
    }

    .download-btn img {
        max-width: 140px;
        /* slightly smaller, optional */
        height: auto;
        display: block;
    }


    .store-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 40px;
        margin-top: 3rem;
        flex-wrap: wrap;
        width: 100%;
        margin-bottom: 0.1rem;
    }



    .contact-logo {
        /* position: absolute;
    bottom: 20px; */
        left: 140px;
        /* Shift left to center slightly over logo */
    }




    .nav-links {
        position: fixed;
        top: 20px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(0, 0, 0, 0);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px;
        gap: 25px;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        z-index: -1;
    }

    .nav-links.active {
        transform: translateY(0);
    }


    .mobile-menu-btn {
        display: block;
    }


    .hero-content {
        max-width: 100%;
        margin-bottom: 5rem;
        /* display: flex; */
        /* flex-direction: column;
        align-items: flex-start; */
    }

    /* .hero-content h1 {
        /* animation: fadeSlideUph1 1s ease-out 0.5s forwards; */
    /* opacity: 0; ensures hidden before animation */
    /* } */
    */

    /* .hero-content h2 {
        margin-top: 3rem;
         /* animation: fadeSlideUph2 1s ease-out 0.5s forwards; */
    /* opacity: 0; ensures hidden before animation */
    /* adjust this to control vertical spacing */
    /* } */
     .hero-content .store-buttons {
        margin-top: 50rem;
    }


    .hero h1 {
        margin-top: 5rem;
        font-size: 4rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero {
        background: url('images/imagewebsite.png') no-repeat center center / contain;
        background-color: #00214d;
        /* optional: for padding space around the image */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        height: 100vh;
    }




    .social-icons {
        display: none;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links.active .close-icon {
        display: block;
    }

    .nav-links.active .menu-toggle {
        display: none;
    }

    .nav-links.active~.social-icons {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 5px;
        position: fixed;
        bottom: 80px;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .games-scroll-wrapper {
        position: relative;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0 20px;
        flex: 1;
        cursor: grab;
        transition: scroll-left 0.3s ease;
    }

    .games-scroll-wrapper.dragging {
        cursor: grabbing;
        scroll-behavior: auto;
        /* Disable smooth scroll while dragging */
    }

    .games-scroll-wrapper::-webkit-scrollbar {
        display: none;
        /* optional */
    }

    .games-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        width: max-content;
        align-items: center;
    }

    .game-card {
        flex: 0 0 80vw;
        max-width: 60vw;
        scroll-snap-align: center;
        box-sizing: border-box;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .game-card .download-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-top: 15px;
    }

    .games-scroll-container {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .scroll-arrow {
        /* background-color: rgba(0, 0, 0, 0.5); */
        border: none;
        color: #000000;
        font-size: 30px;
        padding: 10px;
        cursor: pointer;
        z-index: 10;
        border-radius: 80%;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        transition: background-color 0.3s ease;
    }

    .scroll-arrow:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .scroll-arrow.left {
        left: 5px;
    }

    .scroll-arrow.right {
        right: 5px;
    }




}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    #about-us {
        height: 100vh;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}


@keyframes auto-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50%));
        /* Adjust based on actual content width */
    }
}


.games-scroll-wrapper {
    overflow: hidden;
    /* hide scrollbar */
    position: relative;
}

.games-grid {
    display: flex;
    width: max-content;
    /* allow content to extend horizontally */
    animation: auto-scroll 40s linear infinite;
    /* adjust time to control speed */
}

@media (min-width: 768px) {
    .scroll-arrow {
        display: none;
    }
}