:root {
  --bg-dark: #0f101a;
  --bg-card: #161828;
  --bg-card-alt: #1f2135;
  --text-primary: #f7f8fc;
  --text-muted: #a0a5c1;
  --accent: #5f6bff;
  --accent-2: #ff7ab6;
  --border: rgba(255, 255, 255, 0.08);
  --gradient: linear-gradient(135deg, #5f6bff, #ff7ab6);
  --transition: all 0.3s ease;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "IRANSans", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
}

img {
  max-width: 100%;
  display: block;
}

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

.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  position: relative;
  padding: 48px 0 120px;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at top right,
      rgba(95, 107, 255, 0.25),
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(255, 122, 182, 0.25),
      transparent 50%
    );
  z-index: -1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 28px;
}

.navbar__brand {
  font-weight: 700;
  font-size: 1.3rem;
}

.navbar__brand span {
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
}

.navbar__links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.navbar__links a:hover {
  color: var(--accent);
}

.hero__content {
  max-width: 640px;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__content h1 {
  font-size: 2.8rem;
  margin: 0 0 16px;
}

.hero__content p {
  color: var(--text-muted);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin: 32px 0;
}

.btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
}

.btn--ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.hero__stats strong {
  display: block;
  font-size: 1.8rem;
}

.section {
  margin-top: 80px;
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__header h2 {
  margin-bottom: 12px;
}

.section__header p {
  color: var(--text-muted);
}

.card {
  border-radius: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.about__meta {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 8px;
}

.about__meta span {
  color: var(--text-muted);
  margin-left: 4px;
}

.progress {
  margin-bottom: 18px;
}

.progress span {
  display: block;
}

.progress div {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 8px;
  position: relative;
}

.progress div span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient);
  transform-origin: right center;
  transform: scaleX(0);
  transition: width 1s ease;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.tag-list li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.cards {
  display: grid;
  gap: 24px;
}

.cards--grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
}

.icon--gradient {
  background: rgba(95, 107, 255, 0.2);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.work-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.work-card:hover {
  transform: translateY(-6px);
}

.work-card__image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.img--1 {
  background-image: linear-gradient(120deg, #fda085, #f6d365);
}

.img--2 {
  background-image: linear-gradient(120deg, #84fab0, #8fd3f4);
}

.img--3 {
  background-image: linear-gradient(120deg, #fccb90, #d57eeb);
}

.img--4 {
  background-image: linear-gradient(120deg, #fdd819, #e80505);
}

.work-card__body {
  padding: 24px;
}

.resume__timeline {
  border-left: 2px solid var(--border);
  margin-left: 12px;
  padding-left: 24px;
  display: grid;
  gap: 32px;
}

.timeline-block {
  position: relative;
}

.timeline-block::before {
  content: "";
  position: absolute;
  right: calc(100% + 19px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 6px rgba(95, 107, 255, 0.2);
}

.stats .cards--stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}

.cards--stats span {
  font-size: 2rem;
  display: block;
}

.pricing .cards--pricing {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cards--pricing .card {
  position: relative;
}

.cards--pricing .label {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.cards--pricing ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
}

.card--highlight {
  background: var(--bg-card-alt);
  border-color: rgba(255, 122, 182, 0.4);
}

.cards--blog {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.contact__form {
  display: grid;
  gap: 16px;
}

.contact__form label {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}

.contact__form input,
.contact__form textarea {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
}

.contact__form .honeypot {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact__info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.form-status--success {
  color: #37f499;
}

.form-status--error {
  color: #ff8a9b;
}

.contact__info span {
  color: var(--text-muted);
  margin-left: 6px;
}

.footer {
  text-align: center;
  padding: 48px 0;
  color: var(--text-muted);
}

.footer a {
  margin: 0 8px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    position: absolute;
    top: 70px;
    right: 24px;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 16px;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: var(--transition);
  }

  .navbar__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero__content h1 {
    font-size: 2.2rem;
  }

  .hero__stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content h1,
  .section__header h2,
  .card {
    animation: fade-in-up 0.8s ease both;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.d-none{
  display: none;
}