/* --- Base Setup --- */
:root {
  --gold: #f7b733;
  --text-light: #f0f0f0;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* background-color: #0a0a0a; */
  color: white;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 60vh;
  
  /* The Overlay is added here! */
  /* rgba(0,0,0, 0.6) means black with 60% opacity. Change the 0.6 to adjust the darkness. */
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
    url('DakarBackground.webp') center/cover no-repeat; 
    
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  /* padding-top: 50px; */
}

/* --- Top Content (Text & Phone) --- */
.main-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
  width: 80%;
  /* background-color: rgba(10, 10, 10, 0.8); */
}

.text-area {
  flex: 1;
  max-width: 600px;
}

.headline {
  font-size: 2.5rem;
  font-style: italic;
  margin-bottom: 5px;
  line-height: 1.2;
}
.headline span:nth-child(1) {
    font-size: 1.7rem;
}

.text-gold {
  color: var(--gold);
}

.text-white {
  color: white;
  font-weight: bold;
}
.text-gold-b{
    color: var(--gold);
    font-weight: bold;

}
.downloadbelow{
    margin-top: -20px;
    text-align: center;
}
/* The glowing line from earlier */
.glowing-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #ffdd55 40%, #ffffff 50%, #ffaa00 60%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,221,85,0.8), 0 0 20px rgba(255,170,0,0.6);
  margin-bottom: 25px;
}

.description {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 20px;
}

.callout {
  font-size: 1.4rem;
  font-weight: bold;
}

.mobile-area {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.mobile-img {
  max-width: 70%;
  height: auto;
  /* Adds a subtle glow behind the phone if desired */
  filter: drop-shadow(0 0 30px rgba(247, 183, 51, 0.3)); 
}

/* --- Bottom Foreground (Characters, Button, Store) --- */
.foreground-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px 0px 20px;
  position: relative;
  z-index: 3;
  margin-top: -100px;
}

.characters-area {
  flex: 1;
}

.characters-img {
  max-width: 75%;
  margin-right: -50px;
  height: auto;
  display: block;
}

/* --- CTA Button & Lock Text --- */
.cta{
  flex: 1;
  padding-bottom: 50px;
}
.cta-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

/* Make the actual button a transparent container */
.btn-green {
  position: relative;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 15px 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1; /* Ensures text stays on top of the background */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Makes text pop */
}

/* Create the slanted, glowing background using ::before */
.btn-green::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* The green background gradient */
  background: linear-gradient(180deg, #00c652 0%, #006b1b 100%);
  
  /* The golden yellow border */
  border: 2px solid #ffcc00; 
  border-radius: 8px; 
  
  /* THE MAGIC: Slants the box by 12 degrees */
  transform: skewX(-12deg); 
  
  z-index: -1; /* Pushes the background behind the text */
  
  /* Creates the glowing effects (outer gold glow, inner white highlight) */
  box-shadow: 
    0 5px 20px rgba(255, 204, 0, 0.4), 
    inset 0 2px 5px rgba(255, 255, 255, 0.4);
    
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effects applied to the background shape */
.btn-green:hover::before {
  transform: skewX(-12deg) scale(1.05); /* Keeps the slant while scaling up */
  box-shadow: 
    0 8px 25px rgba(255, 204, 0, 0.6), 
    inset 0 2px 5px rgba(255, 255, 255, 0.6);
}

.btn-green .arrow {
  font-size: 1.8rem;
  line-height: 0;
}

.free-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  margin-top: 5px;
  font-size: 1rem;
  width: 100%;
}

.free-notice .line {
  flex-grow: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.store-area {
  display: flex;
  justify-content: flex-start;
  padding-left: 20px;
}

.play-badge {
  max-width: 250px;
  height: auto;
}


/* =========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================= */

/* --- Tablet / Smaller Laptops (Max Width: 1024px) --- */
@media (max-width: 1024px) {
  .main-content {
    width: 95%; /* Give it a bit more breathing room */
  }
  .play-badge {
    max-width: 220px;
  }
  .headline {
    font-size: 2.1rem;
  }
  
  .description {
    font-size: 1.1rem;
  }
  
  .foreground-footer {
    margin-top: -50px; /* Reduce the massive overlap */
  }
}

/* --- Mobile Devices (Max Width: 768px) --- */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto; /* Let the content dictate the height */
    padding-top: 40px;
  }

  /* Stack the Top Section */
  .main-content {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 0px;
  }

  .text-area {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .headline {
    font-size: 1.8rem;
  }
  
  .headline span:nth-child(1) {
    font-size: 1.3rem;
  }

  /* Center and scale the phone */
  .mobile-area {
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
  }

  .mobile-img {
    max-width: 60%; /* Shrink phone on mobile */
  }

  /* Stack the Bottom Section */
  .foreground-footer {
    flex-direction: column-reverse;
    align-items: center;
    margin-top: 0; /* Remove desktop negative margin */
    padding: 0 20px 0px 0px;
  }
.downloadbelow{
    margin-top: 50px;
}
  /* Handle the Characters and Overlap */
  .characters-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: -30px; /* Pulls the CTA button up to overlap the characters */
    z-index: 1;
  }

  .characters-img {
    margin-right: 0; /* Remove desktop offset that causes side-scrolling */
    max-width: 85%;
  }

  /* CTA Button stays on top */
  .cta-area {
    width: 100%;
    z-index: 3; /* Ensure it stays above characters */
    flex-direction: column;
    
    justify-content: center;
    gap: 10px;
  }

  .cta {
    text-align: center;
  }

  /* Center the Play Store badge */
  .store-area {
    justify-content: center;
    padding-left: 0;
    padding-bottom: 0;
    margin-top: 30px;
    width: 100%;
  }

  .btn-green {
    font-size: 1.2rem;
    padding: 12px 30px;
  }
}

/* --- Small Mobile (Max Width: 480px) --- */
@media (max-width: 480px) {
  .headline {
    font-size: 1.5rem;
  }
  
  .headline span:nth-child(1) {
    font-size: 1.1rem;
  }
  
  .description {
    font-size: 1rem;
  }
  
  .mobile-img {
    max-width: 80%; /* Let the phone take up a bit more space on tiny screens */
  }
  
  .btn-green {
    font-size: 1.1rem;
    padding: 10px 25px;
  }
  
  .characters-img {
    max-width: 95%;
  }

  .play-badge {
    max-width: 200px;
  }
}