/* ==========================================================================
   DESIGN SYSTEM - DR. V. V. S. CHANDRASEKHARAM PORTFOLIO
   ========================================================================== */

:root {
  /* HSL Color Palette */
  --color-teal: #2A6F6D;
  --color-teal-rgb: 42, 111, 109;
  --color-light-teal: #E0F2F1;
  --color-sage: #A5C8CA;
  --color-ivory: #FAF9F6;
  --color-gold: #D4AF37;
  --color-indigo: #1F2937;
  --color-indigo-rgb: 31, 41, 55;
  --color-text: #334155;
  --color-bg: #FCFCFA;
  --color-white: #ffffff;
  
  /* Fonts */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "DM Sans", sans-serif;

  /* Shadows */
  --shadow-soft: 0 4px 20px -2px rgba(42, 111, 109, 0.08);
  --shadow-glow: 0 0 15px rgba(42, 111, 109, 0.2);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Selection styles */
::-moz-selection {
  background-color: var(--color-teal);
  color: var(--color-white);
}

::selection {
  background-color: var(--color-teal);
  color: var(--color-white);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-indigo);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
}

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

::-webkit-scrollbar-track {
  background: var(--color-ivory);
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

.relative-z-10 {
  position: relative;
  z-index: 10;
}

/* Glassmorphism utility */
.glass {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition-slow);
  background-color: transparent;
}

/* Scrolled state */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px -2px rgba(31, 41, 55, 0.05);
  border-bottom: 1px solid rgba(42, 111, 109, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-teal);
  transition: var(--transition-smooth);
}

.brand-subtitle {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #64748b;
  margin-top: 0.15rem;
  transition: var(--transition-smooth);
}

.nav-brand:hover .brand-title {
  color: var(--color-indigo);
}

.nav-brand:hover .brand-subtitle {
  color: var(--color-teal);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-teal);
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-teal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Call-to-Action Button */
.btn-appointment {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-indigo);
  color: var(--color-white);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.btn-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.btn-appointment:hover {
  background-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42, 111, 109, 0.25);
}

/* Hamburger toggle menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-indigo);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.mobile-toggle:hover {
  background-color: #f1f5f9;
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile navigation drawer */
.mobile-drawer {
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--color-white);
  z-index: 99;
  overflow: hidden;
  transition: var(--transition-slow);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.mobile-drawer.open {
  height: calc(100vh - 75px);
}

.drawer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  gap: 2.5rem;
}

.drawer-link {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-indigo);
}

.drawer-link:hover {
  color: var(--color-teal);
}

.btn-appointment-mobile {
  display: block;
  width: 100%;
  max-width: 300px;
  text-align: center;
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}

.btn-appointment-mobile:hover {
  background-color: var(--color-indigo);
}

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

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 6rem 0;
  background: linear-gradient(135deg, var(--color-ivory), #f0f7f7);
  overflow: hidden;
}

/* Abstract Background Blobs */
.hero-bg-gradients {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.gradient-radial {
  position: absolute;
  top: 0;
  right: 0;
  width: 66%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(224, 242, 241, 0.4), transparent 70%);
}

.blur-blob {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background-color: rgba(165, 200, 202, 0.12);
  border-radius: 50%;
  filter: blur(80px);
}

.gradient-linear {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 66%;
  height: 50%;
  background: linear-gradient(to top, rgba(224, 242, 241, 0.3), transparent);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Badge Promo */
.badge-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(42, 111, 109, 0.1);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.badge-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--color-indigo);
  margin-bottom: 1.5rem;
  line-height: 1.12;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-teal), var(--color-sage));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #576574;
  font-weight: 300;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3rem;
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 1rem 2.25rem;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(42, 111, 109, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--color-indigo);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(31, 41, 55, 0.3);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  transition: var(--transition-smooth);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  color: var(--color-teal);
  padding: 1rem 2.25rem;
  border-radius: 12px;
  font-size: 1.0625rem;
  font-weight: 600;
  border: 1px solid rgba(42, 111, 109, 0.2);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--color-light-teal);
  box-shadow: var(--shadow-card);
}

