/* ═══════════════════════════════════════════════════════
   ADITYASINH RANA · PORTFOLIO · STYLE.CSS
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Root ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #eef0f7;
  --accent:    #5457e5;
  --accent-lt: #6366f1;
  --accent-ll: #4338ca;
  --card-bg:   rgba(255,255,255,0.62);
  --border:    rgba(99,102,241,0.18);
  --text:      #1e1b4b;
  --muted:     #5b5e8a;
  --grad:      linear-gradient(135deg,#312e81,#4f46e5,#6366f1);
  --radius:    16px;
  --font:      'Poppins', sans-serif;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(160deg, #dde1f5 0%, #eaecf8 35%, #f0eef8 65%, #e8eaf5 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.65;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #dde1f5; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Selection ── */
::selection { background: rgba(99,102,241,0.2); color: #1e1b4b; }

/* ═══════════════════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════════════════ */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ═══════════════════════════════════════════════════════
   BLOBS
   ═══════════════════════════════════════════════════════ */
.blob-wrap {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .18;
  animation: blobDrift 18s ease-in-out infinite alternate;
}
.blob-blue   { width: 520px; height: 520px; background: #818cf8; top: -120px; left: -80px; animation-duration: 20s; }
.blob-violet { width: 480px; height: 480px; background: #a78bfa; top: 30%; right: -100px; animation-duration: 24s; animation-delay: -6s; }
.blob-cyan   { width: 360px; height: 360px; background: #93c5fd; bottom: 15%; left: 20%; animation-duration: 17s; animation-delay: -3s; }
.blob-rose   { width: 300px; height: 300px; background: #f9a8d4; bottom: -60px; right: 15%; animation-duration: 22s; animation-delay: -9s; }

@keyframes blobDrift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(30px,-40px) scale(1.06); }
  66%  { transform: translate(-25px,30px) scale(.96); }
  100% { transform: translate(15px,-20px) scale(1.03); }
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(99,102,241,0.22);
  border-radius: 999px;
  padding: 6px 8px;
  box-shadow:
    0 4px 24px rgba(99,102,241,0.10),
    0 1px 4px rgba(99,102,241,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
  max-width: calc(100vw - 24px);
  white-space: nowrap;
}

#navLinks {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

#navPill {
  position: absolute;
  top: 0; height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 2px 12px rgba(99,102,241,0.35), 0 0 0 1px rgba(99,102,241,0.2);
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1), width 0.35s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 0;
}

.nav-link {
  position: relative; z-index: 1;
  padding: 9px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: #5b5e8a;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
  letter-spacing: 0.01em;
}
.nav-link:hover:not(.active) { color: #4f46e5; }
.nav-link.active { color: #fff; font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero-section {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

.hero-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
  max-width: 720px; width: 100%;
  text-align: center;
}

/* ── Hero text ── */
.hero-greeting { font-size: .95rem; font-weight: 400; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; opacity: 0; }
.hero-name { font-size: clamp(2.4rem,6vw,3.8rem); font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0; }
.hero-role { font-size: 1.05rem; font-weight: 500; color: var(--accent-lt); letter-spacing: .04em; opacity: 0; }
.hero-bio  { font-size: .95rem; font-weight: 400; color: var(--muted); max-width: 580px; opacity: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; opacity: 0; }

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute; bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.scroll-hint span {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: scrollDot 1.6s ease-in-out infinite;
}
.scroll-hint span:nth-child(2) { animation-delay: .2s; opacity: .6; }
.scroll-hint span:nth-child(3) { animation-delay: .4s; opacity: .35; }
@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(6px); opacity: .3; }
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px;
  font-family: var(--font); font-size: .88rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(84,87,229,.28);
}
.btn-primary:hover { background: #4338ca; box-shadow: 0 6px 28px rgba(84,87,229,.38); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(99,102,241,0.09); color: var(--accent-lt);
  border: 1px solid rgba(99,102,241,0.22);
}
.btn-ghost:hover { background: rgba(99,102,241,0.18); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--accent-lt);
  border: 1px solid rgba(99,102,241,0.28);
}
.btn-outline:hover { background: rgba(99,102,241,0.1); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════
   SKILLS — HORIZONTAL PIN SECTION
   ═══════════════════════════════════════════════════════ */
.skills-section {
  position: relative; z-index: 1;
  --timeline-gap: 30px;
}

.skills-track {
  display: flex; align-items: center;
  height: 100vh; position: relative;
  width: max-content; will-change: transform;
}

.timeline-line {
  position: absolute; top: 50%; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,0.25) 5%, rgba(99,102,241,0.25) 95%, transparent 100%);
  transform: translateY(-50%); z-index: 0;
}

