/* =========================================================
   Shahrzad Taherzadeh — Portfolio
   Design tokens extracted from Figma "girl" / "girl/responsive"
   ========================================================= */

:root {
  /* ---- Color tokens ---- */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-zinc-500: #71717a;
  --color-hairline: rgba(0, 0, 0, 0.12);
  --color-hairline-invert: rgba(255, 255, 255, 0.16);

  /* ---- Font ---- */
  --font-sora: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Type scale: size / line-height ---- */
  --fs-display: 48px;   --lh-display: 56px;
  --fs-subheading: 40px; --lh-subheading: 48px;
  --fs-h1: 36px; --lh-h1: 44px;
  --fs-h2: 32px; --lh-h2: 40px;
  --fs-h3: 28px; --lh-h3: 32px;
  --fs-h4: 24px; --lh-h4: 28px;
  --fs-h5: 20px; --lh-h5: 24px;
  --fs-h6: 16px; --lh-h6: 20px;
  --fs-p1: 20px; --lh-p1: 28px;
  --fs-p2: 16px; --lh-p2: 24px;
  --fs-p3: 12px; --lh-p3: 20px;
  --fs-button: 20px; --lh-button: 24px;

  /* ---- Section padding (desktop / mobile) ---- */
  --section-py: 60px;
  --section-px: 80px;
  --header-py: 24px;
  --footer-py: 24px;

  --radius-sm: 4px;
  --radius-md: 8px;

  --max-width: 1440px;
}

@media (max-width: 767px) {
  :root {
    --section-py: 40px;
    --section-px: 16px;
    --header-py: 16px;
    --footer-py: 20px;
  }
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sora);
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* =========================================================
   Type utility classes
   ========================================================= */
.section-heading {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-heading--invert { color: var(--color-white); }

.section-sub {
  font-size: var(--fs-p1);
  line-height: var(--lh-p1);
  color: var(--color-zinc-500);
  max-width: 640px;
  margin-bottom: 40px;
}
.section-sub--invert { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 767px) {
  .section-heading { font-size: var(--fs-h2); line-height: var(--lh-h2); }
  .section-sub { font-size: var(--fs-p2); line-height: var(--lh-p2); margin-bottom: 28px; }
}

/* =========================================================
   Layout helpers
   ========================================================= */
.section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-button);
  line-height: var(--lh-button);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-black);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
}
.btn--outline {
  background: transparent;
  color: var(--color-black);
}
.btn:hover { transform: translateY(-2px); opacity: 0.85; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-hairline);
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn--dark {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
}
.icon-btn:hover { opacity: 0.8; }

@media (max-width: 767px) {
  .icon-btn { width: 44px; height: 44px; padding: 10px; }
}

/* =========================================================
   Illustration placeholders (swap out for real artwork later)
   ========================================================= */
.illustration-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 600px;
  border: 2px dashed var(--color-hairline);
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
  color: var(--color-zinc-500);
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
}
.illustration-placeholder--small {
  aspect-ratio: 16 / 10;
  max-width: 100%;
}

/* Custom illustrations (hero + about) */
.hero__illustration img,
.about__illustration img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-hairline);
}
.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--header-py) var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 800;
}
.logo__dot { color: var(--color-zinc-500); }

.nav__list {
  display: flex;
  gap: 32px;
}
.nav__link {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-black);
  transition: right 0.2s ease;
}
.nav__link:hover::after { right: 0; }

.header__actions { display: flex; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .header__actions { display: none; }
  .nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--color-white);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 24px 16px;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    gap: 8px;
  }
  .nav__link {
    display: block;
    padding: 16px 0;
    font-size: var(--fs-h5);
    line-height: var(--lh-h5);
    border-bottom: 1px solid var(--color-hairline);
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero__text { flex: 1; max-width: 600px; }
.eyebrow {
  font-size: var(--fs-h6);
  line-height: var(--lh-h6);
  font-weight: 700;
  color: var(--color-zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.hero__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.heading-fill { color: var(--color-black); }
.heading-outline {
  color: transparent;
  -webkit-text-stroke: 3px var(--color-black);
}
.hero__sub {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  letter-spacing: 0.02em;
  color: var(--color-zinc-500);
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero__socials { display: flex; gap: 8px; }
.hero__illustration { flex-shrink: 0; width: 100%; max-width: 600px; }

@media (max-width: 767px) {
  .hero { flex-direction: column-reverse; gap: 32px; }
  .hero__heading { font-size: var(--fs-h1); line-height: var(--lh-h1); }
  .hero__text, .hero__illustration { max-width: 100%; }
}

/* =========================================================
   Skills
   ========================================================= */
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-pill {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-hairline);
}
.skill-pill em { color: var(--color-zinc-500); font-style: normal; }

/* =========================================================
   Testimonials
   ========================================================= */
.testimonial--dark { background: var(--color-black); color: var(--color-white); }
.testimonial--light { background: var(--color-white); }

.testimonial__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  margin: 0;
  padding: 32px;
  border: 1px solid var(--color-hairline-invert);
  border-radius: var(--radius-md);
}
.testimonial-card__quote {
  font-size: var(--fs-p1);
  line-height: var(--lh-p1);
  margin-bottom: 24px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__name { font-size: var(--fs-p2); line-height: var(--lh-p2); font-weight: 700; }
.testimonial-card__name a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.testimonial-card__name a:hover { border-color: rgba(255, 255, 255, 0.8); }
.testimonial--light .testimonial-card__name a { border-bottom-color: var(--color-hairline); }
.testimonial--light .testimonial-card__name a:hover { border-bottom-color: var(--color-black); }
.testimonial-card__role { font-size: var(--fs-p3); line-height: var(--lh-p3); color: rgba(255, 255, 255, 0.6); }

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-hairline-invert);
}
.avatar-img--lg { width: 64px; height: 64px; }
.testimonial--light .avatar-img { border-color: var(--color-hairline); }

.avatar-placeholder {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.avatar-placeholder--lg { width: 64px; height: 64px; background: rgba(0,0,0,0.06); border-color: var(--color-hairline); }

.testimonial-feature {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-size: 96px;
  line-height: 1;
  font-weight: 800;
  color: var(--color-hairline);
  display: block;
  margin-bottom: -24px;
}
.quote-mark--invert { color: rgba(255, 255, 255, 0.15); }
.testimonial-feature__quote {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: 600;
  margin-bottom: 32px;
}
.testimonial-feature__quote--invert {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-p1);
  line-height: var(--lh-p1);
  font-weight: 500;
}
.testimonial-feature__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .testimonial__grid { grid-template-columns: 1fr; }
  .testimonial-feature__quote { font-size: var(--fs-h5); line-height: var(--lh-h5); }
}

