/* ============================================
   Mina Saeidian — Personal Portfolio
   Minimal, warm, premium
   ============================================ */

:root {
  --bg: #FAF9F6;
  --bg-alt: #F3F1EC;
  --text: #1C1C1C;
  --text-soft: #5A5A5A;
  --text-muted: #8A8A8A;
  --accent: #2D5A4E;
  --accent-light: #E8F0ED;
  --accent-hover: #1E3F36;
  --border: #E5E3DE;
  --card-bg: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: white !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  position: absolute;
  left: 0;
}

.nav-toggle span:first-child {
  top: 4px;
}

.nav-toggle span:last-child {
  bottom: 4px;
}

.nav-toggle.open span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.open span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 60px;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-sub {
  color: var(--accent);
  font-weight: 400;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.chip {
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

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

.hero-image-frame {
  width: 340px;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-scroll {
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 40px;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -48px;
  width: 100%;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    top: -48px;
  }

  100% {
    top: 48px;
  }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 100px 32px;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: var(--text);
}

/* ============================================
   ABOUT
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-soft);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-main {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.detail-sub {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.detail-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   RESEARCH
   ============================================ */

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.research-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}

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

.research-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.research-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.research-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.research-org {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.research-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.research-card ul {
  list-style: none;
  padding: 0;
}

.research-card li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.research-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ============================================
   CLINICAL TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-org {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-content p:last-child {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   STOOP INC
   ============================================ */

.section-stoop {
  background: var(--accent);
  color: white;
}

.section-stoop .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.section-stoop .section-title {
  color: white;
}

.stoop-content {
  max-width: 720px;
}

.stoop-role {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
}

.stoop-date {
  font-weight: 400;
  opacity: 0.6;
  margin-left: 8px;
}

.stoop-text p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
}

.stoop-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0 36px;
}

.stoop-stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.stat-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.stoop-stat p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.stoop-stat strong {
  color: white;
}

.section-stoop .btn-primary {
  background: white;
  color: var(--accent);
}

.section-stoop .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-hover);
}

/* ============================================
   AWARDS
   ============================================ */

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.award-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.award-card:hover {
  box-shadow: var(--shadow-sm);
}

.award-year {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 8px;
  line-height: 1;
}

.award-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.award-card>p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.award-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ============================================
   CONTACT
   ============================================ */

.section-contact {
  text-align: center;
}

.contact-text {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin: -20px auto 48px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  min-height: 160px;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  text-align: center;
  padding: 32px;
  border-top: 1px solid var(--border);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-name {
    font-size: 2.6rem;
  }

  .hero-chips {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image-frame {
    width: 260px;
    height: 320px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .section-title {
    font-size: 1.8rem;
  }

  .section {
    padding: 72px 24px;
  }

  .hero {
    padding: 100px 24px 40px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.2rem;
  }

  .hero-image-frame {
    width: 220px;
    height: 280px;
  }

  .section {
    padding: 56px 20px;
  }

  .research-card {
    padding: 28px;
  }
}