/* Additional custom styles to complement Tailwind */

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

* {
  box-sizing: border-box !important;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
textarea,
select {
  font-size: 16px !important;
}

body {
  position: relative;
  left: 0;
  right: 0;
}

html {
  overflow-y: auto;
  height: 100%;
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Enhanced focus styles */
.focus-visible:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255, 33, 219, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF21DB, #FF6B9D);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #e11d4b, #FF21DB);
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    color: black !important;
    background: white !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-primary-500 {
    background-color: #000 !important;
  }

  .text-primary-500 {
    color: #000 !important;
  }

  .border-primary-500 {
    border-color: #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Loading skeleton improvements */
.animate-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Modal backdrop blur */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

/* Enhanced button hover effects */
.btn-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card hover effects */
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Text selection */
::selection {
  background-color: rgba(255, 33, 219, 0.2);
  color: inherit;
}

/* Image loading placeholder */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Enhanced form validation styles */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Tooltip styles */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* Enhanced mobile styles */
@media (max-width: 640px) {
  .text-responsive {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }

  .heading-responsive {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
  .dark-mode-auto {
    background-color: #1f2937;
    color: #f9fafb;
  }
}

/* Enhanced loading states */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #FF21DB;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #FF21DB;
  color: white;
  padding: 8px;
  text-decoration: none;
  transition: top 0.3s;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}


/* Download Modal Styling */
.download-modal-content {
  border-radius: 20px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.download-modal-header {
  background: linear-gradient(135deg, #FF21DB, #FF6B9D);
  color: white;
  border: none;
  padding: 25px 30px;
  text-align: center;
}

.download-modal-header .modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.download-intro {
  text-align: center;
  margin-bottom: 30px;
}

.download-description {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* QR Codes Section */
.qr-codes-section {
  margin-bottom: 30px;
}

.qr-section-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
}

.qr-codes-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.qr-code-item {
  text-align: center;
  flex: 1;
  max-width: 180px;
}

.qr-code-wrapper {
  position: relative;
  display: inline-block;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  transition: all 0.3s ease;
  background: white;
}

.qr-code-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.qr-code-wrapper.ios {
  border: 3px solid #007AFF;
}

.qr-code-wrapper.android {
  border: 3px solid #34A853;
}

.qr-code-image {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  display: block;
}

.qr-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
}

.qr-code-wrapper.ios .qr-overlay {
  background: linear-gradient(135deg, #007AFF, #0051D0);
}

.qr-code-wrapper.android .qr-overlay {
  background: linear-gradient(135deg, #34A853, #137333);
}

.qr-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.qr-label i {
  font-size: 18px;
}

.qr-code-item:first-child .qr-label i {
  color: #007AFF;
}

.qr-code-item:last-child .qr-label i {
  color: #34A853;
}

.qr-subtitle {
  color: #6b7280;
  font-size: 12px;
}

.qr-instruction {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  font-style: italic;
}

/* Divider */
.download-divider {
  display: flex;
  align-items: center;
  margin: 30px 0;
  gap: 20px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

.divider-text {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  padding: 0 15px;
}

/* Download Buttons Section */
.download-buttons-section {
  margin-bottom: 30px;
}

.buttons-section-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
}

.download-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.download-button-link {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.download-button-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.download-button-image {
  width: 160px;
  height: 48px;
  object-fit: contain;
  display: block;
}

/* App Features Preview */
.app-features-preview {
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  margin-top: 20px;
}

.features-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.feature-item i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF21DB, #FF6B9D);
  color: white;
  border-radius: 6px;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .download-modal-content {
    margin: 10px;
    max-width: none;
  }

  .qr-codes-container {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .qr-code-item {
    max-width: 200px;
  }

  .download-buttons-container {
    flex-direction: column;
    align-items: center;
  }

  .download-button-image {
    width: 140px;
    height: 42px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .qr-code-wrapper {
    padding: 12px;
  }

  .qr-code-image {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  .download-modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 20px;
  }

  .qr-section-title,
  .buttons-section-title {
    font-size: 16px;
  }

  .download-description {
    font-size: 14px;
  }
}

/* Animation for QR codes */
@keyframes qrScan {

  0%,
  100% {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }

  50% {
    box-shadow: 0 8px 25px rgba(255, 33, 219, 0.3);
  }
}

.qr-code-wrapper:hover {
  animation: qrScan 2s ease-in-out infinite;
}


/* Mobile Menu Fixes */
#mobileMenu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 0.5rem;
  border-radius: 1rem !important;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Remove border radius from container's direct child */
#mobileMenu>div {
  background: white;
  padding: 1rem;
}

/* Remove excessive border radius from mobile menu items */
#mobileMenu a {
  border-radius: 0.5rem !important;
  display: block;
}

/* Auth buttons container */
#mobileMenu>div>div:last-child {
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.75rem;
}

/* Auth buttons styling - remove extra margins */
#mobileMenu .mobile-auth-btn {
  border-radius: 9999px !important;
  margin: 0 !important;
  width: 100%;
  padding: 0.5rem 1rem;
}

/* Make sure navbar doesn't expand */
nav {
  position: relative;
}


/* ===================================
   HERO SECTION ANIMATIONS
   =================================== */



/* Hero Background */
.hero-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 33, 219, 0.15) 0%,
      /* Even lighter */
      rgba(138, 35, 135, 0.15) 50%,
      /* Even lighter */
      rgba(67, 56, 202, 0.15) 100%);
  /* Even lighter */
  animation: gradientShift 15s ease infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url('./images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.5;
  /* Show even more of the original image */
  animation: zoomPulse 20s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }

  50% {
    background-position: 100% 50%;
    filter: hue-rotate(45deg);
  }
}

@keyframes zoomPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Floating Bubbles */
.bubbles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  bottom: -100px;
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0.2));
  border-radius: 50%;
  animation: rise 15s infinite ease-in;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.bubble:nth-child(1) {
  width: 60px;
  height: 60px;
  left: 10%;
  animation-duration: 12s;
  animation-delay: 0s;
}