.skill-panel {
  position: relative; width: 420px;
  flex-shrink: 0; height: 100vh;
}

.panel-node {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); z-index: 2;
}
.node-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(99,102,241,0.25);
  border: 2px solid rgba(99,102,241,0.4);
  transition: background .4s, box-shadow .4s;
}
.node-dot.active { background: var(--accent); box-shadow: 0 0 16px 5px rgba(84,87,229,.3); }

.node-label {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: .65rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-lt);
  white-space: nowrap; pointer-events: none;
}
.skill-panel.above .node-label { top: 22px; }
.skill-panel.below .node-label { bottom: 22px; }

.panel-stem {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: var(--timeline-gap);
}
.skill-panel.above .panel-stem { top: calc(50% - var(--timeline-gap)); background: linear-gradient(180deg, transparent, rgba(99,102,241,0.3)); }
.skill-panel.below .panel-stem { top: 50%; background: linear-gradient(180deg, rgba(99,102,241,0.3), transparent); }

.panel-card {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 340px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: border-color .3s, box-shadow .3s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.08);
}
.skill-panel.above .panel-card { bottom: calc(50% + var(--timeline-gap)); }
.skill-panel.below .panel-card { top: calc(50% + var(--timeline-gap)); }
.panel-card:hover { border-color: rgba(99,102,241,0.38); box-shadow: 0 6px 32px rgba(99,102,241,0.14); }

.panel-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.5rem; line-height: 1;
}
.panel-icon svg { width: 22px; height: 22px; color: var(--accent-lt); }
.panel-title { font-size: 1.05rem; font-weight: 600; color: #1e1b4b; margin-bottom: 14px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: .78rem; font-weight: 500;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); color: #4338ca;
}

/* ═══════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════ */
.projects-section {
  position: relative; z-index: 1;
  padding: 100px 48px; max-width: 1400px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px;
}
.section-sub { font-size: .95rem; color: var(--muted); }

