/* ============================================================
   MEDICOACH — PREMIUM VISUAL ENHANCEMENTS
   Pure CSS animations, transitions, glassmorphism & micro-interactions
   No content changes — only visual & motion upgrades
   ============================================================ */

/* ---------- CUSTOM PROPERTIES (MOTION TOKENS) ---------- */
:root {
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 0.2s;
  --duration-med: 0.4s;
  --duration-slow: 0.7s;
  --glow-teal: 0 0 30px rgba(27, 170, 170, 0.25);
  --glow-gold: 0 0 30px rgba(201, 160, 96, 0.25);
}

/* ---------- SMOOTH PAGE ENTRY ---------- */
body {
  animation: pageEntrance 0.8s var(--ease-smooth) both;
}
@keyframes pageEntrance {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   ENHANCED REVEAL ANIMATIONS (upgrades existing .reveal system)
   ============================================================ */
.reveal {
  transition: opacity 0.8s var(--ease-smooth),
              transform 0.8s var(--ease-out-expo),
              filter 0.8s var(--ease-smooth);
  filter: blur(4px);
  will-change: transform, opacity, filter;
}
.reveal.visible {
  filter: blur(0);
}
.reveal-right {
  transition: opacity 0.8s var(--ease-smooth),
              transform 0.8s var(--ease-out-expo),
              filter 0.8s var(--ease-smooth);
}

/* Staggered reveal for grids - children get sequential delays */
.services-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.services-grid .reveal:nth-child(7) { transition-delay: 0.35s; }
.services-grid .reveal:nth-child(8) { transition-delay: 0.4s; }
.services-grid .reveal:nth-child(9) { transition-delay: 0.45s; }
.services-grid .reveal:nth-child(10) { transition-delay: 0.5s; }
.services-grid .reveal:nth-child(11) { transition-delay: 0.55s; }
.services-grid .reveal:nth-child(12) { transition-delay: 0.6s; }
.services-grid .reveal:nth-child(13) { transition-delay: 0.65s; }

/* ============================================================
   NAVBAR — PREMIUM GLASSMORPHISM & MICRO-ANIMATIONS
   ============================================================ */
#navbar {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 20, 48, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s var(--ease-smooth), background 0.5s var(--ease-smooth);
}
#navbar.scrolled {
  background: rgba(7, 20, 48, 0.96) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(27, 170, 170, 0.06);
}

/* Logo hover micro-animation */
.nav-logo {
  transition: transform 0.35s var(--ease-spring);
}
.nav-logo:hover {
  transform: scale(1.04);
}
.logo-img {
  transition: filter 0.3s ease, transform 0.35s var(--ease-spring);
}
.nav-logo:hover .logo-img {
  filter: brightness(1.12) drop-shadow(0 0 12px rgba(27, 170, 170, 0.35));
}

/* Nav links — underline slide effect */
.nav-links a {
  position: relative;
  overflow: hidden;
  transition: color 0.3s var(--ease-smooth), background 0.3s var(--ease-smooth);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 2px;
  transition: width 0.35s var(--ease-out-expo), left 0.35s var(--ease-out-expo);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

/* ============================================================
   HERO — CINEMATIC ENTRANCE & FLOATING ORBS
   ============================================================ */
.hero {
  position: relative;
}

/* Animated gradient overlay for hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 170, 170, 0.04) 0%,
    transparent 40%,
    rgba(201, 160, 96, 0.03) 60%,
    transparent 100%
  );
  animation: heroGradientShift 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes heroGradientShift {
  0%   { opacity: 0.5; transform: scale(1) rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.05) rotate(1deg); }
}

/* Enhanced orb animations */
.hero-orb-1 {
  animation: orbFloat1 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  animation: orbFloat2 15s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50%  { transform: translate(-30px, 20px) scale(1.08); opacity: 0.8; }
  100% { transform: translate(20px, -15px) scale(0.95); opacity: 0.6; }
}
@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50%  { transform: translate(25px, -30px) scale(1.12); opacity: 0.7; }
  100% { transform: translate(-20px, 15px) scale(0.9); opacity: 0.5; }
}

