:root {
  --bg-color: #faf9f6;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --text-main: #1c1917;
  --text-muted: #57534e;
  --accent-glow: #f59e0b;
  --accent-light: #fef3c7;
  --border-glass: rgba(255, 255, 255, 0.8);
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-glass:
    0 20px 40px -15px rgba(217, 119, 6, 0.08),
    0 0 15px rgba(0, 0, 0, 0.03);
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(
      circle at 10% 10%,
      rgba(251, 191, 36, 0.12) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 60%,
      rgba(245, 158, 11, 0.08) 0%,
      transparent 40%
    );
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   NAVIGATION BAR (ALWAYS VISIBLE - STACKED ON MOBILE)
   ========================================================================== */
.navbar {
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  flex-direction: column; /* Stack vertically on mobile */
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1rem; /* Spacing between Brand Logo and Nav Links */
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  text-align: center;
  padding: 0.25rem 0;
}

.brand-logo span {
  color: var(--accent-glow);
}

/* Fully visible, stacked navigation links */
.nav-links {
  /*display: flex;
  flex-direction: column; /* Each link on its own line */
  width: 100%;
  gap: 0.5rem; /* Space between each stacked link */
  align-items: stretch;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 0.45rem;
  min-height: 48px;
  min-width: 3rem;
  text-align: center;
  display: inline-block;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(231, 229, 228, 0.5);
  border-radius: var(--radius-md);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.nav-links a:active {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-glow);
}

.nav-cta {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  font-weight: 700 !important;
  margin-top: 0.25rem;
}

/* DESKTOP LAYOUT (INLINE HORIZONTAL NAV) */
@media (min-width: 768px) {
  .navbar {
    padding: 0.85rem 0;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .brand-logo {
    font-size: 1.25rem;
    text-align: left;
    padding: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 1.25rem;
    align-items: center;
  }

  .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0;
    min-height: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    justify-content: flex-start;
  }

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

  .nav-cta {
    padding: 0.5rem 1.1rem !important;
    min-height: auto !important;
  }
}

/* ==========================================================================
   PAGE SECTIONS & CONTENT
   ========================================================================== */
.bio-section,
.hero-section {
  padding: 2.5rem 0 0;
  margin-bottom: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 30px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.heading {
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.sub-heading {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  min-height: 48px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
  border-color: #d97706;
}

.btn-secondary {
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: #f59e0b;
}

@media (min-width: 480px) {
  .cta-group {
    flex-direction: row;
  }
}

.hero-image-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
}

.bento-section {
  padding: 2rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-glass);
}

.card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card a {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
  /* display: inline-block; */
  padding: 0.25rem 0;
}

.card-media img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pill-highlight {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  border-color: #fde68a;
}

.bio-section,
.contact-section {
  padding: 2rem 0 3rem;
}

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

.map-wrapper {
  margin-top: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.site-footer {
  border-top: 1px solid rgba(231, 229, 228, 0.6);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

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

#styles, #exams {
  padding-top: 2rem;
}

/* Utility States */
#bio-extended {
  display: none;
}

#bio-extended.visible {
  display: block;
}

#read-more-link,
#read-less-link {
  display: none;
}

#read-more-link.visible,
#read-less-link.visible {
  display: inline;
}

/* Desktop Breakpoints */
@media (min-width: 768px) {
  .hero-section {
    padding: 4rem 0 0;
  }

  .bio-section,
  .hero-section {
    margin-bottom: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  .card-wide {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
  }

  .card-media img {
    max-height: none;
  }

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