/* ==========================================================================
   Persepolis — resume theme
   Loaded after css/style.css (Bootstrap 4 base). Replaces custom.css.
   Palette: lapis night, Susa-glaze turquoise, Achaemenid gold, Apadana stone.
   ========================================================================== */

:root {
  --lapis-950: #060d20;
  --lapis-900: #0d1b3b;
  --lapis-800: #14284f;
  --lapis-700: #1d3669;
  --turq: #2b9a9a;
  --turq-d: #1b6e72;
  --gold: #c9993f;
  --gold-l: #ecca78;
  --gold-d: #8e6420;
  --stone: #f2e9d6;
  --stone-2: #e7dac0;
  --paper: #fbf6ea;
  --ink: #3a2f23;
  --ink-soft: #66584a;
  --madder: #8c2f2b;

  --f-display: "Marcellus", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Alegreya Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-fa: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .01em;
}
a { color: var(--turq-d); }
a:hover { color: var(--gold-d); text-decoration: none; }
::selection { background: var(--gold); color: var(--lapis-950); }
img { image-rendering: auto; }

:focus-visible {
  outline: 2px solid var(--gold-l);
  outline-offset: 3px;
}

section { padding: 96px 0 84px !important; position: relative; }
.container { max-width: 1140px; }

/* ---------- preloader ---------- */
#preloader { background: var(--lapis-950); }
#preloader:before {
  border: 3px solid rgba(236, 202, 120, .18);
  border-top-color: var(--gold-l);
  width: 54px; height: 54px;
  top: calc(50% - 27px); left: calc(50% - 27px);
}

/* ---------- navigation ---------- */
#mainNav .container { padding-left: 18px; padding-right: 18px; }
#mainNav.navbar-b {
  padding: 18px 0;
  transition: background-color .4s ease, padding .4s ease, box-shadow .4s ease;
}
#mainNav.navbar-trans {
  background: linear-gradient(180deg, rgba(5, 11, 28, .78), rgba(5, 11, 28, 0));
}
#mainNav.navbar-reduce {
  padding: 10px 0;
  background: rgba(8, 17, 40, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(236, 202, 120, .38), 0 12px 30px rgba(3, 8, 20, .35);
}
#mainNav .navbar-brand {
  font-family: var(--f-display);
  font-size: 1.28rem;
  letter-spacing: .06em;
  color: var(--gold-l);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}
#mainNav.navbar-b .nav-item { padding: 0 0 0 6px; }
#mainNav.navbar-b .nav-link,
#mainNav.navbar-b.navbar-trans .nav-link,
#mainNav.navbar-b.navbar-reduce .nav-link {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: .03em;
  text-transform: none;
  color: #efe5cf;
  padding: .55rem .9rem;
  transition: color .25s ease;
}
#mainNav.navbar-b .nav-link:hover,
#mainNav.navbar-b.navbar-trans .nav-link:hover,
#mainNav.navbar-b.navbar-reduce .nav-link:hover { color: var(--gold-l); }
#mainNav.navbar-b .nav-link.active,
#mainNav.navbar-b.navbar-trans .nav-link.active,
#mainNav.navbar-b.navbar-reduce .nav-link.active { color: var(--gold-l); }
#mainNav.navbar-b .nav-link:before,
#mainNav.navbar-b.navbar-trans .nav-link:before,
#mainNav.navbar-b.navbar-reduce .nav-link:before {
  left: .9rem;
  height: 2px;
  background: var(--gold);
}
#mainNav.navbar-b .nav-link.active:before,
#mainNav.navbar-b .nav-link:hover:before { width: 28px; }
#mainNav .navbar-toggler { border: 1px solid rgba(236, 202, 120, .6); border-radius: 0; padding: 9px 10px; }
#mainNav .navbar-toggler span { background-color: var(--gold-l); }
@media (max-width: 767.98px) {
  #mainNav .navbar-collapse {
    background: rgba(8, 17, 40, .97);
    border-top: 1px solid rgba(236, 202, 120, .3);
    margin: 12px -15px -10px;
    padding: 8px 18px 14px;
  }
}

/* ---------- hero (photograph: Gate of All Nations at sunset) ---------- */
#home.intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--lapis-950);
  color: var(--stone);
  border-bottom: 3px solid var(--gold);
}
#home .overlay-itro { display: none; }

.hero-photo {
  position: absolute;
  inset: 0;
  background-color: #0d1b3b;
  background-image: url("../img/hero-persepolis.jpg");
  background-image: image-set(url("../img/hero-persepolis.webp") type("image/webp"), url("../img/hero-persepolis.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: 50% 62%;
  background-repeat: no-repeat;
  transform-origin: 50% 72%;
  animation: gateSettle 3.4s cubic-bezier(.16, .7, .2, 1) both;
}
/* darkens the top for the nav, the centre behind the title, and melts into the page below */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 40% at 50% 34%, rgba(5, 11, 28, .62), rgba(5, 11, 28, 0) 100%),
    linear-gradient(180deg, rgba(5, 11, 28, .62) 0, rgba(5, 11, 28, 0) 22%),
    linear-gradient(0deg, rgba(5, 11, 28, .55) 0, rgba(5, 11, 28, 0) 24%);
}

