:root {
  /* Brand Colors */
  --primary: #01b6af;
  --primary-dark: #008f89;
  --primary-light: rgba(1, 182, 175, 0.1);

  /* Light Theme Palette */
  --bg-base: #a8e6ce;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;

  /* Glass & Borders */
  --white: #ffffff;
  --glass-panel: rgba(255, 255, 255, 0.7);
  --glass-inner: rgba(255, 255, 255, 0.9);
  --border-light: rgba(15, 23, 42, 0.05);
  --border-glass: rgba(255, 255, 255, 0.8);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-premium:
    0 30px 80px rgba(1, 182, 175, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Doctor Doodles */
.background-doodles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.doodle {
  position: absolute;
  opacity: 0.3;
  animation: doodleFloat 8s ease-in-out infinite;
}

.doodle-stethoscope-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.doodle-plus {
  width: 70px;
  height: 70px;
  top: 20%;
  right: 10%;
  animation-delay: 2s;
}

.doodle-medicine {
  width: 60px;
  height: 60px;
  bottom: 25%;
  left: 8%;
  animation-delay: 4s;
}

.doodle-syringe {
  width: 75px;
  height: 75px;
  top: 50%;
  right: 5%;
  animation-delay: 3s;
}

.doodle-clipboard {
  width: 65px;
  height: 65px;
  top: 65%;
  left: 12%;
  animation-delay: 1s;
}

.heart-beat {
  width: 100px;
  height: 100px;
  opacity: 0;
}

.heart-beat-1 {
  top: 15%;
  right: 15%;
}

.heart-beat-2 {
  bottom: 20%;
  left: 20%;
}

.heart-beat-3 {
  top: 40%;
  left: 5%;
}

.heart-beat-4 {
  bottom: 10%;
  right: 8%;
}

.heart-beat-5 {
  top: 60%;
  right: 20%;
}

@keyframes doodleFloat {

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

  25% {
    transform: translateY(-15px) rotate(2deg);
  }

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

  75% {
    transform: translateY(-15px) rotate(2deg);
  }
}

@keyframes heartBeat {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
    stroke-width: 2;
  }

  25% {
    opacity: 0.5;
    transform: scale(1.1);
    stroke-width: 2.5;
  }

  50% {
    opacity: 0.8;
    transform: scale(1.2);
    stroke-width: 3;
  }

  75% {
    opacity: 0.5;
    transform: scale(1.1);
    stroke-width: 2.5;
  }
}

.heart-beat.active {
  animation: heartBeat 0.6s ease;
}

/* Premium Mesh Background */
.mesh-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: #ffffff;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: floating 25s infinite alternate ease-in-out;
}

.blob-primary {
  width: 600px;
  height: 600px;
  background: rgba(1, 182, 175, 0.4);
  top: -100px;
  right: -100px;
}

.blob-secondary {
  width: 800px;
  height: 800px;
  background: rgba(14, 165, 233, 0.3);
  /* Premium light blue */
  bottom: -200px;
  left: -200px;
  animation-delay: -5s;
}

.blob-tertiary {
  width: 500px;
  height: 500px;
  background: rgba(16, 185, 129, 0.2);
  /* Emerald accent */
  top: 40%;
  left: 30%;
  animation-delay: -12s;
}

@keyframes floating {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(100px, 100px) scale(1.1);
  }
}

