/* ============================================================
   Umer Bashir — Portfolio
   Dark modern design system
   ============================================================ */

:root {
  --bg: #08080f;
  --bg-2: #0d0d17;
  --bg-3: #12121f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ececf4;
  --text-soft: #c3c7d4;
  --muted: #9aa0b4;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-3: #34d399;
  --grad: linear-gradient(135deg, #22d3ee 0%, #a78bfa 55%, #f472b6 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --nav-h: 72px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section { padding: 104px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

/* ---------- Typography helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--grad);
  color: #071016;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(167, 139, 250, 0.35); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { background: rgba(8, 8, 15, 0.88); border-bottom-color: var(--border); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--grad);
  color: #071016;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.3);
}
.brand-text { letter-spacing: 0.01em; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); background: rgba(34, 211, 238, 0.1); }
.nav-cta { margin-left: 10px; padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(var(--nav-h) + 70px); overflow: hidden; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.orb-1 { width: 480px; height: 480px; background: rgba(34, 211, 238, 0.28); top: -140px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: rgba(167, 139, 250, 0.24); bottom: -160px; left: -140px; animation: drift 18s ease-in-out infinite alternate-reverse; }

.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  position: relative;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 22px;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 3.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text-soft);
  font-size: 1.06rem;
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 13px;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.tech-badge:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* --- Hero visual --- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.avatar-frame {
  position: relative;
  width: 330px;
  height: 330px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-3), var(--bg));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.avatar-frame::before {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.avatar-mono {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-chip {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(13, 13, 23, 0.9);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 8%; left: -8%; color: #22d3ee; }
.chip-2 { bottom: 20%; right: -6%; color: #a78bfa; animation-delay: 1.2s; }
.chip-3 { bottom: -4%; left: 6%; color: #fbbf24; animation-delay: 2.1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Hero stats --- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 70px;
  position: relative;
}
.stat {
  background: var(--bg-2);
  padding: 26px 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.1;
}
.stat-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-visual { position: relative; display: flex; justify-content: center; }
.avatar-frame-lg { width: 380px; height: 440px; }

.about-card {
  position: absolute;
  bottom: 26px;
  left: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 13, 23, 0.92);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.about-card-icon { font-size: 1.6rem; }
.about-card strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.about-card small { color: var(--muted); font-size: 0.8rem; }

.about-copy p { color: var(--text-soft); margin-bottom: 16px; }

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 26px;
}
.about-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.fact-key { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.fact-val { font-size: 0.92rem; font-weight: 600; }
.fact-val a:hover { color: var(--accent); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.skill-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }

.skill-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill { margin-bottom: 16px; }
.skill:last-child { margin-bottom: 0; }
.skill-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.skill-head span:last-child { color: var(--accent); }
.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.skill-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--surface-2); }
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 14px;
  margin-bottom: 18px;
}
.service-card h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-list { display: flex; flex-direction: column; gap: 56px; }

.project {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
}

.project-shot {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-shot:hover { transform: translateY(-4px); border-color: var(--accent); }
.project-shot img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.project-shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 15, 0.65));
  pointer-events: none;
}

.project-brand {
  position: absolute;
  bottom: 14px; left: 14px;
  display: grid; place-items: center;
  background: rgba(8, 8, 15, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 8px 12px;
  backdrop-filter: blur(6px);
}
.project-brand img { width: auto; height: 30px; max-width: 150px; object-fit: contain; }

.project-flip .project-shot { order: 2; }
.project-flip .project-body { order: 1; }

.project-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.project-body h3 { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: 12px; }
.project-body h3 a:hover { color: var(--accent); }
.project-body p { color: var(--text-soft); margin-bottom: 18px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-tags span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
}
.project-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.4;
}
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -34px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.15);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.timeline-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.timeline-period {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.timeline-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 4px; }
.timeline-card h4 { font-size: 0.9rem; color: var(--accent-2); font-weight: 600; margin-bottom: 10px; }
.timeline-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover { transform: translateX(4px); border-color: var(--accent); }
.contact-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 1.2rem;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
}
.contact-card h4 { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.contact-card a, .contact-card span { font-weight: 600; font-size: 0.98rem; }
.contact-card a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 6px; }
.form-hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }

.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.contact-form.shake { animation: shake 0.45s ease; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-note { color: var(--muted); font-size: 0.88rem; }
.footer-note strong { color: var(--text); }
.footer-actions { display: flex; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #25d366 0%, #1eb955 100%);
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.4);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(37, 211, 102, 0.55); }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: wa-pulse 2.4s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.whatsapp-float svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .whatsapp-float { padding: 12px 16px; right: 16px; bottom: 16px; }
  .whatsapp-label { display: none; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .avatar-frame { width: 260px; height: 260px; }
  .float-chip.chip-1 { left: 6%; }
  .float-chip.chip-2 { right: 4%; }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .avatar-frame-lg { width: 300px; height: 340px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: rgba(8, 8, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 18px 22px 24px;
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 14px; font-size: 1rem; }
  .nav-cta { margin: 8px 0 0; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 50px; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-list { gap: 44px; }
  .project, .project-flip { grid-template-columns: 1fr; gap: 26px; }
  .project-flip .project-shot { order: 0; }
  .project-flip .project-body { order: 1; }

  .about-facts { grid-template-columns: 1fr; }
  .about-card { left: 0; right: 0; margin-inline: auto; width: max-content; max-width: 90%; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .footer-inner { justify-content: center; text-align: center; }
}