/* =========================================================
   Farnaz Azimi — UI/UX Designer · Portfolio
   Theme: night sky — blue / black / gray / white
   ========================================================= */

:root {
  --bg: #08090d;
  --bg-soft: #0e1017;
  --card: #13151d;
  --card-hover: #171a24;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.05);
  --blue: #7c93ff;
  --blue-soft: rgba(124, 147, 255, 0.14);
  --blue-dim: #4c5b99;
  --pink: #d782e8;
  --pink-soft: rgba(215, 130, 232, 0.14);
  --white: #f4f5fa;
  --gray: #a2a6b8;
  --gray-dim: #686c7d;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --font: "Vazirmatn", sans-serif;
  --maxw: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--blue);
  color: #08090d;
}

/* ---------- starfield ---------- */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  insetinlinestart: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 200;
}
#scrollBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), #b9c6ff);
  transition: width 0.1s linear;
}

/* ---------- navbar ---------- */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 980px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(14, 16, 23, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
}
.nav-mark {
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.star-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px 2px var(--blue-soft);
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  font-size: 16px;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--white);
}
.nav-cta {
  font-size: 16px;
  font-weight: 600;
  background: var(--blue);
  color: #08090d;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--blue-soft);
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 1;
}
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 32px;
}
.section-eyebrow {
  font-size: 16px;
  color: var(--blue);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin-bottom: 44px;
  max-width: 620px;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
  position: relative;

}

@media (max-width: 600px) {
  .hero {
  }
}
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background:
    radial-gradient(
      circle at 35% 40%,
      rgba(124, 147, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      circle at 68% 55%,
      rgba(215, 130, 232, 0.16),
      transparent 60%
    );
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 680px;
}

@media (max-width: 820px) {
  .hero-glow {
    width: 320px;
    height: 320px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(8px);
  }

  .hero-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
}
.avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 26px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(
    from 140deg,
    var(--blue),
    var(--pink),
    var(--blue)
  );
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  display: block;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #fff, #c7cff5 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role {
  margin-top: 10px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray);
  font-weight: 600;
}
.hero-role span {
  color: var(--blue);
}
.hero-desc {
  margin: 22px auto 0;
  max-width: 520px;
  color: var(--gray);
  font-size: 16px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--blue);
  color: #08090d;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--blue-soft);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
.about-lead {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.5;
}
.about-lead .hl {
  color: var(--blue);
}
.about-body p {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 16px;
}
.stat-row {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 130px;
}
.stat strong {
  display: block;
  font-size: 19px;
  color: var(--blue);
}
.stat span {
  font-size: 16px;
  color: var(--gray-dim);
}

/* ---------- language banner ---------- */
.lang-banner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 60px;
}
.lang-banner-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(120deg, var(--blue-soft), var(--pink-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  flex-wrap: wrap;
}
.lang-flag {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  color: #08090d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.lang-text {
  flex: 1 1 auto;
  min-width: 180px;
}
.lang-text h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
}
.lang-text p {
  font-size: 16px;
  color: var(--gray);
  font-weight: 600;
}
.lang-text p span {
  color: var(--pink);
}
.lang-meter {
  flex: 1 1 220px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.lang-meter i {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--blue), var(--pink));
}

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-dim);
  background: var(--card-hover);
}
.skill-icon {
  color: var(--blue);
  font-size: 16px;
  margin-bottom: 14px;
}
.skill-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.skill-card li {
  font-size: 16px;
  color: var(--gray);
  padding: 5px 0;
  border-top: 1px solid var(--border-soft);
}
.skill-card li:first-child {
  border-top: none;
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  padding-inline-start: 28px;
  border-inline-start: 1.5px dashed var(--border);
}
.tl-item {
  position: relative;
  margin-bottom: 44px;
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-dot {
  position: absolute;
  inset-inline-start: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 6px var(--blue-soft);
}
.tl-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 26px 22px;
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.tl-head h3 {
  font-size: 17px;
  font-weight: 700;
}
.tl-period {
  font-size: 16px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tl-company {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 18px;
}
.tl-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 680px) {
  .tl-cols {
    grid-template-columns: 1fr;
  }
}
.tl-cols h4 {
  font-size: 16px;
  color: var(--gray-dim);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tl-cols li {
  font-size: 16px;
  color: var(--gray);
  padding-inline-start: 16px;
  position: relative;
  margin-bottom: 8px;
}
.tl-cols li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
.project-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  overflow: hidden;
  display: block;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--pink);
}
.project-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(
    circle,
    rgba(215, 130, 232, 0.18),
    transparent 70%
  );
  pointer-events: none;
}
.project-tag {
  display: inline-block;
  font-size: 16px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.project-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}
.project-card p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
}
.project-link {
  font-size: 16px;
  color: var(--white);
  font-weight: 600;
}

/* ---------- education / courses ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 780px) {
  .edu-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.edu-col-title {
  font-size: 16px;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}
.edu-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft);
}
.edu-item:first-of-type {
  border-top: none;
}
.edu-year {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  height: fit-content;
  white-space: nowrap;
}
.edu-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}
.edu-item p {
  font-size: 16px;
  color: var(--gray);
}

/* ---------- contact ---------- */
.contact-section {
  text-align: center;
}
.contact-lead {
  color: var(--gray);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 40px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-dim);
}
.contact-card.static:hover {
  transform: none;
  border-color: var(--border);
}
.c-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.c-label {
  font-size: 16px;
  color: var(--gray-dim);
}
.c-value {
  font-size: 16px;
  font-weight: 600;
  word-break: break-word;
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-dim);
  font-size: 16px;
}
.to-top {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.to-top:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

@media print {
  #stars,
  .navbar,
  .scroll-progress,
  .to-top,
  .scroll-cue {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
