/* ═══ Fonts ═══ */
@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-Regular.woff2') format('woff2'),
       url('../assets/fonts/IRANYekanXFaNum-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-DemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'IRANYekanXFaNum';
  src: url('../assets/fonts/woff2/IRANYekanXFaNum-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

/* ═══ Vars ═══ */
:root {
  --accent: #00d4ff;
  --accent-2: #7c5cfc;
  --accent-glow: rgba(0, 212, 255, 0.35);
  --bg-deep: #060a12;
  --card: #141820;
  --card-2: #1a2030;
  --sidebar: #111620;
  --text: #e8edf5;
  --muted: #8b95a8;
  --border: rgba(255,255,255,0.08);
  --radius: 28px;
  --sidebar-w: 300px;
  --font: 'IRANYekanXFaNum', Tahoma, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ Reset + No Scroll ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; color: var(--text); }
p { color: var(--muted); margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

/* ═══ Animated BG ═══ */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #041220 0%, #0a1628 40%, #12082a 100%);
}
.bg__orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); animation: orbFloat 10s ease-in-out infinite;
}
.bg__orb--1 { width: 45vw; height: 45vw; top: -15%; right: -10%; background: rgba(0,212,255,0.18); }
.bg__orb--2 { width: 35vw; height: 35vw; bottom: -10%; left: -5%; background: rgba(124,92,252,0.15); animation-delay: -5s; }
.bg__orb--3 { width: 25vw; height: 25vw; top: 40%; left: 30%; background: rgba(0,180,255,0.08); animation-delay: -2s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-15px) scale(1.04); }
}

/* ═══ App Shell ═══ */
.app {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  padding: 5vh 130px 5vh 100px;
  display: flex; align-items: stretch;
  gap: 20px;
}

/* ═══ Main Card ═══ */
.card {
  flex: 1;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 80px -10px rgba(0,0,0,0.5), 0 0 0 1px var(--border);
  overflow: hidden;
  position: relative;
  min-width: 0;
  margin-left: 12px;
}

/* ═══ Panels ═══ */
.panels { position: relative; width: 100%; height: 100%; }
.panel {
  position: absolute; inset: 0;
  padding: 48px 52px;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0; visibility: hidden;
  transform: translateX(40px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 6px; }
.panel--active {
  opacity: 1; visibility: visible; transform: translateX(0); z-index: 2;
}
.panel--exit {
  opacity: 0; transform: translateX(-40px); z-index: 1;
}

.panel__center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; min-height: 100%;
  padding: 20px 0;
}

/* عکس پروفایل — فقط موبایل، بالای صفحه خانه */
.hero-photo {
  display: none;
  width: 220px; height: 220px;
  margin-bottom: 16px;
  position: relative;
}
.hero-photo::after {
  content: '';
  position: absolute; inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  z-index: 0; opacity: 0.65;
}
.hero-photo img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.panel__eyebrow {
  font-size: 0.85rem; font-weight: 500; color: var(--accent);
  padding: 5px 16px; border: 1px solid rgba(0,212,255,0.25);
  border-radius: 999px; margin-bottom: 20px;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { border-color: rgba(0,212,255,0.2); }
  50% { border-color: rgba(0,212,255,0.5); box-shadow: 0 0 20px var(--accent-glow); }
}
.panel__hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text) {
  .panel__hero-title { -webkit-text-fill-color: var(--text); color: var(--text); }
}
.rotator {
  height: 2em; margin-bottom: 16px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--muted); font-weight: 500;
}
.rotator__text {
  display: inline-block;
  animation: fadeUp 0.5s var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel__hero-desc { font-size: 0.95rem; margin-bottom: 32px; }

.stats {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.stat {
  padding: 16px 24px; border-radius: 16px;
  background: rgba(0,212,255,0.06); border: 1px solid var(--border);
  min-width: 110px; transition: transform 0.3s, border-color 0.3s;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.3); }
.stat strong { display: block; font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--accent); font-weight: 700; }
.stat span { font-size: 0.78rem; color: var(--muted); }

