/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: white;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile-specific improvements */
@media (max-width: 1024px) {
  body {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  input,
  button,
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(180deg, #8800be 0%, #c739ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* White Semi-circle */
.semi-circle {
  position: absolute;
  left: -20%;
  top: 50%;
  transform: translateY(-50%);
  width: 65%;
  height: 200%;
  background: #111111;
  border-radius: 0 50% 50% 0;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Image Carousel */
.image-carousel {
  position: relative;
  width: 300px;
  height: 625px;
  justify-self: start;
  margin-left: 50px;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid white;
  border-radius: 35px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
}

/* Marketing Content */
.marketing-content {
  padding-left: 20px;
}

/* Adjust content positioning for medium screens */
@media (max-width: 1200px) {
  .marketing-content {
    padding-left: 0px;
  }
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo-image {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.headline {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 30px;
  color: white;
  font-family: "Bowlby One", sans-serif;
  font-style: normal;
}

.fun-exciting {
  font-family: "Bowlby One", sans-serif;
  font-style: normal;
  font-weight: 400;
}

.description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  font-family: "DM Sans", sans-serif;
}

.game-name {
  font-style: italic;
  font-weight: 700 !important;
}

/* Download Section */
.download-section {
  display: flex;
  justify-content: flex-start;
  margin-top: 30px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: "DM Sans", sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

.apple-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.download-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.download-label {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

.store-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* QR Code Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s ease;
  color: #333;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #3040d0;
  font-family: "Bowlby One", sans-serif;
  font-style: normal;
  font-weight: 400;
}

.modal p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #666;
  font-family: "DM Sans", sans-serif;
}

.qr-code-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.qr-code {
  max-width: 250px;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.modal-btn {
  background: #3040d0;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "DM Sans", sans-serif;
}

.modal-btn:hover {
  background: #2a36b3;
  transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    padding: 50px 15px;
    min-height: 100vh;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    max-width: 100%;
    grid-template-areas:
      "content"
      "image";
  }

  .image-carousel {
    width: 250px;
    height: 525px;
    margin: 0 auto;
    justify-self: center;
    grid-area: image;
    margin-top: 40px;
  }

  .marketing-content {
    padding-left: 0;
    padding-right: 0;
    grid-area: content;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .headline {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
  }

  .description {
    font-size: 16px;
    margin-bottom: 30px;
    text-align: center;
    max-width: 500px;
  }

  .download-section {
    justify-content: center;
    margin-top: 25px;
  }

  .semi-circle {
    position: absolute;
    left: 50%;
    bottom: -35%;
    top: auto;
    transform: translateX(-50%);
    width: 1000px;
    height: 80%;
    background: white;
    border-radius: 50%;
    z-index: 1;
  }
}

@media (max-width: 550px) {
  .download-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .apple-logo {
    width: 24px;
    height: 24px;
  }

  .download-label {
    font-size: 11px;
  }

  .store-name {
    font-size: 16px;
  }
}
