.page-index {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-index__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-index__section-title,
.page-index__cta-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    padding-top: 40px;
}

.page-index__text-content,
.page-index__card-description,
.page-index__cta-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #555555;
}

.page-index__hero-section {
    background-color: #f0f0f0;
    padding: 80px 0 0 0; /* Adjusted padding to accommodate image */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index__hero-content {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.page-index__hero-title {
    font-size: 3.5em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 900;
}

.page-index__hero-description {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 40px;
}

.page-index__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-index__button--register {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
}

.page-index__button--register:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-index__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--login:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__hero-image-container {
    width: 100%;
    overflow: hidden;
    margin-top: 40px; /* Space between buttons and image */
}

.page-index__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promo-section,
.page-index__download-section,
.page-index__security-section,
.page-index__cta-section {
    padding: 60px 0;
}

.page-index__about-section {
    background-color: #FFFFFF;
}

.page-index__games-section {
    background-color: #f9f9f9;
}

.page-index__promo-section {
    background-color: #FFFFFF;
}

.page-index__download-section {
    background-color: #f9f9f9;
}

.page-index__security-section {
    background-color: #FFFFFF;
}

.page-index__cta-section {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 0;
}

.page-index__cta-title {
    color: #FFFFFF;
    font-size: 3em;
    margin-bottom: 20px;
}

.page-index__cta-description {
    color: #f0f0f0;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-index__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index__button--contact {
    background-color: transparent;
    color: #FCBC45;
    border: 2px solid #FCBC45;
}

.page-index__button--contact:hover {
    background-color: #FCBC45;
    color: #000000;
    transform: translateY(-2px);
}

.page-index__game-cards,
.page-index__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index__game-card,
.page-index__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-index__game-card:hover,
.page-index__promo-card:hover {
    transform: translateY(-10px);
}

.page-index__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-index__card-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index__card-title a {
    color: #000000;
    text-decoration: none;
}

.page-index__card-title a:hover {
    color: #FCBC45;
    text-decoration: underline;
}

.page-index__button--secondary {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    margin-top: auto;
}

.page-index__button--secondary:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
    color: #000000;
}

.page-index__button--primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-index__button--primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
    transform: translateY(-2px);
}

.page-index__button--center {
    display: block;
    margin: 50px auto 0 auto;
    max-width: 250px;
}

.page-index__app-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-index__button--app-store,
.page-index__button--google-play {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-index__button--app-store:hover,
.page-index__button--google-play:hover {
    background-color: #FCBC45;
    border-color: #FCBC45;
    color: #000000;
    transform: translateY(-2px);
}

.page-index__app-image {
    display: block;
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 60px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index__hero-title {
        font-size: 2.8em;
    }
    .page-index__section-title,
    .page-index__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index__hero-title {
        font-size: 2.2em;
    }
    .page-index__hero-description {
        font-size: 1em;
    }
    .page-index__button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-index__section-title,
    .page-index__cta-title {
        font-size: 1.8em;
        padding-top: 30px;
    }
    .page-index__text-content,
    .page-index__card-description,
    .page-index__cta-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-index__game-cards,
    .page-index__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-index__card-image {
        height: auto; /* Allow image to scale proportionally */
    }
    .page-index__card-title {
        font-size: 1.4em;
    }
    .page-index__app-image {
        margin-top: 40px;
    }
    /* Ensure content images do not overflow on mobile */
    .page-index img {
        max-width: 100%;
        height: auto;
    }
    .page-index__hero-image-container {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .page-index__hero-title {
        font-size: 1.8em;
    }
    .page-index__hero-buttons,
    .page-index__app-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index__button {
        width: 100%;
    }
    .page-index__section-title,
    .page-index__cta-title {
        font-size: 1.5em;
    }
    .page-index__container {
        padding: 0 15px;
    }
}