/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
  --color-primary: #ffb300;
  --color-primary-dark: #ff8f00;
  --color-secondary: #00897b;
  --color-text-light: #f5f5f5;
  --color-text-dark: #212121;
  --color-background-dark: #37474f;
  --color-background-light: #fff8e1;
  --font-heading: "Georgia", serif;
  --font-body: "Arial", sans-serif;
  --spacing-unit: 1rem;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: calc(3 * var(--spacing-unit));
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--color-background-dark);
  padding: var(--spacing-unit) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

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

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
}

.site-nav .nav-list {
  list-style: none;
  display: flex;
}

.site-nav .nav-item {
  margin-left: calc(1.5 * var(--spacing-unit));
}

.site-nav .nav-link {
  color: var(--color-text-light);
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.site-nav .nav-link:hover {
  background-color: var(--color-primary);
  color: var(--color-background-dark);
}

/* ==========================================================================
   Hero Section (Jumbotron)
   ========================================================================== */
.hero-section {
  background: url("img/fate-of-the-pharaoh-gameplay-01.webp") no-repeat center
    center/cover;
  color: var(--color-text-light);
  text-align: center;
  padding: 10rem 0 8rem;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: calc(2 * var(--spacing-unit));
}

.hero-text {
  font-size: 1.1rem;
  margin-bottom: calc(3 * var(--spacing-unit));
}

.hero-cta-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.store-badge {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

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

.store-note {
  margin-top: var(--spacing-unit);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Content Sections Styling
   ========================================================================== */
.content-section {
  padding: 6rem 0;
  margin-bottom: 2rem;
}

.content-section:nth-child(even) {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
}

.content-section:nth-child(even) .section-title {
  color: var(--color-primary);
}

.content-section:nth-child(even) a {
  color: var(--color-primary);
}

.content-section:nth-child(even) a:hover {
  color: var(--color-text-light);
}

.image-with-text-block {
  display: flex;
  align-items: center;
  gap: calc(3 * var(--spacing-unit));
  margin-top: calc(3 * var(--spacing-unit));
}

.image-with-text-block .text-content {
  flex: 2;
}

.image-with-text-block .image-content {
  flex: 1;
  text-align: center;
}

.description-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: calc(2 * var(--spacing-unit));
  padding: 0;
  margin-top: calc(3 * var(--spacing-unit));
}

.features-list li {
  background-color: rgba(255, 255, 255, 0.8);
  padding: calc(1.5 * var(--spacing-unit));
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--color-secondary);
  transition: transform 0.3s ease;
}

.features-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.content-section:nth-child(even) .features-list li {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-light);
  border-left-color: var(--color-primary);
}

.features-list strong {
  color: var(--color-primary-dark);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.content-section:nth-child(even) .features-list strong {
  color: var(--color-primary);
}

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

.steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding: 1.5rem 0 1.5rem 5rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(33, 33, 33, 0.2);
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 0 5px rgba(0, 137, 123, 0.2);
}

.content-section:nth-child(even) .steps-list li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.content-section:nth-child(even) .steps-list li::before {
  background-color: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(255, 179, 0, 0.2);
}

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

.gallery-section .section-title {
  color: var(--color-primary);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(2 * var(--spacing-unit));
}

.screenshot-item {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16/9;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  border: 3px solid var(--color-primary);
}

.screenshot-item:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.cta-secondary-section {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  text-align: center;
  padding: 4rem 0;
}

.cta-secondary-section .cta-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-secondary-section .cta-button {
  margin-top: 1.5rem;
}

.cta-secondary-section .store-badge {
  width: 180px;
}

.contact-section {
  text-align: center;
}

.contact-info {
  margin-top: calc(2 * var(--spacing-unit));
  padding: calc(2 * var(--spacing-unit));
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: inline-block;
  background-color: #ffffff;
}

.developer-name {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.support-email {
  margin-top: 1rem;
  font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
  padding-top: 4rem;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(3 * var(--spacing-unit));
  padding-bottom: 3rem;
}

.footer-column h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-link,
.footer-address {
  color: var(--color-text-light);
}

.footer-link:hover {
  color: var(--color-primary-dark);
  padding-left: 5px;
}

.footer-store-badge {
  display: inline-block;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  text-align: center;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   Responsiveness
   ========================================================================== */
@media (max-width: 992px) {
  .site-nav .nav-list {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .image-with-text-block {
    flex-direction: column;
    gap: calc(2 * var(--spacing-unit));
  }

  .image-with-text-block .image-content {
    order: -1;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    padding: 6rem 0 4rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .content-section {
    padding: 4rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 1rem;
  }

  .footer-column.footer-download {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .store-badge {
    width: 150px;
  }
}
