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

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    background: #f9f6f1;
    color: #333;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    background: #1a1a1a;
    color: #f3e9d2;
    padding: 1.2rem 0;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.15);
    position: sticky;
    top: 0;
    z-index: 99;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 0.6rem;
    filter: drop-shadow(0 0 1px #e5c26b);
}

.logo-text {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e5c26b;
    letter-spacing: 1.2px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.4rem;
}

.main-nav a {
    text-decoration: none;
    color: #f3e9d2;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #e5c26b;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #e5c26b;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform-origin: left;
    transform: scaleX(1);
}

main {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.hero-section {
    background: url("img/egypt-landscape.webp") center/cover no-repeat;
    color: #fff;
    padding: 5rem 0 7rem 0;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 0 1000px rgb(0 0 0 / 0.4);
}

.hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 6px rgba(229, 194, 107, 0.85);
}

.hero-content h2 {
    font-weight: 400;
    font-size: 1.4rem;
    max-width: 720px;
    margin: 0.5rem auto 2rem;
    line-height: 1.4;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto 2.4rem auto;
    font-size: 1.1rem;
    line-height: 1.5;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.8rem;
}

.badge-link img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.3));
    transition: transform 0.3s ease;
}

.badge-link img:hover,
.badge-link img:focus {
    transform: scale(1.05);
}

.disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    color: #e5c26b;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
}

.game-description .content-grid,
.how-to-play .content-grid,
.features .features-list {
    display: grid;
    gap: 2.8rem;
}

.content-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.content-grid.reverse {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    direction: ltr;
}

.content-grid.reverse > .image-side {
    order: -1;
}

.text-side h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    letter-spacing: 0.8px;
}

.text-side p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3a3a3a;
    margin-bottom: 1.4rem;
}

.image-side {
    text-align: center;
}

.promo-img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgb(0 0 0 / 0.12);
    transition: transform 0.4s ease;
}

.promo-img:hover,
.promo-img:focus {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgb(0 0 0 / 0.25);
}

.features {
    margin-bottom: 5rem;
}

.features h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem 2.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.features-list li {
    background: linear-gradient(135deg, #fefefe 0%, #e5c26b 100%);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 8px 15px rgb(229 194 107 / 0.3);
    font-weight: 600;
    color: #4b3b00;
    font-size: 1.1rem;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
    cursor: default;
    user-select: none;
}

.features-list li:hover,
.features-list li:focus-visible {
    box-shadow: 0 15px 30px rgb(229 194 107 / 0.6);
    transform: translateY(-6px);
}

.how-to-play {
    margin-bottom: 6rem;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.steps-list li {
    counter-increment: step-counter;
    position: relative;
    background: #fff;
    border-left: 6px solid #e5c26b;
    margin-bottom: 1.8rem;
    padding: 1.4rem 2rem 1.4rem 3.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgb(229 194 107 / 0.15);
    font-weight: 500;
    font-size: 1.1rem;
    color: #3a3a3a;
    transition: box-shadow 0.3s ease;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: -2.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: #e5c26b;
    color: #fff;
    font-weight: 700;
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgb(0 0 0 / 0.18);
}

.steps-list li:hover,
.steps-list li:focus-visible {
    box-shadow: 0 14px 28px rgb(229 194 107 / 0.3);
}

.gallery {
    margin-bottom: 6rem;
}

.gallery h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.6rem;
    justify-items: center;
}

.screenshot-grid img {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgb(0 0 0 / 0.12);
    cursor: pointer;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.screenshot-grid img:hover,
.screenshot-grid img:focus {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.25);
}

.cta-section {
    background: #e5c26b;
    padding: 4rem 0 6rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgb(229 194 107 / 0.4);
    margin-bottom: 6rem;
}

.cta-section h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    color: #3a2e00;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 640px;
    margin: 0 auto 2.8rem auto;
    color: #574b00;
    font-weight: 600;
    line-height: 1.45;
}

.cta-section .download-badges {
    justify-content: center;
    gap: 3rem;
}

.site-footer {
    background: #1a1a1a;
    color: #bfb8a7;
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.8rem;
    margin-bottom: 2.5rem;
}

.footer-column h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #e5c26b;
}

.footer-column p,
.footer-column ul {
    margin: 0;
    padding: 0;
    color: #bfb8a7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column ul li a {
    text-decoration: none;
    color: #bfb8a7;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover,
.footer-column ul li a:focus {
    color: #e5c26b;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #7a7469;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .content-grid.reverse > .image-side {
        order: 0;
    }

    .content-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-badges {
        flex-direction: column;
        gap: 1.4rem;
    }

    .download-badges .badge-link img {
        width: 160px;
    }

    .main-nav ul {
        gap: 1.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }
}