/* Hero grid dots — subtle pulse */
.hero-grid {
  animation: gridPulse 6s ease-in-out infinite alternate;
}
@keyframes gridPulse {
  0%   { opacity: 0.4; }
  100% { opacity: 0.8; }
}

/* Hero text entrance animation */
.hero-text.reveal {
  transform: translateY(50px);
}
.hero-text.visible {
  animation: heroTextIn 1s var(--ease-out-expo) both;
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(50px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Hero h1 — gradient text shimmer */
.hero-text h1 {
  background: linear-gradient(
    135deg,
    #ffffff 0%, #e0f7fa 30%, #ffffff 50%, #ffecd2 70%, #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s ease-in-out infinite;
}
@keyframes textShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Hero badge — breathing glow */
.hero-badge {
  animation: badgeGlow 3s ease-in-out infinite alternate;
}
@keyframes badgeGlow {
  0%   { box-shadow: 0 0 10px rgba(27, 170, 170, 0.15); }
  100% { box-shadow: 0 0 25px rgba(27, 170, 170, 0.3), inset 0 0 10px rgba(27, 170, 170, 0.05); }
}

/* Floating service cards — enhanced interaction */
.hero-card-float {
  transition: transform 0.35s var(--ease-spring),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.hero-card-float:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(201, 160, 96, 0.3),
              0 0 20px rgba(201, 160, 96, 0.15);
  transform: rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle))) translateY(-20px) scale(1.1) !important;
}

/* Hero wave — smoother */
.hero-wave svg {
  animation: waveFlow 6s ease-in-out infinite alternate;
}
@keyframes waveFlow {
  0%   { transform: translateX(-2%); }
  100% { transform: translateX(2%); }
}

/* ============================================================
   BUTTONS — PREMIUM EFFECTS
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring);
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo);
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Gold button pulse ring */
.btn-gold {
  animation: goldBtnPulse 3s ease-in-out infinite;
}
@keyframes goldBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(201, 160, 96, 0.4); }
  50%      { box-shadow: 0 4px 30px rgba(201, 160, 96, 0.6), 0 0 40px rgba(201, 160, 96, 0.2); }
}
.btn-gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(201, 160, 96, 0.6);
}

/* Outline button shimmer */
.btn-outline-white {
  transition: all 0.35s var(--ease-spring);
}
.btn-outline-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* ============================================================
   STATS BAR — COUNTER GLOW
   ============================================================ */
.stats-bar {
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(27, 170, 170, 0.04), transparent);
  animation: statsShine 4s ease-in-out infinite;
}
@keyframes statsShine {
  0%   { left: -60%; }
  100% { left: 120%; }
}

.stat-item {
  transition: transform 0.3s var(--ease-spring);
}
.stat-item:hover {
  transform: scale(1.05);
}
.stat-num {
  transition: color 0.3s ease;
}
.stat-item:hover .stat-num {
  color: var(--teal);
}

/* ============================================================
   SERVICE CARDS — 3D TILT & GLASSMORPHISM
   ============================================================ */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.45s var(--ease-spring);
  transform-style: preserve-3d;
  perspective: 600px;
}

/* Gradient border glow on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--teal), var(--gold), var(--teal));
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.45s ease;
  animation: borderGradient 4s ease infinite;
}
@keyframes borderGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.service-card:hover::before {
  opacity: 1;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(11, 31, 75, 0.2),
              var(--glow-teal);
}

/* Service icon — spin on hover */
.service-icon {
  transition: all 0.5s var(--ease-spring);
}
.service-card:hover .service-icon {
  transform: scale(1.2) rotate(8deg);
}

/* Service card h3 — subtle letter spacing on hover */
.service-card h3 {
  transition: color 0.4s var(--ease), letter-spacing 0.4s var(--ease);
}
.service-card:hover h3 {
  letter-spacing: 0.02em;
}

/* ============================================================
   HOW IT WORKS — STEPS WITH GLOW
   ============================================================ */
