/* =========
   GLOBAL RESET & BASE
   ========= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2933; /* dark slate */
  background-color: #f7fafc; /* very light gray-blue */
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
  font-family: "Merriweather", "Georgia", serif;
  margin-top: 0;
  color: #102a43; /* deep blue-gray */
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

a {
  color: #0050b3; /* medical blue */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Color tokens (for reference) */

/*
  Primary blue:      #0050b3
  Primary dark:      #003a82
  Light blue:        #d0e8ff
  Teal accent:       #0b7285
  Soft gray:         #e5edf5
  Background light:  #f7fafc
*/

/* Layout helpers */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  padding: 3.5rem 0;
  background-color: #eef4ff; /* soft blue background */
}

.section-intro {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

/* Simple grid helpers */

.two-col {
  display: grid;
  gap: 2rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid-4 {
  display: grid;
  gap: 1.5rem;
}

/* =========
   HEADER & NAV
   ========= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
  border-bottom: 1px solid #d8e2f2;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

/* Brand */

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-decoration: none;
}

.brand-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #003a82;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: #5a7184;
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: #334e68;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background-color: #d0e8ff;
  color: #003a82;
  text-decoration: none;
}

.main-nav a.active {
  background-color: #0050b3;
  color: #ffffff;
}

.lang-switch {
  border: 1px solid #c0d4f5;
  padding: 0.3rem 0.7rem;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #003a82;
  border-radius: 999px;
}

/* =========
   HERO
   ========= */

.hero {
  background: linear-gradient(135deg, #e3f0ff 0%, #ffffff 55%, #e0f7ff 100%);
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2.8rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1rem;
  color: #334e68;
  max-width: 38rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1.5rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.85rem;
  padding: 0.9rem 1.1rem;
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid #d8e2f2;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003a82;
}

.stat-label {
  font-size: 0.8rem;
  color: #5a7184;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Hero photo */

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #d0e8ff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  background: #ffffff;
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #334e68;
}

/* =========
   BUTTONS
   ========= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: #0050b3;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 80, 179, 0.25);
}

.btn-primary:hover {
  background-color: #003a82;
  box-shadow: 0 10px 20px rgba(0, 80, 179, 0.32);
  text-decoration: none;
}

.btn-secondary {
  background-color: #ffffff;
  color: #003a82;
  border: 1px solid #c0d4f5;
}

.btn-secondary:hover {
  background-color: #e5edf9;
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

/* =========
   CARDS & LISTS
   ========= */

.card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid #dce5f3;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 16px;   /* Reduce indentation */
  margin-top: 8px;      
  margin-bottom: 8px;
}

.card li {
  margin-bottom: 6px;   /* Optional: reduces spacing between bullet items */
}

.procedure-list {
  list-style: disc;
  padding-left: 1.3rem;
}

.procedure-list li {
  margin-bottom: 0.3rem;
}

/* Quote style in About */

.quote {
  font-style: italic;
  border-left: 3px solid #0050b3;
  padding-left: 0.8rem;
  color: #334e68;
}

/* =========
   CONTACT SECTION
   ========= */

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: flex-start;
}

.contact-block {
  margin-bottom: 1rem;
}

.contact-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  border: 1px solid #dce5f3;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  color: #334e68;
  margin-bottom: 0.6rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #c4d4eb;
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  font-family: inherit;
  margin-top: 0.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0050b3;
  box-shadow: 0 0 0 2px rgba(0, 80, 179, 0.18);
}

/* =========
   SURGICAL EXPERIENCE / PUBLICATIONS
   ========= */

.surg-section {
  margin-bottom: 2rem;
}

.surg-section h2 {
  margin-bottom: 0.6rem;
}

.pub-list {
  padding-left: 1.3rem;
}

.pub-list li {
  margin-bottom: 0.8rem;
}

.pub-year {
  display: inline-block;
  font-weight: 600;
  color: #0050b3;
  margin-right: 0.4rem;
}

/* =========
   FOOTER
   ========= */

.footer {
  background: hsl(210, 100%, 25%); /* medical blue */
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: 0.95rem;
  margin-top: 40px;
}

.footer a {
  color: hsl(197, 71%, 73%);
  text-decoration: none;
  margin: 0 5px;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

/* =========
   RESPONSIVE DESIGN
   ========= */

/* Medium screens (tablets) */

@media (min-width: 640px) {
  h1 {
    font-size: 2.2rem;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* Large screens (desktops) */

@media (min-width: 960px) {
  h1 {
    font-size: 2.4rem;
  }

  .card-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Small screens: mobile nav, stacked layout */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .brand-title,
  .brand-subtitle {
    margin-left: 15px;   /* subtle gentle push */
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #d8e2f2;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    flex-direction: column;
    padding: 0.6rem 1.2rem 0.8rem;
    gap: 0.35rem;
    display: none; /* default hidden; toggle with JS */
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.45rem 0.7rem;
  }

  .hero {
    text-align: left;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Ultra-small width adjustments */

@media (max-width: 400px) {
  body {
    font-size: 15px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .hero-stats {
    gap: 0.7rem;
  }

  .stat-card {
    padding: 0.7rem 0.9rem;
  }
}

:root {
  --header-height: 30px;  /* adjust if your header is taller/shorter */
}

/* Any section with an id will leave space for the sticky header */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 10px);
}

/* Responsive Google Maps Embed */
.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 35, 52, 0.12);
  margin-top: 0.75rem;
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  margin-top: 0.75rem;
}
.map-link a {
  font-weight: 500;
}

/* ---------------------------
   Subtle fade-in animations
   --------------------------- */

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* Base keyframes for fade-in + slight upward motion */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Generic helper class if you want to add it manually */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Apply fade-in automatically to main sections and cards */
.section,
.hero-inner,
.expertise-card,
.experience-card,
.pub-item,
.impact-card,
.contact-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Small staggered delays for grids so cards don't pop in at once */
.expertise-grid .expertise-card:nth-child(1),
.experience-grid .experience-card:nth-child(1),
.publications-list .pub-item:nth-child(1),
.impact-grid .impact-card:nth-child(1) {
  animation-delay: 0.05s;
}

.expertise-grid .expertise-card:nth-child(2),
.experience-grid .experience-card:nth-child(2),
.publications-list .pub-item:nth-child(2),
.impact-grid .impact-card:nth-child(2) {
  animation-delay: 0.1s;
}

.expertise-grid .expertise-card:nth-child(3),
.experience-grid .experience-card:nth-child(3),
.publications-list .pub-item:nth-child(3),
.impact-grid .impact-card:nth-child(3) {
  animation-delay: 0.15s;
}

/* You can extend these nth-child rules if you have more cards */

