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

body {
  background-color: #0f1117;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.glow-bg {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(37,99,235,0) 60%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0.5rem;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background-color: rgba(15,17,23,0.7);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.nav-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1rem;
  transition: color .15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* Nav Contact CTA */
.nav-links a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.4rem 0.9rem;
  border-radius: 0.55rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(37,99,235,0.25);
}

.nav-links a.nav-cta:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 5px 14px rgba(37,99,235,0.4);
}

/* Floating contact button */
.fab-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37,99,235,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.fab-contact svg {
  flex-shrink: 0;
}

.fab-contact .fab-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.25s ease;
}

.fab-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,99,235,0.5);
  padding: 0.85rem 1.2rem;
}

.fab-contact:hover .fab-label {
  max-width: 120px;
  opacity: 1;
}

@media (max-width: 640px) {
  .fab-contact {
    bottom: 1rem;
    right: 1rem;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #e5e7eb;
  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); }

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(15, 17, 23, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

.nav-links a:focus-visible,
.btn:focus-visible,
.plink:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 0.4rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.role {
  font-size: 1.03rem;
  color: #9ca3af;
  margin-bottom: 0.65rem;
}

.intro {
  font-size: 1rem;
  color: #d1d5db;
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Avatar */
.hero-avatar {
  max-width: 220px;
  justify-self: center;
  position: relative;
}

.hero-avatar::before {
  content: "";
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, rgba(37,99,235,0) 65%);
  z-index: -1;
  border-radius: 50%;
  filter: blur(25px);
  animation: pulseAvatar 6s infinite alternate;
}

@keyframes pulseAvatar {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}

@media (min-width: 720px) {
  .hero-avatar {
    justify-self: end;
  }
}

.hero-avatar img {
  border: 1px solid rgba(255,255,255,0.15);
  background-color: rgba(255,255,255,0.05);
  padding: 6px;
  border-radius: 1rem;
  object-fit: cover;
  aspect-ratio: 1/1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.hero-avatar img:hover {
  transform: scale(1.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #1f2937;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.6rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background-color: #374151;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  font-weight: 600;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 16px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.btn.outline {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e5e7eb;
}

.btn.outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-card {
  background: linear-gradient(180deg, rgba(26,28,36,0.6) 0%, rgba(15,17,23,0.3) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expertise-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #93c5fd);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,0.5);
  box-shadow: 0 10px 30px rgba(37,99,235,0.1);
}

.expertise-card:hover::after {
  opacity: 1;
}

.expertise-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-icon {
  color: #60a5fa;
  flex-shrink: 0;
  opacity: 0.9;
}

.expertise-card p {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Experiencia */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.xp-item {
  position: relative;
}

.xp-item::before {
  content: '';
  position: absolute;
  left: -1.82rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background-color: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(37,99,235,0.8);
}

.xp-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.xp-head h3 {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  margin-right: 1rem;
}

.xp-date {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 500;
}

.xp-company {
  font-size: 0.95rem;
  color: #93c5fd;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.xp-desc-list {
  font-size: 0.9rem;
  color: #d1d5db;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
  list-style: none;
}

.xp-desc-list li {
  margin-bottom: 0.5rem;
  position: relative;
}

.xp-desc-list li::before {
  content: "▹";
  position: absolute;
  left: -1.25rem;
  color: #60a5fa;
  font-weight: bold;
}


/* Projects */
.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  display: inline-block;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, transparent);
  margin-top: 0.5rem;
  border-radius: 4px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  background: linear-gradient(145deg, rgba(30,41,59,0.5) 0%, rgba(17,24,39,0.7) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2563eb, #93c5fd);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(96,165,250,0.5);
  box-shadow: 0 14px 40px rgba(37,99,235,0.2);
}

.project-card:hover::before {
  opacity: 1;
}

.project-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-head {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.project-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tech-pill {
  font-size: 0.7rem;
  background-color: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  color: #9ca3af;
  display: inline-block;
}

.project-desc {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.project-impact {
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 1.25rem;
  background: rgba(37,99,235,0.08);
  padding: 0.6rem 0.8rem;
  border-radius: 0.4rem;
  border-left: 2px solid #3b82f6;
  margin-top: auto;
}

.project-impact strong {
  font-weight: 600;
  color: #bfdbfe;
}

.project-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-btn {
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
}

.project-btn:hover {
  transform: translateY(-1px);
}

/* Project showcases */
.projects-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showcase-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  background: linear-gradient(145deg, rgba(26,28,36,0.55) 0%, rgba(15,17,23,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.25rem;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96,165,250,0.4);
  box-shadow: 0 18px 50px rgba(37,99,235,0.14);
}

@media (min-width: 860px) {
  .showcase-card {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 2.5rem;
    padding: 2rem;
  }
  .showcase-card--reverse .showcase-media {
    order: 2;
  }
}

.showcase-media {
  display: block;
  text-decoration: none;
}

.showcase-frame {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #0b0d12;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}

.frame-dots {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.frame-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
}

.frame-dots i:nth-child(1) { background: rgba(255,95,87,0.55); }
.frame-dots i:nth-child(2) { background: rgba(254,188,46,0.55); }
.frame-dots i:nth-child(3) { background: rgba(40,200,64,0.5); }

.showcase-frame img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.showcase-media:hover .showcase-frame {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(37,99,235,0.28);
}

.showcase-body {
  display: flex;
  flex-direction: column;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  color: #86efac;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

.proj-sub {
  color: #9ca3af;
  font-weight: 500;
  font-size: 0.85em;
}

.showcase-body .project-desc {
  margin-bottom: 1.5rem;
}

.showcase-body .project-actions {
  margin-top: auto;
}

/* About */
.about-wrapper {
  background: linear-gradient(145deg, rgba(26,28,36,0.6) 0%, rgba(15,17,23,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 800px;
  border-left: 3px solid #2563eb;
}

.about-text p {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.contact-intro {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}


.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-links .btn {
  padding: 0.8rem 1.4rem;
  font-size: 1.05rem;
}

/* Featured project card */
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 900px) {
  .project-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 300px;
  }

  .project-card--featured .project-image {
    width: 42%;
    height: auto;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.06);
  }

  .project-card--featured .project-image img {
    height: 100%;
    border-radius: 0;
  }
}

/* Education timeline dot */
.xp-item--edu::before {
  background-color: #7c3aed;
  box-shadow: 0 0 10px rgba(124,58,237,0.8);
}

.xp-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* Scroll anchor offset for sticky header */
section[id] {
  scroll-margin-top: 72px;
}

/* Contact section */
#contact .section-tagline {
  font-size: 1.05rem;
  color: #93c5fd;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.footer-copy {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 4rem;
  padding-top: 2rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

.expertise-card:nth-child(2) { transition-delay: 0.1s; }
.expertise-card:nth-child(3) { transition-delay: 0.2s; }

.project-card:nth-child(2) { transition-delay: 0.12s; }
.project-card:nth-child(3) { transition-delay: 0.24s; }

/* Disabled button state */
.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #93c5fd);
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(37,99,235,0.5);
}

/* Nav animated underline */
.nav-links a:not(.nav-cta) {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #93c5fd);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  transform: scaleX(1);
}

/* Pill hover */
.tech-pill {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tech-pill:hover {
  color: #dbeafe;
  border-color: rgba(96,165,250,0.5);
  background-color: rgba(37,99,235,0.12);
}

/* Experience item hover accent */
.xp-item {
  transition: transform 0.25s ease;
}

.xp-item::before {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.xp-item:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 16px rgba(37,99,235,1);
}

.xp-company {
  transition: color 0.2s ease;
}

/* Staggered reveals */
.experience-list .xp-item:nth-child(2) { transition-delay: 0.08s; }
.experience-list .xp-item:nth-child(3) { transition-delay: 0.16s; }
.experience-list .xp-item:nth-child(4) { transition-delay: 0.24s; }
.showcase-card:nth-child(2) { transition-delay: 0.1s; }

/* Section headings reveal underline on hover */
.section h2::after {
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

.section:hover h2::after {
  width: 60%;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}