/* Step cards — glassmorphism upgrade */
.step-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-spring);
}
.step-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(27, 170, 170, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.step-card:hover::before {
  opacity: 1;
}
.step-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(27, 170, 170, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2),
              0 0 30px rgba(27, 170, 170, 0.1);
}

/* Step number — glow on hover */
.step-num {
  transition: all 0.4s var(--ease);
}
.step-card:hover .step-num {
  -webkit-text-stroke-color: rgba(201, 160, 96, 0.8);
  text-shadow: 0 0 40px rgba(201, 160, 96, 0.3);
}

/* Step icon — bounce on hover */
.step-icon {
  transition: all 0.5s var(--ease-spring);
}
.step-card:hover .step-icon {
  transform: scale(1.12) rotate(-5deg);
  box-shadow: 0 12px 40px rgba(27, 170, 170, 0.5),
              0 0 20px rgba(27, 170, 170, 0.2);
}

/* Step arrows — animated pulse */
.step-arrow {
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50%      { transform: translateX(6px); opacity: 1; }
}
@media (max-width: 768px) {
  @keyframes arrowPulse {
    0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.5; }
    50%      { transform: rotate(90deg) translateX(6px); opacity: 1; }
  }
}

/* ============================================================
   ABOUT SECTION — DEPTH & PARALLAX FEEL
   ============================================================ */
.about-card-main {
  transition: all 0.5s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.about-card-main::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(201, 160, 96, 0.08);
  transition: all 0.6s var(--ease-smooth);
}
.about-card-main:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 32px 80px rgba(11, 31, 75, 0.28),
              0 0 40px rgba(27, 170, 170, 0.1);
}
.about-card-main:hover::after {
  transform: scale(1.5);
  opacity: 0.6;
}

/* About badge items — staggered entrance */
.about-badge-item {
  transition: all 0.3s var(--ease-spring);
}
.about-badge-item:hover {
  transform: translateX(8px);
  color: var(--white);
}
.about-badge-item:hover i {
  transform: scale(1.3) rotate(10deg);
}

/* Mission/Vision cards */
.mv-card {
  transition: all 0.35s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.mv-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--teal), var(--gold));
  border-radius: 3px;
  transition: height 0.4s var(--ease-out-expo);
}
.mv-card:hover::before {
  height: 100%;
}
.mv-card:hover {
  transform: translateX(6px);
  box-shadow: var(--sh-md);
  border-color: rgba(27, 170, 170, 0.2);
}

.mv-icon {
  transition: all 0.4s var(--ease-spring);
}
.mv-card:hover .mv-icon {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 16px rgba(27, 170, 170, 0.3);
}

/* ============================================================
   TEAM CARDS — PREMIUM HOVER
   ============================================================ */
.team-card {
  transition: transform 0.45s var(--ease-spring),
              box-shadow 0.45s var(--ease-smooth),
              border-color 0.45s ease;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}
.team-card:hover::before {
  transform: scaleX(1);
  animation: teamTopBar 2s linear infinite;
}
@keyframes teamTopBar {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.team-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(10, 60, 124, 0.15),
              0 0 30px rgba(27, 170, 170, 0.08);
}

/* ============================================================
   TESTIMONIALS — FLOATING EFFECT
   ============================================================ */
.testi-card {
  transition: all 0.4s var(--ease-spring);
  position: relative;
}
.testi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 50%;
  background: linear-gradient(to bottom, transparent, rgba(27, 170, 170, 0.03));
  border-radius: 0 0 var(--r-md) var(--r-md);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.testi-card:hover::after {
  opacity: 1;
}
.testi-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(11, 31, 75, 0.15),
              var(--glow-teal);
}

/* Quote icon rotation */
.quote-icon {
  transition: all 0.5s var(--ease-spring);
}
.testi-card:hover .quote-icon {
  transform: rotate(12deg) scale(1.2);
  opacity: 0.9;
  color: var(--gold);
}

/* Stars shimmer */
.testi-stars {
  transition: all 0.3s ease;
}
.testi-card:hover .testi-stars {
  text-shadow: 0 0 10px rgba(201, 160, 96, 0.5);
}

