/* ------------------ Reset ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', monospace;
  background-color: #0a0a0a;
  color: #f0f0f0;
  line-height: 1.4;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ------------------ Hero Section ------------------ */
.hero {
  position: relative;
  text-align: left;
  background: #000 url('images/Banner.gif') no-repeat center center;
  background-size: cover;
  padding: 2rem 1rem;
  color: #fff;
  min-height: 200px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #0a0a0a);
}

.hero-text-box {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  padding: 2rem 2.5rem;
  border-radius: 10px;
  text-align: center;
  z-index: 2;
  max-width: 80%;
}

.hero-text-box .scroll-image {
  margin-left: 0.25rem; /* smaller spacing than flex gap */
}

.hero h1 {
  font-size: 2rem;
  text-shadow: 2px 2px #000;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.hero .cta-button {
  text-decoration: none;
  background-color: #00ffcc;
  color: #000;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  box-shadow: 2px 2px #000;
  display: inline-block;
}

.hero .cta-button:hover {
  background-color: #00cc99;
}

.scroll-image {
  display: inline-block;
  margin-left: 1rem;
  vertical-align: middle;
  cursor: pointer;
}

.scroll-image img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.scroll-image:hover img {
  transform: translateY(3px);
}

/* ------------------ Features Section ------------------ */
.features-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
}

.features-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-content {
  background-color: rgba(17,17,17,0.95);
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  text-align: center;
  max-width: 660px;
  margin-bottom: 3rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  gap: 3rem;
}

.feature {
  background-color: #111;
  padding: 1.5rem;
  width: 200px;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00ffcc;
}

.feature img {
  max-width: 60px;
  margin-bottom: 1rem;
}

.ffxiv-screenshots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.ffxiv-screenshot {
  flex: 1 1 300px;
  max-width: 400px; /* hard cap */
  text-align: center;
}

.ffxiv-screenshot img {
  width: 100%;
  height: auto;
  border: 4px solid #00ffcc;
  border-radius: 8px;
  box-shadow: 0 0 15px #00ffcc;
}

#screenshot-modal img {
  display: block;
  margin: 0 auto;
  max-width: 95vw;   /* almost full viewport width */
  max-height: 90vh;  /* almost full viewport height */
  object-fit: contain;
}

/* ------------------ Cars Grid ------------------ */
.car-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.car-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: #111;
  padding: 1.5rem;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-item:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px #00ffcc;
}

.car-item img {
  flex: 1 1 300px;  /* grow/shrink, minimum width 300px */
  max-width: 400px; /* prevents being too big on large screens */
  height: auto;
  border: 4px solid #00ffcc;
  border-radius: 8px;
  box-shadow: 0 0 15px #00ffcc;
}

.car-text {
  flex: 2 1 300px;
  color: #f0f0f0;
}

.car-text h3 {
  margin-bottom: 0.5rem;
}

.car-text p {
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Responsive: stack image and text on small screens */
@media (max-width: 768px) {
  .car-item {
    flex-direction: column;
    text-align: center;
  }

  .car-text {
    margin-top: 1rem;
  }
}
/* ------------------ SFX Buttons ------------------ */
.sfx-button {
  background-color: #00ffcc;
  color: #000;
  font-weight: bold;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 2px 2px #000;
  transition: transform 0.2s, background-color 0.2s;
}

.sfx-button:hover {
  background-color: #00cc99;
  transform: scale(1.05);
}

/* ------------------ Navigation Buttons ------------------ */
.feature-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.nav-button {
  text-decoration: none;
  background-color: #00ffcc;
  color: #000;
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  box-shadow: 2px 2px #000;
  transition: background-color 0.3s, transform 0.3s;
}

.nav-button:hover {
  background-color: #00cc99;
  transform: scale(1.05);
}

/* ------------------ Content Background ------------------ */
.content {
  background: url('images/Background.gif') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
  padding: 2rem 1rem;
}

/* ------------------ Footer ------------------ */
.footer {
  text-align: center;
  padding: 1rem;
  background-color: #111;
  font-size: 0.8rem;
  color: #888;
}

/* ------------------ Secret Popup ------------------ */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background-color: rgba(0,0,0,0.95);
  color: #00ffcc;
  padding: 2rem;
  border: 2px solid #00ffcc;
  border-radius: 10px;
  text-align: center;
  z-index: 9999;
}

.popup button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #00ffcc;
  color: #000;
  border: none;
  cursor: pointer;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 900px) {
  .hero-text-box { left: 10%; top: 40%; padding: 1.5rem 2rem; }
  .feature-grid { gap: 2rem; }
}

@media (max-width: 768px) {
  .hero { background-size: contain; background-position: top center; min-height: 180px; }
  .hero-text-box { position: relative; top: auto; left: auto; transform: none; margin: 0 auto 1.5rem auto; max-width: 90%; text-align: center; padding: 1.5rem 2rem; }
  .hero h1 { font-size: 1.4rem; }
  .hero .tagline { font-size: 0.75rem; }
  .feature-grid { flex-direction: column; align-items: center; gap: 2rem; }
  .feature { width: 90%; max-width: 260px; }
  .intro-content { max-width: 90%; margin: 2rem auto; padding: 1rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.2rem; }
  .hero .tagline { font-size: 0.65rem; }
  .scroll-image { display: block; margin: 1rem auto 0; }
}

html { scroll-behavior: smooth; }