#home .intro-content {
  position: absolute;
  inset: 0;
  text-align: center;
  display: block;
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: 50%;
  top: 19%;
  transform: translateX(-50%);
  width: min(620px, 92vw);
  text-align: center;
  pointer-events: auto;
}
.hero-fa {
  font-family: var(--f-fa);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--gold-l);
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}
.hero-name {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: .05em;
  color: #fff4dc;
  margin: 0 0 .7rem;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .55);
}
.hero-role {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  letter-spacing: .05em;
  color: var(--gold-l);
  margin: 0 0 .6rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .75);
}
.hero-line {
  font-style: italic;
  font-size: 1.12rem;
  color: #f0e5cb;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-gold, .btn-ghost {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  border-radius: 0;
  padding: .72rem 1.7rem;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-gold {
  background: linear-gradient(180deg, #e3bd66, #c18f35);
  border: 1px solid #f0d58f;
  color: var(--lapis-950);
}
.btn-gold:hover { background: linear-gradient(180deg, #f0cd7b, #d0a044); color: var(--lapis-950); }
.btn-ghost {
  background: rgba(5, 11, 28, .5);
  border: 1px solid rgba(236, 202, 120, .8);
  color: var(--gold-l);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.btn-ghost:hover { background: rgba(236, 202, 120, .18); color: #fff3d0; border-color: var(--gold-l); }

/* the one orchestrated moment: the camera settles into the gate */
@keyframes gateSettle { from { transform: scale(1.09); filter: brightness(.55); } to { transform: none; filter: none; } }

@media (max-height: 760px) and (min-width: 768px) {
  .hero-line { display: none; }
  .hero-copy { top: 17%; }
}
@media (max-width: 767.98px) {
  #home.intro { min-height: 600px; }
  .hero-photo {
    background-image: url("../img/hero-persepolis-m.jpg");
    background-image: image-set(url("../img/hero-persepolis-m.webp") type("image/webp"), url("../img/hero-persepolis-m.jpg") type("image/jpeg"));
    background-position: 50% 100%;
  }
  .hero-scrim {
    background:
      radial-gradient(ellipse 80% 38% at 50% 30%, rgba(5, 11, 28, .6), rgba(5, 11, 28, 0) 100%),
      linear-gradient(180deg, rgba(5, 11, 28, .7) 0, rgba(5, 11, 28, 0) 28%),
      linear-gradient(0deg, rgba(5, 11, 28, .5) 0, rgba(5, 11, 28, 0) 20%);
  }
  .hero-copy { top: 17%; width: 90vw; }
  .hero-name { font-size: clamp(2.3rem, 11vw, 3.3rem); letter-spacing: .035em; }
  .hero-line { display: none; }
  .btn-gold, .btn-ghost { padding: .66rem 1.25rem; }
}

/* ---------- shared headings and ornaments ---------- */
.title-box { margin-bottom: 3.4rem; }
.title-a {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  text-transform: none;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: .35rem;
}
.subtitle-a { color: var(--ink-soft); font-size: 1.12rem; font-style: italic; }
.line-mf {
  width: 220px; height: 22px;
  margin: 16px auto 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg transform='translate(12 12)' fill='%23c9993f' opacity='1.0'%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(330)'/%3E%3Ccircle r='3.1' fill='%23c9993f'/%3E%3Ccircle r='1.4' fill='%230d1b3b'/%3E%3C/g%3E%3C/svg%3E") center / 22px 22px no-repeat,
    linear-gradient(90deg, transparent, var(--gold)) left center / 88px 1px no-repeat,
    linear-gradient(270deg, transparent, var(--gold)) right center / 88px 1px no-repeat;
}
#skills .subtitle-a { color: #cdbf9f; }
#skills .title-a { color: #f6ecd2; }

.title-box-2 { margin-bottom: 1.7rem; }
.title-left { font-size: 1.9rem; letter-spacing: .03em; color: var(--ink); padding-bottom: .55rem; position: relative; display: block; }
.title-left:before { content: none; }
.title-left:after {
  content: "";
  display: block;
  width: 96px; height: 14px;
  margin-top: .5rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg transform='translate(12 12)' fill='%23c9993f' opacity='1.0'%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(330)'/%3E%3Ccircle r='3.1' fill='%23c9993f'/%3E%3Ccircle r='1.4' fill='%230d1b3b'/%3E%3C/g%3E%3C/svg%3E") left center / 14px 14px no-repeat,
    linear-gradient(90deg, var(--gold), transparent) 20px center / 76px 1px no-repeat;
}

/* ---------- about ---------- */
.about-mf {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .27  0 0 0 0 .14  0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--stone), var(--stone-2));
}
.box-shadow-full {
  background: var(--paper);
  border: 1px solid rgba(142, 100, 32, .5);
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px rgba(142, 100, 32, .3), 0 24px 50px -28px rgba(40, 24, 8, .45);
  padding: 3rem 3rem 2.6rem;
}
.about-mf .box-shadow-full { margin-top: -3px; }
.about-img { padding: 0 6px 10px 0; max-width: 260px; margin: 0 auto; }
.about-img .img-fluid,
.about-img img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% !important;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--gold), 0 0 0 14px var(--paper), 0 0 0 15px rgba(142, 100, 32, .5);
  transform: scale(1);
}
.about-info { padding-top: .2rem; }
.about-info p {
  font-size: 1.04rem;
  line-height: 1.5;
  padding: .55rem 0;
  margin: 0;
  border-bottom: 1px solid rgba(142, 100, 32, .28);
  color: var(--ink);
}
.about-info p:last-child { border-bottom: 0; padding-top: 1rem; }
.title-s { color: var(--gold-d); font-weight: 700; letter-spacing: .01em; }
.about-me p.lead {
  font-size: 1.14rem;
  line-height: 1.75;
  color: #4a3d2f;
  max-width: 62ch;
}

/* ---------- buttons (site-wide) ---------- */
.btn-primary,
.btn-primary.btn-sm {
  background: var(--lapis-900);
  border: 1px solid var(--lapis-900);
  color: var(--gold-l);
  border-radius: 0;
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background: var(--turq-d);
  border-color: var(--turq-d);
  color: #fff;
  box-shadow: none;
}

/* ---------- counters ---------- */
.section-counter {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' width='56' height='56'%3E%3Cg fill='%23ecca78' opacity='.05'%3E%3Cg transform='translate(14 14)'%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(330)'/%3E%3Ccircle r='4.4'/%3E%3C/g%3E%3Cg transform='translate(42 42)'%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(330)'/%3E%3Ccircle r='4.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px,
    radial-gradient(ellipse at 50% 0, var(--lapis-700), var(--lapis-900) 62%, var(--lapis-950)) !important;
  padding: 4.8rem 0 4.2rem;
  border-top: 1px solid rgba(236, 202, 120, .55);
  border-bottom: 1px solid rgba(236, 202, 120, .55);
}
.section-counter .overlay-mf { display: none; }
.counter-box { color: #efe5cf; position: relative; }
.counter-ico .ico-circle {
  width: auto; height: auto;
  background: none;
  box-shadow: none;
  color: var(--gold-l);
  font-size: 2.3rem;
  line-height: 1;
}
.counter-num .counter {
  font-family: var(--f-display);
  font-size: 3.4rem;
  line-height: 1.1;
  color: #fbf1d9;
  margin: .5rem 0 .1rem;
}
.counter-num p { margin-bottom: 0; }
.counter.plus::after { content: "+"; color: var(--gold-l); }
.counter-text {
  font-size: 1.06rem;
  letter-spacing: .02em;
  color: #cfc2a3;
}
@media (min-width: 576px) {
  .section-counter .col-sm-3:not(:last-child) .counter-box:after {
    content: "";
    position: absolute;
    right: -15px; top: 8%; bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(236, 202, 120, .5), transparent);
  }
}

/* ---------- experience ---------- */
.portfolio-mf {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .27  0 0 0 0 .14  0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--stone-2), var(--stone));
}
.sub-heading {
  font-family: var(--f-display);
  font-size: 1.75rem;
  letter-spacing: .04em;
  color: var(--ink);
  margin: 1.4rem 0 2.4rem;
}
.sub-heading:after {
  content: "";
  display: block;
  width: 150px; height: 16px;
  margin: 12px auto 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg transform='translate(12 12)' fill='%23c9993f' opacity='1.0'%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(330)'/%3E%3Ccircle r='3.1' fill='%23c9993f'/%3E%3Ccircle r='1.4' fill='%230d1b3b'/%3E%3C/g%3E%3C/svg%3E") center / 16px 16px no-repeat,
    linear-gradient(90deg, transparent, var(--gold)) left center / 60px 1px no-repeat,
    linear-gradient(270deg, transparent, var(--gold)) right center / 60px 1px no-repeat;
}
.work-box {
  position: relative;
  background: var(--paper);
  border: 1px solid rgba(142, 100, 32, .5);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(142, 100, 32, .28);
  padding-top: 22px;
  margin-bottom: 2rem;
  transition: border-color .3s ease, transform .3s ease;
}
.work-box:before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 18' width='36' height='18'%3E%3Crect width='36' height='18' fill='%230d1b3b'/%3E%3Cg transform='translate(18 9) scale(.62)' fill='%23ecca78'%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(330)'/%3E%3Ccircle r='3.1'/%3E%3Ccircle r='1.4' fill='%230d1b3b'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 36px 18px repeat-x;
  border-bottom: 1px solid rgba(236, 202, 120, .6);
}
.work-box:hover { border-color: var(--gold); }
.work-box:hover img { transform: none; }
.work-img {
  height: 168px;
  margin: 14px 16px 0;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(142, 100, 32, .22);
}
.work-img img { max-height: 86%; max-width: 80%; width: auto; }
.work-box:hover .work-img img { transform: scale(1.03); }
.work-content { padding: 1.1rem 1.2rem .9rem; }
.w-title { font-size: 1.32rem; color: var(--ink); letter-spacing: .02em; line-height: 1.25; }
.work-content .w-more { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.work-content .w-more .font-weight-bold { color: var(--turq-d); font-weight: 700 !important; }
.w-date { color: var(--ink-soft); font-style: italic; }
.work-box .work-btn { padding-bottom: 1.5rem; }

/* experience modal (fancybox) */
.fancybox__content {
  background: var(--lapis-900) !important;
  color: #e9dfc7 !important;
  border: 1px solid rgba(236, 202, 120, .6);
  box-shadow: inset 0 0 0 6px var(--lapis-900), inset 0 0 0 7px rgba(236, 202, 120, .28);
  border-radius: 0 !important;
  padding: 2.2rem 2.4rem !important;
  font-family: var(--f-body);
  font-size: 1.04rem;
}
.fancybox__backdrop { background: rgba(4, 9, 22, .86) !important; }
.exp-modal { max-width: 660px; text-align: left; }
.exp-modal h4 { color: var(--gold-l); font-size: 1.7rem; margin-bottom: .2rem; }
.exp-modal h5 { color: var(--gold-l); font-size: 1.12rem; margin-top: 1.3rem; }
.exp-modal h5 small { color: #b9ad90; font-family: var(--f-body); font-style: italic; }
.exp-modal .exp-meta { color: #b9ad90; font-style: italic; margin-bottom: .9rem; }
.exp-modal ul { padding-left: 1.15rem; margin-bottom: .6rem; }
.exp-modal li { margin-bottom: .4rem; line-height: 1.55; }
.exp-modal li::marker { color: var(--gold); }
.exp-modal a { color: var(--gold-l); border-bottom: 1px solid rgba(236, 202, 120, .5); }

/* ---------- tools ---------- */
#skills {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' width='56' height='56'%3E%3Cg fill='%23ecca78' opacity='.05'%3E%3Cg transform='translate(14 14)'%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(330)'/%3E%3Ccircle r='4.4'/%3E%3C/g%3E%3Cg transform='translate(42 42)'%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(330)'/%3E%3Ccircle r='4.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px,
    linear-gradient(180deg, var(--lapis-900), var(--lapis-950));
  color: #e9dfc7;
}
.skills-carousel { margin-top: .5rem; }
.skills-carousel .item {
  background: var(--paper);
  border: 1px solid rgba(236, 202, 120, .55);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(142, 100, 32, .28);
  padding: 20px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skills-carousel .item img.skill-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  padding: 0;
  filter: none;
}
.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
  margin: 3.4rem 0 .5rem;
}
.skill-group {
  background: linear-gradient(180deg, rgba(29, 54, 105, .55), rgba(20, 40, 79, .55));
  border: 1px solid rgba(236, 202, 120, .32);
  border-top: 3px solid var(--turq);
  border-radius: 0;
  box-shadow: none;
  padding: 1.35rem 1.5rem 1.3rem;
}
.skill-group h5 {
  font-family: var(--f-display);
  font-size: 1.22rem;
  letter-spacing: .03em;
  color: var(--gold-l);
  margin: 0 0 .9rem;
  font-weight: 400;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  background: rgba(6, 13, 32, .45);
  border: 1px solid rgba(236, 202, 120, .28);
  border-radius: 0;
  color: #eadfc6;
  font-size: .98rem;
  line-height: 1.2;
  padding: 6px 11px;
}
@media (max-width: 420px) { .skill-groups { grid-template-columns: 1fr; } }

/* ---------- blog ---------- */
.blog-mf {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36  0 0 0 0 .27  0 0 0 0 .14  0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--stone), var(--stone-2));
}
.card-blog {
  background: var(--paper);
  border: 1px solid rgba(142, 100, 32, .5);
  border-radius: 0;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(142, 100, 32, .28);
  padding: 12px;
  transition: border-color .3s ease;
}
.card-blog:hover { border-color: var(--gold); transform: none; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px rgba(142, 100, 32, .28); }
.card-blog .card-img { background: #fff; border: 1px solid rgba(142, 100, 32, .22); }
.card-blog .card-img img { height: 210px; padding: 6px; }
.card-blog .card-body { padding: 1.2rem .7rem .7rem; }
.card-blog .card-title { font-size: 1.28rem; line-height: 1.35; min-height: 3.5rem; }
.card-blog .card-title a { color: var(--ink); }
.card-blog .card-title a:hover { color: var(--turq-d); }

/* ---------- contact + footer ---------- */
.footer-paralax {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 56' width='56' height='56'%3E%3Cg fill='%23ecca78' opacity='.05'%3E%3Cg transform='translate(14 14)'%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(330)'/%3E%3Ccircle r='4.4'/%3E%3C/g%3E%3Cg transform='translate(42 42)'%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-9.5' rx='3' ry='5.4' transform='rotate(330)'/%3E%3Ccircle r='4.4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px,
    linear-gradient(180deg, var(--lapis-800), var(--lapis-950)) !important;
  padding-top: 5.5rem !important;
  border-top: 1px solid rgba(236, 202, 120, .55);
}
.footer-paralax .overlay-mf { display: none; }
.contact-mf { margin-top: 0; }
.footer-paralax.sect-mt4 { margin-top: 0; }
#contact.box-shadow-full {
  background: var(--paper);
  color: var(--ink);
}
#contact .lead { font-size: 1.12rem; color: #4a3d2f; }
.form-control {
  background: #fffdf6;
  border: 1px solid rgba(142, 100, 32, .45);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.04rem;
  height: auto;
  padding: .7rem .9rem;
}
.form-control::placeholder { color: #8a7b66; }
.form-control:focus {
  background: #fff;
  border-color: var(--turq-d);
  box-shadow: 0 0 0 3px rgba(43, 154, 154, .22);
  color: var(--ink);
}
.button.button-a, .button-big.button-rouded {
  background: var(--lapis-900);
  border: 1px solid var(--lapis-900);
  border-radius: 0;
  color: var(--gold-l);
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: .04em;
  padding: .75rem 1.9rem;
  transition: background-color .25s ease;
}
.button.button-a:hover { background: var(--turq-d); border-color: var(--turq-d); color: #fff; }
.list-ico { font-size: 1.08rem; }
.list-ico span { color: var(--gold-d); }
.list-ico a, .list-ico a:hover { color: inherit; }
.list-ico a:hover { color: var(--turq-d); }
.socials .ico-circle {
  width: 52px; height: 52px;
  font-size: 1.5rem;
  line-height: 52px;
  background: var(--lapis-900);
  color: var(--gold-l);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold);
  transition: background-color .25s ease, color .25s ease;
}
.socials .ico-circle:hover { background: var(--turq-d); color: #fff; }
.socials ul li { margin: 0 .55rem; }

footer {
  position: relative;
  margin-top: 4.2rem;
  padding: 3.4rem 0 2.2rem;
  color: #cdbf9f;
}
footer:before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg transform='translate(12 12)' fill='%23c9993f' opacity='1.0'%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(330)'/%3E%3Ccircle r='3.1' fill='%23c9993f'/%3E%3Ccircle r='1.4' fill='%230d1b3b'/%3E%3C/g%3E%3C/svg%3E") 0 center / 22px 22px repeat-x;
  opacity: .75;
}
footer .copyright { margin: 0; font-size: 1rem; letter-spacing: .02em; }

.back-to-top {
  background: var(--gold);
  border: 1px solid var(--gold-l);
  border-radius: 0;
}
.back-to-top:hover { background: var(--gold-l); }
.back-to-top i { color: var(--lapis-950); }

/* section edge friezes for the dark bands */
.section-counter:before,
#skills:before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cg transform='translate(12 12)' fill='%23c9993f' opacity='1.0'%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(30)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(60)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(120)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(150)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(210)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(240)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(300)'/%3E%3Cellipse cx='0' cy='-6.4' rx='2.1' ry='3.7' transform='rotate(330)'/%3E%3Ccircle r='3.1' fill='%23c9993f'/%3E%3Ccircle r='1.4' fill='%230d1b3b'/%3E%3C/g%3E%3C/svg%3E") 0 center / 22px 22px repeat-x;
  opacity: .5;
}

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
  body { font-size: 17px; }
  section { padding: 70px 0 60px !important; }
  .box-shadow-full { padding: 1.7rem 1.25rem 1.5rem; }
  .about-img { max-width: 210px; margin-bottom: 1.6rem; }
  .title-box { margin-bottom: 2.4rem; }
  .counter-num .counter { font-size: 2.7rem; }
  .fancybox__content { padding: 1.5rem 1.2rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo { animation: none; }
  * { transition-duration: .01ms !important; }
}


