/* ============================================
   HANA DAVOOD — Dentist Portfolio
   Rebuilt: editorial, typography-driven, zero filler
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Karla:wght@400;500;600&display=swap');

:root {
  --primary: hsl(195, 42%, 16%);
  --primary-mid: hsl(193, 35%, 26%);
  --accent: hsl(350, 28%, 62%);
  --accent-soft: hsl(350, 22%, 75%);

  --bg: hsl(40, 16%, 96%);
  --text: hsl(200, 18%, 18%);
  --text-mid: hsl(200, 8%, 42%);
  --text-light: hsl(200, 6%, 58%);
  --text-on-dark: hsl(40, 12%, 90%);
  --text-muted-dark: hsl(200, 8%, 62%);
  --border: hsl(30, 10%, 88%);
  --border-light: hsl(30, 8%, 91%);

  --ff-heading: 'Cormorant', Georgia, serif;
  --ff-body: 'Karla', -apple-system, sans-serif;

  --container: 900px;
  --px: clamp(1.5rem, 5vw, 3.5rem);
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-body);
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ── Editorial Asymmetric Grid ── */
.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.section-grid__aside {
  position: sticky;
  top: 3rem;
}

.section-grid__aside h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.1;
}

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-grid__aside {
    position: static;
  }
}


/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0 clamp(4rem, 8vw, 6rem);
}

.hero__bg-svg {
  position: absolute;
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  color: var(--accent);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

.hero__header-text {
  grid-column: 1 / 2;
  max-width: 560px;
}

.hero__photo-block {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  justify-self: end;
}

.hero__name {
  font-family: var(--ff-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  color: var(--accent-soft);
  margin-top: 0.6rem;
}

.hero__desc {
  grid-column: 1 / 2;
  font-weight: 400;
  color: var(--text-muted-dark);
  line-height: 1.7;
  max-width: 460px;
  margin-top: 0;
}

.hero__photo {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid hsla(0, 0%, 100%, 0.1);
}

/* Animations */
.hero__name,
.hero__title,
.hero__desc,
.hero__photo,
.hero__bg-svg {
  opacity: 0;
  animation: enter 0.75s ease forwards;
}

.hero__name {
  animation-delay: 0.15s;
}

.hero__title {
  animation-delay: 0.3s;
}

.hero__desc {
  animation-delay: 0.45s;
}

.hero__photo {
  animation-delay: 0.2s;
}

.hero__bg-svg {
  animation: enter-fade 1.2s ease forwards 0.1s;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enter-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.05;
  }
}


/* ── Scroll Reveal Section level ── */
.reveal-section {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.85s cubic-bezier(0.215, 0.610, 0.355, 1.000), transform 0.85s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
.about {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: var(--bg);
}

.about__quote {
  font-family: var(--ff-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--primary-mid);
  line-height: 1.45;
  margin-bottom: 2rem;
  font-weight: 500;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.about__text {
  color: var(--text-mid);
  font-weight: 400;
  line-height: 1.85;
}


/* ══════════════════════════════════════════
   SKILLS / SERVICES
   ══════════════════════════════════════════ */
.skills {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.skills__desc {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.skills-category-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skills-category {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2rem;
}

.skills-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skills-category h3 {
  font-family: var(--ff-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.skills-category ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 2.5rem;
}

.skills-category li {
  font-size: 0.95rem;
  color: var(--text-mid);
  position: relative;
  padding-left: 1rem;
}

.skills-category li::before {
  content: ' ';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.skills-subtext {
  font-size: 0.82rem;
  color: var(--text-light);
  display: block;
  margin-top: 0.15rem;
}

@media (max-width: 600px) {
  .skills-category ul {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════
   EXPERIENCE
   ══════════════════════════════════════════ */
.experience {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.exp-entry {
  border-left: 2px solid var(--border-light);
  padding-left: 1.75rem;
  position: relative;
}

.exp-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.exp-entry__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.exp-entry h3 {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.2;
}

.exp-entry__time {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.exp-entry__meta {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.exp-entry__desc {
  color: var(--text-mid);
  margin-top: 0.8rem;
  line-height: 1.75;
}


/* ══════════════════════════════════════════
   ACHIEVEMENTS
   ══════════════════════════════════════════ */
.achievements {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.achievements-list li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 1rem;
  align-items: start;
}

.ach-num {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border-light);
  line-height: 1.2;
  padding-bottom: 2px;
}

.ach-content {
  font-size: 0.975rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.ach-content strong {
  color: var(--primary);
  font-weight: 600;
}


/* ══════════════════════════════════════════
   EDUCATION
   ══════════════════════════════════════════ */
.education {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.edu-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: baseline;
}

.edu-row:last-child {
  border-bottom: none;
}

.edu-row__year {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
}

.edu-row__title {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.edu-row__school {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}


/* ══════════════════════════════════════════
   LANGUAGES
   ══════════════════════════════════════════ */
.languages {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.languages-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.languages-row li {
  font-size: 1.05rem;
  color: var(--primary-mid);
  font-weight: 500;
  position: relative;
}

.languages-row li::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

.languages-row li:last-child::after {
  display: none;
}


/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact {
  padding: clamp(5rem, 10vw, 7rem) 0;
  background: var(--primary);
  color: var(--text-on-dark);
}

.contact .section-grid__aside h2 {
  color: var(--text-on-dark);
}



.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.contact__group h3 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted-dark);
  margin-bottom: 1rem;
}

.contact__group h3:not(:first-child) {
  margin-top: 2.5rem;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0;
}

.contact__row svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
  color: var(--accent-soft);
  flex-shrink: 0;
}

.contact__row a {
  color: var(--text-on-dark);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.contact__row a:hover {
  color: var(--accent-soft);
}

.contact-location-tag {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  margin-left: 0.25rem;
  font-weight: 500;
}

.contact__row p {
  font-size: 0.95rem;
  color: var(--text-on-dark);
  line-height: 1.5;
}




/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  padding: 1.5rem 0;
  background: var(--primary);
  border-top: 1px solid hsla(0, 0%, 100%, 0.05);
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
}


/* ══════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  .hero__name,
  .hero__title,
  .hero__desc,
  .hero__photo,
  .hero__bg-svg,
  .reveal-section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding-top: 5rem;
  }

  .hero__layout {
    grid-template-columns: 1fr 90px; /* Name & Title left, Photo right */
    grid-template-rows: auto auto;
    gap: 1.5rem 1.25rem;
  }

  .hero__header-text {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .hero__photo-block {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    justify-self: end;
  }

  .hero__desc {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    margin-top: 0;
  }

  .hero__photo {
    width: 90px;
    height: 90px;
    border-radius: 16px; /* slightly tighter radius for smaller scale */
  }

  .edu-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1rem 0;
  }

  .languages-row {
    gap: 1.5rem;
  }

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}