/* Panel Head */
.panel__head { margin-bottom: 28px; position: relative; padding-bottom: 12px; }
.panel__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700;
}
.panel__head h2 span { color: var(--accent); }
.panel__lead {
  font-size: 0.92rem; color: var(--muted); margin-top: 10px;
  max-width: 560px; line-height: 1.8;
}
.panel__head::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 50px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.sub-title {
  font-size: 1rem; font-weight: 600; margin: 28px 0 14px;
  color: var(--text);
}

/* Grid */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}

.info-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.info-list__k { color: var(--accent); font-weight: 600; white-space: nowrap; }
.info-list__v { color: var(--muted); text-align: left; }

.skill-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.skill-box {
  padding: 18px; border-radius: 14px;
  background: var(--card-2); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.skill-box:hover { border-color: rgba(0,212,255,0.25); transform: translateY(-3px); }
.prose p { margin-bottom: 14px; line-height: 1.85; }

.skill-box h4 { font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.skill-box__desc { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 500;
  background: rgba(0,212,255,0.1); color: var(--accent);
  border: 1px solid rgba(0,212,255,0.15);
}

/* Timeline — سوابق کاری */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}
.tl-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding-bottom: 18px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-rail {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  position: relative;
}
.tl-rail::before {
  content: '';
  position: absolute;
  top: 28px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), rgba(124, 92, 252, 0.2));
  border-radius: 2px;
}
.tl-item:last-child .tl-rail::before { display: none; }

.tl-dot {
  width: 14px;
  height: 14px;
  margin-top: 22px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  flex-shrink: 0;
  z-index: 1;
  transition: transform 0.3s;
}
.tl-item--current .tl-dot {
  background: var(--accent);
  width: 16px;
  height: 16px;
  margin-top: 21px;
  box-shadow: 0 0 20px var(--accent-glow);
}
.tl-item:hover .tl-dot { transform: scale(1.15); }

.tl-card {
  flex: 1;
  width: 100%;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--card-2);
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.tl-card:hover {
  transform: translateX(-4px);
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.tl-item--current .tl-card {
  border-color: rgba(0, 212, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(124, 92, 252, 0.04));
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.08);
}

.tl-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.tl-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.tl-card__icon--amin { background: linear-gradient(135deg, #00d4ff, #0891b2); }
.tl-card__icon--mahoor { background: linear-gradient(135deg, #7c5cfc, #5b21b6); }
.tl-card__icon--jihad { background: linear-gradient(135deg, #4ade80, #16a34a); }

.tl-card__meta { flex: 1; min-width: 0; }
.tl-card__meta h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.tl-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.tl-badge--live {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.25);
}
.tl-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
  padding-right: 2px;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.proj {
  position: relative;
  border-radius: 20px;
  background: var(--card-2);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 168px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.proj::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
  z-index: 1;
}
.proj:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

/* آیکون نئونی محو — پشت کارت */
.proj__ghost {
  position: absolute;
  left: -18px;
  bottom: -28px;
  width: 155px;
  height: 155px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s, transform 0.45s var(--ease), filter 0.45s;
}
.proj__ghost svg {
  width: 100%;
  height: 100%;
  display: block;
}
.proj:hover .proj__ghost {
  opacity: 0.28;
  transform: scale(1.06) rotate(-6deg);
}

.proj--melk .proj__ghost {
  color: #fbbf24;
  filter: drop-shadow(0 0 28px rgba(251, 191, 36, 0.55)) drop-shadow(0 0 60px rgba(251, 191, 36, 0.2));
}
.proj--melk:hover { border-color: rgba(251, 191, 36, 0.35); }

.proj--baygush .proj__ghost {
  color: #4ade80;
  filter: drop-shadow(0 0 28px rgba(74, 222, 128, 0.55)) drop-shadow(0 0 60px rgba(74, 222, 128, 0.2));
}
.proj--baygush:hover { border-color: rgba(74, 222, 128, 0.35); }

.proj--ajil .proj__ghost {
  color: #fb923c;
  filter: drop-shadow(0 0 28px rgba(251, 146, 60, 0.55)) drop-shadow(0 0 60px rgba(251, 146, 60, 0.2));
}
.proj--ajil:hover { border-color: rgba(251, 146, 60, 0.35); }

.proj--it3l .proj__ghost {
  color: #60a5fa;
  filter: drop-shadow(0 0 28px rgba(96, 165, 250, 0.55)) drop-shadow(0 0 60px rgba(96, 165, 250, 0.2));
}
.proj--it3l:hover { border-color: rgba(96, 165, 250, 0.35); }

.proj--tanish .proj__ghost {
  color: #2dd4bf;
  filter: drop-shadow(0 0 28px rgba(45, 212, 191, 0.55)) drop-shadow(0 0 60px rgba(45, 212, 191, 0.2));
}
.proj--tanish:hover { border-color: rgba(45, 212, 191, 0.35); }

.proj--tabriz .proj__ghost {
  color: #c084fc;
  filter: drop-shadow(0 0 28px rgba(192, 132, 252, 0.55)) drop-shadow(0 0 60px rgba(192, 132, 252, 0.2));
}
.proj--tabriz:hover { border-color: rgba(192, 132, 252, 0.35); }

.proj--hamcheen .proj__ghost {
  width: 170px;
  height: 170px;
  left: -24px;
  bottom: -32px;
  opacity: 0.18;
  color: #00d4ff;
  filter: drop-shadow(0 0 32px rgba(0, 212, 255, 0.65)) drop-shadow(0 0 70px rgba(124, 92, 252, 0.35));
}
.proj--hamcheen:hover .proj__ghost { opacity: 0.32; }

.proj--feat {
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.04) 0%, var(--card-2) 45%, rgba(124, 92, 252, 0.06) 100%);
}
.proj--feat:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.12), 0 20px 48px rgba(0, 0, 0, 0.3);
}

.proj__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 20px;
  min-height: 168px;
}
.proj h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  padding-left: 48px;
}
.proj p {
  font-size: 0.86rem;
  line-height: 1.75;
  flex: 1;
  margin: 0;
  color: var(--muted);
}
.proj__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.proj__tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}
.proj__tag--accent {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.25);
}