/* ============================================================
   FORM SECTION — DEPTH & POLISH
   ============================================================ */
.form-card {
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: calc(var(--r-xl) + 2px);
  background: linear-gradient(135deg, rgba(27, 170, 170, 0.3), rgba(201, 160, 96, 0.3), rgba(27, 170, 170, 0.3));
  background-size: 300% 300%;
  animation: formBorderGlow 6s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
@keyframes formBorderGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.form-card:hover::before {
  opacity: 0.6;
}

/* Input focus transitions */
.form-group input,
.form-group select,
.form-group textarea {
  transition: all 0.3s var(--ease-smooth),
              box-shadow 0.3s var(--ease-smooth);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(27, 170, 170, 0.12),
              0 4px 16px rgba(27, 170, 170, 0.08);
}

/* Selection pills — pop animation */
.selection-pill span {
  transition: all 0.3s var(--ease-spring);
}
.selection-pill:hover span {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 170, 170, 0.15);
}
.selection-pill input:checked + span {
  animation: pillPop 0.3s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(27, 170, 170, 0.3);
}
@keyframes pillPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ============================================================
   FOOTER — SUBTLE ANIMATIONS
   ============================================================ */
.footer {
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), var(--teal), transparent);
  opacity: 0.4;
}

/* Footer logo glow */
.footer-logo:hover .logo-img-footer {
  filter: brightness(1.1) drop-shadow(0 0 16px rgba(27, 170, 170, 0.25));
  transition: filter 0.4s ease;
}

/* Social buttons — ripple effect */
.social-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring);
}
.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(27, 170, 170, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.5s var(--ease-out-expo);
  border-radius: inherit;
}
.social-btn:hover::before {
  transform: scale(2.5);
}
.social-btn:hover {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 6px 20px rgba(27, 170, 170, 0.35);
}

/* Footer column links — slide-in underline */
.footer-col ul li a {
  position: relative;
  transition: color 0.3s ease, transform 0.3s var(--ease-spring);
  display: inline-block;
}
.footer-col ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-expo);
}
.footer-col ul li a:hover::after {
  width: 100%;
}
.footer-col ul li a:hover {
  transform: translateX(4px);
}

/* ============================================================
   SCROLL TO TOP — PREMIUM ANIMATION
   ============================================================ */
.scroll-top {
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
}
.scroll-top::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--gold), var(--teal), var(--gold));
  z-index: -1;
  animation: scrollTopRing 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
@keyframes scrollTopRing {
  to { transform: rotate(360deg); }
}
.scroll-top:hover::before {
  opacity: 0.6;
}
.scroll-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px rgba(201, 160, 96, 0.5);
}

/* ============================================================
   SECTION HEADERS — ANIMATED UNDERLINES
   ============================================================ */
.section-tag {
  transition: all 0.3s var(--ease-spring);
  position: relative;
}
.section-tag:hover {
  transform: scale(1.05);
}

.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 3px;
  transition: width 0.6s var(--ease-out-expo);
}
.section-header.visible h2::after,
.reveal.visible .section-header h2::after {
  width: 60px;
}

/* ============================================================
   MODALS — SMOOTHER TRANSITIONS
   ============================================================ */
.custom-modal {
  transition: opacity 0.4s var(--ease-smooth);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}
.custom-modal-content {
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}
.custom-modal.show .custom-modal-content {
  animation: modalSlideIn 0.5s var(--ease-out-expo) both;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal close button — spin on hover */
.custom-modal-close {
  transition: all 0.3s var(--ease-spring);
}
.custom-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--teal);
}

/* ============================================================
   LANG SELECTOR — DROPDOWN ANIMATION
   ============================================================ */
.lang-dropdown {
  transform-origin: top right;
  animation: none;
}
.lang-selector.open .lang-dropdown {
  animation: dropdownIn 0.35s var(--ease-out-expo) both;
}
@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.lang-dropdown li {
  transition: all 0.2s var(--ease-smooth);
}
.lang-dropdown li:hover {
  background: var(--gray-50);
  transform: translateX(4px);
}