/* Glass Utilities */
.glass-panel {
  background: var(--glass-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
}

.glass-inner {
  background: var(--glass-inner);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.premium-shadow {
  box-shadow: var(--shadow-premium);
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg,
      var(--primary) 0%,
      #0ea5e9 50%,
      var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: text-shine 4s linear infinite;
}

@keyframes text-shine {
  to {
    background-position: 200% center;
  }
}

/* Shift Animation for Hero Title */
@keyframes shiftInAnimation {
  0% {
    opacity: 0;
    transform: translateX(-30px) translateY(20px);
    letter-spacing: 2px;
  }

  50% {
    opacity: 1;
    letter-spacing: 1px;
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    letter-spacing: 0;
  }
}

.hero-section .hero-content .hero-title .text-gradient {
  animation: shiftInAnimation 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  display: block;
}

/* Typing Animation */
.typing {
  display: inline;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Pill Navigation */
.premium-nav {
  position: fixed;
  top: 2rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  width: 100%;
  max-width: 800px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: #117b73;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transform: scale(2.25) translateX(12px);
  transform-origin: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  margin-right: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.btn-text {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--primary);
}

.btn-primary-small {
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 182, 175, 0.3);
}

/* Centered Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  padding: 0 2rem;
  margin-top: 80px;
  z-index: 10;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
  background: rgba(255, 255, 255, 0);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-slider.slider-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slider {
  transition: opacity 0.8s ease;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide-original {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92),
      rgba(232, 248, 255, 0.86));
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.36) contrast(0.82);
  transition: transform 0.5s ease;
}

.slide img:hover {
  transform: scale(1.03);
}

/* Slider Navigation Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  background: rgba(1, 182, 175, 0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(1, 182, 175, 0.3);
}

.slider-btn i {
  color: #0f172a;
  font-size: 18px;
  transition: color 0.3s ease;
}

.slider-btn:hover i {
  color: white;
}

.slider-btn-prev {
  left: 20px;
}

.slider-btn-next {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Floating Doctor Doodles */
.doodle {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.doodle-plus {
  top: 15%;
  left: 5%;
  animation:
    float 6s ease-in-out infinite,
    pulse-glow 2s ease-in-out infinite;
}

.doodle-stethoscope {
  top: 60%;
  right: 8%;
  width: 90px;
  height: 90px;
  animation:
    float 7s ease-in-out infinite 0.5s,
    pulse-glow 2.5s ease-in-out infinite 0.5s;
}

.doodle-heart {
  bottom: 20%;
  left: 10%;
  width: 70px;
  height: 70px;
  animation:
    float 5.5s ease-in-out infinite 1s,
    pulse-glow 2s ease-in-out infinite 1s;
}

.doodle-consultation {
  top: 25%;
  right: 5%;
  width: 85px;
  height: 85px;
  animation:
    float 6.5s ease-in-out infinite 1.5s,
    pulse-glow 2.5s ease-in-out infinite 1.5s;
}

@keyframes float {

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

  25% {
    transform: translateY(-20px) rotate(5deg);
  }

  50% {
    transform: translateY(-40px) rotate(-5deg);
  }

  75% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.6;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
  }
}

/* Responsive Doodles */
@media (max-width: 768px) {
  .doodle {
    width: 60px;
    height: 60px;
  }

  .doodle-stethoscope,
  .doodle-consultation {
    width: 65px;
    height: 65px;
  }

  .doodle-heart {
    width: 55px;
    height: 55px;
  }

  .doodle-plus {
    top: 10%;
    left: 2%;
  }

  .doodle-stethoscope {
    top: 55%;
    right: 3%;
  }

  .doodle-heart {
    bottom: 15%;
    left: 5%;
  }

  .doodle-consultation {
    top: 20%;
    right: 2%;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(1, 182, 175, 0.4);
  animation: small-pulse 2s infinite;
}

@keyframes small-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(1, 182, 175, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(1, 182, 175, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(1, 182, 175, 0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }

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

@keyframes cardBounceIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, 0) rotate(-6deg) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translate3d(0, -10px, 0) rotate(2deg) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

.doctor-item.show-in {
  animation: cardBounceIn 0.65s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-primary-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(1, 182, 175, 0.3);
}

.btn-secondary-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--text-main);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-secondary-large:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.1);
}

/* 3D Dashboard Mockup Presentation */
.dashboard-perspective {
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
  perspective: 2500px;
  /* Strong perspective for 3D tilt */
  z-index: 5;
}

.dashboard-mockup {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  /* Beautiful 3D CSS effect */
  transform: rotateX(12deg) scale(0.95) translateY(20px);
  transform-origin: top center;
  transition:
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 1s ease;
}

/* On hover, the dashboard levels out */
.dashboard-perspective:hover .dashboard-mockup {
  transform: rotateX(0deg) scale(1) translateY(0);
  box-shadow:
    0 40px 100px rgba(1, 182, 175, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.mockup-header {
  height: 54px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.mac-controls {
  display: flex;
  gap: 8px;
}

.mac-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.close {
  background: #ff5f56;
}

.dot.min {
  background: #ffbd2e;
}

.dot.max {
  background: #27c93f;
}

.mockup-search {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-light);
  font-size: 0.85rem;
  width: 400px;
}

.mockup-profile .avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.mockup-body {
  display: flex;
  height: 600px;
  text-align: left;
}

.mockup-sidebar {
  width: 240px;
  background: rgba(255, 255, 255, 0.4);
  border-right: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
}

.menu-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  cursor: pointer;
  transition: var(--transition);
}

.menu-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.8);
}

.menu-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(1, 182, 175, 0.3);
}

.badge-count {
  margin-left: auto;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}

.mockup-main {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: rgba(248, 250, 252, 0.3);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.highlight-bg {
  background: var(--primary-light);
  color: var(--primary);
}

.kpi-data h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.kpi-data p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.border-highlight {
  border-color: rgba(1, 182, 175, 0.3);
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.9),
      rgba(1, 182, 175, 0.05));
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.kpi-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
}