.bubble:nth-child(2) {
  width: 40px;
  height: 40px;
  left: 20%;
  animation-duration: 14s;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 80px;
  height: 80px;
  left: 30%;
  animation-duration: 16s;
  animation-delay: 1s;
}

.bubble:nth-child(4) {
  width: 50px;
  height: 50px;
  left: 45%;
  animation-duration: 13s;
  animation-delay: 3s;
}

.bubble:nth-child(5) {
  width: 70px;
  height: 70px;
  left: 55%;
  animation-duration: 15s;
  animation-delay: 1.5s;
}

.bubble:nth-child(6) {
  width: 45px;
  height: 45px;
  left: 65%;
  animation-duration: 11s;
  animation-delay: 2.5s;
}

.bubble:nth-child(7) {
  width: 90px;
  height: 90px;
  left: 75%;
  animation-duration: 17s;
  animation-delay: 0.5s;
}

.bubble:nth-child(8) {
  width: 55px;
  height: 55px;
  left: 85%;
  animation-duration: 14s;
  animation-delay: 1.8s;
}

.bubble:nth-child(9) {
  width: 65px;
  height: 65px;
  left: 15%;
  animation-duration: 13s;
  animation-delay: 2.2s;
}

.bubble:nth-child(10) {
  width: 75px;
  height: 75px;
  left: 90%;
  animation-duration: 16s;
  animation-delay: 0.8s;
}

@keyframes rise {
  0% {
    bottom: -100px;
    transform: translateX(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    bottom: 110%;
    transform: translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

/* Floating Icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15);
  animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(odd) {
  animation-duration: 7s;
}

.floating-icon:nth-child(even) {
  animation-duration: 8s;
  animation-direction: reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* Hero Content Animations */
.hero-content {
  animation: contentFadeIn 1s ease-out;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-word {
  display: inline-block;
  animation: wordBounce 0.8s ease-out;
  margin: 0 0.2em;
}

.hero-word:hover {
  animation: wordPop 0.5s ease;
}

@keyframes wordBounce {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wordPop {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Hero Badge */
.hero-badge {
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Hero Subtitle */
.hero-subtitle {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: subtitleFade 1s ease-out 0.5s both;
}

@keyframes subtitleFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero CTA Buttons */
.hero-cta button,
.hero-cta a {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: ctaSlideUp 1s ease-out 0.8s both;
}

@keyframes ctaSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Stats */
.hero-stats .stat-item {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: statFadeIn 1s ease-out 1s both;
}

.hero-stats .stat-item:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes statFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  animation: scrollFade 1s ease-out 1.2s both;
  z-index: 20;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  /* Made more visible */
  border-radius: 25px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

@keyframes scrollFade {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-icon {
    font-size: 1.5rem;
  }

  .bubble {
    width: 40px !important;
    height: 40px !important;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Mouse Move Effect */
.hero-content {
  transition: transform 0.3s ease-out;
}


/* Download Modal Responsive Improvements */
#downloadAppModal .bg-white {
    max-width: 90vw;
}

/* Download Button Images - Responsive Sizing */
.download-btn-img {
    max-width: 140px;
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments for download buttons */
@media (max-width: 640px) {
    .download-btn-img {
        max-width: 120px;
        height: 40px;
    }
    
    #downloadAppModal .bg-white {
        padding: 1.5rem;
    }
    
    #downloadAppModal h5 {
        font-size: 1.25rem;
    }
    
    #downloadAppModal p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .download-btn-img {
        max-width: 110px;
        height: 38px;
    }
    
    #downloadAppModal .bg-white {
        padding: 1.25rem;
        margin: 0.5rem;
    }
}

/* QR Code Responsive */
#downloadAppModal img[alt="QR Code"] {
    max-width: 100%;
    height: auto;
}

/* Download button container */
#downloadAppModal .flex.flex-col {
    width: 100%;
}

.download-btn-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}