/* Music */
.music-box {
  display: flex; align-items: center; gap: 32px;
  padding: 32px; border-radius: 18px;
  background: var(--card-2); border: 1px solid var(--border);
  max-width: 640px;
}
.music-box__waves {
  display: flex; align-items: flex-end; gap: 3px; height: 48px; flex-shrink: 0;
}
.music-box__waves span {
  width: 4px; border-radius: 4px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  animation: wave 1.2s ease-in-out infinite;
}
.music-box__waves span:nth-child(1) { height: 30%; animation-delay: 0s; }
.music-box__waves span:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.music-box__waves span:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.music-box__waves span:nth-child(4) { height: 90%; animation-delay: 0.3s; }
.music-box__waves span:nth-child(5) { height: 55%; animation-delay: 0.4s; }
.music-box__waves span:nth-child(6) { height: 75%; animation-delay: 0.5s; }
.music-box__waves span:nth-child(7) { height: 35%; animation-delay: 0.6s; }
.music-box__waves span:nth-child(8) { height: 85%; animation-delay: 0.7s; }
.music-box__waves span:nth-child(9) { height: 50%; animation-delay: 0.8s; }
.music-box__waves span:nth-child(10) { height: 65%; animation-delay: 0.9s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}
.music-box__note { color: var(--accent) !important; font-size: 0.85rem; font-style: italic; margin-top: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 24px 16px; border-radius: 16px;
  background: var(--card-2); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
a.contact-card:hover { transform: translateY(-4px); border-color: rgba(0,212,255,0.3); }
.contact-card svg { width: 28px; height: 28px; color: var(--accent); }
.contact-card strong { font-size: 0.8rem; color: var(--muted); }
.contact-card span { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.contact-msg { text-align: center; font-size: 0.9rem; }

/* ═══ Sidebar ═══ */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  margin-left: 24px;
  display: flex; flex-direction: column;
  text-align: center;
  position: relative; z-index: 5;
}
.sidebar__inner {
  background: var(--sidebar);
  border-radius: var(--radius);
  padding: 40px 24px 24px;
  box-shadow: 0 0 60px -10px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.sidebar__photo {
  width: 160px; height: 160px; margin-bottom: 20px;
  position: relative;
}
.sidebar__photo::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  z-index: -1; opacity: 0.6;
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 0.8; }
}
.sidebar__photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--card);
}
.sidebar__name { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.sidebar__role { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.sidebar__tagline {
  font-size: 0.78rem; color: var(--accent); opacity: 0.85;
  line-height: 1.6; margin-bottom: 20px; padding: 0 8px;
}
.sidebar__contact { width: 100%; margin-top: auto; text-align: right; }
.sidebar__contact-block { margin-bottom: 12px; }
.sidebar__contact-block:last-child { margin-bottom: 0; }
.sidebar__contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  padding-right: 4px;
}
.sidebar__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 0.78rem; color: var(--muted);
  transition: background 0.3s, color 0.3s;
  margin-bottom: 4px;
}
.sidebar__link:hover { background: rgba(0,212,255,0.08); color: var(--accent); }
.sidebar__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar__copy { font-size: 0.72rem; color: var(--muted); margin-top: 16px; opacity: 0.6; }