/* Quick Stats */
.hero-quick-stats {
  display: flex;
  gap: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  width: 100%;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-indigo);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a99ad;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* Hero Visual & Image */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
  perspective: 1200px;
}

.image-bg-effect {
  position: absolute;
  inset: 0;
  background-color: rgba(42, 111, 109, 0.05);
  border-radius: 2rem;
  transform: rotate(3deg) scale(1.04);
  z-index: 1;
}

.doctor-portrait {
  position: relative;
  border-radius: 2rem;
  border: 8px solid var(--color-white);
  box-shadow: var(--shadow-xl);
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform-origin: center center;
  animation: float-zoom 8s ease-in-out infinite alternate;
}

.image-wrapper:hover .doctor-portrait {
  transform: translateY(-10px) scale(1.04) rotate3d(0, 1, 0, 2deg);
  transition: transform 0.4s ease;
}

@keyframes float-zoom {
  0% {
    transform: translateY(0) scale(1) rotate3d(0, 1, 0, 0deg);
  }
  33% {
    transform: translateY(-10px) scale(1.02) rotate3d(0, 1, 0, 6deg);
  }
  66% {
    transform: translateY(-18px) scale(1.03) rotate3d(0, 1, 0, -6deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate3d(0, 1, 0, 0deg);
  }
}

/* Floating Card Badge */
.floating-badge-card {
  position: absolute;
  bottom: -1.5rem;
  right: -2rem;
  background-color: var(--color-white);
  padding: 1.25rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 280px;
  z-index: 3;
  animation: float-badge 6s ease-in-out infinite;
}

.badge-icon-wrapper {
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--color-gold);
  padding: 0.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.badge-card-info {
  display: flex;
  flex-direction: column;
}

.badge-card-title {
  font-weight: 750;
  color: var(--color-indigo);
  font-size: 1.0625rem;
  margin-bottom: 0.15rem;
}

.badge-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
  background-color: var(--color-white);
  position: relative;
  padding: 7.5rem 0;
  overflow: hidden;
}

.about-decor-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8rem;
  background: linear-gradient(to bottom, rgba(224, 242, 241, 0.3), transparent);
  pointer-events: none;
}

.about-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: flex-start;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-tag {
  color: var(--color-teal);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-indigo);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.title-bar {
  width: 80px;
  height: 6px;
  background-color: rgba(212, 175, 55, 0.6);
  border-radius: 50px;
}

.bio-paragraphs {
  color: #475569;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.bio-paragraphs p {
  margin-bottom: 1.5rem;
}

.bio-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: rgba(31, 41, 55, 0.85);
  line-height: 1.7;
  position: relative;
  padding-left: 0.5rem;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: rgba(212, 175, 55, 0.15);
  position: absolute;
  top: -1.75rem;
  left: -1rem;
  line-height: 1;
  pointer-events: none;
}

.about-credentials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.credential-avatars {
  display: flex;
}

.avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-white);
  margin-right: -1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bg-avatar-teal {
  background-color: var(--color-teal);
}

.bg-avatar-sage {
  background-color: var(--color-sage);
}

.bg-avatar-gold {
  background-color: var(--color-gold);
  margin-right: 0;
}

.credential-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.5rem;
}