/* ------------------------------------------------------------------
   Persian modern portfolio refresh — hero, projects and motion system
   ------------------------------------------------------------------ */
:root {
  --iran-gold: #d9a441;
  --iran-gold-light: #f4d58a;
  --iran-ink: #101b2b;
  --iran-teal: #3caaa0;
  --iran-paper: #f7f5ef;
}
html { scroll-behavior: smooth; }
#mainNav { transition: background .35s ease, box-shadow .35s ease, padding .35s ease; }
#mainNav .navbar-nav .nav-link { position: relative; }
#mainNav .navbar-nav .nav-link:after { content:""; position:absolute; left: .8rem; right:.8rem; bottom: .35rem; height:2px; background:var(--iran-gold); transform:scaleX(0); transform-origin:center; transition:transform .3s ease; }
#mainNav .navbar-nav .nav-link:hover:after, #mainNav .navbar-nav .nav-link.active:after { transform:scaleX(1); }
.intro { min-height: 790px; height: 100vh; max-height: 1050px; overflow:hidden; isolation:isolate; }
.intro .hero-photo { transform:scale(1.025); animation: hero-drift 24s ease-in-out infinite alternate; }
.intro .hero-scrim { background:linear-gradient(90deg,rgba(7,15,29,.78) 0%,rgba(7,15,29,.52) 48%,rgba(7,15,29,.18) 100%),linear-gradient(0deg,rgba(8,15,25,.58),transparent 55%); }
.intro-content { display:flex; align-items:center; justify-content:flex-start; text-align:left; padding:110px 8vw 80px; }
.hero-copy { width:min(790px,100%); margin:0; position:relative; z-index:2; text-shadow:0 2px 18px rgba(0,0,0,.48); }
.hero-eyebrow,.section-kicker { display:inline-flex; align-items:center; gap:12px; color:var(--iran-gold-light); font-size:11px; font-weight:700; letter-spacing:3px; }
.hero-eyebrow-line { width:38px; height:1px; background:var(--iran-gold); }
.hero-fa { color:#f6d27d; font-family:'Vazirmatn',sans-serif; font-size:clamp(24px,3vw,38px); font-weight:700; margin:18px 0 8px; }
.hero-title { color:#fff; font-size:clamp(38px,5.1vw,68px); line-height:1.16; font-weight:700; letter-spacing:-1.35px; margin:0 0 22px; text-wrap:balance; }
.hero-title span { color:#e8bd65; }
.hero-description { color:#fff; max-width:650px; font-size:17px; font-weight:500; line-height:1.9; margin-bottom:20px; text-shadow:0 2px 8px rgba(0,0,0,.7); }
.hero-role { color:#ffe2a0; font-size:15px; font-weight:600; min-height:28px; margin:12px 0 26px; text-shadow:0 2px 8px rgba(0,0,0,.65); }
.hero-role-label { color:rgba(255,255,255,.7); margin-right:9px; }
.text-slider { font-weight:700; }
.text-slider-items { display:none; }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.hero-actions .btn { padding:13px 21px; border-radius:3px; font-size:12px; letter-spacing:.4px; transition:transform .25s ease,box-shadow .25s ease,background .25s ease; }
.hero-actions .btn:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,.25); }
.hero-actions .btn-gold { background:linear-gradient(135deg,#f1d18a,#c89432); color:#172033; border:1px solid #f5d995; }
.hero-actions .btn-ghost { border:1px solid rgba(255,255,255,.7); color:#fff; background:rgba(10,20,35,.22); }
.hero-cv-link { color:#fff; font-size:12px; padding:10px 8px; }
.hero-cv-link:hover { color:var(--iran-gold-light); }
.hero-metrics { display:flex; flex-wrap:wrap; gap:0; margin-top:38px; padding:22px 0 0; border-top:1px solid rgba(255,255,255,.38); max-width:650px; }
.hero-metrics div { display:flex; flex-direction:column; min-width:150px; padding:0 28px; border-right:1px solid rgba(255,255,255,.28); }
.hero-metrics div:first-child { padding-left:0; }
.hero-metrics div:last-child { border:0; }
.hero-metrics strong { color:#fff; font-size:30px; font-weight:700; line-height:1.1; text-shadow:0 2px 8px rgba(0,0,0,.65); }
.hero-metrics strong span { color:var(--iran-gold-light); font-size:17px; }
.hero-metrics small { color:#fff; font-size:12px; font-weight:500; margin-top:8px; letter-spacing:.25px; text-shadow:0 2px 7px rgba(0,0,0,.75); }
.hero-social-proof { color:rgba(255,255,255,.75); font-size:11px; margin-top:25px; letter-spacing:.3px; }
.status-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#69d6a0; margin-right:8px; box-shadow:0 0 0 5px rgba(105,214,160,.15); }
.hero-ornament { position:absolute; z-index:1; color:rgba(244,213,138,.25); pointer-events:none; font-size:clamp(90px,15vw,210px); animation:ornament-float 8s ease-in-out infinite; }
.hero-ornament-left { left:2%; top:24%; }
.hero-ornament-right { right:5%; bottom:14%; font-size:clamp(70px,10vw,145px); animation-delay:-3s; }
.hero-scroll { position:absolute; bottom:28px; left:8vw; color:rgba(255,255,255,.7); font-size:9px; letter-spacing:2px; }
.hero-scroll span { display:inline-block; width:1px; height:28px; background:var(--iran-gold); vertical-align:middle; margin-right:10px; animation:scroll-pulse 1.8s ease-in-out infinite; }
.projects-mf { position:relative; padding-bottom:65px; background:linear-gradient(180deg,#f7f5ef 0%,#fff 100%); overflow:hidden; }
.projects-mf:before { content:""; position:absolute; width:340px; height:340px; border:1px solid rgba(199,151,61,.14); border-radius:50%; top:80px; right:-210px; box-shadow:0 0 0 24px rgba(199,151,61,.035),0 0 0 48px rgba(199,151,61,.025); }
.projects-mf .section-kicker { color:#a77b2e; margin-bottom:10px; }
.project-grid { row-gap:28px; }
.project-card { background:#fff; border:1px solid rgba(25,40,60,.07); border-radius:12px; overflow:hidden; box-shadow:0 12px 38px rgba(25,38,54,.07); transition:transform .35s ease,box-shadow .35s ease; }
.project-card:hover { transform:translateY(-9px); box-shadow:0 24px 55px rgba(25,38,54,.14); }
.project-visual { height:190px; background:linear-gradient(135deg,#14243a,#243e59); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.project-visual:after { content:""; position:absolute; inset:0; background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.13),transparent 70%); transform:translateX(-120%); transition:transform .7s ease; }
.project-card:hover .project-visual:after { transform:translateX(120%); }
.project-visual img { max-width:54%; max-height:105px; object-fit:contain; filter:drop-shadow(0 8px 18px rgba(0,0,0,.22)); transition:transform .4s ease; }
.project-card:hover .project-visual img { transform:scale(1.08); }
.project-visual-brand { background:linear-gradient(135deg,#f0e7d4,#d6c29c); }
.project-visual-brand img { max-width:65%; max-height:100px; }
.project-index { position:absolute; top:16px; left:18px; color:rgba(255,255,255,.7); font-family:'Marcellus',serif; font-size:13px; }
.project-type { position:absolute; bottom:15px; left:18px; color:#f2d28e; font-size:9px; letter-spacing:1.8px; font-weight:700; }
.project-body { padding:23px 23px 25px; }
.project-body h4 { color:#17263a; font-size:18px; font-weight:700; margin:0 0 12px; }
.project-body p { color:#687587; font-size:13px; line-height:1.8; min-height:70px; margin-bottom:17px; }
.project-tags { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:19px; }
.project-tags span { background:#f1f4f5; border:1px solid #e8edef; border-radius:20px; color:#506071; font-size:10px; padding:5px 9px; }
.project-link { color:#a7792d; font-size:11px; font-weight:700; letter-spacing:.4px; }
.project-link i { margin-left:7px; transform:rotate(45deg); transition:transform .25s ease; }
.project-link:hover { color:#17263a; }
.project-link:hover i { transform:translate(3px,-3px) rotate(45deg); }
.projects-footnote { text-align:center; margin-top:35px; color:#778291; font-size:12px; }
.iranian-rosette { color:#c6963e; font-size:23px; vertical-align:middle; margin-right:8px; }
[data-reveal] { opacity:0; transform:translateY(28px); transition:opacity .75s ease,transform .75s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity:1; transform:translateY(0); }
@keyframes hero-drift { from {transform:scale(1.025) translate3d(0,0,0)} to {transform:scale(1.09) translate3d(-1.2%,.5%,0)} }
@keyframes ornament-float { 0%,100% {transform:translateY(0) rotate(-5deg)} 50% {transform:translateY(-18px) rotate(4deg)} }
@keyframes scroll-pulse { 0%,100% {opacity:.45;transform:scaleY(.75);transform-origin:top} 50% {opacity:1;transform:scaleY(1.1);transform-origin:top} }
@media (max-width:767px) {
 .intro { min-height:760px; height:auto; max-height:none; }
 .intro-content { padding:125px 24px 95px; }
 .hero-copy { text-align:center; }
 .hero-eyebrow { justify-content:center; font-size:9px; letter-spacing:1.8px; }
 .hero-title { font-size:39px; letter-spacing:-1px; }
 .hero-description { font-size:15px; line-height:1.75; }
 .hero-role { font-size:12px; }
 .hero-actions { justify-content:center; }
 .hero-actions .btn { padding:12px 14px; }
 .hero-metrics { justify-content:center; margin-top:30px; }
 .hero-metrics div { min-width:0; padding:0 13px; }
 .hero-metrics strong { font-size:23px; }
 .hero-metrics small { font-size:10px; }
 .hero-scroll { left:0; right:0; text-align:center; }
 .hero-ornament-left { left:-24px; top:16%; }
 .hero-ornament-right { right:-15px; bottom:10%; }
 .project-visual { height:170px; }
 .project-body p { min-height:0; }
}
@media (prefers-reduced-motion:reduce) {
 *,*:before,*:after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
 [data-reveal] { opacity:1; transform:none; }
}

/* Center the Home statistics row */
.hero-metrics {
  width: 100%;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}
.hero-metrics div {
  flex: 1 1 0;
  align-items: center;
  text-align: center;
}
.hero-metrics div:first-child {
  padding-left: 28px;
}
@media (max-width: 767px) {
  .hero-metrics {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-metrics div {
    flex: 1 1 0;
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* Engineering showcase and interactive career timeline */
.architecture-mf { position:relative; padding:82px 0 88px; background:linear-gradient(180deg,#101d30 0%,#142940 100%); color:#eef3f5; overflow:hidden; }
.architecture-mf:before { content:"✺"; position:absolute; right:-30px; top:55px; color:rgba(226,184,101,.07); font-size:260px; line-height:1; pointer-events:none; }
.architecture-mf .title-a { color:#fff; }
.architecture-mf .subtitle-a { color:rgba(238,243,245,.68); }
.architecture-mf .line-mf { background:#d5a84e; }
.architecture-shell { position:relative; z-index:1; margin-top:38px; padding:22px; border:1px solid rgba(226,184,101,.22); border-radius:18px; background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025)); box-shadow:0 25px 70px rgba(0,0,0,.22); backdrop-filter:blur(12px); }
.architecture-tabs { display:flex; flex-wrap:wrap; gap:9px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.12); }
.architecture-tab { border:1px solid rgba(255,255,255,.16); border-radius:30px; padding:10px 17px; color:#c8d2dc; background:rgba(255,255,255,.035); font-size:11px; letter-spacing:.3px; cursor:pointer; transition:all .25s ease; }
.architecture-tab:hover,.architecture-tab.is-active { color:#17263a; background:linear-gradient(135deg,#f0d18a,#c89432); border-color:#f0d18a; box-shadow:0 7px 22px rgba(200,148,50,.18); }
.architecture-panel { display:grid; grid-template-columns:minmax(230px,.8fr) minmax(360px,1.2fr); gap:38px; align-items:center; padding:32px 12px 22px; animation:architecture-enter .45s ease both; }
.architecture-panel[hidden] { display:none; }
@keyframes architecture-enter { from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:translateY(0)} }
.architecture-label { color:#e2b865; font-size:9px; font-weight:700; letter-spacing:2px; }
.architecture-copy h4 { color:#fff; font-family:'Marcellus',serif; font-size:clamp(23px,2.7vw,34px); line-height:1.25; margin:13px 0 15px; }
.architecture-copy p { max-width:440px; color:#c3ced8; font-size:13px; line-height:1.95; margin-bottom:22px; }
.architecture-stack { display:flex; flex-wrap:wrap; gap:7px; }
.architecture-stack span { padding:6px 10px; border:1px solid rgba(215,177,101,.28); border-radius:20px; color:#e7d3a8; background:rgba(215,177,101,.07); font-size:10px; }
.architecture-diagram { min-height:360px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:22px; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:radial-gradient(ellipse at 50% 0%,rgba(71,126,153,.2),transparent 68%),rgba(5,14,25,.32); }
.arch-node { min-width:145px; padding:13px 16px; border:1px solid rgba(125,190,190,.36); border-radius:9px; text-align:center; background:linear-gradient(135deg,rgba(29,91,100,.52),rgba(25,49,69,.85)); box-shadow:0 8px 24px rgba(0,0,0,.13); transition:transform .25s ease,border-color .25s ease; }
.arch-node:hover,.arch-flow-node:hover { transform:translateY(-4px); border-color:#e2b865; }
.arch-node b,.arch-flow-node b { display:block; color:#fff; font-size:12px; }
.arch-node small,.arch-flow-node small { display:block; color:#aebfca; font-size:9px; margin-top:5px; }
.arch-node-core { min-width:240px; border-color:rgba(226,184,101,.55); background:linear-gradient(135deg,rgba(142,103,42,.38),rgba(25,49,69,.92)); }
.arch-node-workloads { min-width:240px; background:linear-gradient(135deg,rgba(35,112,88,.4),rgba(25,49,69,.92)); }
.arch-node-source { min-width:240px; }
.arch-connector { color:#e2b865; font-size:19px; line-height:1.5; animation:connector-glow 2.4s ease-in-out infinite; }
@keyframes connector-glow { 0%,100% {opacity:.45;transform:translateY(0)} 50% {opacity:1;transform:translateY(3px)} }
.arch-node-row,.arch-signal-row { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.arch-node-row .arch-node { min-width:160px; }
.arch-flow { flex-direction:row; flex-wrap:wrap; gap:12px; align-content:center; }
.arch-flow-node { flex:1 1 105px; min-height:112px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(125,190,190,.32); border-radius:10px; background:linear-gradient(145deg,rgba(29,91,100,.48),rgba(25,49,69,.9)); transition:transform .25s ease,border-color .25s ease; }
.arch-flow-node i { display:grid; place-items:center; width:26px; height:26px; margin-bottom:10px; border-radius:50%; color:#17263a; background:#e2b865; font-size:9px; font-style:normal; font-weight:700; }
.arch-flow-arrow { color:#e2b865; font-size:20px; }
.architecture-flow .architecture-stack { justify-content:center; }
.architecture-flow .arch-flow-outcome { flex-basis:100%; margin-top:16px; padding:13px; border-top:1px solid rgba(255,255,255,.12); color:#d7c08e; text-align:center; font-size:10px; letter-spacing:.5px; }
.arch-signal-row .arch-node { min-width:105px; }
.architecture-footer { display:flex; align-items:center; gap:9px; padding:16px 12px 0; border-top:1px solid rgba(255,255,255,.1); color:#9eacb9; font-size:10px; }
.architecture-pulse { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:#72d6a5; box-shadow:0 0 0 5px rgba(114,214,165,.12); animation:status-pulse 2s infinite; }
@keyframes status-pulse { 50% {box-shadow:0 0 0 9px rgba(114,214,165,0)} }
.journey-mf { position:relative; padding:82px 0 90px; background:linear-gradient(180deg,#f8f5ed,#fff 78%); overflow:hidden; }
.journey-mf:after { content:"𐎠"; position:absolute; left:-25px; bottom:30px; color:rgba(179,137,59,.055); font-size:250px; pointer-events:none; }
.journey-intro { display:flex; align-items:center; justify-content:center; gap:16px; max-width:720px; margin:0 auto 42px; padding:18px 24px; border:1px solid rgba(181,137,57,.18); border-radius:12px; background:#fff; box-shadow:0 12px 35px rgba(25,38,54,.045); }
.journey-emblem { color:#bc8c37; font-size:30px; }
.journey-intro p { margin:0; color:#627083; font-size:12px; line-height:1.8; }
.journey-timeline { position:relative; max-width:900px; margin:0 auto; padding:4px 0; }
.journey-timeline:before { content:""; position:absolute; top:0; bottom:0; left:178px; width:1px; background:linear-gradient(180deg,transparent,#d9bd82 5%,#d9bd82 95%,transparent); }
.journey-item { position:relative; margin:0 0 14px; padding:0; border:1px solid #e9e5dc; border-radius:11px; background:rgba(255,255,255,.88); box-shadow:0 8px 25px rgba(25,38,54,.035); transition:box-shadow .3s ease,border-color .3s ease,transform .3s ease; }
.journey-item:hover,.journey-item[open] { border-color:rgba(191,145,60,.45); box-shadow:0 14px 35px rgba(25,38,54,.08); }
.journey-item summary { position:relative; display:grid; grid-template-columns:145px 18px minmax(0,1fr) 22px; align-items:center; gap:18px; min-height:84px; padding:16px 22px 16px 20px; list-style:none; cursor:pointer; }
.journey-item summary::-webkit-details-marker { display:none; }
.journey-year { color:#a77b2e; font-size:10px; font-weight:700; letter-spacing:1px; text-align:right; }
.journey-marker { position:relative; z-index:1; width:12px; height:12px; border:3px solid #fff; border-radius:50%; background:#c49542; box-shadow:0 0 0 2px #d8bd86; }
.journey-heading b { display:block; color:#1c2c40; font-size:14px; }
.journey-heading small { display:block; margin-top:5px; color:#788493; font-size:10px; line-height:1.7; }
.journey-toggle { display:grid; place-items:center; width:22px; height:22px; border:1px solid #e4d7bd; border-radius:50%; color:#a77b2e; font-size:16px; transition:transform .25s ease,background .25s ease; }
.journey-item[open] .journey-toggle { transform:rotate(45deg); color:#fff; background:#b98b3b; }
.journey-detail { margin:0 22px 20px 201px; padding:16px 18px; border-left:2px solid #d5b36e; background:#faf8f2; animation:architecture-enter .35s ease both; }
.journey-detail p { margin:0 0 13px; color:#667486; font-size:11px; line-height:1.9; }
.journey-note { margin:24px 0 0; color:#8b929b; text-align:center; font-size:10px; }
@media (max-width:767px) {
 .architecture-mf,.journey-mf { padding:62px 0; }
 .architecture-shell { padding:13px; }
 .architecture-tabs { gap:6px; }
 .architecture-tab { flex:1 1 auto; padding:9px 10px; font-size:9px; }
 .architecture-panel { grid-template-columns:1fr; gap:22px; padding:25px 4px 18px; }
 .architecture-diagram { min-height:300px; padding:15px 9px; }
 .arch-node-row .arch-node { min-width:125px; }
 .arch-flow { gap:8px; }
 .arch-flow-arrow { display:none; }
 .arch-flow-node { flex-basis:42%; }
 .journey-intro { align-items:flex-start; padding:15px; }
 .journey-timeline:before { left:8px; }
 .journey-item summary { grid-template-columns:14px minmax(0,1fr) 22px; gap:12px; min-height:76px; padding:14px 12px; }
 .journey-year { grid-column:2; grid-row:1; text-align:left; }
 .journey-marker { grid-column:1; grid-row:1 / span 2; }
 .journey-heading { grid-column:2; grid-row:2; }
 .journey-toggle { grid-column:3; grid-row:1 / span 2; }
 .journey-detail { margin:0 12px 14px 38px; padding:13px; }
}
@media (prefers-reduced-motion:reduce) {
 .architecture-mf *, .journey-mf * { animation:none!important; transition:none!important; }
}


/* Journey readability refinement */
.journey-intro p {
  color: #35465b;
  font-size: 14px;
  line-height: 1.9;
}
.journey-year {
  color: #815b18;
  font-size: 11px;
  font-weight: 800;
}
.journey-heading b {
  color: #14263d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}
.journey-heading small {
  color: #4c5d72;
  font-size: 12px;
  line-height: 1.8;
}
.journey-detail {
  background: #f7f4ec;
}
.journey-detail p {
  color: #34465b;
  font-size: 13px;
  line-height: 1.95;
}
.journey-detail .architecture-stack span {
  color: #694d1e;
  background: #fffaf0;
  border-color: #e6d4ad;
  font-size: 11px;
  font-weight: 600;
}
.journey-note {
  color: #526176;
  font-size: 12px;
}
@media (max-width: 767px) {
  .journey-heading b { font-size: 15px; }
  .journey-heading small { font-size: 11px; }
  .journey-detail p { font-size: 12px; }
}
