:root {
  --bg-deep: #070d1d;
  --bg-mid: #0f1d34;
  --bg-glow: #111f3b;
  --glass: rgba(12, 20, 36, 0.55);
  --glass-strong: rgba(13, 22, 38, 0.8);
  --glass-light: rgba(134, 161, 255, 0.14);
  --line: rgba(120, 154, 255, 0.28);
  --primary: #7ef7e5;
  --primary-strong: #52d9ff;
  --secondary: #a6d7ff;
  --highlight: #76f7c5;
  --text: #edf6ff;
  --muted: #bfd6f8;
  --shadow: rgba(8, 12, 22, 0.72);
  --card-shadow: 0 22px 60px rgba(6, 10, 20, 0.6);
  --violet: #7b7ef8;
  --green-glass: #3ee0b4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tahoma", "Segoe UI", "Vazirmatn", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(123, 126, 248, 0.30), transparent 24%),
    radial-gradient(circle at 15% 20%, rgba(62, 224, 180, 0.15), transparent 20%),
    linear-gradient(135deg, #040b16 0%, #0b1328 20%, #111b38 48%, #0b142b 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 22px 40px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.24;
  pointer-events: none;
}

.ambient-one {
  width: 440px;
  height: 440px;
  background: rgba(87, 152, 255, 0.24);
  top: 20px;
  right: -50px;
}

.ambient-two {
  width: 340px;
  height: 340px;
  background: rgba(116, 247, 197, 0.18);
  bottom: 80px;
  left: -40px;
}

.ambient-three {
  width: 580px;
  height: 580px;
  background: rgba(123, 126, 248, 0.18);
  bottom: -140px;
  left: 32%;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(13, 21, 38, 0.82), rgba(22, 31, 52, 0.58), rgba(15, 27, 38, 0.66));
  border: 1px solid rgba(142, 187, 255, 0.22);
  border-radius: 36px;
  box-shadow: inset 0 1px 0 rgba(214, 229, 255, 0.12), 0 24px 54px rgba(5, 10, 20, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-radius: 40px;
  margin-bottom: 28px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-inline-start: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(123, 126, 248, 0.24), rgba(118, 247, 197, 0.18));
  border: 1px solid rgba(126, 199, 255, 0.5);
  box-shadow: 0 0 18px rgba(82, 217, 255, 0.3);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  text-align: right;
}

.brand-text strong {
  font-size: 1.08rem;
  font-weight: 800;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(123, 126, 248, 0.12);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(110, 250, 219, 0.06);
  padding: 12px 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
}

.section-space {
  margin-bottom: 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.info-card,
.stats-card,
.skill-card,
.project-card,
.story-card,
.contact-panel,
.footer {
  border-radius: 38px;
}

.hero-copy {
  padding: 42px 36px;
}

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(123, 126, 248, 0.12);
  border: 1px solid rgba(141, 204, 255, 0.22);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.4rem, 3vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.headline {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 680px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
  color: var(--secondary);
  font-size: 0.85rem;
}

.hero-meta div {
  padding: 9px 12px;
  background: rgba(131, 255, 235, 0.06);
  border: 1px solid rgba(99, 236, 210, 0.15);
  border-radius: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(82, 217, 255, 0.20), rgba(123, 126, 248, 0.52), rgba(62, 224, 180, 0.28));
  border: 1px solid rgba(136, 200, 255, 0.5);
  box-shadow: 0 14px 30px rgba(72, 125, 255, 0.22);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(141, 222, 217, 0.2);
}

.quick-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
}

.quick-facts li {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(118, 255, 234, 0.06);
  border: 1px solid rgba(110, 247, 222, 0.15);
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.image-frame {
  width: min(100%, 540px);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(125, 251, 230, 0.25);
  box-shadow: 0 30px 60px rgba(1, 18, 18, 0.55);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  left: 24px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(9, 16, 31, 0.6);
  border: 1px solid rgba(122, 175, 255, 0.22);
  box-shadow: 0 20px 35px rgba(8, 11, 24, 0.45);
}

.floating-card .label {
  font-size: 0.7rem;
  color: var(--muted);
}

.floating-card strong {
  font-size: 1.4rem;
}

.floating-card small {
  color: var(--secondary);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 26px;
}

.info-card,
.stats-card,
.skill-card,
.story-card,
.contact-panel {
  padding: 28px 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
}

.info-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 2;
  font-size: 1rem;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 18px;
  align-self: stretch;
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 130px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(118, 255, 234, 0.04);
  border: 1px solid rgba(130, 249, 236, 0.14);
}

.stat-item strong {
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  color: var(--primary);
}

.stat-item span {
  color: var(--muted);
  line-height: 1.7;
}

.centered {
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.skill-card h3 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.skill-card li::before {
  content: "•";
  display: inline-block;
  margin-left: 8px;
  color: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(140, 186, 255, 0.18);
  border-radius: 34px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 247, 197, 0.35);
}

.project-visual {
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-bottom: 1px solid rgba(126, 255, 231, 0.15);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-visual img {
  transform: scale(1.04);
}

.project-content {
  padding: 20px 18px 22px;
}

.project-content h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.project-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tags span,
.music-tools span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(110, 250, 219, 0.05);
  border: 1px solid rgba(136, 236, 220, 0.18);
  color: var(--secondary);
  font-size: 0.74rem;
}

.split-story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
}

.edu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.edu-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(118, 255, 234, 0.04);
  border: 1px solid rgba(132, 240, 227, 0.12);
}

.edu-list strong {
  font-size: 1.05rem;
}

.edu-list span {
  color: var(--muted);
}

.musical-card p {
  color: var(--muted);
  line-height: 1.9;
}

.music-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 30px 26px;
}

.contact-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.detail-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 100px;
  padding: 18px 18px;
  border-radius: 18px;
  background: rgba(108, 247, 222, 0.04);
  border: 1px solid rgba(130, 249, 236, 0.13);
}

.detail-box span {
  color: var(--muted);
  font-size: 0.8rem;
}

.detail-box strong {
  font-size: 1.05rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  color: var(--muted);
  margin-top: 22px;
}

.footer p {
  margin: 0;
  color: var(--secondary);
}

@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel,
  .content-grid,
  .split-story,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 14px 32px;
  }

  .topbar {
    position: sticky;
    gap: 12px;
    padding: 14px 16px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    background: rgba(6, 23, 21, 0.86);
    border: 1px solid rgba(117, 255, 233, 0.14);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-copy,
  .info-card,
  .stats-card,
  .skill-card,
  .story-card,
  .contact-panel,
  .footer {
    border-radius: 22px;
  }

  .hero-copy {
    padding: 24px 18px;
  }

  .headline {
    font-size: 1rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-facts {
    gap: 8px;
  }

  .skills-grid,
  .project-grid,
  .stats-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    height: 200px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }
}