/* Timeline Column */
.about-timeline {
  background-color: var(--color-bg);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(42, 111, 109, 0.05);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.timeline-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-timeline.timeline-animation-start .timeline-heading {
  opacity: 1;
  transform: translateX(0);
}

.heading-icon {
  width: 24px;
  height: 24px;
}

.text-gold {
  color: var(--color-gold);
}

.timeline-wrapper {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid rgba(42, 111, 109, 0.1);
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: -1px;
  top: var(--timeline-line-top, calc(0.25rem + 9px));
  width: 3px;
  height: var(--timeline-progress-height, 0);
  background-color: var(--color-teal);
  transform-origin: top;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.25rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.625rem;
  top: 0.25rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 4px solid var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: scale(0.6);
  opacity: 0.45;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.active .timeline-marker {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 0 0 12px rgba(42, 111, 109, 0.08), 0 16px 30px rgba(42, 111, 109, 0.12);
}

.timeline-item.line-grown::after {
  transform: scaleY(1);
}

.timeline-content-card > * {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.active .timeline-content-card > * {
  opacity: 1;
  transform: translateX(0);
}

.timeline-content-card > *:nth-child(1) {
  transition-delay: 0.08s;
}

.timeline-content-card > *:nth-child(2) {
  transition-delay: 0.16s;
}

.timeline-content-card > *:nth-child(3) {
  transition-delay: 0.24s;
}

.timeline-content-card > *:nth-child(4) {
  transition-delay: 0.32s;
}

.timeline-marker.bg-teal {
  background-color: var(--color-teal);
}

.timeline-marker.bg-sage {
  background-color: var(--color-sage);
}

.timeline-marker.bg-indigo {
  background-color: var(--color-indigo);
}

.timeline-content-card {
  display: flex;
  flex-direction: column;
}

.timeline-meta-tag {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.timeline-card-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--color-indigo);
}

.timeline-card-loc {
  font-size: 0.9375rem;
  color: #475569;
  margin-top: 0.15rem;
}

.badge-award-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(212, 175, 55, 0.08);
  color: var(--color-gold);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.award-mini-icon {
  width: 12px;
  height: 12px;
}

.timeline-card-desc {
  font-size: 0.9375rem;
  color: #475569;
  margin-top: 0.35rem;
  font-weight: 300;
}

/* ==========================================================================
   EXPERTISE SECTION
   ========================================================================== */

.expertise-section {
  background-color: var(--color-white);
  padding: 7.5rem 0;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.text-center-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin-top: 1.25rem;
}

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

.expertise-card {
  background-color: var(--color-bg);
  border: 2px solid rgba(42, 111, 109, 0.18);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}

.expertise-card.fade-in-left {
  transform: translateX(-70px) translateY(20px);
}

.expertise-card.fade-in-right {
  transform: translateX(70px) translateY(20px);
}

.expertise-card.fade-in-top {
  transform: translateY(-60px);
}

.expertise-card.fade-in-bottom {
  transform: translateY(60px);
}

.expertise-card.revealed {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.expertise-card > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.expertise-card.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.expertise-card > *:nth-child(1) {
  transition-delay: 0.42s;
}

.expertise-card > *:nth-child(2) {
  transition-delay: 0.54s;
}

.expertise-card > *:nth-child(3) {
  transition-delay: 0.66s;
}

.expertise-card > *:nth-child(4) {
  transition-delay: 0.78s;
}

.card-icon-container {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: var(--color-light-teal);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.card-icon-container svg {
  width: 28px;
  height: 28px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-indigo);
  margin-bottom: 1rem;
}

.card-desc {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-underline {
  width: 32px;
  height: 4px;
  background-color: rgba(42, 111, 109, 0.2);
  border-radius: 50px;
  margin-top: auto;
  transition: var(--transition-slow);
}

/* Card Hover Animations */
.expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 111, 109, 0.15);
  box-shadow: var(--shadow-xl);
}

.expertise-card:hover .card-icon-container {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.expertise-card:hover .card-underline {
  width: 100%;
  background-color: var(--color-teal);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
  position: relative;
  background-color: var(--color-indigo);
  color: var(--color-white);
  padding: 6.5rem 0;
  overflow: hidden;
}

.stats-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stats-pattern-overlay {
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.stats-blob-teal {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 380px;
  height: 380px;
  background-color: var(--color-teal);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
}

.stats-blob-gold {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 380px;
  height: 380px;
  background-color: var(--color-gold);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2rem;
  border-radius: 1.25rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 750;
  color: var(--color-white);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-meta-label {
  color: var(--color-sage);
  font-size: 1.05rem;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.stat-meta-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
}

/* ==========================================================================
   ACADEMIC / ACHIEVEMENTS
   ========================================================================== */

.achievements-section {
  background-color: #f7fafc;
  padding: 7.5rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.academic-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: center;
}

.book-card {
  background-color: var(--color-white);
  padding: 3rem;
  border-radius: 24px;
  border: 2px solid rgba(42, 111, 109, 0.12);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-slow);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.book-card-watermark {
  position: absolute;
  top: 1.5rem;
  right: -1rem;
  opacity: 0.04;
  pointer-events: none;
  transition: var(--transition-slow);
}

.book-card-watermark svg {
  width: 180px;
  height: 180px;
}

.book-card:hover .book-card-watermark {
  opacity: 0.08;
}

.book-card-content {
  position: relative;
  z-index: 2;
}

.badge-featured-book {
  background-color: var(--color-gold);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 6px rgba(212, 175, 55, 0.2);
  margin-bottom: 2rem;
}

.featured-book-icon {
  width: 14px;
  height: 14px;
}

.book-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-indigo);
  margin-bottom: 1.25rem;
}

.book-desc {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.book-footer {
  margin-top: auto;
  border-top: 1px solid #f3f4f6;
  padding-top: 2rem;
  width: 100%;
}

.book-learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-teal);
}

.book-learn-more-btn:hover {
  color: var(--color-indigo);
}

.book-learn-more-btn .arrow-icon {
  width: 18px;
  height: 18px;
  transition: var(--transition-smooth);
}

.book-learn-more-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/* Publications Grid Stack */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.publication-item-card {
  background-color: var(--color-white);
  padding: 1.75rem;
  border-radius: 1rem;
  border: 2px solid rgba(42, 111, 109, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition-smooth);
}

.publication-item-card:hover {
  border-color: rgba(42, 111, 109, 0.08);
  box-shadow: var(--shadow-card);
}

.pub-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-teal);
}

