@font-face {
    font-family: IRANSansWeb;
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(fonts/IRANSansWeb.woff) format('woff');
}

@font-face {
    font-family: IRANSansWeb;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/IRANSansWeb_Bold.woff) format('woff');
}

.btn-cart, a, body, button, h1, h2, h3, h4, h5, input, label, li, p, select, span, td, textarea, time, ul {
    font-family: IRANSansWeb !important;
}
:root {
  --bg: #07111f;
  --bg2: #0d1b2a;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f3f7ff;
  --muted: #b6c2d9;
  --accent: #63e6be;
  --accent-2: #6ea8fe;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(110, 168, 254, 0.22), transparent 28%),
    radial-gradient(circle at bottom left, rgba(99, 230, 190, 0.18), transparent 24%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg2) 45%, #111827 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.9;
  overflow-x: hidden;
}

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

.blur {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.blur.one {
  top: 40px;
  right: -70px;
  background: #6ea8fe;
}

.blur.two {
  bottom: 30px;
  left: -80px;
  background: #63e6be;
}

header,
.hero,
.sections,
footer {
  position: relative;
  z-index: 2;
}

header {
  padding: 26px 0 10px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: 44px 0 22px;
}

.hero-card,
.about-card,
.socials-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: var(--radius-xl);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(99, 230, 190, 0.12);
  border: 1px solid rgba(99, 230, 190, 0.22);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.25;
  margin-bottom: 14px;
  font-weight: 800;
}

.hero-card p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #3dd5f3);
  color: #04131d;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(99, 230, 190, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-frame {
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sections {
  padding: 4px 0 40px;
}

.about-card,
.socials-card {
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.section-text {
  color: var(--muted);
  font-size: 1rem;
  text-align: justify;
}

.social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  transition: 0.25s ease;
  min-height: 140px;
  box-shadow: var(--shadow-soft);
}

.social-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.social-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.social-info span {
  color: var(--muted);
  font-size: 0.92rem;
  direction: ltr;
  display: inline-block;
  word-break: break-word;
}

.social-item a {
  color: #04131d;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
  align-self: stretch;
  text-align: center;
}

.social-item.resume { border-top: 3px solid #63e6be; }
.social-item.github { border-top: 3px solid #8b949e; }
.social-item.linkedin { border-top: 3px solid #0a66c2; }
.social-item.instagram { border-top: 3px solid #e1306c; }
.social-item.telegram { border-top: 3px solid #229ed9; }
.social-item.phone,
.social-item.support { border-top: 3px solid #f59e0b; }
.social-item.website { border-top: 3px solid #8b5cf6; }
.social-item.youtube { border-top: 3px solid #ff0000; }
.social-item.aparat { border-top: 3px solid #f97316; }

footer {
  padding: 0 0 32px;
}

.footer-box {
  text-align: center;
  color: var(--muted);
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}

.accent {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .social-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    border-radius: 26px;
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.75;
  }

  .container {
    width: min(100%, calc(100% - 20px));
  }

  header {
    padding-top: 16px;
  }

  .nav {
    border-radius: 22px;
    gap: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 10px 12px;
  }

  .hero-card,
  .about-card,
  .socials-card {
    padding: 20px;
    border-radius: 22px;
  }

  .badge {
    font-size: 0.82rem;
    padding: 7px 12px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .hero-card p,
  .section-text {
    font-size: 0.95rem;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .social-list {
    grid-template-columns: 1fr;
  }

  .social-item {
    min-height: unset;
  }

  .social-item a {
    width: 100%;
    text-align: center;
  }

  .blur {
    width: 180px;
    height: 180px;
    filter: blur(70px);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .hero-card,
  .about-card,
  .socials-card {
    padding: 16px;
  }
}


.lang-switch {
  color: var(--text) !important;
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.16), rgba(99, 230, 190, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.lang-switch:hover {
  background: linear-gradient(135deg, rgba(110, 168, 254, 0.26), rgba(99, 230, 190, 0.26));
}

.lang-en body,
body.lang-en {
  direction: ltr;
}

body.lang-en .brand,
body.lang-en .hero-card p,
body.lang-en .section-text,
body.lang-en .social-info,
body.lang-en .footer-box {
  text-align: left;
}

body.lang-en .social-info span {
  direction: ltr;
}

body.lang-en .hero-card p,
body.lang-en .section-text {
  max-width: unset;
}
