@font-face {
  font-family: "Shabnam";
  src: url("https://unpkg.com/shabnam-font@5.0.0/dist/Shabnam-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("https://unpkg.com/shabnam-font@5.0.0/dist/Shabnam.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("https://unpkg.com/shabnam-font@5.0.0/dist/Shabnam-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("https://unpkg.com/shabnam-font@5.0.0/dist/Shabnam-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("https://unpkg.com/shabnam-font@5.0.0/dist/Shabnam-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("https://unpkg.com/shabnam-font@5.0.0/dist/Shabnam-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("https://unpkg.com/shabnam-font@5.0.0/dist/Shabnam-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --radius: 1rem;
  --background: oklch(0.145 0.008 260);
  --foreground: oklch(0.97 0.005 260);
  --surface: oklch(0.185 0.01 260);
  --surface-elevated: oklch(0.22 0.012 260);
  --card: oklch(0.185 0.01 260);
  --primary: oklch(0.97 0.005 260);
  --primary-foreground: oklch(0.145 0.008 260);
  --muted: oklch(0.24 0.012 260);
  --muted-foreground: oklch(0.7 0.015 260);
  --accent: oklch(0.28 0.02 260);
  --brand: oklch(0.82 0.13 65);
  --brand-foreground: oklch(0.18 0.02 60);
  --border: oklch(1 0 0 / 8%);
  --shadow-elegant: 0 30px 60px -30px oklch(0 0 0 / 0.6);
  --shadow-glow: 0 0 60px -12px oklch(0.82 0.13 65 / 0.35);
  --gradient-brand: linear-gradient(135deg, oklch(0.85 0.12 60), oklch(0.75 0.14 30));
  --gradient-radial:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.82 0.13 65 / 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, oklch(0.55 0.15 260 / 0.15), transparent 60%);
}

:root.light {
  --background: oklch(0.985 0.003 90);
  --foreground: oklch(0.2 0.01 260);
  --surface: oklch(0.97 0.005 90);
  --surface-elevated: oklch(0.99 0.003 90);
  --card: oklch(1 0 0);
  --primary: oklch(0.22 0.01 260);
  --primary-foreground: oklch(0.98 0.003 90);
  --muted: oklch(0.94 0.006 90);
  --muted-foreground: oklch(0.45 0.015 260);
  --accent: oklch(0.92 0.01 90);
  --brand: oklch(0.68 0.15 45);
  --brand-foreground: oklch(0.99 0.003 90);
  --border: oklch(0.2 0.01 260 / 10%);
  --shadow-elegant: 0 30px 60px -30px oklch(0.2 0.02 260 / 0.25);
  --shadow-glow: 0 0 60px -12px oklch(0.68 0.15 45 / 0.35);
  --gradient-radial:
    radial-gradient(1200px 600px at 80% -10%, oklch(0.82 0.13 65 / 0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, oklch(0.7 0.12 260 / 0.15), transparent 60%);
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Shabnam", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  background-image: var(--gradient-radial);
  background-attachment: fixed;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--brand-foreground); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: oklch(1 0 0 / 0.08); border-radius: 999px; }
:root.light ::-webkit-scrollbar-thumb { background: oklch(0.2 0.01 260 / 0.15); }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Utilities */
.glass {
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}
.card-hover { transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .4s, box-shadow .4s; }
.card-hover:hover { transform: translateY(-4px); border-color: oklch(1 0 0 / .14); box-shadow: var(--shadow-elegant); }
:root.light .card-hover:hover { border-color: oklch(0.2 0.01 260 / .2); }

.text-gradient { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted-foreground); }
.muted.small { font-size: .875rem; margin-top: .5rem; }
.muted.xs { font-size: .75rem; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.numeric { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.bold { font-weight: 700; }
.pb { padding-bottom: 6rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 70%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand-badge {
  display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: .75rem;
  background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 60%, transparent));
  color: var(--brand-foreground); font-weight: 900;
}
.brand-name { font-weight: 700; letter-spacing: -.01em; }
.nav-links { display: none; gap: .25rem; }
.nav-links a { padding: .375rem .75rem; border-radius: 999px; font-size: .875rem; color: var(--muted-foreground); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--accent); color: var(--foreground); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: grid; place-items: center; height: 2.25rem; width: 2.25rem; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 60%, transparent);
  transition: background .2s;
}
.icon-btn:hover { background: var(--accent); }
.icon-btn svg { width: 1rem; height: 1rem; }
.icon-btn .i-sun { display: block; }
.icon-btn .i-moon { display: none; }
:root.light .icon-btn .i-sun { display: none; }
:root.light .icon-btn .i-moon { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1rem; border-radius: 999px; font-size: .875rem; font-weight: 600; transition: transform .2s, background .2s; }
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { transform: scale(1.02); }
.btn-ghost { border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 60%, transparent); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--accent); }
.btn-cta { display: none; padding: .5rem 1rem; }
.glow { box-shadow: var(--shadow-glow); padding: .75rem 1.5rem; }

