/* Locomotive Scroll Styles */
html.has-scroll-smooth {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

html.has-scroll-dragging {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.has-scroll-smooth body {
  overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
  min-height: 100vh;
  will-change: transform;
}

/* Shape Wipe Animation */
.shape-wipe-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.shape-wipe {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  transform: scale(1);
  animation: shapeWipe 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes shapeWipe {
  0% {
    transform: scale(1);
    border-radius: 50%;
    opacity: 1;
  }
  50% {
    border-radius: 10%;
  }
  100% {
    transform: scale(40);
    border-radius: 0;
    opacity: 0;
  }
}

[data-scroll-section] {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Page Transition Animation */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(236, 248, 255, 0.9);
  z-index: 9999;
  transform: scale(0);
  transform-origin: center;
  pointer-events: none;
  will-change: transform;
}

.page-transition.active {
  animation: pageTransitionOut 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pageTransitionOut {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.page-transition-in {
  animation: pageTransitionIn 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes pageTransitionIn {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Ensure content is hidden during transition */
.transitioning {
  overflow: hidden;
  height: 100vh;
}

/* Page load animation */
.page-load-anim {
  animation: scaleUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes scaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Smooth transitions for elements */
[data-scroll] {
  will-change: transform, opacity;
}

/* Parallax effect */
[data-scroll-speed] {
  will-change: transform;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
}

/* Breathing Animation for Mental Health Page */
.breathing-circle {
  animation: breathe 6s infinite ease-in-out;
}

@keyframes breathe {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.9);
  }
}

/* BMI Meter Animation */
.bmi-meter {
  transition: all 1s ease;
}

/* Pulse Animation for Emergency */
.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-text {
    text-align: center;
  }

  .feature-card {
    margin-bottom: 1.5rem;
  }

  [data-scroll-speed] {
    transform: none !important;
  }
}