.pub-icon-box svg {
  width: 26px;
  height: 26px;
}

.bg-pub-teal {
  background-color: var(--color-light-teal);
}

.bg-pub-sage {
  background-color: rgba(165, 200, 202, 0.18);
}

.bg-pub-gold {
  background-color: rgba(212, 175, 55, 0.08);
  color: var(--color-gold);
}

.pub-text-box {
  display: flex;
  flex-direction: column;
}

.pub-card-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--color-indigo);
  margin-bottom: 0.15rem;
}

.pub-card-desc {
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 300;
}

/* ==========================================================================
   PHILOSOPHY SECTION
   ========================================================================== */

.philosophy-section {
  position: relative;
  background-color: var(--color-indigo);
  color: var(--color-white);
  text-align: center;
  padding: 8rem 0;
  overflow: hidden;
}

.philosophy-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(42, 111, 109, 0.3), var(--color-indigo), var(--color-indigo));
  opacity: 0.6;
  pointer-events: none;
}

.philosophy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.philosophy-quote-icon {
  width: 48px;
  height: 48px;
  color: var(--color-gold);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.philosophy-text {
  font-size: 2.25rem;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 3.5rem;
  max-width: 900px;
  color: #EFF6FF;
  text-shadow: 0 2px 20px rgba(15, 23, 42, 0.18);
}

.philosophy-text .italic {
  font-style: italic;
  color: #E0F2F7;
}

.philosophy-text .text-sage {
  color: #D4F1EF;
}

.philosophy-metrics {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-gold);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
}

.metric-divider {
  width: 1px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MEDIA SECTION
   ========================================================================== */

.media-section {
  background-color: var(--color-white);
  padding: 7.5rem 0;
}

.media-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.youtube-channel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-teal);
  border-bottom: 2px solid rgba(42, 111, 109, 0.15);
  padding-bottom: 0.25rem;
}

