:root {
    --color-primary: #ff4d4d;
    --color-secondary: #4d79ff;
    --color-dark: #1f2937;
    --color-light: #f9fafb;
    --color-highlight: #ffc300;
    --font-heading: "Bungee", sans-serif;
    --font-body: "Roboto", sans-serif;
    --spacing-lg: 4rem;
    --spacing-md: 2rem;
    --spacing-sm: 1rem;
    --border-radius-xl: 20px;
    --border-radius-lg: 12px;
}

@import url("https://fonts.googleapis.com/css2?family=Bungee&family=Roboto:wght@400;700;900&display=swap");

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

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition:
        color 0.3s,
        opacity 0.3s;
}

a:hover {
    color: var(--color-highlight);
    opacity: 0.9;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
}
h2 {
    font-size: 2.5rem;
}
h3 {
    font-size: 1.5rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.section__subtitle {
    text-transform: uppercase;
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    font-weight: 700;
}

.section__title {
    color: var(--color-dark);
    margin-bottom: var(--spacing-lg);
}

.section--dark {
    background: linear-gradient(145deg, var(--color-dark) 0%, #2d3748 100%);
    color: var(--color-light);
}

.section--dark .section__title {
    color: var(--color-light);
}

.section--light {
    background-color: var(--color-light);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn--primary {
    background: linear-gradient(90deg, var(--color-primary) 0%, #ff6b6b 100%);
    color: var(--color-light);
}

.btn--secondary {
    background-color: var(--color-light);
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.header {
    background-color: var(--color-dark);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo-link {
    display: flex;
    align-items: center;
}

.header__logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.header__nav {
    display: block;
}

.header__menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.header__link {
    color: var(--color-light);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.header__cta {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .header__menu {
        display: none;
    }
}

.hero-section {
    background: url(img/gameplay-overview.webp) no-repeat center center / cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero__content {
    z-index: 10;
    color: var(--color-light);
    max-width: 800px;
    padding: var(--spacing-lg) 0;
}

.hero__title {
    font-size: 5rem;
    color: var(--color-highlight);
    text-shadow: 4px 4px var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.hero__tagline {
    font-size: 2rem;
    color: var(--color-light);
    margin-bottom: var(--spacing-md);
}

.hero__text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.hero__note {
    margin-top: var(--spacing-md);
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
    .hero__tagline {
        font-size: 1.5rem;
    }
}

.description-section {
    background-color: var(--color-light);
    border-bottom: 5px solid var(--color-primary);
}

.description__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.description__content p {
    margin-bottom: var(--spacing-md);
}

.description__image-wrapper {
    position: relative;
    padding: var(--spacing-sm);
    background-color: var(--color-highlight);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.description__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg);
}

@media (max-width: 900px) {
    .description__content {
        grid-template-columns: 1fr;
    }
}

.highlights-section {
    padding: var(--spacing-lg) 0;
}

.highlights__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.highlights__item {
    background-color: #2d3748;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.highlights__item:hover {
    transform: translateY(-5px);
    background-color: #3a4555;
}

.highlights__item-title {
    color: var(--color-highlight);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.highlights__item-text {
    color: #cbd5e0;
}

.gallery-section {
    background-color: var(--color-light);
    text-align: center;
}

.gallery__intro {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery__item {
    background-color: var(--color-dark);
    padding: 5px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: rotate(0deg);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.gallery__item:nth-child(odd) {
    transform: rotate(-2deg);
}
.gallery__item:nth-child(even) {
    transform: rotate(2deg);
}

.gallery__item:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--border-radius-lg) - 5px);
    object-fit: cover;
}

.how-to-play-section {
    background: #e5e7eb;
    border-top: 5px solid var(--color-secondary);
}

.how-to-play__steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.how-to-play__step {
    background-color: var(--color-light);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-secondary);
    position: relative;
    padding-top: var(--spacing-lg);
}

.how-to-play__number {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    background-color: var(--color-light);
    padding: 0 10px;
    border-radius: 50%;
    border: 3px solid var(--color-secondary);
}

.how-to-play__title {
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.cta-section {
    background: linear-gradient(
        135deg,
        var(--color-secondary) 0%,
        #799cff 100%
    );
    color: var(--color-light);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.cta__title {
    font-size: 3rem;
    color: var(--color-highlight);
    text-shadow: 3px 3px var(--color-dark);
}

.cta__text {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.cta__download-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.cta__store-badge {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

.cta__store-badge:hover {
    transform: scale(1.05);
}

.cta__note {
    margin-top: var(--spacing-md);
    font-style: italic;
    opacity: 0.9;
}

.footer {
    background-color: var(--color-dark);
    color: #a0aec0;
    padding: var(--spacing-lg) 0;
    border-top: 5px solid var(--color-highlight);
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr 1.5fr;
    gap: var(--spacing-lg);
}

.footer__heading {
    color: var(--color-light);
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__list a {
    color: #a0aec0;
    display: block;
    margin-bottom: 0.5rem;
}

.footer__list a:hover {
    color: var(--color-primary);
}

.footer__logo-link {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.footer__logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.footer__game-name {
    color: var(--color-light);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer__copyright {
    margin-top: var(--spacing-md);
    font-size: 0.85rem;
}

.footer__contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact__email,
.contact__phone,
.contact__address {
    color: var(--color-light);
}

.footer__store-link {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.footer__store-badge {
    width: 150px;
    height: auto;
}

@media (max-width: 900px) {
    .footer__container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    .footer__column--logo {
        grid-column: span 2;
    }
    .footer__column--stores {
        order: -1;
    }
}

@media (max-width: 550px) {
    .footer__container {
        grid-template-columns: 1fr;
    }
    .footer__column--logo,
    .footer__column--stores {
        grid-column: span 1;
    }
}
