/* Reusable Component Styles */

/* Video Component - Universal Display */
#hero-video {
  display: block;
}

/* Bubble Circle Component - Trigonometry-based Positioning */
.bubble-circle-container {
  position: relative;
  width: clamp(320px, 45vw, 600px);
  aspect-ratio: 1;
  margin: -5rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* CSS Variables for trigonometry calculations */
  --bubble-radius: clamp(13rem, 28vw, 18rem);
  --bubble-height: clamp(3rem, 4vw, 4rem);
}

.bubble-circle-center {
  position: relative;
  width: clamp(28rem, 32vw, 40rem);
  height: clamp(28rem, 32vw, 40rem);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.bubble-circle-icon {
  position: absolute;
  width: clamp(2rem, 3vw, 2.5rem);
  height: clamp(2rem, 3vw, 2.5rem);
  z-index: 3;
}

/* Desktop-specific override to ensure circle is bigger */
@media (min-width: 769px) {
  .bubble-circle-center {
    width: clamp(24rem, 26vw, 30rem) !important;
    height: clamp(24rem, 26vw, 30rem) !important;
  }
}

/* Large screen override to prevent bubble/circle overlap */
@media (min-width: 1600px) {
  .bubble-circle-container {
    width: 600px; /* Fixed max width */
    --bubble-radius: 20rem; /* Increased to clear the 28rem circle */
  }
  
  .bubble-circle-center {
    width: 28rem !important; /* Fixed size that fits within container */
    height: 28rem !important;
  }
}

.bubble-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bubble {
  position: absolute;
  top: 50%;
  left: 50%;
  height: var(--bubble-height);
  width: var(--width, 14rem);
  padding: 0.75rem 1.5rem;
  background: var(--light-blue-bg);
  border: 1px solid rgba(8, 75, 163, 0.1);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  
  /* CSS Trigonometry: Calculate x,y position directly, keep bubble horizontal */
  --x: calc(cos(var(--angle)) * var(--bubble-radius));
  --y: calc(sin(var(--angle)) * var(--bubble-radius));
  transform: translate(var(--x), var(--y)) translate(-50%, -50%);
}

.bubble p {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.2;
  color: #4b5563;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bubble em {
  font-style: italic;
  color: #4b5563;
}

/* Middle bubbles positioned slightly further out */
.middle-bubble {
  --x: calc(cos(var(--angle)) * calc(var(--bubble-radius) + 2rem));
  --y: calc(sin(var(--angle)) * calc(var(--bubble-radius) + 2rem));
}

/* Text alignment for left and right bubbles */
.bubble-right {
  text-align: left;
  justify-content: flex-start;
}

.bubble-left {
  text-align: right;
  justify-content: flex-end;
}

/* App store buttons */
.app-store-btn {
  transition: all 0.3s ease;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 2px solid var(--primary-blue);
  background-color: transparent;
  color: var(--primary-blue);
  text-decoration: none;
  min-width: 135px;
}

/* Prevent text wrapping in app store button spans */
.app-store-btn .flex-col span {
  white-space: nowrap;
}

.app-store-btn:hover {
  background-color: var(--primary-blue);
  color: white;
}

/* Disabled app store buttons */
.app-store-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #9ca3af;
  color: #9ca3af;
}

.app-store-btn.disabled:hover {
  background-color: transparent;
  color: #9ca3af;
  border-color: #9ca3af;
}

/* Footer-specific styling - make Apple logo white on dark background */
#footer .app-store-btn img[alt="App Store"] {
  filter: invert(1);
}


/* Mobile responsive styles for download buttons */
@media (max-width: 768px) {
  .app-store-btn {
    width: 50%;
    min-width: 130px; /* Adjusted to work with base min-width */
    max-width: 140px;
    padding: 0.375rem 0.75rem;
    font-size: 0.6875rem;
  }
  
  
  /* Mobile menu modal - center buttons on same line */
  .mobile-modal .flex.flex-col.gap-2 {
    flex-direction: row !important;
    justify-content: center;
    gap: 0.5rem;
  }
  
}

/* Desktop responsive styles for download buttons - smaller size */
@media (min-width: 1024px) {
  .app-store-btn {
    padding: 0.625rem 1.25rem; /* Smaller than previous 50% increase */
    font-size: 0.875rem; /* Slightly bigger than base but much smaller than before */
  }
  
  .app-store-btn svg,
  .app-store-btn img {
    width: 1rem; /* Slightly bigger than base w-3 (0.75rem) */
    height: 1rem;
  }
  
  .app-store-btn .text-xs {
    font-size: 0.875rem; /* Smaller text size */
  }
}

@media (min-width: 1280px) {
  .app-store-btn {
    padding: 0.75rem 1.5rem; /* Moderate increase for very large screens */
    font-size: 1rem;
  }
  
  .app-store-btn svg,
  .app-store-btn img {
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .app-store-btn .text-xs {
    font-size: 1rem;
  }
}

/* Coming Soon Modal */
.coming-soon-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.coming-soon-modal-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.coming-soon-modal.show .coming-soon-modal-content {
  transform: scale(1);
}

.coming-soon-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.coming-soon-modal-close:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.coming-soon-modal h3 {
  font-family: 'Canela Deck Trial', serif;
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin: 0 0 1rem 0;
}

.coming-soon-modal p {
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Social links */
.social-link {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
}

.social-link:hover {
  color: #6b7280;
  background-color: var(--primary-hover-light);
}

/* Curve Flow Component */
#curve-container {
  position: relative;
  overflow: visible;
}

#curve-container svg {
  pointer-events: none;
}

#markers-container,
#cards-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Step-by-Step Curve Flow System */

/* Faded Background Numbers */
.step-card::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(10%, -10%);
  font-size: 6rem; /* 96px */
  font-weight: 900;
  color: rgba(8, 75, 163, 0.06);
  z-index: -1;
  pointer-events: none;
  font-family: 'Avillia', serif;
  line-height: 1;
  user-select: none;
}

/* Scroll Animation Components - Bumble.shop Style */

/* Hide all elements with data-animate attributes initially */
[data-animate] {
  opacity: 0;
}

.fade-in-bottom {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}