/* ═══ Nav Rail ═══ */
.nav-rail {
  position: fixed; z-index: 50;
  top: 0; bottom: 0; right: 44px;
  display: flex; align-items: center;
  pointer-events: none;
}
.nav-rail ul {
  pointer-events: auto;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--sidebar);
  padding: 12px 8px; border-radius: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--border);
}
.nav-rail__btn {
  position: relative;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%; color: var(--muted);
  transition: color 0.3s, background 0.3s, transform 0.3s;
}
.nav-rail__btn svg { width: 22px; height: 22px; }
.nav-rail__btn:hover, .nav-rail__btn.active {
  color: var(--accent); background: rgba(0,212,255,0.1);
}
.nav-rail__btn.active { box-shadow: 0 0 16px var(--accent-glow); }
.nav-rail__tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 12px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 500;
  white-space: nowrap; opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  pointer-events: none;
}
.nav-rail__btn:hover .nav-rail__tip { opacity: 1; visibility: visible; }

/* ═══ Responsive ═══ */
@media (max-width: 1100px) {
  .app { padding: 0; }
  .card { border-radius: 0; box-shadow: none; margin-left: 0; }
  .sidebar { display: none; }
  .hero-photo { display: block; }

  .nav-rail {
    top: auto; bottom: 0; left: 0; right: 0;
    align-items: stretch; justify-content: center;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(6,10,18,0.95) 60%, transparent);
    pointer-events: none;
  }
  .nav-rail ul {
    flex-direction: row;
    justify-content: space-around;
    width: 100%; max-width: 480px;
    margin: 0 auto;
    padding: 8px 6px;
    border-radius: 20px;
    background: rgba(17, 22, 32, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
  }
  .nav-rail__btn {
    width: 44px; height: 44px;
  }
  .nav-rail__btn svg { width: 20px; height: 20px; }
  .nav-rail__tip { display: none; }

  .panel { padding: 28px 20px 100px; }
  .panel__center { justify-content: flex-start; padding-top: 12px; min-height: auto; }
  #home.panel { padding-top: 24px; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .tl-item { gap: 12px; padding-bottom: 14px; }
  .tl-rail { width: 24px; }
  .tl-dot { width: 12px; height: 12px; margin-top: 20px; }
  .tl-item--current .tl-dot { width: 14px; height: 14px; margin-top: 19px; }
  .tl-card { padding: 16px 18px; }
  .tl-card__icon { width: 40px; height: 40px; font-size: 1rem; }
  .music-box { flex-direction: column; text-align: center; }
  .stats { gap: 10px; }
  .stat { min-width: 90px; padding: 12px 16px; }
}

@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
  .proj__ghost { width: 130px; height: 130px; left: -14px; bottom: -22px; }
  .proj--hamcheen .proj__ghost { width: 145px; height: 145px; }
  .proj h3 { padding-left: 36px; }
  .nav-rail__btn { width: 40px; height: 40px; }
  .nav-rail__btn svg { width: 18px; height: 18px; }
  .panel { padding-bottom: 92px; }
  .hero-photo { width: 230px; height: 230px; margin-bottom: 14px; margin-top:20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
