/* ============================================================
   DR. PORTFOLIO — style.css
   Palette: deep navy #0A2342 | sky teal #1B9AAA | soft white #F4F9FF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --navy:      #0A2342;
  --teal:      #1B9AAA;
  --teal-lt:   #d4f1f4;
  --sky:       #EAF6F8;
  --white:     #FFFFFF;
  --offwhite:  #F4F9FF;
  --text:      #1e2d40;
  --muted:     #5e7490;
  --border:    #cde3ea;
  --shadow-sm: 0 4px 18px rgba(10,35,66,.08);
  --shadow-md: 0 10px 40px rgba(10,35,66,.13);
  --radius:    14px;
  --transition: .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}

a { text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--offwhite); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--white) !important;
  box-shadow: 0 2px 18px rgba(10,35,66,.07);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy) !important;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.navbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
}

.navbar-brand span { color: var(--teal); }

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: .95rem;
  color: var(--text) !important;
  padding: .4rem 1rem !important;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: var(--sky);
  color: var(--teal) !important;
}

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: .4rem 1.2rem !important;
}

.nav-cta:hover { background: var(--navy) !important; color: #fff !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: .75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .4rem;
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(27,154,170,.35);
}

.btn-outline-custom {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: .72rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .4rem;
  cursor: pointer;
}

.btn-outline-custom:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-badge {
  display: inline-block;
  background: var(--teal-lt);
  color: var(--teal);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: .6rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.title-line {
  width: 52px;
  height: 4px;
  background: var(--teal);
  border-radius: 3px;
  margin: .6rem auto 1.6rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  background: linear-gradient(135deg, #0A2342 0%, #0d3260 60%, #1B9AAA 100%);
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(255,255,255,.04)'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(27,154,170,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: .5rem;
}

.hero-content h1 span { color: #72DCEA; }

.hero-spec {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  color: #c8ecf0;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,.15);
}

.hero-intro {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex; gap: 2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #72DCEA;
  display: block;
}

.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-divider { width: 1px; background: rgba(255,255,255,.15); }

/* Hero image card */
.hero-img-wrap {
  position: relative;
  display: flex; justify-content: center;
}

.hero-img-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 10px;
  display: inline-block;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}

.hero-img-card img {
  width: 340px;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: #fff;
  border-radius: 14px;
  padding: .75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem;
  color: var(--navy);
  font-weight: 600;
  animation: floatBadge 3s ease-in-out infinite;
}

.hero-badge i { color: var(--teal); font-size: 1.2rem; }

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

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services {
  padding: 5rem 0;
  background: var(--white);
}

.service-card {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: all var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
  background: var(--white);
}

.service-icon {
  width: 58px; height: 58px;
  background: var(--teal-lt);
  color: var(--teal);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--teal);
  color: #fff;
}

.service-card h5 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
}

.service-card p {
  color: var(--muted);
  font-size: .9rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: 5rem 0;
  background: var(--sky);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition);
}

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

.quote-icon {
  font-size: 3.5rem;
  color: var(--teal-lt);
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: -.5rem;
}

.testimonial-card p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.reviewer {
  display: flex; align-items: center; gap: .75rem;
}

.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

.reviewer-name { font-weight: 600; font-size: .9rem; margin-bottom: .1rem; }
.reviewer-role { color: var(--muted); font-size: .78rem; }

.stars { color: #F4BC45; font-size: .85rem; margin-bottom: .8rem; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  padding: 4rem 0 1.5rem;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: .5rem;
}

.footer-brand span { color: #72DCEA; }

footer h6 {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: .5rem; }

footer ul li a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}

footer ul li a:hover { color: #72DCEA; }

.footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 1.2rem; }

.footer-copy { font-size: .82rem; color: rgba(255,255,255,.4); }

.social-icons a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: .4rem;
  font-size: .95rem;
  transition: all var(--transition);
}

.social-icons a:hover { background: var(--teal); color: #fff; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3260 70%, var(--teal) 100%);
  padding: 4.5rem 0;
  text-align: center;
}

.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-top: .5rem; }

.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }
.breadcrumb-item a { color: #72DCEA; }
.breadcrumb-item.active { color: rgba(255,255,255,.6); }

#about-intro { padding: 5rem 0; background: var(--white); }
#about-intro .about-img-wrap { position: relative; }

.about-img-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.experience-pill {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--teal);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(27,154,170,.4);
}

.experience-pill .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1;
  display: block;
}

.experience-pill .text { font-size: .75rem; opacity: .85; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-item {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
}

.info-item .label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .15rem;
}

.info-item .val { font-weight: 600; font-size: .92rem; color: var(--navy); }

/* Qualifications */
#qualifications { padding: 5rem 0; background: var(--offwhite); }

.qual-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  margin-bottom: 1.2rem;
}

.qual-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }

.qual-card .year {
  font-size: .78rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}

.qual-card h5 { font-size: 1rem; margin-bottom: .2rem; }
.qual-card p { color: var(--muted); font-size: .87rem; margin: 0; }

/* Skills */
#skills-section { padding: 5rem 0; background: var(--white); }

.skill-item { margin-bottom: 1.4rem; }
.skill-item .skill-label {
  display: flex; justify-content: space-between;
  font-weight: 500;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--navy);
}

.progress {
  height: 10px;
  border-radius: 10px;
  background: var(--border);
  overflow: visible;
}

.progress-bar {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--teal) 0%, #0faabb 100%);
  position: relative;
  transition: width 1.2s ease;
}

/* Timeline */
#timeline { padding: 5rem 0; background: var(--offwhite); }

.timeline { position: relative; padding-left: 2.5rem; }

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

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

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: .3rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--teal-lt);
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.timeline-card:hover { box-shadow: var(--shadow-md); }

.timeline-card .period {
  font-size: .75rem;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}

.timeline-card h5 { font-size: 1rem; margin-bottom: .2rem; }
.timeline-card p { color: var(--muted); font-size: .87rem; margin: 0; }

/* Achievements */
#achievements { padding: 5rem 0; background: var(--white); }

.achievement-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  height: 100%;
}

.achievement-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--teal);
}

.achievement-icon {
  font-size: 2rem;
  color: var(--teal);
  margin-bottom: .8rem;
}

.achievement-card h5 { font-size: .95rem; }
.achievement-card p { color: var(--muted); font-size: .82rem; margin: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
#contact-section { padding: 5rem 0; background: var(--white); }

.contact-info-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  height: 100%;
  color: rgba(255,255,255,.8);
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: .5rem;
}

.contact-info-card .intro {
  color: rgba(255,255,255,.55);
  font-size: .92rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.6rem;
}

.contact-item-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #72DCEA;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: .15rem;
}

.contact-item-text .val {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  font-weight: 500;
}

.hours-table { width: 100%; margin-top: .5rem; }
.hours-table tr { border-bottom: 1px solid rgba(255,255,255,.07); }
.hours-table td { padding: .45rem 0; font-size: .85rem; }
.hours-table td:last-child { text-align: right; color: #72DCEA; }
.hours-table .closed { color: #ff8fa0 !important; }

.form-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
}

.form-card h3 { margin-bottom: .3rem; }
.form-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.8rem; }

.form-label {
  font-weight: 500;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: .35rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: .9rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,154,170,.14);
  outline: none;
}

.form-control::placeholder { color: #aab9c8; }

.success-msg {
  display: none;
  background: #e8faf4;
  border: 1px solid #6ddbb0;
  color: #1a7a50;
  border-radius: 10px;
  padding: 1rem;
  font-size: .9rem;
  margin-top: 1rem;
}

/* Map */
#map-section { padding: 0 0 5rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ============================================================
   PAGE TRANSITIONS / ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */

/* ── Mobile Navbar dropdown ─────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar { padding: .75rem 0; height: auto; }
  .navbar-toggler:focus { box-shadow: none; outline: none; }

  .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1rem 1rem;
    margin-top: .5rem;
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    width: 100%;
  }

  .nav-item { width: 100%; }

  .navbar-nav .nav-link {
    display: block;
    width: 100%;
    padding: .6rem 1rem !important;
    border-radius: 8px;
    font-size: 1rem !important;
  }

  #hero { padding: 3rem 0; min-height: auto; }
  .hero-img-card img { width: 260px; height: 320px; }
  .hero-badge { left: 0; right: auto; }
  .hero-stats { gap: 1.2rem; }
  .info-grid { grid-template-columns: 1fr; }
  .experience-pill { right: 0; bottom: -10px; }
  .about-img-frame img { height: 340px; }
}

@media (max-width: 767.98px) {
  .hero-content { text-align: center; margin-bottom: 2rem; }
  .hero-intro { margin: 0 auto 2rem; }
  .hero-stats { justify-content: center; }
  .d-flex.flex-wrap.gap-3 { justify-content: center; }
  .hero-img-card img { width: 220px; height: 270px; }
  .hero-img-wrap { margin-top: 1rem; }
  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;
    white-space: nowrap;
    animation: none;
  }
  .service-card { padding: 1.5rem 1.2rem; }
  .testimonial-card { padding: 1.5rem; }
  .contact-info-card { margin-bottom: 1.5rem; }
  footer { padding: 3rem 0 1.5rem; }
}

@media (max-width: 480px) {
  .hero-img-card img { width: 180px; height: 220px; }
  .hero-stats { flex-wrap: wrap; gap: .8rem; justify-content: center; }
  .hero-divider { display: none; }
  .section-title { font-size: 1.6rem; }
  #hero .hero-content h1 { font-size: 2rem; }
}