/* Hero */
.hero { position: relative; padding: 4rem 0 6rem; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}
:root.light .grid-bg {
  background-image:
    linear-gradient(to right, oklch(0.2 0.01 260 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.2 0.01 260 / 0.05) 1px, transparent 1px);
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }

.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--surface) 60%, transparent);
  padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; color: var(--muted-foreground);
  backdrop-filter: blur(10px);
}
.dot { position: relative; display: inline-flex; height: .375rem; width: .375rem; }
.dot > span:first-child { position: absolute; inset: 0; border-radius: 999px; background: var(--brand); opacity: .75; animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }
.dot > span:last-child { position: relative; height: .375rem; width: .375rem; border-radius: 999px; background: var(--brand); }
@keyframes ping { 75%,100% { transform: scale(2.4); opacity: 0; } }

.h1 { margin-top: 1.5rem; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.h1 > span { display: block; }

.typed-row { margin-top: 1.25rem; display: flex; align-items: center; gap: .5rem; min-height: 2rem; font-size: 1.125rem; color: var(--muted-foreground); }
.brand-icon { width: 1rem; height: 1rem; color: var(--brand); }
.caret { color: var(--brand); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lead { margin-top: 1.5rem; max-width: 36rem; line-height: 2; color: var(--muted-foreground); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.stats { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.stat-value { font-size: 1.5rem; font-weight: 900; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }

/* Avatar */
.avatar-wrap { position: relative; margin: 0 auto; }
.avatar-glow { position: absolute; inset: -1.5rem; border-radius: 50%; background: linear-gradient(to top left, color-mix(in oklab, var(--brand) 40%, transparent), transparent 70%); filter: blur(40px); }
.float { position: relative; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.avatar-frame { padding: .75rem; border-radius: 2rem; }
.avatar-img { height: 16rem; width: 16rem; border-radius: 1.6rem; overflow: hidden; }
.avatar-img img { height: 100%; width: 100%; object-fit: cover; }
.badge-bottom, .badge-top { position: absolute; padding: .5rem 1rem; border-radius: 1rem; font-size: .75rem; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }
.badge-bottom { bottom: -1rem; right: -1rem; }
.badge-top { top: -1rem; left: -1rem; }

/* Section headers */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; direction: rtl; font-size: .75rem; font-weight: 700; letter-spacing: .05em; color: var(--brand); }
.section-number { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.section-header h2 { margin-top: .5rem; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; letter-spacing: -.01em; }
.hr-line { display: none; height: 1px; flex: 1; background: linear-gradient(to left, var(--border), transparent); }

/* About */
.about-grid { display: grid; gap: 1.5rem; }
.about-main, .about-side { padding: 2rem; }
.p-lg { font-size: 1.125rem; line-height: 2.25rem; }
.about-main p:not(:first-child) { margin-top: 1rem; line-height: 2; }
.side-title { font-size: .875rem; font-weight: 700; color: var(--muted-foreground); }
.side-title.big { color: var(--foreground); font-size: 1.125rem; }
.check-list { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; }
.check-list li { display: flex; align-items: flex-start; gap: .75rem; }
.check-list .check { margin-top: .125rem; display: grid; place-items: center; height: 1.25rem; width: 1.25rem; flex: none; border-radius: 999px; background: color-mix(in oklab, var(--brand) 15%, transparent); color: var(--brand); }
.check-icon { width: .8rem; height: .8rem; }

/* Services */
.services-grid { display: grid; gap: 1rem; }
.service-card { position: relative; overflow: hidden; padding: 1.5rem; }
.service-icon { display: inline-flex; height: 2.75rem; width: 2.75rem; align-items: center; justify-content: center; border-radius: 1rem; background: linear-gradient(135deg, var(--brand), color-mix(in oklab, var(--brand) 50%, transparent)); color: var(--brand-foreground); }
.service-icon svg { width: 1.25rem; height: 1.25rem; }
.service-head { margin-top: 1rem; display: flex; align-items: baseline; justify-content: space-between; }
.service-title { font-size: 1.125rem; font-weight: 700; }
.service-num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; font-size: .75rem; color: var(--muted-foreground); }
.service-desc { margin-top: .5rem; font-size: .875rem; line-height: 1.75rem; color: var(--muted-foreground); }

/* Skills */
.skills-grid { display: grid; gap: 1rem; }
.skill-card { padding: 1.25rem; }
.skill-head { display: flex; align-items: center; justify-content: space-between; }
.skill-name { font-weight: 600; }
.skill-pct { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; font-size: .875rem; color: var(--muted-foreground); }
.skill-bar { margin-top: .75rem; height: .375rem; overflow: hidden; border-radius: 999px; background: var(--accent); }
.skill-fill { height: 100%; border-radius: 999px; background: linear-gradient(to left, var(--brand), color-mix(in oklab, var(--brand) 60%, transparent)); width: 0; transition: width 1.2s ease-out; }

/* Timeline */
.timeline { position: relative; border-right: 1px dashed var(--border); padding-right: 1.5rem; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; right: calc(-1.5rem - 5px); top: .5rem; height: .625rem; width: .625rem; border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px var(--background); }
.timeline-card { padding: 1.5rem; }
.timeline-year { display: inline-block; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; font-size: .75rem; font-weight: 700; color: var(--brand); }
.timeline-title { margin-top: .25rem; font-size: 1.125rem; font-weight: 700; }
.timeline-title .company { color: var(--muted-foreground); font-weight: 500; }
.timeline-desc { margin-top: .5rem; font-size: .875rem; line-height: 1.75rem; color: var(--muted-foreground); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { overflow: hidden; }
.faq-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; text-align: right; font-weight: 600; }
.faq-icon { display: grid; place-items: center; height: 2rem; width: 2rem; flex: none; border-radius: 999px; background: var(--accent); color: var(--brand); font-size: 1rem; }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease-out; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { padding: 0 1.25rem 1.25rem; font-size: .875rem; line-height: 1.75rem; color: var(--muted-foreground); }

/* Contact */
.contact-grid { display: grid; gap: 1.5rem; }
.contact-info, .contact-form { padding: 2rem; }
.contact-rows { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.contact-row { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--border); border-radius: 1rem; background: color-mix(in oklab, var(--background) 40%, transparent); transition: border-color .2s; }
.contact-row:hover { border-color: color-mix(in oklab, var(--brand) 50%, transparent); }
.contact-row .ci { display: grid; place-items: center; height: 2.5rem; width: 2.5rem; flex: none; border-radius: .75rem; background: var(--accent); color: var(--brand); }
.contact-row .ci svg { width: 1.1rem; height: 1.1rem; }
.contact-row > div { min-width: 0; flex: 1; }
.contact-row .bold { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.contact-value { display: block; max-width: 100%; text-align: left; font-variant-numeric: tabular-nums; }

.contact-form { display: flex; flex-direction: column; gap: .75rem; }
.two-col { display: grid; gap: .75rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 1rem; border-radius: 1rem;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--background) 60%, transparent);
  font-size: .875rem; outline: none; transition: border-color .2s;
}
.contact-form textarea { resize: none; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-foreground); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

/* Footer */
.footer { margin-top: 2rem; border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; font-size: .875rem; color: var(--muted-foreground); }

/* Animation */
.rise { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (min-width: 640px) {
  .btn-cta { display: inline-flex; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hr-line { display: block; }
  .footer-inner { flex-direction: row; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .hero { padding: 6rem 0 8rem; }
  .hero-grid { grid-template-columns: 1fr auto; }
  .h1 { font-size: 3.75rem; }
  .avatar-img { height: 20rem; width: 20rem; }
  .about-grid { grid-template-columns: 3fr 2fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-right: 2rem; }
  .timeline-dot { right: calc(-2rem - 5px); }
  .contact-grid { grid-template-columns: 2fr 3fr; }
  .stat-value { font-size: 1.875rem; }
  .stat-label { font-size: .875rem; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
