:root {
  --bg: #08101f;
  --bg-2: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --primary-2: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.10), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.9;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.bg-glow {
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  top: -80px;
  right: -120px;
  background: #38bdf8;
}

.bg-glow-2 {
  bottom: -120px;
  left: -120px;
  background: #22c55e;
}

.hero {
  padding: 20px 0 40px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(8, 16, 31, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  padding: 12px 18px;
  margin-top: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #03111f;
  font-weight: 900;
}

.brand-text {
  font-size: 1rem;
}

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

.nav-links a {
  color: var(--muted);
  transition: 0.25s ease;
}

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

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 99px;
}

.hero-content {
  padding: 56px 0 24px;
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.1;
}

.hero-text h2 {
  margin: 14px 0 0;
  color: #cbd5e1;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 600;
}

.eyebrow {
  color: var(--primary);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  font-weight: 700;
}

.lead {
  margin-top: 22px;
  color: #dbe4f0;
  font-size: 1.02rem;
  max-width: 62ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}

.hero-meta span {
  padding: 8px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #03111f;
}

.btn-secondary {
  border-color: var(--panel-border);
  background: rgba(255,255,255,0.03);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.stat {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-card {
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.65));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(34, 197, 94, 0.22));
  border: 1px solid rgba(255,255,255,0.08);
}

.profile-avatar span {
  font-size: 2rem;
  font-weight: 900;
}

.profile-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 18px;
}

.profile-card h3 {
  margin: 0 0 12px;
}

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

.profile-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.profile-card li:last-child {
  border-bottom: 0;
}

.profile-card span {
  color: var(--muted);
}

.resume-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #c8f1ff;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: rgba(255,255,255,0.02);
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading span {
  color: var(--primary);
  font-weight: 700;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.about-text,
.skill-list,
.service-card,
.media-card,
.contact-card,
.timeline-content {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.about-text {
  padding: 24px;
}

.skill-list {
  padding: 24px;
}

.skill-item + .skill-item {
  margin-top: 18px;
}

.skill-item span {
  display: block;
  margin-bottom: 10px;
  color: #dbe4f0;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.services-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card,
.media-card {
  padding: 22px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(56, 189, 248, 0.12);
  color: #8bdcff;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 8px rgba(56, 189, 248, 0.08);
}

.timeline-content {
  padding: 20px;
}

.media-card a {
  display: inline-block;
  margin-top: 14px;
  color: #8bdcff;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card {
  padding: 22px;
  display: block;
}

.contact-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.contact-card strong {
  font-size: 1.05rem;
}

.footer {
  padding: 24px 0 40px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 18px;
}

@media (max-width: 1024px) {
  .hero-content,
  .about-grid,
  .services-grid,
  .media-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    border-radius: 24px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(8, 16, 31, 0.96);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero-content,
  .about-grid,
  .services-grid,
  .media-grid,
  .contact-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 34px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .section {
    padding: 56px 0;
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}