/* ============================================================
   PULSE RINGS — SOFTER, MORE ORGANIC
   ============================================================ */
.pulse-ring {
  border: 2px solid rgba(27, 170, 170, 0.2);
  animation: pulseRingNew 3s ease-in-out infinite;
}
.pulse-ring-2 {
  animation-delay: 1.5s;
}
@keyframes pulseRingNew {
  0%   { transform: scale(0.85); opacity: 0.6; border-color: rgba(27, 170, 170, 0.3); }
  50%  { transform: scale(1.05); opacity: 0.3; border-color: rgba(201, 160, 96, 0.2); }
  100% { transform: scale(1.2);  opacity: 0;   border-color: rgba(27, 170, 170, 0.1); }
}

/* ============================================================
   HERO MAIN ICON — BREATHING GLOW
   ============================================================ */
.hero-main-icon {
  animation: mainIconGlow 4s ease-in-out infinite alternate;
  transition: all 0.4s var(--ease-spring);
}
@keyframes mainIconGlow {
  0%   { box-shadow: 0 32px 80px rgba(11, 31, 75, 0.22), 0 0 30px rgba(27, 170, 170, 0.1); }
  100% { box-shadow: 0 32px 80px rgba(11, 31, 75, 0.22), 0 0 50px rgba(27, 170, 170, 0.25), 0 0 80px rgba(27, 170, 170, 0.08); }
}
.hero-main-icon:hover {
  transform: scale(1.05);
}
.hero-main-icon i {
  animation: iconHeartbeat 2s ease-in-out infinite;
}
@keyframes iconHeartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.1); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.06); }
}

/* ============================================================
   TRUST ITEMS — STAGGERED FADE IN
   ============================================================ */
.trust-item {
  transition: all 0.3s var(--ease-spring);
}
.trust-item:hover {
  transform: translateY(-2px);
}
.trust-item:hover i {
  animation: checkPop 0.4s var(--ease-spring);
}
@keyframes checkPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4) rotate(10deg); }
  100% { transform: scale(1); }
}

/* ============================================================
   APPLY SECTION — BACKGROUND ANIMATION
   ============================================================ */
.apply-section .apply-bg {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #0D2A5E 100%);
}
.apply-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 170, 170, 0.06) 0%, transparent 70%);
  animation: applyOrb 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes applyOrb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.2); }
}

/* ============================================================
   SELECTION CHECKBOXES & RADIO BUTTONS — POP
   ============================================================ */
.checkbox-custom {
  transition: all 0.25s var(--ease-spring);
}
.checkbox-label:hover .checkbox-custom {
  border-color: var(--teal);
  transform: scale(1.1);
}
.checkbox-label input:checked ~ .checkbox-custom {
  animation: checkboxPop 0.3s var(--ease-spring);
}
@keyframes checkboxPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1); }
}

/* ============================================================
   STAT DIVIDERS — ANIMATED GRADIENT
   ============================================================ */
.stat-divider {
  background: linear-gradient(180deg, transparent, var(--teal), var(--gold), transparent);
  background-size: 100% 300%;
  animation: dividerFlow 4s ease-in-out infinite;
  opacity: 0.3;
}
@keyframes dividerFlow {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

/* ============================================================
   HOW-WORKS BACKGROUND — ANIMATED GRADIENT
   ============================================================ */
.how-bg {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 40%, var(--navy-light) 80%, var(--navy-dark) 100%);
  background-size: 300% 300%;
  animation: howBgShift 12s ease-in-out infinite;
}
@keyframes howBgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   ACCESSIBILITY — RESPECT USER PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { filter: none; }
}

/* ============================================================
   PERFORMANCE — GPU ACCELERATION HINTS
   ============================================================ */
.hero-orb,
.hero-card-float,
.hero-main-icon,
.pulse-ring,
.step-icon,
.service-card,
.team-card,
.testi-card,
.mv-card,
.btn,
.social-btn {
  will-change: transform;
  backface-visibility: hidden;
}