.projects-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; align-items: stretch;
}
.project-card {
  position: relative;
  background: rgba(255,255,255,0.68); border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--radius); padding: 28px 22px 24px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow: hidden; display: flex; flex-direction: column;
  opacity: 0; transform: translateY(40px);
  transition: border-color .3s, box-shadow .3s;
}
.project-card:hover { border-color: rgba(99,102,241,0.38); box-shadow: 0 8px 32px rgba(99,102,241,0.12); }
.project-num {
  position: absolute; top: 12px; right: 16px;
  font-size: 3.6rem; font-weight: 700; line-height: 1;
  color: rgba(99,102,241,0.07); user-select: none; pointer-events: none;
}
.project-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-title { font-size: 1rem; font-weight: 600; color: #1e1b4b; }
.project-desc  { font-size: .85rem; color: var(--muted); line-height: 1.7; flex: 1; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.project-stack span {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: .72rem; font-weight: 500;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); color: #4338ca;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-section { position: relative; z-index: 1; padding: 100px 24px 80px; }
.contact-card.glass-card {
  max-width: 620px; margin: 0 auto;
  background: rgba(255,255,255,0.68); border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--radius); padding: 44px 40px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  text-align: center; box-shadow: 0 4px 32px rgba(99,102,241,0.08);
}
.contact-intro { font-size: .95rem; color: var(--muted); margin-bottom: 32px; line-height: 1.75; }
.email-row {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(99,102,241,0.07); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px; padding: 10px 10px 10px 22px; margin-bottom: 32px;
}
.email-text { font-size: .92rem; font-weight: 500; color: #4338ca; text-decoration: none; transition: color .2s; }
.email-text:hover { color: #312e81; }
.btn-copy {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .15s;
  flex-shrink: 0; text-decoration: none;
}
.btn-copy svg { width: 16px; height: 16px; }
.btn-copy:hover { background: #4338ca; transform: scale(1.08); }
.btn-copy:active { transform: scale(.95); }
.contact-socials { display: flex; gap: 18px; justify-content: center; }
.social-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2);
  color: var(--accent-lt); display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s, transform .2s, border-color .2s;
}
.social-icon svg { width: 20px; height: 20px; }
.social-icon:hover { background: rgba(99,102,241,0.16); border-color: rgba(99,102,241,0.4); transform: translateY(-3px); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 36px;
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(255,255,255,0.92); border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px; padding: 10px 22px;
  font-size: .88rem; font-weight: 500; color: #4338ca;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(12px); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 5000;
  box-shadow: 0 4px 20px rgba(99,102,241,0.15);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: #16a34a; }

/* ── Contact Form ── */
.contact-form {
  text-align: left;
  margin-bottom: 28px;
}
.form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(99,102,241,0.05);
  border: 1.5px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font); font-size: .9rem; color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(91,94,138,0.55); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-lt);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: rgba(99,102,241,0.08);
}
.cf-submit {
  width: 100%; justify-content: center;
  margin-top: 4px;
}
.cf-submit:disabled { opacity: .65; cursor: not-allowed; transform: none !important; }

/* ── Divider ── */
.contact-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 22px;
  color: var(--muted); font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
.contact-divider::before,
.contact-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(99,102,241,0.18);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  position: relative; z-index: 1; padding: 28px 24px;
  text-align: center; border-top: 1px solid rgba(99,102,241,0.15);
  font-size: .82rem; color: var(--muted);
}

