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

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #1a1a1a;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(51, 51, 51, 0.9);
    color: white;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar.scrolled {
    background-color: rgba(51, 51, 51, 1);
    padding: 10px 20px;
}

.navbar__logo img {
    height: 50px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar__logo img {
    height: 40px;
}

.navbar__links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar__links li {
    position: relative;
}

.navbar__links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.navbar__links a:hover {
    color: #e50914;
}

.navbar__links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #e50914;
    transition: width 0.3s ease;
}

.navbar__links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger i {
    color: white;
    font-size: 24px;
}

.navbar__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(51, 51, 51, 0.9);
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.navbar__links.active li {
    margin-bottom: 10px;
}

.navbar__links.active a {
    font-size: 24px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    height: 95vh;
    overflow: hidden;
    margin-top: 80px;
}

.carouselSlide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: flex-start;
    color: white;
    text-align: left;
    background-size: cover;
    background-position: center;
}

.carouselSlide.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.slide1 {
    background-image: url('src/Index/cerulis.png');
}

.slide2 {
    background-image: url('src/Index/tov.png');
}

.slide3 {
    background-image: url('src/Index/aevorum.png');
}

/* Arrow Styles */
.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 2;
    user-select: none;
    transition: color 0.3s ease;
}

.carousel__arrow:hover {
    color: rgba(255, 255, 255, 1);
}

.carousel__arrow--left {
    left: 20px;
}

.carousel__arrow--right {
    right: 20px;
}

.hero__content {
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.hero__content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero__content p {
    font-size: 20px;
    margin-bottom: 20px;
}

.hero__buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.hero__btn {
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    font-size: 18px;
    text-align: center;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hero__btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Games Showcase Section */
.games {
    padding: 50px 20px;
    background-color: #1a1a1a;
    text-align: center;
}

.games h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 30px;
}

.games__grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.game__card {
    position: relative;
    width: 600px;
    height: 900px;
    margin: 10px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.game__card img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.game__card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Community Section */
.community {
    padding: 50px 20px;
    background-color: #333;
    text-align: center;
    color: white;
}

.community h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.community p {
    font-size: 18px;
    margin-bottom: 30px;
}

.community__social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social__link {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social__link:hover {
    color: #e50914;
}

.community__cta {
    background-color: #5539cc;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.community__cta:hover {
    background-color: #917fe1;
}



.btn {
    background-color: #e50914;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #f6121d;
}

.modal__close {
    color: white;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}



/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 10px;
}

.footer__links li {
    margin: 5px 15px;
}

.footer__links a {
    color: white;
    text-decoration: none;
}

.footer__links a:hover {
    text-decoration: underline;
}

/* Responsive Design for Desktop/Laptop Screens */
@media (max-width: 2560px) {
    .hero__content h1 {
        font-size: 56px;
    }
    .hero__content p {
        font-size: 24px;
    }
}

@media (max-width: 1920px) {
    .hero__content h1 {
        font-size: 48px;
    }
    .hero__content p {
        font-size: 20px;
    }
}

@media (max-width: 1680px) {
    .hero__content h1 {
        font-size: 42px;
    }
    .hero__content p {
        font-size: 18px;
    }
}

@media (max-width: 1600px) {
    .hero__content h1 {
        font-size: 40px;
    }
    .hero__content p {
        font-size: 18px;
    }
}

@media (max-width: 1440px) {
    .hero__content h1 {
        font-size: 38px;
    }
    .hero__content p {
        font-size: 16px;
    }
}

@media (max-width: 1366px) {
    .hero__content h1 {
        font-size: 36px;
    }
    .hero__content p {
        font-size: 16px;
    }
}

/* Responsive Design for Tablet Screens */
@media (max-width: 1280px) {
    .hero__content h1 {
        font-size: 34px;
    }
    .hero__content p {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .hero__content h1 {
        font-size: 32px;
    }
    .hero__content p {
        font-size: 16px;
    }

    .games__grid {
        flex-direction: column;
        align-items: center;
    }

    .game__card {
        width: 80%;
        height: auto;
    }

    .carousel {
        height: 60vh;
    }

    .modal__video {
        height: 200px;
    }

    .modal {
        width: 90%;
    }
}

/* Responsive Design for Smartphone Screens */
@media (max-width: 720px) {
    .hero__content h1 {
        font-size: 28px;
    }
    .hero__content p {
        font-size: 14px;
    }

    .hero__btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .game__card {
        width: 100%;
        height: auto;
    }

    .carousel {
        height: 50vh;
    }

    .modal__video {
        height: 150px;
    }

    .modal {
        width: 95%;
    }
}

@media (max-width: 414px) {
    .hero__content h1 {
        font-size: 24px;
    }
    .hero__content p {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .hero__content h1 {
        font-size: 22px;
    }
    .hero__content p {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .hero__content h1 {
        font-size: 20px;
    }
    .hero__content p {
        font-size: 10px;
    }

    .game__card {
        width: 100%;
        height: auto;
    }

    .carousel {
        height: 50vh;
    }

    .modal__video {
        height: 150px;
    }

    .modal {
        width: 95%;
    }
}

/* Additional Styles for Hamburger Menu */
@media (max-width: 768px) {
    .navbar__links {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .hamburger {
        display: flex;
    }
}