/* ============================================================
   JOB APPLICATION & FEEDBACK MODULES — MODERN STYLES
   ============================================================ */

/* Navbar Career / Job Apply Button */
.nav-links a.nav-job-btn {
  background: rgba(27, 170, 170, 0.12);
  color: #1BAAAA !important;
  border: 1px solid rgba(27, 170, 170, 0.35);
  border-radius: 50px;
  padding: 6px 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.3s ease;
}
.nav-links a.nav-job-btn:hover {
  background: linear-gradient(135deg, #1BAAAA, #158f8f);
  color: #ffffff !important;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 170, 170, 0.35);
}
.nav-links a.nav-job-btn i {
  font-size: 0.9em;
}

/* Password Modal */
.job-auth-card {
  max-width: 440px;
  width: 92%;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 60px rgba(13, 35, 58, 0.35);
  animation: modalPopIn 0.35s var(--ease-spring);
}
.job-auth-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(27, 170, 170, 0.1);
  color: #1BAAAA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(27, 170, 170, 0.25);
}
.job-auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0D233A;
  margin-bottom: 8px;
}
.job-auth-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 22px;
  line-height: 1.5;
}
.job-auth-input-wrap {
  margin-bottom: 18px;
  position: relative;
}
.job-auth-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
  text-align: center;
  letter-spacing: 1px;
}
.job-auth-input:focus {
  border-color: #1BAAAA;
  box-shadow: 0 0 0 4px rgba(27, 170, 170, 0.15);
}
.job-auth-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1BAAAA, #148383);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(27, 170, 170, 0.35);
}
.job-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 170, 170, 0.45);
}
.job-auth-err {
  color: #e11d48;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  display: none;
}

/* Full Job Application Modal */
.job-modal-content {
  max-width: 920px;
  width: 95%;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(13, 35, 58, 0.4);
  position: relative;
  scroll-behavior: smooth;
}
.job-header-banner {
  background: linear-gradient(135deg, #0D233A 0%, #164065 60%, #1BAAAA 100%);
  color: #ffffff;
  padding: 30px 32px;
  position: relative;
  text-align: center;
}
.job-header-logo {
  height: 48px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}
.job-header-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  color: #ffffff;
}
.job-header-sub {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  color: #e2e8f0;
}
.job-body {
  padding: 32px 36px;
}
@media (max-width: 640px) {
  .job-body { padding: 20px 16px; }
  .job-header-banner { padding: 22px 18px; }
  .job-header-title { font-size: 1.25rem; }
}

/* Form Section Card */
.job-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.job-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0D233A;
  border-bottom: 2px solid rgba(27, 170, 170, 0.3);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.job-sec-badge {
  background: #1BAAAA;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

/* Form Fields Grid */
.job-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.job-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .job-grid-2, .job-grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.job-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}
.job-field label .req {
  color: #e11d48;
}
.job-input, .job-select, .job-textarea {
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #ffffff;
}
.job-input:focus, .job-select:focus, .job-textarea:focus {
  border-color: #1BAAAA;
  box-shadow: 0 0 0 3px rgba(27, 170, 170, 0.12);
}
.job-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio & Checkbox Pills */
.job-options-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.job-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  color: #334155;
}
.job-check-pill input {
  accent-color: #1BAAAA;
}
.job-check-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.job-check-pill.active,
.job-check-pill:has(input:checked) {
  background: rgba(27, 170, 170, 0.1);
  border-color: #1BAAAA;
  color: #0f766e;
  font-weight: 600;
}

/* Education & Matrix Responsive Tables */
.job-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.job-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.job-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.job-table td {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}
.job-table input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.86rem;
  font-family: inherit;
}
.job-table input:focus {
  border-color: #1BAAAA;
  outline: none;
}

