/* Import Google Font */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: white;
  overflow: hidden;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url('pic1.jpg') no-repeat center center/cover;
  /* Example: background: url('images/gymstar-bg.jpg') no-repeat center center/cover; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.content {
  position: relative;
  z-index: 2;
  animation: fadeIn 2s ease-in forwards;
}

.logo {
  width: 520px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeDown 2s ease-in-out;
}

.brand-name {
  font-size: 3.5rem;
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  animation: fadeUp 2s ease-in-out;
}

.tagline {
  font-size: 1.2rem;
  margin: 15px 0 40px;
  font-weight: 400;
  animation: fadeIn 3s ease-in-out;
}

.tagline-raw {
  font-size: 1rem;
  margin-top: -30px;
  letter-spacing: 0.5px;
  opacity: 0.9;
  font-style: italic;
  animation: fadeIn 3.5s ease-in-out;
}

.launch-text {
  font-size: 2.1rem;
  margin-top: 40px;
  color: #f1f1f1;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  animation: fadeUp 3.5s ease-in-out;
}

.launch-text strong {
  color: #fff;
  font-weight: 700;
}

.app-text {
  font-size: 1.0rem;
  margin-top: 50px; /* moves the app section lower */
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  color: #f1f1f1;
  font-weight: 500;
  animation: fadeUp 3.5s ease-in-out;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1.4;
}

.app-store-btn img {
  width: 160px;
  transition: transform 0.3s ease;
  animation: fadeUp 2.5s ease-in-out;
}

.app-store-btn img:hover {
  transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    background-position: left top; /* prioritize top-right for tall mobile screens */
    background-size: cover;
  }
  .brand-name {
    font-size: 2.5rem;
  }
  .tagline {
    font-size: 1rem;
  }
  .logo {
    width: 18rem;
  }
  .app-text {
    font-size: 0.9rem;      /* slightly smaller text */
    margin-left: 20px;       /* horizontal padding */
    margin-right: 20px;
    text-align: center;      /* center align for small screens */
  }

  .tagline-raw {
    font-size: 0.9rem;
  }

  .launch-text {
    font-size: 1.6rem;
  }

  .app-store-btn img {
    width: 140px;           /* slightly smaller on tablets/mobiles */
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 2rem;
  }
  .app-store-btn img {
    width: 140px;
  }
  .app-text {
    font-size: 0.85rem;      /* smaller for phones */
    margin-left: 15px;
    margin-right: 15px;
  }

  .app-store-btn img {
    width: 130px;           /* mobile-friendly size */
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  html, body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto; /* ensure scrolling works */
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding-top: 60px; /* pushes content down a bit more */
    padding-bottom: 60px;
    background-position: center center;
  }

  .brand-name {
    transform: none;
    margin-top: 20px; /* adjust spacing so logo stays visible */
  }
}