.secure-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.encryption-text {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
}

.ai-chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.ai-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #00d2c9);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(1, 182, 175, 0.3);
}

.ai-info h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.ai-info h5 span {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ai-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.msg {
  align-self: flex-start;
  max-width: 80%;
}

.user-msg {
  align-self: flex-end;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 1.2rem;
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow-sm);
}

.user-msg p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.ai-msg {
  background: var(--primary-light);
  border: 1px solid rgba(1, 182, 175, 0.2);
  padding: 1.5rem;
  border-radius: 16px 16px 16px 4px;
}

.ai-msg p {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.ai-msg p:last-child {
  margin: 0;
}

.ai-msg strong {
  color: var(--primary-dark);
}

.confidence-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.confidence-fill {
  height: 8px;
  border-radius: 5px;
  background: linear-gradient(90deg, #10b981, #34d399);
  flex: 1;
  max-width: 200px;
  position: relative;
  background-color: var(--border-light);
}

.confidence-fill::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 94%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.confidence-bar span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10b981;
}

.recommendation {
  padding: 1rem;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
}

/* Scroll Reveal Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .dashboard-perspective {
    perspective: none;
  }

  .dashboard-mockup {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .dashboard-mockup {
    display: none;
    /* Hide complex mockup on very small screens or replace with a simple image */
  }
}

/* ================= MERGED VERSION 2 STYLES ================= */

/* Specialization Filters */
.specialization-filters {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--glass-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-main);
  font-weight: 600;
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(1, 182, 175, 0.35);
  transform: translateY(-3px);
}

/* Doctor Cards Section */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(360px, 1fr));
  gap: 30px;
  padding: 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.doctor-item {
  position: relative;
  transition: var(--transition);
  display: flex;
}