/* Matrix Table Specifics */
.matrix-status-cell {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.matrix-pill {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}
.matrix-pill:has(input:checked) {
  background: #1BAAAA;
  color: #ffffff;
  border-color: #1BAAAA;
}
.matrix-pill.no:has(input:checked) {
  background: #64748b;
  color: #ffffff;
  border-color: #64748b;
}

/* Declaration Box */
.job-declaration-box {
  background: #f8fafc;
  border-left: 4px solid #1BAAAA;
  padding: 16px;
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Job Form Action Buttons */
.job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.job-btn-submit {
  padding: 14px 34px;
  background: linear-gradient(135deg, #1BAAAA, #137777);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(27, 170, 170, 0.35);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.job-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 170, 170, 0.45);
}
.job-btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ============================================================
   JOB APPLICATION DOCUMENT UPLOADER STYLES
   ============================================================ */
.job-docs-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.job-docs-badge-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1BAAAA;
  background: rgba(27, 170, 170, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.job-docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.job-doc-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.job-doc-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.job-doc-card.has-file {
  border-color: #1BAAAA;
  background: rgba(27, 170, 170, 0.03);
}
.job-doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.job-doc-card-top .job-check-pill {
  margin: 0;
  flex: 1;
  background: #f8fafc;
  padding: 7px 11px;
  font-size: 0.85rem;
}
.job-doc-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #0D233A;
  border: 1px solid #cbd5e1;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.job-doc-btn-upload:hover {
  background: #1BAAAA;
  color: #ffffff;
  border-color: #1BAAAA;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 170, 170, 0.3);
}
.job-doc-card.has-file .job-doc-btn-upload {
  background: rgba(27, 170, 170, 0.12);
  color: #0f766e;
  border-color: #1BAAAA;
}
.job-doc-preview-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.job-file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #99f6e4;
  border-left: 3px solid #1BAAAA;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  animation: docChipFadeIn 0.25s ease-out;
}
@keyframes docChipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.job-file-chip-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
}
.job-file-chip-info i {
  color: #0f766e;
  font-size: 1rem;
  flex-shrink: 0;
}
.job-file-name {
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
}
.job-file-size {
  color: #64748b;
  font-size: 0.74rem;
  flex-shrink: 0;
}
.job-file-chip-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.job-file-badge-ok {
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.job-file-remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.job-file-remove-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  transform: scale(1.1);
}

.job-docs-summary-bar {
  margin-top: 10px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}
.job-docs-summary-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f766e;
  font-weight: 600;
}
.job-docs-size-badge {
  background: #ccfbf1;
  color: #115e59;
  font-size: 0.74rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}
.job-docs-clear-all {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}
.job-docs-clear-all:hover {
  color: #991b1b;
}

@media (max-width: 640px) {
  .job-docs-cards-grid {
    grid-template-columns: 1fr;
  }
  .job-file-name {
    max-width: 130px;
  }
}

/* ============================================================
   PATIENT FEEDBACK / REVIEWS FORM SECTION
   ============================================================ */
.feedback-box {
  margin-top: 45px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
  border: 1.5px solid rgba(27, 170, 170, 0.25);
  border-radius: 20px;
  padding: 34px 38px;
  box-shadow: 0 15px 40px rgba(13, 35, 58, 0.07);
  position: relative;
  overflow: hidden;
}
.feedback-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0D233A, #1BAAAA, #E5A823);
}
.feedback-header {
  text-align: center;
  margin-bottom: 26px;
}
.feedback-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #1BAAAA;
  background: rgba(27, 170, 170, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.feedback-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0D233A;
  margin: 0 0 6px;
}
.feedback-desc {
  font-size: 0.92rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Star Rating Widget */
.feedback-rating-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.feedback-stars-container {
  display: flex;
  gap: 8px;
  font-size: 26px;
  cursor: pointer;
}
.feedback-stars-container i {
  color: #cbd5e1;
  transition: all 0.2s ease;
}
.feedback-stars-container i.active,
.feedback-stars-container i.hover {
  color: #f59e0b;
  transform: scale(1.15);
}
.feedback-rating-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .feedback-box { padding: 22px 18px; }
  .feedback-form-grid { grid-template-columns: 1fr; }
}
.feedback-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
}

