/* ========================================
   Dr. Jane Han, MD — HPB Surgeon
   Landing Page Styles
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-50: #e8f4fd;
  --blue-100: #d1e8f5;
  --blue-200: #b8d4e8;
  --blue-300: #90caf9;
  --blue-400: #64b5f6;
  --blue-500: #3d8ec9;
  --blue-600: #2a7ab8;
  --blue-700: #1a6dad;
  --blue-800: #0d5a96;
  --blue-900: #0a3d66;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--gray-900);
  line-height: 1.2;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(42, 122, 184, 0.35);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 6px 20px rgba(42, 122, 184, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-200);
}

.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
}

.btn-full {
  width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue-800);
  text-decoration: none;
}

.nav-logo span {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 18px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 450;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-cta {
  background: var(--blue-600) !important;
  color: var(--white) !important;
  border-radius: var(--radius-md) !important;
}

.nav-cta:hover {
  background: var(--blue-700) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-600);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--blue-50) 50%, #f0f7ff 100%);
  max-width: 100vw;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--blue-300);
  top: -200px;
  right: -100px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--blue-200);
  bottom: -100px;
  left: -100px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--blue-400);
  top: 40%;
  left: 30%;
}

.hero-container {
  display: grid;
  grid-template-columns: 2fr minmax(0, 3fr);
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-subtitle {
  display: inline-block;
  padding: 6px 16px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid var(--blue-100);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-illustration {
  width: 100%;
  overflow: hidden;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ========================================
   Sections (shared)
   ======================================== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  padding: 5px 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--gray-900);
}

/* ========================================
   About / Bio
   ======================================== */
.section-about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.about-photo.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.about-content {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.15s;
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-lead {
  font-size: 1.15rem;
  color: var(--gray-800);
  font-weight: 450;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 16px;
  color: var(--gray-500);
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

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

.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-600);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ========================================
   Education & Fellowships
   ======================================== */
.section-education {
  background: var(--gray-50);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 23px;
  width: 2px;
  background: var(--blue-100);
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.timeline-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--white);
  border: 2px solid var(--blue-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.timeline-icon svg {
  width: 22px;
  height: 22px;
}

.timeline-content {
  padding-top: 4px;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin: 4px 0 6px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* ========================================
   Specialties
   ======================================== */
.section-specialties {
  background: var(--white);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.specialty-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.specialty-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.specialty-card:nth-child(2).visible { transition-delay: 0.1s; }
.specialty-card:nth-child(3).visible { transition-delay: 0.2s; }
.specialty-card:nth-child(4).visible { transition-delay: 0.3s; }
.specialty-card:nth-child(5).visible { transition-delay: 0.4s; }

.specialty-card:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.specialty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.specialty-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 10px;
}

.specialty-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========================================
   Contact
   ======================================== */
.section-contact {
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-card:nth-child(2).visible { transition-delay: 0.08s; }
.contact-card:nth-child(3).visible { transition-delay: 0.16s; }
.contact-card:nth-child(4).visible { transition-delay: 0.24s; }

.contact-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-500);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h3 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(61, 142, 201, 0.1);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-800);
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
}

.footer-disclaimer {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .specialties-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    gap: 8px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    padding: 16px 24px;
    font-size: 1.2rem;
    font-weight: 500;
    width: auto;
    text-align: center;
    color: var(--gray-700);
    border-radius: var(--radius-md);
  }

  .nav-links a:hover {
    background: var(--blue-50);
    color: var(--blue-600);
  }

  .nav-links li:last-child {
    margin-top: 32px;
  }

  .nav-links .nav-cta {
    padding: 16px 48px;
    font-size: 1.1rem;
  }

  .nav-toggle {
    z-index: 1000;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-illustration {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    max-width: 240px;
    margin: 0 auto;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section {
    padding: 60px 0;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}