.doctor-card {
  position: relative;
  min-height: auto;
  padding: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* .cards-wrapper:hover .doctor-card {
  filter: blur(2px) brightness(0.9);
  transform: scale(0.97);
} */

/* .cards-wrapper .doctor-card:hover {
  filter: blur(0) brightness(1);
  transform: scale(1.02);
  z-index: 5;
  box-shadow: 0 30px 80px rgba(1, 182, 175, 0.35);
  border-color: var(--primary);
} */

.doctor-card .preview-btn {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cards-wrapper .doctor-card:hover .preview-btn {
  background: white;
  color: var(--primary);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 25px rgba(1, 182, 175, 0.4);
}

.doctor-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: left center;
  border-radius: 12px;
  transition: var(--transition);
}

img.doctor-card-img--naryana-rao {
  object-position: 0% center !important;
}

img.doctor-card-img--subrahmaneswara-babu {
  position: relative;
  display: block;
  width: calc(100% + 14px);
  left: -7px;
  object-position: center center !important;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.doctor-info {
  text-align: left;
}

.doctor-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.doctor-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.preview-btn {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.35s ease;
}

.doctor-card:hover .preview-btn {
  opacity: 1;
  transform: translateX(0);
}

/* Doctors Collaborators */
.Doctor-collaborators {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.collaborators {
  display: flex;
  gap: 50px;
  padding: 20px 0;
  align-items: center;
}

/* Dimming effect on hover for the entire list */
.collaborators:hover .collaborator-profile {
  opacity: 0.4;
  filter: grayscale(40%);
}

.collaborator-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.collaborator-profile:hover {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
  transform: translateY(-8px) scale(1.05);
}

.collaborator-profile img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 10px 25px rgba(1, 182, 175, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.collaborator-profile:hover img {
  box-shadow: 0 15px 35px rgba(1, 182, 175, 0.4);
}

.collaborator-profile p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  transition: color 0.3s ease;
}

.collaborator-profile:hover p {
  color: var(--primary-dark);
}

.collaborator-profile {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.collaborator-profile.visible {
  opacity: 1;
  transform: translateY(0);
}

.marquee-content.paused {
  animation-play-state: paused;
}

/* Why Choose Us Layout - Premium Grid */
.premium-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes popupCardIn {
  0% {
    opacity: 0;
    transform: translateY(30px) translateZ(0) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translateY(-8px) translateZ(0) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(-6px) translateZ(0) scale(1.02);
  }
}

.premium-hover-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* initial (hidden) state; animation applied when .visible is added */
  opacity: 0;
  will-change: transform, opacity;
  cursor: pointer;
  z-index: 1;
  text-align: left;
}

/* premium cards: initial fade-up state includes scale */
.premium-hover-card.fade-up {
  opacity: 0;
  transform: translateY(30px) scale(0.92);
}

.premium-hover-card.fade-up.visible {
  animation: popupCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
  box-shadow: 0 22px 48px rgba(1, 182, 175, 0.12);
}

/* Moving gradient border on hover */
.premium-hover-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(1, 182, 175, 0.8), rgba(14, 165, 233, 0.8), rgba(1, 182, 175, 0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  background-size: 200% 200%;
  animation: gradientMove 3s linear infinite;
  pointer-events: none;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.premium-hover-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(1, 182, 175, 0.15), 0 0 40px rgba(14, 165, 233, 0.1);
}

.premium-hover-card:hover::before {
  opacity: 1;
}

.card-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
  z-index: 1;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.premium-hover-card:hover .card-img-wrapper img {
  transform: scale(1.12) rotate(1deg);
}

.premium-hover-card .card-content {
  padding: 0 2rem 2.5rem 2rem;
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: -30px;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(1, 182, 175, 0.15);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--border-light);
  position: relative;
  z-index: 4;
}

.premium-hover-card:hover .card-icon {
  background: var(--primary);
  color: white;
  transform: translateY(-10px) rotateY(180deg);
  box-shadow: 0 15px 30px rgba(1, 182, 175, 0.3);
}

.premium-hover-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.premium-hover-card:hover h2 {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-hover-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  transition: all 0.7s ease;
  z-index: 10;
  pointer-events: none;
}

.premium-hover-card:hover .card-shine {
  left: 200%;
  transition: all 0.8s ease-in-out;
}

/* Premium Section Container */
.premium-section {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem 2rem;
  /* Account for fixed nav */
}

/* Utilities */
.text-center {
  text-align: center !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Dashboard Responsive Image Container */
.dashboard-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  margin: 0 auto;
}

/* Slider Controls */
.slider-btn {
  background: var(--glass-panel);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(1, 182, 175, 0.3);
}

/* 5-Step SVG Wave Process */
.wave-container-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
  /* hide scrollbar for clean look */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.wave-container-scroll::-webkit-scrollbar {
  display: none;
}

.process-wave-container {
  min-width: 900px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.wave-svg {
  width: 100%;
  height: auto;
  display: block;
}

.wave-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.wave-circle {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

/* For bottom nodes, shift white circle Top-Right to create 3D bevel */
.wave-node.bottom .wave-circle {
  transform: translate(6px, -6px);
}

/* For top nodes, shift white circle Bottom-Right */
.wave-node.top .wave-circle {
  transform: translate(6px, 6px);
}

.wave-node.bottom:hover .wave-circle {
  transform: translate(6px, -6px) scale(1.1);
}

.wave-node.top:hover .wave-circle {
  transform: translate(6px, 6px) scale(1.1);
}

.wave-circle i {
  font-size: 2rem;
  color: #333;
  font-weight: 900;
  /* Fixed broken icons */
}

.wave-text {
  position: absolute;
  width: 220px;
  text-align: center;
}

/* For bottom nodes, text is below the circle */
.wave-node.bottom .wave-text {
  top: 130px;
  /* Increased to give a clean gap below the thick SVG ribbon */
}

/* For top nodes, text is above the circle */
.wave-node.top .wave-text {
  bottom: 130px;
  /* Increased to give a clean gap above the thick SVG ribbon */
}

.wave-text h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5rem;
}

.wave-text p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* Value Proposition - Premium Growth Cards */
.premium-growth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.premium-growth-card {
  position: relative;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  z-index: 1;
  text-align: center;
}

.premium-growth-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(1, 182, 175, 0.15);
  border-color: rgba(1, 182, 175, 0.5);
}

.growth-card-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle at 50% 50%, rgba(1, 182, 175, 0.15), transparent 70%);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

.premium-growth-card:hover .growth-card-bg {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

.growth-card-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-growth-card.fade-up.visible .growth-card-content {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--delay, 0s) + 0.65s);
}

.growth-icon-container {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(1, 182, 175, 0.15);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid var(--border-light);
}

.premium-growth-card:hover .growth-icon-container {
  background: var(--primary);
  color: white;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 30px rgba(1, 182, 175, 0.3);
}

.premium-growth-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translateY(0);
}

.premium-growth-card:hover h3 {
  color: var(--primary-dark);
  transform: translateY(-5px);
}

.premium-growth-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: 0.05s;
  transform: translateY(0);
}

.premium-growth-card:hover p {
  transform: translateY(-3px);
  color: var(--text-main);
}

/* Growth cards: slide-in from left (odd) and right (even) with replay */
.premium-growth-card.fade-up {
  opacity: 0;
  transform: translateX(0);
  will-change: transform, opacity;
}

