/* ==========================================================================
   Truecent Solutions - Modern Custom Animation System
   ========================================================================== */

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes floatSlow {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floatReverse {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 102, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------------------------------------------------------------------
   Scroll Reveal Base Styles
   -------------------------------------------------------------------------- */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.is-revealed {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Ensure Webflow hidden items fade in gracefully */
[style*="opacity:0"], [style*="opacity: 0"] {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-ready [style*="opacity:0"],
.animate-ready [style*="opacity: 0"] {
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   Navbar Animations & Scroll Effects
   -------------------------------------------------------------------------- */
.header-section {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

/* ==========================================================================
   PERFECT HERO SECTION LAYOUT FIX (ZERO CLIPPING)
   ========================================================================== */
.hero {
  position: relative !important;
  width: 100% !important;
  padding-top: 10px !important;
  overflow: visible !important;
}

.hero-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  padding-top: 120px !important;
  padding-bottom: 60px !important;
  overflow: visible !important;
}

.hero-container {
  position: relative !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-row {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: auto !important;
  overflow: visible !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hero-top {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
  top: 0 !important;
}

.hero-top-text-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-bottom: 20px !important;
  transform: none !important;
  position: relative !important;
  top: 0 !important;
}

.hero-title {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: clamp(32px, 4vw, 56px) !important;
  line-height: 1.25 !important;
  margin: 0 auto 30px auto !important;
  padding: 0 20px !important;
  top: 0 !important;
  position: relative !important;
  transform: none !important;
  text-align: center !important;
  max-width: 950px !important;
  height: auto !important;
  overflow: visible !important;
}

.page-title {
  padding-top: 70px !important;
}

.header-section.scrolled {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-link.navigation, .navigation.w-nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navigation.w-nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0052cc, #0080ff);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.navigation.w-nav-link:hover::after,
.navigation.w-nav-link.w--current::after {
  width: 80%;
  left: 10%;
}

/* --------------------------------------------------------------------------
   Card & Container Hover Lift Animations
   -------------------------------------------------------------------------- */
.patient-info-item,
.contact-infor-list-item,
.location-item,
.footer-top-left-title,
.about-right {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.patient-info-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 50, 120, 0.09) !important;
}

.location-item:hover {
  transform: translateY(-4px) translateX(4px);
}

.contact-infor-list-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

/* Decorative Graphic Floating Effects */
.cta-shap {
  animation: floatSlow 7s ease-in-out infinite;
}

.footer-top-shap {
  animation: floatReverse 8s ease-in-out infinite;
}

.header-shap {
  animation: floatSlow 9s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Button Animations & Micro-Interactions
   -------------------------------------------------------------------------- */
.btn-link-wrap,
.btn-link-wrap-2,
.message.w-button,
.header-logo-wrap {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s ease;
}

.btn-link-wrap:hover,
.btn-link-wrap-2:hover,
.message.w-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 82, 204, 0.25);
}

.btn-link-wrap:active,
.btn-link-wrap-2:active,
.message.w-button:active {
  transform: translateY(-1px) scale(0.99);
}

/* Button Sheen Shimmer Effect */
.btn-link-wrap,
.btn-link-wrap-2,
.message.w-button {
  position: relative;
  overflow: hidden;
}

.btn-link-wrap::before,
.btn-link-wrap-2::before,
.message.w-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.btn-link-wrap:hover::before,
.btn-link-wrap-2:hover::before,
.message.w-button:hover::before {
  left: 150%;
}

/* --------------------------------------------------------------------------
   Form Input Animations
   -------------------------------------------------------------------------- */
.contanct-form-input,
.contanct-form-input.w-input,
.contanct-form-input.w-select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.contanct-form-input:focus {
  border-color: #0052cc !important;
  box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.15) !important;
  transform: translateY(-1px);
  outline: none;
}

/* --------------------------------------------------------------------------
   Social Icon Animations
   -------------------------------------------------------------------------- */
.footer-icon-box {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.footer-icon-box:hover {
  transform: translateY(-4px) scale(1.15);
}

/* Service Tag Hover */
.service-tag {
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  cursor: default;
}

.service-tag:hover {
  transform: translateY(-3px) scale(1.04);
}
