/* Fonts */
:root {
  --font-display: "Lilita One", cursive;
  --font-body: "Mona Sans", "Inter", sans-serif;
  --color-bg: #00b4ea; /* Vibrant Sky Blue */
  --color-text: #ffffff;
  --color-btn-bg: #ffffff;
  --color-btn-text: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body,
html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  /* Optional: Subtle gradient to match the depth if needed */
  background: radial-gradient(circle at center top, #00bfff 0%, #0099cc 100%);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 24px 32px;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through header area */
}

.connect-btn {
  pointer-events: auto;
  font-family: var(--font-display);
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.connect-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-bg);
  transform: translateY(-2px);
  border-color: #fff;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px; /* Increased from 60px to clear header if needed */
  width: 100%;
  max-width: 100%;
  flex-grow: 1; /* Expand to fill remaining height */
}

/* Map Icon (Top) */
.map-icon-wrapper {
  margin-bottom: 24px;
  /* animation moved to entrance rules */
}

.map-icon {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* Typography */
.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 500px;
  padding: 0 20px;
}
.pill-text {
  cursor: pointer;
}
/* Button */
.cta-button {
  font-family: var(--font-display);
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: none;
  font-size: 20px;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s;
  z-index: 10; /* Ensure it's clickable */
  position: relative;
  overflow: hidden; /* For shimmer */
}

/* Shimmer Effect */
.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 223, 0, 0) 0%,
    rgba(255, 223, 0, 0.6) 50%,
    rgba(255, 223, 0, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmer 5s infinite;
  animation-delay: 2s; /* Wait for button entrance */
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  30% {
    left: 200%;
  } /* Slower pass */
  100% {
    left: 200%;
  } /* Wait */
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

/* Main Map Graphic */
.map-graphic-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin-top: auto; /* Pushes the map to the very bottom */
  display: flex;
  justify-content: center;
}

.world-map {
  width: 100%;
  height: auto;
  display: block;
  /* Ideally the image should be transparent PNG. */
  pointer-events: none; /* Let clicks pass through if needed, though pills are on top */
}

/* Floating Pills */
.pill {
  position: absolute;
  background-color: #ffffff;
  color: #000000;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%); /* Center on the coordinate */
  transition: transform 0.3s ease;
  cursor: default;
  cursor: default;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

/* Stagger the animations */
/* Map appears around 0.6s-1.0s, so pills should pop in after that */
.pill-eligibility {
  animation-delay: 1.2s;
}

.pill-claim {
  animation-delay: 1.4s;
}

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-icon-wrapper {
  /* Combine float and entrance. Float is infinite, entrance is once. */
  /* We can wrap the icon in a div for entrance, or just use a comma if supported safely, 
     but floatIcon uses transform which conflicts with fadeInUp transform. */
  /* Best approach: Apply entrance to the wrapper, and float to the img inside? 
     Currently .map-icon-wrapper has the float. 
     Let's move the float to the img .map-icon and put entrance on .map-icon-wrapper. */
  animation: fadeInUp 0.8s ease-out backwards;
}

.map-icon {
  /* Moved float animation here */
  animation: floatIcon 6s ease-in-out infinite;
}

.hero-title {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-button {
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.map-graphic-wrapper {
  animation: fadeInUp 1s ease-out 0.8s backwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.pill:hover {
  transform: translate(-50%, -60%);
}

.pill-text {
  z-index: 2;
  white-space: nowrap;
}

/* Little triangle pointer for the pill */
.pill::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
}

/* Specific Positions based on the map image visual context 
   These are guesses and might need tuning based on the actual asset aspect ratio.
*/
.pill-eligibility {
  top: 40%;
  left: 45%;
}

.pill-claim {
  top: 65%;
  left: 30%;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .map-icon {
    width: 80px;
  }

  .pill {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  }

  /* Adjust pointer size for smaller pills */
  .pill::after {
    border-width: 4px;
    bottom: -4px;
    margin-left: -4px; /* Center adjustment if needed, though transform handles it */
  }

  .cta-button {
    font-size: 18px;
    padding: 14px 32px;
    width: 90%; /* Make it wider on mobile */
    max-width: 300px;
  }

  /* Make map significantly bigger */
  .map-graphic-wrapper {
    width: 200%;
    max-width: none;
  }

  /* Header adjustments */
  .site-header {
    padding: 16px 20px;
  }

  .connect-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 64px;
  }

  .hero-subtitle {
    font-size: 22px;
  }

  .map-graphic-wrapper {
    margin-top: 0;
  }

  .pill {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 16px;
  }

  .pill::after {
    border-width: 6px;
    bottom: -6px;
  }
}