.youtube-channel-link:hover {
  color: var(--color-indigo);
  border-color: var(--color-teal);
}

.link-icon {
  width: 16px;
  height: 16px;
}

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

.video-card {
  display: block;
}

.video-thumbnail-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #f1f5f9;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.25rem;
  transition: var(--transition-slow);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(31, 41, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1px);
  transition: var(--transition-smooth);
}

.play-button-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition-bounce);
  padding-left: 3px;
}

.play-button-circle svg {
  width: 22px;
  height: 22px;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.05);
}

.video-card:hover .video-overlay {
  background-color: rgba(31, 41, 55, 0.15);
  backdrop-filter: blur(0px);
}

.video-card:hover .play-button-circle {
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-title {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--color-indigo);
  line-height: 1.35;
  transition: var(--transition-smooth);
}

.video-card:hover .video-title {
  color: var(--color-teal);
}

.video-desc {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-top: 0.35rem;
  font-weight: 300;
}

/* LinkedIn Connection Card */
.linkedin-connection-card {
  background-color: rgba(224, 242, 241, 0.25);
  border: 1px solid rgba(42, 111, 109, 0.08);
  padding: 2.5rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.linkedin-connection-card:hover {
  background-color: rgba(224, 242, 241, 0.45);
}

.linkedin-logo-box {
  background-color: var(--color-white);
  color: #0077b5;
  padding: 0.85rem;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.linkedin-logo-box svg {
  width: 28px;
  height: 28px;
}

.linkedin-card-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--color-indigo);
  margin-bottom: 0.75rem;
}

.linkedin-card-desc {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.linkedin-btn {
  display: block;
  width: 100%;
  background-color: #0077b5;
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.25);
  transition: var(--transition-smooth);
}

.linkedin-btn:hover {
  background-color: #006097;
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.35);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-section {
  background-color: var(--color-bg);
  padding: 7.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.locations-intro {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 3rem;
  line-height: 1.65;
  font-weight: 300;
}

.highlight-teal {
  color: var(--color-teal);
  font-weight: 600;
}

.locations-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.location-item-card {
  background-color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 1.5rem;
  transition: var(--transition-smooth);
}

.location-item-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.loc-icon-wrapper {
  color: var(--color-teal);
  flex-shrink: 0;
  transition: var(--transition-bounce);
}

.loc-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.location-item-card:hover .loc-icon-wrapper {
  transform: scale(1.12);
}

.loc-details {
  display: flex;
  flex-direction: column;
}

.badge-area-wrapper {
  display: flex;
  margin-bottom: 0.5rem;
}

.badge-area {
  font-size: 0.625rem;
  font-weight: 750;
  background-color: var(--color-gold);
  color: var(--color-white);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.loc-hospital-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--color-indigo);
  line-height: 1.3;
}

.loc-address {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

.loc-time-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-teal);
  width: 100%;
}

.time-icon {
  width: 14px;
  height: 14px;
}

/* Appointment Booking Right Panel */
.booking-panel-container {
  display: flex;
  align-items: center;
}

.booking-card {
  position: relative;
  background-color: var(--color-teal);
  color: var(--color-white);
  padding: 4.5rem;
  border-radius: 40px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  width: 100%;
}

/* Blurry Floating Shapes Inside Booking Card */
.glass-blob-top {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  filter: blur(50px);
  transition: var(--transition-slow);
}

.glass-blob-bottom {
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background-color: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  filter: blur(40px);
}

.booking-card:hover .glass-blob-top {
  transform: scale(1.15);
}

.booking-content {
  position: relative;
  z-index: 2;
}

.booking-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.booking-desc {
  color: var(--color-sage);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  line-height: 1.5;
  font-weight: 300;
}

.booking-action-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.booking-action-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.booking-action-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.action-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: var(--transition-bounce);
}

.action-icon-circle svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.booking-action-link:hover .action-icon-circle {
  transform: scale(1.1);
}