.premium-growth-card.fade-up:nth-child(odd) {
  transform: translateX(-70px);
}

.premium-growth-card.fade-up:nth-child(even) {
  transform: translateX(70px);
}

.premium-growth-card.fade-up.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px) skewX(-6deg);
  }

  60% {
    opacity: 1;
    transform: translateX(12px) skewX(-2deg);
  }

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

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(60px) skewX(6deg);
  }

  60% {
    opacity: 1;
    transform: translateX(-12px) skewX(2deg);
  }

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

.premium-growth-grid>.premium-growth-card.fade-up.visible:nth-child(odd) {
  animation: slideInFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
}

.premium-growth-grid>.premium-growth-card.fade-up.visible:nth-child(even) {
  animation: slideInFromRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
}

@media (max-width: 900px) {
  .premium-growth-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Media Queries for New Elements */
@media (max-width: 1024px) {
  .cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    flex-direction: column !important;
    text-align: center;
    gap: 20px;
  }

  .card-content {
    text-align: center;
  }

  .dashboard-img-wrapper {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .premium-section {
    padding: 4rem 1.5rem;
  }

  .cards-wrapper {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .achievement-cards {
    grid-template-columns: 1fr !important;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
  }
}

/* Filter Animation */
@keyframes filterFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

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

/* Infinite Marquee */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-content {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: infinite-scroll 25s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  /* Hardware Acceleration */
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes infinite-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 25px));
  }
}

/* 1. Hero Contrast & Doodles */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.slide {
  z-index: 0;
}

header#home .doodle {
  opacity: 0.15;
  transition: opacity 0.3s;
}

/* 2. Specialization Filters (Mobile) */
@media (max-width: 768px) {
  .specialization-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .specialization-filters::-webkit-scrollbar {
    display: none;
  }
}

/* 3. Knowledge Hub Visual Anchors */
.icon-glow-wrapper {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(1, 182, 175, 0.1), rgba(14, 165, 233, 0.1));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(1, 182, 175, 0.15);
  border: 1px solid rgba(1, 182, 175, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.achievement-card:hover .icon-glow-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(1, 182, 175, 0.3);
}

/* Achievement cards: per-position slide directions (1→left, 2→up, 3→right, 4→left, 5→down, 6→right) */
.achievement-card.fade-up {
  opacity: 0;
  transform: translateY(0);
  will-change: transform, opacity;
}

@keyframes slideInFromUp {
  0% {
    opacity: 0;
    transform: translateY(-40px) skewY(-4deg);
  }

  60% {
    opacity: 1;
    transform: translateY(8px) skewY(-1deg);
  }

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

@keyframes slideInFromDown {
  0% {
    opacity: 0;
    transform: translateY(40px) skewY(4deg);
  }

  60% {
    opacity: 1;
    transform: translateY(-8px) skewY(1deg);
  }

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

/* Map specific positions to directions */
.achievement-cards>.achievement-card.fade-up.visible:nth-child(1),
.achievement-cards>.achievement-card.fade-up.visible:nth-child(4) {
  animation: slideInFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
}

.achievement-cards>.achievement-card.fade-up.visible:nth-child(3),
.achievement-cards>.achievement-card.fade-up.visible:nth-child(6) {
  animation: slideInFromRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
}

.achievement-cards>.achievement-card.fade-up.visible:nth-child(2) {
  animation: slideInFromUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
}

.achievement-cards>.achievement-card.fade-up.visible:nth-child(5) {
  animation: slideInFromDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
  animation-fill-mode: both;
}

/* 4. The 5-Step Wave Timeline (Mobile) */
@media (max-width: 768px) {
  .wave-container-scroll {
    overflow-x: hidden;
  }

  .process-wave-container {
    min-width: unset;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    gap: 40px;
    position: relative;
  }

  .wave-svg {
    display: none;
  }

  .process-wave-container::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #e61938, #f2b900, #00bcd4, #03a9f4, #01579b);
    border-radius: 4px;
  }

  .wave-node {
    position: relative;
    transform: none !important;
    left: 0 !important;
    top: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .wave-node.bottom .wave-circle,
  .wave-node.top .wave-circle {
    transform: none !important;
    margin: 0;
  }

  .wave-text {
    position: relative;
    top: 0 !important;
    bottom: 0 !important;
    text-align: left;
    width: auto;
    padding-top: 10px;
  }
}

/* Smooth Scrolling for entire site */
html {
  scroll-behavior: smooth;
}

section[id],
header[id],
footer[id] {
  scroll-margin-top: 120px;
}