/* ═══════════════════════════════════════════════════════
   MINIMAL RESEARCH PROFILE — Nasree Hayeesama-ae
   Clean, academic, dark
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:         #fafafa;
  --bg-alt:     #ffffff;
  --text:       #222222;
  --text-dim:   #666666;
  --accent:     #005bb5;
  --border:     #e5e5e5;
  --font:       'Inter', system-ui, sans-serif;
  --max-w:      800px;
  --nav-h:      3.5rem;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 2rem);
}

body {
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════ NAV ═══════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: hsl(0 0% 100% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__links { display: flex; gap: 2rem; }

.nav__link {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.25s ease;
}

/* ═══════════════════ HERO ═══════════════════ */
.hero { padding: calc(var(--nav-h) + 5rem) 0 0rem; }

.hero__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero__text { flex: 1; }

.hero__photo {
  flex-shrink: 0;
}

.hero__photo img {
  width: 280px;
  /* height: 280px; */
  /* border-radius: 50%; */
  object-fit: cover;
  /* border: 2px solid var(--border); */
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.3);
}

.hero__greeting {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero__name {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__role {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero__bio {
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__bio strong { color: var(--text); font-weight: 500; }

.hero__actions { display: flex; gap: 0.75rem; }

/* ═══════════════════ BUTTONS ═══════════════════ */
.btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: #ffffff; border: none; }
.btn--primary:hover { opacity: 0.85; }
.btn--outline { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--text-dim); color: var(--text); }

/* ═══════════════════ SECTIONS ═══════════════════ */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════ ABOUT ═══════════════════ */
.about__grid { display: grid; gap: 2.5rem; }

.about__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.about__item p { color: var(--text-dim); font-size: 0.9rem; }

.interest__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.interest__list li {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ═══════════════════ TIMELINE ═══════════════════ */
.timeline { display: grid; gap: 2.25rem; }

.timeline__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.timeline__date {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 7.5rem;
  padding-top: 0.2rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.timeline__heading {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.timeline__org {
  font-size: 0.85rem;
  color: var(--accent);
}

.timeline__loc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.timeline__note {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.2rem;
}

.timeline__detail {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  line-height: 1.65;
}

/* ═══════════════════ GALLERY ═══════════════════ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery__item {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s;
}

.gallery__item:hover {
  border-color: hsl(0 0% 30%);
}

.gallery__item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery__item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════ CONTACT ═══════════════════ */
.contact__intro { color: var(--text-dim); margin-bottom: 1.5rem; }
.contact__list { display: grid; gap: 0.5rem; }
.contact__link {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.contact__link:hover { color: var(--accent); }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer p { font-size: 0.75rem; color: var(--text-dim); }

/* ═══════════════════ REVEAL ═══════════════════ */
.section, .hero {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.section.is-visible, .hero.is-visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    background: hsl(0 0% 100% / 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
  .nav__toggle.is-active span:last-child  { transform: rotate(-45deg) translate(3px, -3px); }

  .hero__layout { flex-direction: column-reverse; text-align: center; gap: 2rem; }
  .hero__photo img { width: 200px; height: 200px; }
  .hero__actions { flex-direction: column; align-items: center; }

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

  .timeline__item { flex-direction: column; gap: 0.25rem; }
  .timeline__date { min-width: auto; }
}

/* ═══════════════════ UTILITIES ═══════════════════ */
.loading {
  padding: 100px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  .section, .hero { opacity: 1; transform: none; transition: none; }
}
