/* --- Global Reset & Typography --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  line-height: 1.8; /* Increased for editorial readability */
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem; 
}

/* --- The Black Sticky Banner --- */
.top-banner {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #000000;
  padding: 1.2rem 2rem;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: opacity 0.3s ease;
}

.nav-links a:hover { opacity: 0.6; }
.nav-links a.active { border-bottom: 1px solid #ffffff; padding-bottom: 4px; }
.nav-links a.highlight-link { color: #87d092; }

/* --- Editorial Layout --- */
.editorial-container {
  max-width: 1400px; /* Wider overall container */
  margin: 0 auto;
  padding: 4rem 2rem;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: 3.8rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* --- Wide Text Blocks (Desktop) --- */
.wide-text-section {
  max-width: 1000px; /* Allows text to stretch comfortably on desktop */
  margin: 0 auto 5rem auto; /* Centers the text block in the page */
  color: #444;
}

.wide-text-section p {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.mt-large {
  margin-top: 4rem;
}

/* --- Horizontal Image Gallery --- */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem;
  margin-bottom: 5rem;
  align-items: center; /* Vertically centers the landscape image */
}

.gallery-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3/4; 
}

.landscape-img {
  aspect-ratio: auto; /* Removes the portrait constraint */
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns for projects on desktop */
  gap: 3rem;
}

.project-item {
  border-top: 1px solid #eaeaea;
  padding-top: 2rem;
}

.project-item h3 {
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.action-link {
  display: inline-block;
  margin-top: 1rem;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #000;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}

.action-link:hover { opacity: 0.5; }

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .image-gallery {
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr; 
  }
  
  .hero h1 { font-size: 2.8rem; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
  
  /* Forces the text to scale back down on phones */
  .wide-text-section p {
    font-size: 1.1rem; 
  }
}

/* --- Game Promo Section --- */
.game-promo-section {
  max-width: 900px;
  margin: 4rem auto 8rem auto;
}

.game-promo-section h2 {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Two-column layout */
.game-promo-content {
  display: flex;
  align-items: center; /* Vertically centers the text with the images */
  gap: 5rem;
  justify-content: space-between;
}

.game-promo-text {
  flex: 1; /* Takes up the remaining left-side space */
}

.game-promo-text p {
  font-size: 1.5rem;
  color: #444;
  line-height: 1.8;
}

/* Right side stacking */
.game-promo-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* Space between app icon and badge */
}

.app-icon {
  width: 180px; 
  height: 180px;
  border-radius: 22.5%;
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.app-store-badge {
  width: 260px; /* Exact same width as the app icon */
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Mobile Responsiveness (Stacks them on small screens) */
@media (max-width: 768px) {
  .game-promo-content {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .game-promo-section h2 {
    font-size: 2.4rem;
  }
}

