:root {
  --bg: #f7f9fb;
  --bg-alt: #ffffff;
  --text: #222;
  --muted: #555;
  --primary: #1e88e5;
  --primary-soft: rgba(30, 136, 229, 0.1);
  --accent: #28a745;
  --card-bg: #ffffff;
  --card-border: #e0e6ef;
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.dark-theme {
  --bg: green;
  --bg-alt: #0b1020;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #60a5fa;
  --primary-soft: rgba(96, 165, 250, 0.1);
  --accent: #22c55e;
  --card-bg: #0f172a;
  --card-border: #1f2933;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page-wrapper {
  min-height: 100vh;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(90deg, #1e88e5, #28a745);
  color: #fff;
  backdrop-filter: blur(10px);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.logo-subtitle {
  font-size: 12px;
  opacity: 0.9;
}

.main-nav {
  display: flex;
  gap: 14px;
}

.main-nav a {
  color: #e5f3ff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover {
  text-decoration: underline;
}

.theme-toggle {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 999px;
  padding: 6px 8px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
}

.theme-toggle .material-symbols-outlined {
  font-size: 20px;
}

/* Hero */

.hero {
  position: relative;
  padding: 60px 20px 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(30,136,229,0.2), transparent 55%),
              radial-gradient(circle at bottom right, rgba(40,167,69,0.2), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-left {
  display: flex;
  justify-content: center;
}

.hero-avatar-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1e88e5, #28a745);
  padding: 4px;
  box-shadow: var(--shadow-soft);
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  display: block;
}

.hero-right h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  margin: 0 0 10px;
}

.hero-tagline {
  font-size: 16px;
  margin: 0 0 12px;
}

.hero-body {
  font-size: 14px;
  color: var(--muted);
  max-width: 600px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.secondary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn.secondary:hover {
  background: var(--primary-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-size: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Sections */

.section {
  padding: 40px 20px;
}

.section.alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: left;
}

.section-header h2 {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Cards */

.card-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 18px 18px 20px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(30,136,229,0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.18s ease-out;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-color: rgba(30,136,229,0.4);
}

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

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.card-icon .material-symbols-outlined {
  font-size: 20px;
  color: var(--primary);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.card-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.card-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags li {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}

.card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Timeline */

.timeline {
  max-width: 900px;
  margin: 0 auto;
  border-left: 2px solid rgba(148, 163, 184, 0.5);
  padding-left: 20px;
}

.timeline-item {
  position: relative;
  margin-bottom: 18px;
}

.timeline-dot {
  position: absolute;
  left: -10px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
  border: 2px solid var(--bg-alt);
}

.timeline-content h3 {
  font-size: 15px;
  margin: 0 0 4px;
}

.timeline-content p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  font-size: 14px;
}

.contact-grid a {
  color: var(--primary);
}

/* Footer */

.site-footer {
  padding: 18px 20px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 800px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }
  .hero-left {
    order: 2;
  }
  .hero-right {
    order: 1;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 40px;
  }
  .hero-avatar-wrapper {
    width: 150px;
    height: 150px;
  }
  .section {
    padding: 30px 16px;
  }
}



/* ---------------------------------------
   LAYOUT CONTAINER
---------------------------------------- */

.page-wrapper {
  min-height: 100vh;
  background: #f5f7fb;
  color: #101827;
}

/* ---------------------------------------
   HEADER + LOGO + NAV
---------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.8rem;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e88e5, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
}

.logo-subtitle {
  font-weight: 400;
  font-size: 12px;
  color: #6b7280;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: #1f2933;
  padding-bottom: 4px;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e88e5, #22c55e);
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: #1e88e5;
  transform: translateY(-1px);
}

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

.theme-toggle {
  border: none;
  background: #e5f0ff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  background: #d1e4ff;
  transform: translateY(-1px);
}

/* ---------------------------------------
   HERO SECTION
---------------------------------------- */

.hero {
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #e0f2fe 0, transparent 45%),
              radial-gradient(circle at bottom right, #dcfce7 0, transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: 2.4rem;
  align-items: center;
  z-index: 1;
}

.hero-left {
  display: flex;
  justify-content: center;
}

.hero-avatar-wrapper {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  padding: 4px;
  background: conic-gradient(from 160deg, #1e88e5, #22c55e, #1e88e5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid #ffffff;
}

.hero-right h1 {
  font-size: 32px;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 18px;
  color: #374151;
  margin-bottom: 0.6rem;
}

.hero-body {
  font-size: 16px;
  color: #4b5563;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
  margin-bottom: 0.7rem;
}

.btn {
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 15px;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #1e88e5, #22c55e);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
  background: #ffffff;
  color: #1e88e5;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,0.16);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tag {
  font-size: 12px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.06);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.16);
}

/* ---------------------------------------
   SECTIONS & CARDS
---------------------------------------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
}

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

.section-header h2 {
  font-size: 24px;
}

.section-header p {
  max-width: 620px;
  color: #4b5563;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: 16px;
  background: #ffffff;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  border: 1px solid rgba(148,163,184,0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15,23,42,0.15);
  border-color: rgba(59,130,246,0.7);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 0.4rem;
}

.card-text {
  font-size: 15px;
  color: #4b5563;
}

.card-tags {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-tags li {
  font-size: 11px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.card-link {
  margin-top: 0.8rem;
  font-size: 15px;
}

/* ---------------------------------------
   TIMELINE (Journey page)
---------------------------------------- */

.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: 0.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, #1e88e5, #22c55e);
  opacity: 0.8;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.3rem;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, #1e88e5, #22c55e);
  box-shadow: 0 0 0 3px rgba(129, 230, 217, 0.35);
}

.timeline-content h3 {
  font-size: 17px;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 14px;
  color: #4b5563;
}

/* ---------------------------------------
   CONTACT GRID
---------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 1.8rem;
}

.contact-grid p {
  margin-bottom: 0.7rem;
}

/* ---------------------------------------
   FOOTER
---------------------------------------- */

.site-footer {
  margin-top: 2.5rem;
  padding: 1.4rem 1rem;
  text-align: center;
  background: #f3f4f6;
  font-size: 13px;
  color: #6b7280;
}

/* ---------------------------------------
   DARK THEME OVERRIDES
---------------------------------------- */

body.dark-theme {
  background: #020617;
  color: #e5e7eb;
}

body.dark-theme .page-wrapper {
  background: radial-gradient(circle at top, #020617, #020617 40%, #020617);
}

body.dark-theme .site-header {
  background: rgba(15,23,42,0.96);
  border-bottom-color: rgba(148,163,184,0.22);
}

body.dark-theme .logo-title {
  color: #e5e7eb;
}
body.dark-theme .logo-subtitle {
  color: #9ca3af;
}

body.dark-theme .main-nav a {
  color: #e5e7eb;
}

body.dark-theme .main-nav a:hover {
  color: #60a5fa;
}

body.dark-theme .hero-bg {
  opacity: 0.26;
}

body.dark-theme .hero-right h1 {
  color: #f9fafb;
}

body.dark-theme .hero-tagline,
body.dark-theme .hero-body {
  color: #cbd5f5;
}

body.dark-theme .card {
  background: #020617;
  border-color: rgba(148,163,184,0.5);
  box-shadow: 0 15px 35px rgba(15,23,42,0.7);
}

body.dark-theme .card-text,
body.dark-theme .section-header p {
  color: #d1d5db;
}

body.dark-theme .card-tags li {
  background: rgba(37,99,235,0.22);
  color: #bfdbfe;
}

body.dark-theme .site-footer {
  background: #020617;
  border-top: 1px solid rgba(148,163,184,0.4);
  color: #9ca3af;
}

body.dark-theme .btn.secondary {
  background: #020617;
  color: #bfdbfe;
  border-color: rgba(148,163,184,0.6);
}

/* ---------------------------------------
   MOBILE HEADER & NAV
---------------------------------------- */

.menu-toggle {
  border: none;
  background: transparent;
  display: none; /* shown only on small screens */
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle .material-symbols-outlined {
  font-size: 26px;
  color: #111827;
}

/* On dark theme, menu icon color */
body.dark-theme .menu-toggle .material-symbols-outlined {
  color: #e5e7eb;
}

/* Responsive layout */
@media (max-width: 768px) {

  .site-header {
    padding: 0.7rem 1rem;
    gap: 0.5rem;
  }

  .main-nav {
    display: none; /* hidden by default on mobile */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 0 0.8rem;
    margin-top: 0.3rem;
    border-top: 1px solid rgba(148,163,184,0.35);
    gap: 0.7rem;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    font-size: 16px;
    padding: 0;
  }

  .logo-area {
    flex: 1;
  }

  .menu-toggle {
    display: flex;
  }

  .theme-toggle {
    margin-left: 0.4rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------
   CONTACT SECTION STYLING
---------------------------------------- */

/* Light green background with white text */
.contact-section {
  /*background: #2e8b57; /* soft healthcare green */
  color: #0051a2;
  padding: 2.4rem 1.5rem;
  border-radius: 16px;
  margin-top: 2rem;
}

/* Override text colors inside the section */
.contact-section p,
.contact-section h2,
.contact-section h3,
.contact-section a {
  color: #0051a2 !important;
}

/* Highlighted paragraph block */
.contact-highlight {
 /*  background: #c2b280; warm soft yellow */
  color: #00441b !important;
  padding: 1rem 1.2rem;
  border-left: 6px solid #facc15; /* yellow accent */
  border-radius: 8px;
  margin: 1.2rem 0;
  font-weight: 500;
  line-height: 1.6;
}

/* Mobile Improvements */
@media (max-width: 768px) {
  .contact-section {
    border-radius: 0;
  }
}

/* ---------------------------------------
   CONTACT SECTION STYLING
---------------------------------------- */

.contact-section {
  background: #d9fbe5; /* soft light green */
  color: #ffffff;
  border-radius: 16px;
  margin-top: 2rem;
}

.contact-section .section-header {
  margin-bottom: 1.2rem;
}

.contact-section .section-header h2 {
  color: #ffffff;
}

.contact-section .section-header p {
  color: #f9fafb;
}

/* Force text inside contact block to be white by default */
.contact-section p,
.contact-section a,
.contact-section strong {
  color: #ffffff;
}

/* Highlighted paragraph */
.contact-highlight {
  background: #fff9c4; /* soft yellow */
  color: #1a1a1a !important;
  padding: 1rem 1.2rem;
  border-left: 6px solid #facc15;
  border-radius: 8px;
  margin: 1.2rem 0 1.6rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Contact Me button wrapper */
.contact-cta-wrapper {
  margin-bottom: 1.5rem;
}

.contact-cta {
  background: #ffffff;
  color: #15803d; /* green text */
  border: 1px solid rgba(22,163,74,0.4);
  box-shadow: 0 8px 18px rgba(22,163,74,0.25);
}

.contact-cta .material-symbols-outlined {
  font-size: 20px;
}

/* Floating email card */
.email-card {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 10px 24px rgba(15,23,42,0.22);
  max-width: 420px;
  margin-bottom: 1.8rem;
}

.email-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.email-card p {
  margin-bottom: 0.4rem;
}

.email-address {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: #fef9c3; /* light yellow email */
}

.email-address:hover {
  text-decoration: underline;
}

.email-location {
  font-size: 14px;
  opacity: 0.9;
}

/* Contact grid inside green block */
.contact-grid {
  margin-top: 1.2rem;
}

.contact-grid a {
  color: #f1f5f9;
  text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .contact-section {
    border-radius: 0;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .email-card {
    max-width: 100%;
  }
}