/* =========================================================
   About
   ========================================================= */
.about {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
.about__illustration {
  flex-shrink: 0;
  width: 100%;
  max-width: 480px;
  position: sticky;
  top: 96px;
  align-self: flex-start;
}
.about__content { flex: 1; }
.about__paragraph {
  font-size: var(--fs-p1);
  line-height: var(--lh-p1);
  color: var(--color-zinc-500);
  margin-bottom: 40px;
}
.about__subheading {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: 700;
  margin-bottom: 16px;
}
.about__experience,
.about__volunteer { margin-bottom: 40px; }

/* Small square logo for organizations (issuer / employer) */
.org-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-hairline);
  object-fit: cover;
}

.experience-item__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.experience-item__head .experience-item__meta { margin-bottom: 0; }
.experience-item__role { font-size: var(--fs-h6); line-height: var(--lh-h6); font-weight: 700; }
.experience-item__meta {
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
  color: var(--color-zinc-500);
  margin-bottom: 12px;
}
.experience-item__desc {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  color: var(--color-zinc-500);
}
.experience-item__list li {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  color: var(--color-zinc-500);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.experience-item__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-black);
}

.cert-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-hairline);
}
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cert-item__body { flex: 1; }
.cert-item__name { font-size: var(--fs-p2); line-height: var(--lh-p2); font-weight: 700; }
.cert-item__meta {
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
  color: var(--color-zinc-500);
  margin-top: 2px;
}
.cert-item__link {
  display: inline-block;
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
  font-weight: 700;
  margin-top: 6px;
  border-bottom: 1px solid var(--color-hairline);
}
.cert-item__link:hover { border-color: var(--color-black); }
.cert-item__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.skill-chip {
  display: inline-block;
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-hairline);
  color: var(--color-zinc-500);
}

@media (max-width: 767px) {
  .about { flex-direction: column; align-items: stretch; gap: 32px; }
  .about__illustration { max-width: 100%; position: static; }
}

/* =========================================================
   Projects
   ========================================================= */
.projects { background: var(--color-black); color: var(--color-white); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.project-card {
  border: 1px solid var(--color-hairline-invert);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--color-hairline-invert);
  background: rgba(255, 255, 255, 0.04);
}
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.project-card__title { font-size: var(--fs-h5); line-height: var(--lh-h5); font-weight: 700; }
.project-card__desc {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
}
.project-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-hairline-invert);
  color: rgba(255, 255, 255, 0.8);
}
.project-card__link {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  font-weight: 700;
  align-self: flex-start;
  border-bottom: 2px solid var(--color-white);
  padding-bottom: 2px;
}

@media (max-width: 767px) {
  .projects__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.contact__intro { flex: 1; max-width: 480px; }
.contact__list { margin-top: 24px; }
.contact__list li { margin-bottom: 16px; }
.contact__list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  font-weight: 600;
}
.contact__list a span { border-bottom: 1px solid var(--color-hairline); }
.contact__list a:hover span { border-color: var(--color-black); }
.contact-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.contact-form {
  flex: 1;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: var(--fs-h6);
  line-height: var(--lh-h6);
  font-weight: 700;
}
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  padding: 14px 16px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-black);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-black);
}
.field.has-error input, .field.has-error textarea { border-color: #b91c1c; }
.field__error {
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
  color: #b91c1c;
  min-height: 16px;
}
.contact-form__note {
  font-size: var(--fs-p2);
  line-height: var(--lh-p2);
  color: var(--color-zinc-500);
}

@media (max-width: 767px) {
  .contact { flex-direction: column; align-items: stretch; gap: 40px; }
  .contact__intro, .contact-form { max-width: 100%; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--footer-py) var(--section-px);
}
.footer__copy { font-size: var(--fs-p3); line-height: var(--lh-p3); color: rgba(255, 255, 255, 0.6); }
.footer__socials { display: flex; gap: 8px; }
.footer__totop {
  font-size: var(--fs-p3);
  line-height: var(--lh-p3);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.footer__totop:hover { color: var(--color-white); }

@media (max-width: 767px) {
  .footer { flex-direction: column; text-align: center; padding: var(--footer-py) 16px; }
}

/* =========================================================
   Scroll-reveal animation (subtle)
   ========================================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
