/* ==============
   Birthday Nudge – styles
   ============== */

:root{
  --brand-lilac:#A78BFA;
  --brand-pink:#FF7AC8;
  --brand-blue:#6EC1FF;
  --brand-mint:#77E3C8;
  --text:#333;
  --card-bg: rgba(255,255,255,0.9);
}

/* Global */
*{ box-sizing:border-box; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin:0;
  text-align:center;
  color:var(--text);
  background: linear-gradient(135deg, var(--brand-lilac) 0%, var(--brand-pink) 45%, var(--brand-blue) 100%);
  min-height:100svh;
}

/* Make hero content readable over gradient */
header, main, footer{ position:relative; z-index:3; }

header{
  padding: 3rem 1rem 1.25rem;
  color:#fff;
}

/* 🎉 Release Banner Pill */
.release-banner {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1.5rem;
  margin: 1rem auto 2rem;
  border-radius: 50px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: inline-block;
  pointer-events: none;
}


.announcement-bar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #A78BFA;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  padding: 0.75rem;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


header h1{
  font-size: clamp(2rem, 4vw, 3rem);
  margin:0 0 .5rem;
  animation: bounceIn 1s ease-out;
}
header p{
  margin:0 auto 1.25rem;
  max-width: 720px;
  opacity:.95;
}

/* Card-style container */
.hero{
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  animation: floatIn .6s ease-out .15s both;
}

.screenshot{
  max-width: 340px;
  margin: 1.5rem auto;
  display:block;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.play-badge{
  width: 200px;
  margin-top: 1rem;
  transition: transform .15s ease, filter .3s;
}
.play-badge:hover{
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.25));
}

/* Footer */
footer{
  margin-top: 3rem;
  padding: 1rem;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
}

/* Floating credit badge */
.floating-footer{
  position: fixed;
  bottom: 15px;
  left: 15px;
  font-size: 12px;
  color: #e0e0e0;
  opacity: 0.95;
  background: rgba(20, 20, 20, 0.85);
  padding: 8px 20px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out, opacity 0.3s;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.floating-footer:hover{
  transform: scale(1.05);
  opacity: 1;
}
.floating-footer .heart{ margin-right:.35rem; }

/* ===================
   Confetti Animation
   =================== */
@keyframes fall {
  0% { transform: translateY(-10%) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.confetti{
  position: fixed;
  top: -10vh;
  width: 10px;
  height: 10px;
  background: var(--brand-pink);
  animation: fall 5s linear infinite;
  opacity: 0.85;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
}

.confetti:nth-of-type(1)  { left: 5%;  background: var(--brand-lilac); animation-duration: 4s;  animation-delay: 0s; }
.confetti:nth-of-type(2)  { left: 12%; background: var(--brand-pink);  animation-duration: 5.5s; animation-delay: 1s; }
.confetti:nth-of-type(3)  { left: 18%; background: var(--brand-blue);  animation-duration: 6s;   animation-delay: 2s; }
.confetti:nth-of-type(4)  { left: 25%; background: var(--brand-mint);  animation-duration: 4.5s; animation-delay: 0.5s; }
.confetti:nth-of-type(5)  { left: 32%; background: #FFD166;           animation-duration: 7s;   animation-delay: 1.5s; }
.confetti:nth-of-type(6)  { left: 40%; background: var(--brand-lilac); animation-duration: 5s;  animation-delay: 2.5s; }
.confetti:nth-of-type(7)  { left: 47%; background: var(--brand-pink);  animation-duration: 6.5s; animation-delay: 0.8s; }
.confetti:nth-of-type(8)  { left: 55%; background: var(--brand-blue);  animation-duration: 5.5s; animation-delay: 1.2s; }
.confetti:nth-of-type(9)  { left: 62%; background: var(--brand-mint);  animation-duration: 4.8s; animation-delay: 2.2s; }
.confetti:nth-of-type(10) { left: 70%; background: #FFD166;           animation-duration: 6.2s; animation-delay: 0.6s; }
.confetti:nth-of-type(11) { left: 77%; background: var(--brand-lilac); animation-duration: 5.3s; animation-delay: 1.4s; }
.confetti:nth-of-type(12) { left: 83%; background: var(--brand-pink);  animation-duration: 6.8s; animation-delay: 2.7s; }
.confetti:nth-of-type(13) { left: 88%; background: var(--brand-blue);  animation-duration: 4.9s; animation-delay: 1.1s; }
.confetti:nth-of-type(14) { left: 93%; background: var(--brand-mint);  animation-duration: 6.4s; animation-delay: 2.4s; }
.confetti:nth-of-type(15) { left: 97%; background: #FFD166;           animation-duration: 5.7s; animation-delay: 0.9s; }


.confetti:nth-of-type(odd) { animation-delay: 1s; }
.confetti:nth-of-type(3n)  { animation-delay: 2s; }
.confetti:nth-of-type(5n)  { animation-delay: 3s; }



/* ===================
   Balloons Animation
   =================== */
@keyframes floatUp {
  0% {
    transform: translateY(50px) scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

.balloon{
  position: fixed;
  bottom: 50px;
  width: 40px;
  height: 60px;
  background: var(--brand-pink);
  border-radius: 50% 50% 50% 50%;
  animation: floatUp 8s linear infinite;
  opacity: 0.8;
  pointer-events: none;
  z-index: 4;
}
.balloon::after{
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: rgba(0,0,0,0.2);
  transform: translateX(-50%);
}

.balloon1{ left: 8%;  background: var(--brand-lilac); animation-duration: 7.3s; animation-delay: 0.4s; }
.balloon2{ left: 35%; background: var(--brand-pink);  animation-duration: 6.8s; animation-delay: 2.1s; }
.balloon3{ left: 55%; background: var(--brand-blue);  animation-duration: 8.2s; animation-delay: 0.7s; }
.balloon4{ left: 73%; background: var(--brand-mint);  animation-duration: 6.5s; animation-delay: 3.2s; }
.balloon5{ left: 88%; background: #FFD166;           animation-duration: 7.6s; animation-delay: 1.5s; }

/* Animations for content */
@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes floatIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* App Screenshots Section */
.screenshots-section {
  padding: 0 1rem 2rem;
  margin-top: -1rem;
  color: #fff;
  position: relative;
  z-index: 3;
}

.screenshots-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.025em;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.screenshots-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.screenshots-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 0 0.5rem;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: scroll-position;
}

.screenshots-carousel::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex-shrink: 0;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.screenshot-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.screenshot-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  will-change: transform;
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-user-drag: none;
  user-select: none;
}

.screenshot-nav {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.screenshot-nav:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.screenshot-nav:active {
  transform: scale(0.95);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.lightbox[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: -10px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.lightbox-close:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.1);
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

/* Responsive Design for Screenshots */
@media (max-width: 768px) {
  .screenshots-section h2 {
    font-size: 2rem;
  }
  
  .screenshots-container {
    gap: 0.5rem;
  }
  
  .screenshot-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .screenshot-item {
    max-width: 200px;
    width: 200px;
  }
  
  .lightbox-close {
    top: -40px;
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}

@media (min-width: 769px) {
  .screenshot-item {
    max-width: 250px;
    width: 250px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