/* ── Glass card shared ── */
.glass-card {
  background: rgba(255,255,255,0.65); border: 1px solid rgba(99,102,241,0.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE ≤ 1200px — large laptops
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .projects-grid    { grid-template-columns: repeat(2,1fr); }
  .projects-section { padding: 80px 40px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE ≤ 900px — tablets landscape
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .projects-section { padding: 80px 24px; }
  .projects-grid    { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .nav-link         { padding: 8px 14px; font-size: .82rem; }
  .contact-card.glass-card { padding: 36px 28px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE ≤ 768px — tablets portrait
   Skills: disable horizontal pin → vertical stacked cards
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  /* ── Navbar ── */
  #navbar   { top: 12px; padding: 5px 6px; }
  .nav-link { padding: 7px 11px; font-size: .78rem; }

  /* ── Hero ── */
  .hero-section  { padding: calc(var(--nav-h) + 28px) 20px 60px; }
  .hero-content  { gap: 20px; }
  .hero-bio      { font-size: .9rem; }
  .hero-actions  { gap: 10px; }
  .btn           { padding: 9px 18px; font-size: .84rem; }

  /* ── Skills: native swipe-to-snap horizontal scroll ── */
  .skills-section {
    overflow: hidden;
    padding: 48px 0 32px;
  }
  .skills-track {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 20px !important;
    transform: none !important;
    gap: 16px;
    align-items: stretch;
    will-change: unset;
    overflow-x: scroll;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .skills-track::-webkit-scrollbar { display: none; }

  .timeline-line { display: none; }
  .panel-node    { display: none; }
  .panel-stem    { display: none; }

  .skill-panel {
    width: 80vw !important;
    max-width: 320px;
    min-width: 260px;
    height: auto !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    scroll-snap-align: center;
  }

  /* Reset absolute card positioning — sit naturally in flow */
  .skill-panel.above .panel-card,
  .skill-panel.below .panel-card {
    position: relative !important;
    bottom: auto !important; top: auto !important;
    left: auto !important; right: auto !important;
    transform: none !important;
    width: 100% !important;
    opacity: 1 !important;
  }

  /* Dot row at bottom as swipe indicator */
  .skills-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
  }

  /* ── Projects ── */
  .section-header   { margin-bottom: 32px; }
  .projects-grid    { grid-template-columns: 1fr 1fr; gap: 14px; }
  .project-card     { opacity: 1 !important; transform: none !important; padding: 22px 18px 20px; }

  /* ── Contact ── */
  .contact-section  { padding: 80px 20px 60px; }
  .email-row        { padding: 8px 8px 8px 18px; gap: 8px; }
  .email-text       { font-size: .85rem; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE ≤ 540px — large phones
   ═══════════════════════════════════════════════════════ */
@media (max-width: 540px) {
  /* ── Navbar: squeeze further ── */
  .nav-link { padding: 6px 9px; font-size: .74rem; }

  /* ── Hero ── */
  .hero-name    { font-size: clamp(1.9rem,8vw,2.6rem); }
  .hero-bio     { font-size: .88rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero-actions .btn { width: 100%; max-width: 260px; justify-content: center; }

  /* ── Projects: single column ── */
  .projects-grid { grid-template-columns: 1fr; }
  .project-num   { font-size: 3rem; }

  /* ── Contact ── */
  .contact-card.glass-card { padding: 28px 18px; }
  .email-row {
    flex-direction: column; border-radius: 14px;
    padding: 16px; width: 100%; align-items: center;
  }
  .email-text { font-size: .82rem; word-break: break-all; }

  /* ── Skills cards: full width ── */
  .skill-panel { max-width: 100%; }
  .panel-card  { padding: 22px 20px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE ≤ 480px — phones
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* ── Navbar ── */
  #navbar   { top: 10px; padding: 4px 5px; }
  .nav-link { padding: 6px 8px; font-size: .7rem; letter-spacing: 0; }

  /* ── Hero ── */
  .hero-section  { padding: calc(var(--nav-h) + 16px) 16px 48px; }
  .hero-greeting { font-size: .78rem; }
  .hero-role     { font-size: .9rem; }

  /* ── Skills ── */
  .skills-track { padding: 40px 14px !important; gap: 14px; }
  .panel-card   { padding: 18px 16px; }
  .panel-title  { font-size: .95rem; }
  .skill-tags span { font-size: .72rem; padding: 3px 9px; }

  /* ── Projects ── */
  .projects-section { padding: 60px 14px; }
  .project-card     { padding: 20px 14px; }

  /* ── Contact ── */
  .contact-section { padding: 60px 14px 48px; }
  .contact-intro   { font-size: .88rem; }
  .site-footer     { padding: 20px 14px; font-size: .78rem; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE ≤ 360px — small phones
   ═══════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .nav-link  { padding: 5px 6px; font-size: .65rem; }
  .hero-name { font-size: 1.75rem; }
  .btn       { padding: 8px 14px; font-size: .78rem; }
  .panel-card { padding: 14px 12px; }
  .skill-tags span { font-size: .68rem; padding: 3px 8px; }
}
/* ═══════════════════════════════════════════════════════
   SWIPE DOTS — mobile skills indicator (injected by JS)
   ═══════════════════════════════════════════════════════ */
.skills-dots {
  display: none; /* hidden on desktop */
}
@media (max-width: 768px) {
  .skills-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 16px 0 8px;
  }
  .swipe-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(99,102,241,0.25);
    border: 1.5px solid rgba(99,102,241,0.35);
    transition: background .3s, transform .3s;
  }
  .swipe-dot.active {
    background: var(--accent);
    transform: scale(1.35);
    border-color: var(--accent);
  }
}

/* ═══════════════════════════════════════════════════════
   FIX — kill GSAP pin-spacer empty gap on mobile
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .pin-spacer {
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