.action-text-box {
  display: flex;
  flex-direction: column;
}

.action-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  margin-bottom: 0.15rem;
}

.action-value {
  font-size: 1.5rem;
  font-weight: 750;
  color: var(--color-white);
}

.email-value {
  font-size: 1.25rem;
  font-weight: 500;
  word-break: break-all;
}

.booking-emergency-note {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.emergency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 0.5rem;
  animation: pulse-dot 2s infinite;
}

.emergency-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

.footer-section {
  background-color: var(--color-indigo);
  color: var(--color-white);
  padding: 5rem 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-upper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-white), var(--color-sage));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  flex-wrap: wrap;
}

.footer-link:hover {
  color: var(--color-teal);
}

.footer-lower {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  white-space: nowrap;
}

.footer-disclaimer {
  max-width: 500px;
  line-height: 1.5;
  text-align: right;
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

/* Reveal animations for scroll triggers */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.fade-in-left {
  transform: translateX(-36px) translateY(18px);
}

.scroll-reveal.fade-in-right {
  transform: translateX(36px) translateY(18px);
}

.scroll-reveal.fade-in-bottom {
  transform: translateY(32px);
}

/* Philosophy word-by-word slide from bottom animation */
.philosophy-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.philosophy-word.revealed {
  opacity: 1;
  transform: translateY(0);
}

.publication-item-card > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.publication-item-card.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

.publication-item-card > *:nth-child(1) {
  transition-delay: 0.42s;
}

.publication-item-card > *:nth-child(2) {
  transition-delay: 0.54s;
}

.book-card-content {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.42s;
}

.book-card.revealed .book-card-content {
  opacity: 1;
  transform: translateX(0);
}

.hero-visual.scroll-reveal.revealed {
  opacity: 1;
  animation: hero-image-entrance 0.85s ease-out both;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.typewriter-text {
  display: inline-block;
  white-space: pre-wrap;
  overflow: hidden;
}

.typewriter-text::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 0.3ch;
  background-color: currentColor;
  animation: blink-caret 1s steps(1) infinite;
}

.typewriter-text.typing-done::after {
  display: none;
}

.hero-desc.fade-in-after-type,
.hero-buttons.fade-in-after-type,
.hero-quick-stats.fade-in-after-type {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-desc.fade-in-after-type.visible,
.hero-buttons.fade-in-after-type.visible,
.hero-quick-stats.fade-in-after-type.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blink-caret {
  50% {
    opacity: 0;
  }
}

@keyframes hero-image-entrance {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.96) rotate(-3deg);
  }
  55% {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* Entry Delay classes */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Custom keyframes */
@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(42, 111, 109, 0.4);
  }
  50% {
    transform: scale(1.12);
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(42, 111, 109, 0);
  }
}

@keyframes float-badge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(0.99);
  }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
    padding-top: 2rem;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-quick-stats {
    justify-content: center;
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  .academic-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }
  
  .booking-panel-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .navbar {
    padding: 1rem 0;
  }
  
  .desktop-menu {
    display: none !important;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-section {
    padding-top: 7.5rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .floating-badge-card {
    right: -0.5rem;
    bottom: -1rem;
    padding: 1rem;
    max-width: 250px;
  }
  
  .section-title {
    font-size: 2.15rem;
  }
  
  .about-timeline {
    padding: 2rem;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .philosophy-text {
    font-size: 1.75rem;
  }
  
  .philosophy-metrics {
    gap: 1.5rem;
  }
  
  .metric-divider {
    display: none;
  }
  
  .metric-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .media-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .media-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .location-item-card {
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .booking-card {
    padding: 2.5rem;
    border-radius: 24px;
  }
  
  .action-value {
    font-size: 1.25rem;
  }
  
  .email-value {
    font-size: 1.1rem;
  }
  
  .footer-upper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .footer-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .footer-disclaimer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .hero-quick-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .floating-badge-card {
    position: relative;
    right: 0;
    bottom: 0;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
}
