/* ════════════════════════════════════════════════════════════════
   HARSHIT GOYAL — PORTFOLIO  |  Premium Design v4
   Fonts: Syne (headings) + Outfit (body)
════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600&display=swap');

/* ── ROOT VARIABLES ──────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-gradient-onyx: linear-gradient(to bottom right, hsl(225,8%,20%) 3%, hsl(220,8%,14%) 97%);
  --bg-gradient-jet: linear-gradient(to bottom right, hsla(225,8%,15%,0.26) 0%, hsla(225,8%,9%,0) 100%), hsl(225,8%,10%);
  --bg-gradient-yellow-1: linear-gradient(to bottom right, hsl(45,100%,71%) 0%, hsla(36,100%,69%,0) 50%);
  --bg-gradient-yellow-2: linear-gradient(135deg, hsla(45,100%,71%,0.22) 0%, hsla(35,100%,68%,0) 60%), hsl(225,8%,10%);
  --border-gradient-onyx: linear-gradient(to bottom right, hsl(220,8%,22%) 0%, hsla(220,8%,22%,0) 50%);
  --text-gradient-yellow: linear-gradient(to right, hsl(45,100%,72%), hsl(35,100%,68%));

  /* Colours */
  --jet:                  hsl(225,8%,18%);
  --onyx:                 hsl(225,8%,14%);
  --eerie-black-1:        hsl(225,8%,10%);
  --eerie-black-2:        hsl(225,8%,9%);
  --smoky-black:          hsl(220,12%,5%);
  --white-1:              hsl(0,0%,100%);
  --white-2:              hsl(0,0%,97%);
  --orange-yellow-crayola:hsl(45,100%,72%);
  --vegas-gold:           hsl(45,54%,58%);
  --light-gray:           hsl(0,0%,84%);
  --light-gray-70:        hsla(0,0%,84%,0.7);
  --bittersweet-shimmer:  hsl(0,43%,51%);

  /* Typography */
  --ff-heading: 'Syne', sans-serif;
  --ff-body:    'Outfit', sans-serif;
  --ff-poppins: 'Outfit', sans-serif; /* fallback alias */

  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* Shadows */
  --shadow-1: -4px 8px 24px hsla(220,12%,0%,0.35);
  --shadow-2: 0 16px 30px hsla(220,12%,0%,0.3);
  --shadow-3: 0 16px 40px hsla(220,12%,0%,0.3);
  --shadow-4: 0 25px 50px hsla(220,12%,0%,0.2);
  --shadow-5: 0 24px 80px hsla(220,12%,0%,0.3);
  --glow-gold: 0 0 24px hsla(45,100%,72%,0.18);

  /* Transitions */
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.22,1,0.36,1);
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { text-decoration: none; }
li { list-style: none; }
img, ion-icon, a, button, time, span { display: block; }
button { font: inherit; background: none; border: none; text-align: left; cursor: pointer; }
input, textarea { display: block; width: 100%; background: none; font: inherit; }
::selection { background: var(--orange-yellow-crayola); color: var(--smoky-black); }
:focus { outline-color: var(--orange-yellow-crayola); }

html  { font-family: var(--ff-body); scroll-behavior: smooth; }
body  { background: var(--smoky-black); }

/* ── BASE CARD / ARTICLE ─────────────────────────────────────── */
.sidebar, article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

/* ── UTILITY ─────────────────────────────────────────────────── */
.separator { width: 100%; height: 1px; background: var(--jet); margin: 16px 0; }

.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; justify-content: center; align-items: center;
  font-size: 16px; color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-1); z-index: 1;
}
.icon-box::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--eerie-black-1); border-radius: inherit; z-index: -1;
}
.icon-box ion-icon { --ionicon-stroke-width: 35px; }

/* ── ARTICLE SHOW/HIDE ───────────────────────────────────────── */
article { display: none; }
article.active {
  display: block;
  animation: pageSlideIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HEADINGS ────────────────────────────────────────────────── */
.h2, .h3, .h4, .h5 {
  font-family: var(--ff-heading);
  color: var(--white-2);
  text-transform: capitalize;
}
.h2 { font-size: var(--fs-1); font-weight: var(--fw-700); }
.h3 { font-size: var(--fs-2); font-weight: var(--fw-600); }
.h4 { font-size: var(--fs-4); font-weight: var(--fw-600); }
.h5 { font-size: var(--fs-7); font-weight: var(--fw-500); }

.article-title {
  position: relative;
  padding-bottom: 10px;
  font-family: var(--ff-heading);
  font-weight: var(--fw-700);
  letter-spacing: -0.5px;
}
.article-title::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 30px; height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
  box-shadow: var(--glow-gold);
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
.has-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.has-scrollbar::-webkit-scrollbar-track { background: var(--onyx); border-radius: 5px; }
.has-scrollbar::-webkit-scrollbar-thumb { background: var(--orange-yellow-crayola); border-radius: 5px; }
.has-scrollbar::-webkit-scrollbar-button { width: 20px; }

/* ── CONTENT CARD ────────────────────────────────────────────── */
.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px; padding-top: 45px;
  border-radius: 14px; box-shadow: var(--shadow-2);
  cursor: pointer; z-index: 1;
}
.content-card::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit; z-index: -1;
}

/* ════════════════════════════════════════════════════════════════
   MAIN LAYOUT
════════════════════════════════════════════════════════════════ */
main { margin: 15px 12px; margin-bottom: 75px; min-width: 259px; }

/* ════════════════════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════════════════════ */
.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: max-height var(--transition-2), box-shadow 0.4s ease;
  position: relative;
}
.sidebar::before {
  content: "";
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, hsla(45,100%,72%,0.04) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}
.sidebar.active { max-height: 405px; box-shadow: var(--shadow-2), var(--glow-gold); }

.sidebar-info {
  position: relative;
  display: flex; justify-content: flex-start; align-items: center;
  gap: 15px; z-index: 1;
}

.avatar-box {
  background: var(--bg-gradient-onyx);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-box::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px hsla(45,100%,72%,0.25);
  pointer-events: none;
}
.avatar-box img {
  display: block;
  width: 80px;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.avatar-box:hover img { transform: scale(1.05); }

.info-content .name {
  color: var(--white-2);
  font-family: var(--ff-heading);
  font-size: var(--fs-3); font-weight: var(--fw-700);
  letter-spacing: -0.3px; margin-bottom: 10px;
}
.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8); font-weight: var(--fw-400);
  width: max-content; padding: 3px 12px; border-radius: 8px;
  border: 1px solid var(--jet);
}

/* Show-contacts button */
.info_more-btn {
  position: absolute; top: -15px; right: -15px;
  border-radius: 0 15px;
  font-size: 13px; color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px; box-shadow: var(--shadow-2);
  transition: var(--transition-1); z-index: 1;
}
.info_more-btn::before {
  content: ""; position: absolute; inset: 1px;
  border-radius: inherit; background: var(--bg-gradient-jet);
  transition: var(--transition-1); z-index: -1;
}
.info_more-btn:hover, .info_more-btn:focus { background: var(--bg-gradient-yellow-1); }
.info_more-btn:hover::before, .info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }
.info_more-btn span { display: none; }

.sidebar-info_more { opacity: 0; visibility: hidden; transition: var(--transition-2); }
.sidebar.active .sidebar-info_more { opacity: 1; visibility: visible; }

/* Contacts */
.contacts-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-item { min-width: 100%; display: flex; align-items: center; gap: 16px; }
.contact-info { max-width: calc(100% - 46px); width: calc(100% - 46px); }
.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 2px;
}
.contact-info :is(.contact-link, time, address) { color: var(--white-2); font-size: var(--fs-7); }
.contact-info address { font-style: normal; }

/* Social */
.social-list {
  display: flex; justify-content: flex-start; align-items: center;
  gap: 15px; padding-bottom: 4px; padding-left: 7px;
}
.social-item .social-link {
  color: var(--light-gray-70); font-size: 18px;
  transition: color 0.2s, transform 0.2s !important;
}
.social-item .social-link:hover {
  color: var(--orange-yellow-crayola) !important;
  transform: translateY(-3px) scale(1.15) !important;
}

/* ════════════════════════════════════════════════════════════════
   NAVBAR  — CRITICAL FIX: no wrap on desktop
════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: hsla(225,8%,10%,0.85);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid hsla(225,8%,22%,0.7);
  border-radius: 12px 12px 0 0;
  box-shadow: var(--shadow-2);
  z-index: 5;
}
.navbar-list {
  display: flex;
  flex-wrap: wrap;          /* mobile: allow wrap */
  justify-content: center; align-items: center;
  padding: 0 10px;
  position: relative;
}
.navbar-link {
  color: var(--light-gray);
  font-family: var(--ff-heading);
  font-size: var(--fs-8); font-weight: var(--fw-500);
  letter-spacing: 0.3px;
  padding: 20px 7px;
  transition: color var(--transition-1);
  position: relative;
}
.navbar-link::after {
  content: "";
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--text-gradient-yellow);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--glow-gold);
}
.navbar-link:hover { color: var(--light-gray-70); }
.navbar-link:hover::after { width: 16px; }
.navbar-link.active { color: var(--orange-yellow-crayola); }
.navbar-link.active::after { width: 22px; }

/* ── Nav indicator (JS-driven sliding bar) ── */
#nav-indicator {
  position: absolute; bottom: 12px; left: 0;
  height: 2px; width: 40px;
  background: var(--text-gradient-yellow);
  border-radius: 2px;
  transition: left 0.35s cubic-bezier(0.22,1,0.36,1), width 0.35s cubic-bezier(0.22,1,0.36,1);
  opacity: 0;
  box-shadow: var(--glow-gold);
}

/* ════════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════════ */
.about .article-title { margin-bottom: 15px; }
.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6); font-weight: var(--fw-300);
  line-height: 1.75; margin-bottom: 30px;
}
.about-text p { margin-bottom: 15px; }

/* Typing area */
.typing-container { color: var(--light-gray); font-size: var(--fs-6); line-height: 1.75; }
#cursor {
  display: inline-block; width: 2px; height: 1em;
  background-color: var(--orange-yellow-crayola);
  animation: blink-animation 1s infinite step-start;
  vertical-align: middle; margin-left: 2px;
}
@keyframes blink-animation { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Stat boxes */
/* ── Slim inline stats bar ── */
.stat-boxes {
  display: none;
  margin-top: 28px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  overflow: hidden;
  background: var(--eerie-black-2);
}
.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 16px 10px;
  position: relative;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition: background 0.25s ease;
}
/* Vertical divider between items */
.stat-box + .stat-box::before {
  content: "";
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--jet);
}
/* Gold top-edge accent — animates in on reveal */
.stat-box::after {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--text-gradient-yellow);
  border-radius: 0 0 2px 2px;
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--glow-gold);
}
.stat-box:hover { background: hsla(45,100%,72%,0.04); }
.stat-box:hover::after { width: 60%; }
.stat-box.visible::after { width: 40%; }

.stat-number {
  font-family: var(--ff-heading);
  font-size: 1.45rem; font-weight: 700;
  background: var(--text-gradient-yellow);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.stat-label {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  letter-spacing: 0.4px;
  text-align: center;
}

/* ── SERVICES ────────────────────────────────────────────────── */
.service { margin-bottom: 35px; }
.service-title { margin-bottom: 20px; }
.service-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-item {
  position: relative;
  background: var(--border-gradient-onyx); padding: 20px;
  border-radius: 16px; box-shadow: var(--shadow-2);
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.service-item::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1;
}
.service-item::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, hsla(45,100%,72%,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.service-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-2), 0 0 20px hsla(45,100%,72%,0.08); }
.service-item:hover::after { opacity: 1; }
.service-icon-box { margin-bottom: 10px; }
.service-icon-box img { margin: auto; }
.service-content-box { text-align: center; }
.service-item-title { margin-bottom: 7px; }
.service-item-text { color: var(--light-gray); font-size: var(--fs-6); font-weight: var(--fw-300); line-height: 1.6; }

/* ── TOOLS GRID ──────────────────────────────────────────────── */
.tools-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.tools-category {
  position: relative; background: var(--border-gradient-onyx);
  padding: 16px 18px; border-radius: 14px; box-shadow: var(--shadow-2);
  z-index: 1; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tools-category::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1;
}
.tools-category:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), 0 0 16px hsla(45,100%,72%,0.08); }
.tools-label {
  color: var(--orange-yellow-crayola); font-size: var(--fs-7); font-weight: var(--fw-500);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.tools-label ion-icon { font-size: 15px; }

/* Skill tags */
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.skill-tag {
  background: var(--bg-gradient-yellow-2);
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-8); padding: 3px 10px; border-radius: 20px;
  display: inline-block; position: relative; overflow: hidden;
  cursor: default;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.skill-tag:hover {
  background: hsla(45,100%,72%,0.18); color: hsl(45,100%,82%);
  transform: translateY(-2px); box-shadow: 0 4px 12px hsla(45,100%,72%,0.15);
}
.skill-tag::after {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, hsla(255,255%,100%,0.14), transparent);
  transition: left 0.4s ease;
}
.skill-tag:hover::after { left: 160%; }

/* ── MODAL (dummy, kept for JS) ──────────────────────────────── */
.modal-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center;
  overflow-y: auto; z-index: 20;
  pointer-events: none; visibility: hidden;
}
.modal-container.active { pointer-events: all; visibility: visible; }
.overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: hsl(0,0%,5%); opacity: 0; visibility: hidden;
  pointer-events: none; z-index: 1; transition: var(--transition-1);
}
.overlay.active { opacity: 0.85; visibility: visible; pointer-events: all; }
.testimonials-modal {
  background: var(--eerie-black-2); position: relative;
  padding: 15px; margin: 15px 12px;
  border: 1px solid var(--jet); border-radius: 14px;
  box-shadow: var(--shadow-5); transform: scale(1.2); opacity: 0;
  transition: var(--transition-1); z-index: 2;
}
.modal-container.active .testimonials-modal { transform: scale(1); opacity: 1; }
.modal-close-btn {
  position: absolute; top: 15px; right: 15px;
  background: var(--onyx); border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; justify-content: center; align-items: center;
  color: var(--white-2); font-size: 18px; opacity: 0.7;
}
.modal-close-btn:hover { opacity: 1; }
.modal-close-btn ion-icon { --ionicon-stroke-width: 50px; }
.modal-avatar-box { background: var(--bg-gradient-onyx); width: max-content; border-radius: 14px; margin-bottom: 15px; }
.modal-img-wrapper > img { display: none; }
.modal-title { margin-bottom: 4px; }
.modal-content time { font-size: var(--fs-6); color: var(--light-gray-70); font-weight: var(--fw-300); margin-bottom: 10px; }
.modal-content p { color: var(--light-gray); font-size: var(--fs-6); font-weight: var(--fw-300); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════
   RESUME
════════════════════════════════════════════════════════════════ */
.article-title { margin-bottom: 30px; }
.timeline { margin-bottom: 30px; }
.timeline .title-wrapper { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.timeline-list { font-size: var(--fs-6); margin-left: 45px; }
.timeline-item { position: relative; }
.timeline-item:not(:last-child) { margin-bottom: 24px; }
.timeline-item-title {
  font-size: var(--fs-6); font-weight: var(--fw-600);
  line-height: 1.3; margin-bottom: 7px; color: var(--white-2);
}
.timeline-list span { color: var(--vegas-gold); font-weight: var(--fw-400); line-height: 1.6; }
.timeline-item:not(:last-child)::before {
  content: ""; position: absolute; top: -25px; left: -30px;
  width: 1px; height: calc(100% + 50px);
  background: linear-gradient(to bottom, var(--jet), transparent);
}
.timeline-item::after {
  content: ""; position: absolute; top: 5px; left: -33px;
  height: 6px; width: 6px;
  background: var(--text-gradient-yellow); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
  animation: dotPulse 2.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 4px var(--jet); }
  50%      { box-shadow: 0 0 0 4px var(--jet), 0 0 10px 4px hsla(45,100%,72%,0.4); }
}
.timeline-text { color: var(--light-gray); font-weight: var(--fw-300); line-height: 1.6; }
.internship-section { margin-bottom: 30px; }

/* ── SKILLS ──────────────────────────────────────────────────── */
.skills-title { margin-bottom: 20px; }
.skills-list { padding: 20px; }
.skills-item:not(:last-child) { margin-bottom: 18px; }
.skill .title-wrapper { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.skill .title-wrapper data { color: var(--light-gray); font-size: var(--fs-7); font-weight: var(--fw-300); }
.skill-progress-bg { background: var(--jet); width: 100%; height: 6px; border-radius: 10px; overflow: hidden; }
.skill-progress-fill {
  background: var(--text-gradient-yellow);
  height: 100%; border-radius: inherit;
  width: 0 !important;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1) 0.1s;
  box-shadow: 0 0 10px hsla(45,100%,72%,0.35);
}
.skill-progress-fill.animated { width: var(--target-width) !important; }

/* ── CERTIFICATIONS ──────────────────────────────────────────── */
.cert-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cert-item {
  position: relative; background: var(--border-gradient-onyx);
  padding: 16px 20px; border-radius: 14px; box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 16px; z-index: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.cert-item::before {
  content: ""; position: absolute; inset: 1px;
  background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1;
}
.cert-item::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, hsla(45,100%,72%,0.25), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.cert-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-2), var(--glow-gold); }
.cert-item:hover::after { opacity: 1; }
.cert-badge {
  width: 44px; height: 44px; min-width: 44px; border-radius: 10px;
  background: var(--bg-gradient-yellow-2);
  display: flex; justify-content: center; align-items: center;
  font-size: 20px; color: var(--orange-yellow-crayola); flex-shrink: 0;
}
.cert-info { flex: 1; }
.cert-info h5 { color: var(--white-2); font-size: var(--fs-6); font-weight: var(--fw-500); margin-bottom: 4px; }
.cert-info p { color: var(--light-gray-70); font-size: var(--fs-8); }
.cert-info a {
  display: inline-block; margin-top: 4px;
  color: var(--orange-yellow-crayola); font-size: var(--fs-8); text-decoration: underline;
  transition: opacity 0.2s;
}
.cert-info a:hover { opacity: 0.75; }

/* ════════════════════════════════════════════════════════════════
   PORTFOLIO — FILTER BAR
════════════════════════════════════════════════════════════════ */
.filter-list { display: none; }
.filter-select-box { position: relative; margin-bottom: 25px; }
.filter-select {
  background: var(--eerie-black-2); color: var(--light-gray);
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--jet); border-radius: 14px;
  font-size: var(--fs-6); font-weight: var(--fw-300);
}
.filter-select.active .select-icon { transform: rotate(0.5turn); }
.select-list {
  background: var(--eerie-black-2); position: absolute;
  top: calc(100% + 6px); width: 100%; padding: 6px;
  border: 1px solid var(--jet); border-radius: 14px;
  z-index: 2; opacity: 0; visibility: hidden; pointer-events: none;
  transition: 0.15s ease-in-out;
}
.filter-select.active + .select-list { opacity: 1; visibility: visible; pointer-events: all; }
.select-item button {
  background: var(--eerie-black-2); color: var(--light-gray);
  font-size: var(--fs-6); font-weight: var(--fw-300);
  text-transform: capitalize; width: 100%; padding: 8px 10px; border-radius: 8px;
}
.select-item button:hover { background: var(--jet); }

/* New pill filter bar */
.pf-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pf-filter-btn {
  position: relative; padding: 8px 18px; border-radius: 30px;
  background: var(--border-gradient-onyx); color: var(--light-gray);
  font-size: var(--fs-7); font-weight: 500; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: color 0.25s, box-shadow 0.25s, transform 0.2s;
  overflow: hidden; z-index: 1;
}
.pf-filter-btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bg-gradient-jet); z-index: -1; border-radius: inherit;
}
.pf-filter-btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--text-gradient-yellow); opacity: 0; z-index: -1;
  border-radius: inherit; transition: opacity 0.3s;
}
.pf-filter-btn.active, .pf-filter-btn:hover {
  color: var(--smoky-black);
  box-shadow: 0 4px 18px hsla(45,100%,72%,0.3);
  transform: translateY(-2px);
}
.pf-filter-btn.active::after, .pf-filter-btn:hover::after { opacity: 1; }
.pf-count {
  background: hsla(255,255%,100%,0.12); padding: 1px 7px;
  border-radius: 20px; font-size: 10px; font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.pf-filter-btn.active .pf-count, .pf-filter-btn:hover .pf-count {
  background: hsla(0,0%,0%,0.2); color: var(--smoky-black);
}

/* ════════════════════════════════════════════════════════════════
   PORTFOLIO — FEATURED CARD
════════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════
   PORTFOLIO — COMPACT SPOTLIGHT STRIP
   Replaces the massive 50/50 hero card.
   Layout: [thumbnail] | [label + badge + title + tags] | [actions + dots]
════════════════════════════════════════════════════════════════ */

/* Featured strip removed — grid stands alone */
#pf-featured,
.pf-featured,
.pf-featured-label { display: none !important; }
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.pf-featured-label span {
  font-family: var(--ff-heading);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--orange-yellow-crayola);
}
.pf-featured-label::before,
.pf-featured-label::after {
  content: "";
  flex: 1; height: 1px;
  background: linear-gradient(to right, hsla(45,100%,72%,0.35), transparent);
}
.pf-featured-label::before { background: linear-gradient(to left, hsla(45,100%,72%,0.35), transparent); }

/* ── The strip itself ── */
.pf-featured {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  box-shadow: var(--shadow-2);
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  height: 100px;
}
.pf-featured:hover {
  border-color: hsla(45,100%,72%,0.3);
  box-shadow: var(--shadow-2), 0 0 0 1px hsla(45,100%,72%,0.12), var(--glow-gold);
  transform: translateY(-3px);
}

/* Animated gold left-edge accent bar */
.pf-featured::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--text-gradient-yellow);
  box-shadow: var(--glow-gold);
  border-radius: 0 2px 2px 0;
  transition: width 0.35s ease;
  z-index: 2;
}
.pf-featured:hover::before { width: 4px; }

/* ── Thumbnail ── */
.pf-featured-img-wrap {
  position: relative;
  width: 140px;
  min-width: 140px;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}
.pf-featured-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1),
              filter 0.4s ease;
  filter: brightness(0.85) saturate(0.9);
}
.pf-featured:hover .pf-featured-img-wrap img {
  transform: scale(1.1);
  filter: brightness(1) saturate(1.1);
}
/* Fade right edge of thumbnail into the card bg */
.pf-featured-img-wrap::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, var(--eerie-black-2));
  pointer-events: none;
}
.pf-featured-shine { display: none; } /* not needed on strip */

/* ── Info body ── */
.pf-featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 16px 0 12px;
  background: transparent;
  min-width: 0; /* allow text truncation */
}

/* ── Badge ── */
.pf-badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; width: fit-content;
}
.pf-badge-ds  { background: hsla(220,90%,65%,0.15); color: hsl(220,90%,75%); }
.pf-badge-web { background: hsla(145,70%,55%,0.15); color: hsl(145,70%,65%); }

/* ── Title ── */
.pf-featured-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-5);
  font-weight: 600;
  color: var(--white-2);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.pf-featured:hover .pf-featured-title { color: var(--orange-yellow-crayola); }

/* ── Description: hidden on the strip, too bulky ── */
.pf-featured-desc { display: none; }

/* ── Tags row ── */
.pf-featured-tags {
  display: flex; flex-wrap: nowrap;
  gap: 5px; overflow: hidden;
}
.pf-tag {
  padding: 2px 8px;
  background: hsla(45,100%,72%,0.08);
  color: hsla(45,100%,75%,0.8);
  border-radius: 5px; font-size: 10px; font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.pf-tag:hover { background: hsla(45,100%,72%,0.2); color: hsl(45,100%,82%); transform: translateY(-1px); }

/* ── Right side: actions + dots ── */
.pf-featured-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  flex-shrink: 0;
  border-left: 1px solid var(--jet);
  height: 100%;
}
.pf-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  background: var(--text-gradient-yellow); color: var(--smoky-black);
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px hsla(45,100%,72%,0.3);
}
.pf-btn-primary:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 6px 18px hsla(45,100%,72%,0.45); }
.pf-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid hsla(45,100%,72%,0.25);
  color: var(--light-gray-70);
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.pf-btn-ghost:hover { border-color: hsl(45,100%,72%); color: hsl(45,100%,72%); transform: translateY(-2px); }

/* ── Dots: now horizontal below actions ── */
.pf-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}
.pf-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: hsla(255,255%,100%,0.15); cursor: pointer;
  transition: background 0.25s, width 0.3s, transform 0.2s;
  flex-shrink: 0;
}
.pf-dot.active { background: hsl(45,100%,72%); width: 16px; border-radius: 3px; }
.pf-dot:hover { transform: scale(1.4); background: hsla(45,100%,72%,0.5); }

/* ── Slide-transition keyframe for title swap ── */
@keyframes spotlightIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Mobile: stack thumbnail on top ── */
@media (max-width: 600px) {
  .pf-featured { height: auto; flex-direction: column; }
  .pf-featured-img-wrap { width: 100%; min-width: unset; height: 110px; }
  .pf-featured-img-wrap::after { width: 100%; height: 40%; top: auto; bottom: 0; right: 0; background: linear-gradient(to bottom, transparent, var(--eerie-black-2)); }
  .pf-featured-body { padding: 12px 14px 0; }
  .pf-featured-title { white-space: normal; }
  .pf-featured-actions { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1px solid var(--jet); padding: 10px 14px; height: auto; width: 100%; justify-content: space-between; align-items: center; }
}

/* ════════════════════════════════════════════════════════════════
   PORTFOLIO — PROJECT GRID
════════════════════════════════════════════════════════════════ */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px,1fr));
  gap: 20px; list-style: none; padding: 0; margin-bottom: 32px;
}
.pf-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--border-gradient-onyx); box-shadow: var(--shadow-2);
  transition: box-shadow 0.3s, transform 0.3s;
}
.pf-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, hsla(45,100%,72%,0.0), hsla(45,100%,72%,0.0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background 0.4s; pointer-events: none;
}
.pf-card:hover::before {
  background: linear-gradient(135deg, hsl(45,100%,72%), hsla(45,100%,72%,0.0) 60%);
}
.pf-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px hsla(220,12%,0%,0.6), var(--glow-gold);
}
.pf-card:not(.active) { display: none; }
.pf-card-inner { display: block; text-decoration: none; color: inherit; }
.pf-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--onyx); }
.pf-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), filter 0.4s;
  filter: brightness(0.9);
}
.pf-card:hover .pf-card-img-wrap img { transform: scale(1.08); filter: brightness(1); }
.pf-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(220,12%,5%,0.96) 0%, hsla(220,12%,5%,0.7) 40%, transparent 100%);
  display: flex; align-items: flex-end; padding: 16px;
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.pf-card:hover .pf-card-overlay { transform: translateY(0); }
.pf-card-overlay-content { width: 100%; }
.pf-overlay-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.pf-overlay-tags span {
  padding: 3px 8px; background: hsla(45,100%,72%,0.15);
  color: hsl(45,100%,80%); border-radius: 5px; font-size: 10px; font-weight: 500;
}
.pf-card-overlay-content p { font-size: 11px; color: hsla(255,255%,100%,0.6); }
.pf-card-body {
  padding: 14px 16px 16px; background: var(--bg-gradient-jet);
  display: flex; flex-direction: column; gap: 7px;
}
.pf-card-title { font-size: var(--fs-7); font-weight: 500; color: var(--white-2); line-height: 1.4; }
.pf-card-line {
  height: 1.5px; width: 0;
  background: var(--text-gradient-yellow); border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--glow-gold);
}
.pf-card:hover .pf-card-line { width: 100%; }
@keyframes cardPop {
  from { opacity: 0; transform: scale(0.88) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.pf-card.active { animation: cardPop 0.38s cubic-bezier(0.22,1,0.36,1) both; }

/* Old project list (kept for compat) */
.project-list { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 10px; }
.project-item { display: none; }
.project-item.active { display: block; animation: scaleUp 0.25s ease forwards; }
@keyframes scaleUp { from { transform: scale(0.5); } to { transform: scale(1); } }
.project-item > a { width: 100%; }
.project-img { position: relative; width: 100%; height: 200px; border-radius: 16px; overflow: hidden; margin-bottom: 15px; }
.project-img::before { content: ""; position: absolute; inset: 0; background: transparent; z-index: 1; transition: var(--transition-1); }
.project-item > a:hover .project-img::before { background: hsla(0,0%,0%,0.5); }
.project-item-icon-box { --scale: 0.8; background: var(--jet); color: var(--orange-yellow-crayola); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(var(--scale)); font-size: 20px; padding: 18px; border-radius: 12px; opacity: 0; z-index: 1; transition: var(--transition-1); }
.project-item > a:hover .project-item-icon-box { --scale: 1; opacity: 1; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition-1); }
.project-item > a:hover img { transform: scale(1.1); }
.project-title, .project-category { margin-left: 10px; }
.project-title { color: var(--white-2); font-size: var(--fs-5); font-weight: var(--fw-400); text-transform: capitalize; line-height: 1.3; }
.project-category { color: var(--light-gray-70); font-size: var(--fs-6); font-weight: var(--fw-300); }

/* CTA */
.pf-cta { display: flex; justify-content: center; padding-top: 8px; }
.pf-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border-radius: 50px;
  border: 1.5px solid hsla(45,100%,72%,0.3);
  color: hsl(45,100%,72%);
  font-size: var(--fs-6); font-weight: 500;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.25s;
}
.pf-cta-btn::before {
  content: ""; position: absolute; inset: 0;
  background: hsla(45,100%,72%,0.08);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.pf-cta-btn:hover::before { transform: scaleX(1); }
.pf-cta-btn:hover { border-color: hsl(45,100%,72%); box-shadow: 0 0 24px hsla(45,100%,72%,0.2), 0 4px 16px hsla(220,12%,0%,0.35); transform: translateY(-3px); }
.pf-cta-arrow { transition: transform 0.3s; display: inline-block; }
.pf-cta-btn:hover .pf-cta-arrow { transform: translateX(5px); }

/* ════════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════════ */
.mapbox { position: relative; height: 250px; width: 100%; border-radius: 16px; margin-bottom: 30px; border: 1px solid var(--jet); overflow: hidden; }
.mapbox figure { height: 100%; }
.mapbox iframe { width: 100%; height: 100%; border: none; filter: grayscale(1) invert(1); }
.contact-form { margin-bottom: 10px; }
.form-title { margin-bottom: 20px; }
.input-wrapper { display: grid; grid-template-columns: 1fr; gap: 25px; margin-bottom: 25px; }
.form-input {
  color: var(--white-2); font-size: var(--fs-6); font-weight: var(--fw-400);
  padding: 13px 20px; border: 1px solid var(--jet); border-radius: 14px; outline: none;
  background: hsla(225,8%,12%,0.5);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input::placeholder { font-weight: var(--fw-400); color: var(--light-gray-70); }
.form-input:focus { border-color: var(--orange-yellow-crayola); box-shadow: 0 0 0 3px hsla(45,100%,72%,0.08); }
.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }
textarea.form-input { min-height: 100px; height: 120px; max-height: 200px; resize: vertical; margin-bottom: 25px; }
textarea.form-input::-webkit-resizer { display: none; }
.form-btn {
  position: relative; width: 100%;
  background: var(--border-gradient-onyx); color: var(--orange-yellow-crayola);
  display: flex; justify-content: center; align-items: center;
  gap: 10px; padding: 13px 20px; border-radius: 14px;
  font-size: var(--fs-6); text-transform: capitalize;
  box-shadow: var(--shadow-3); z-index: 1; transition: var(--transition-1);
}
.form-btn::before { content: ""; position: absolute; inset: 1px; background: var(--bg-gradient-jet); border-radius: inherit; z-index: -1; transition: var(--transition-1); }
.form-btn ion-icon { font-size: 16px; }
.form-btn:hover { background: var(--bg-gradient-yellow-1); }
.form-btn:hover::before { background: var(--bg-gradient-yellow-2); }
.form-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.form-btn:disabled:hover { background: var(--border-gradient-onyx); }
.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }

/* ════════════════════════════════════════════════════════════════
   ADVANCED ANIMATIONS
════════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════
   PRELOADER — HG monogram + G-arc progress ring
════════════════════════════════════════════════════════════════ */

/* ── Wrapper ── */
#preloader {
  position: fixed; inset: 0;
  background: hsl(220,12%,4%);
  z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1),
              visibility 0.7s;
}
#preloader.done {
  opacity: 0;
  transform: scale(1.06);
  visibility: hidden;
}

/* ── Subtle dot-grid background ── */
.pl-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, hsla(45,100%,72%,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 100%);
  animation: plGridFade 0.6s ease 0.1s both;
}
@keyframes plGridFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scene: ring + monogram stacked ── */
.pl-scene {
  position: relative;
  width: 160px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}

/* ── SVG ring ── */
.pl-ring-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg); /* start arc from top */
  overflow: visible;
}

/* Track (dim background circle) */
.pl-ring-track {
  fill: none;
  stroke: hsla(225,8%,22%,0.8);
  stroke-width: 2;
}

/* Fill arc — the G's arc progress ring */
.pl-ring-fill {
  fill: none;
  stroke: url(#plGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px hsla(45,100%,72%,0.6));
  animation: plArcFill 1.1s cubic-bezier(0.4,0,0.2,1) 0.3s both;
}
@keyframes plArcFill {
  from { stroke-dashoffset: 326.73; }
  to   { stroke-dashoffset: 0; }
}

/* Leading glowing dot that races the arc */
.pl-ring-dot {
  fill: hsl(45,100%,72%);
  filter: drop-shadow(0 0 4px hsl(45,100%,72%));
  /* Orbits the full circle in sync with the fill */
  transform-origin: 60px 60px;
  animation: plDotOrbit 1.1s cubic-bezier(0.4,0,0.2,1) 0.3s both;
}
@keyframes plDotOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* SVG gradient definition — injected inline via CSS content trick isn't possible,
   so we add it as a real SVG defs block in the JS-injected SVG */

/* ── HG monogram ── */
.pl-monogram {
  position: relative; z-index: 1;
  display: flex; align-items: baseline; gap: 1px;
  user-select: none;
  font-family: var(--ff-heading);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

/* H — slides in from left */
.pl-h {
  font-size: 3rem;
  background: linear-gradient(160deg, hsl(0,0%,98%) 0%, hsl(0,0%,72%) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: plHSlide 0.5s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
@keyframes plHSlide {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* G — slides in from right with gold colour */
.pl-g {
  font-size: 3rem;
  background: linear-gradient(160deg, hsl(45,100%,78%) 0%, hsl(35,100%,60%) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: plGSlide 0.5s cubic-bezier(0.22,1,0.36,1) 0.38s both;
}
@keyframes plGSlide {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Ring outer pulse (fires once at end) ── */
.pl-scene::after {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 1.5px solid hsla(45,100%,72%,0);
  animation: plRingPulse 0.6s ease 1.25s both;
}
@keyframes plRingPulse {
  0%   { border-color: hsla(45,100%,72%,0.7); transform: scale(1); }
  100% { border-color: hsla(45,100%,72%,0);   transform: scale(1.18); }
}

/* ── Name below ring ── */
.pl-name {
  font-family: var(--ff-heading);
  font-size: 1rem; font-weight: 600;
  color: var(--white-2);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: plNameFade 0.6s ease 0.55s both;
}
@keyframes plNameFade {
  from { opacity: 0; transform: translateY(8px) letterSpacing(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Subtitle ── */
.pl-sub {
  font-size: 10px; font-weight: 400;
  color: var(--light-gray-70);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: plNameFade 0.6s ease 0.72s both;
}

/* ── Old simple classes — kept silent so no bleed-through ── */
.preloader-logo, .preloader-bar { display: none !important; }

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(to right, hsl(45,100%,72%), hsl(35,100%,68%));
  z-index: 9998; transition: width 0.05s linear;
  box-shadow: var(--glow-gold);
}

/* ── Particle canvas ── */
#particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.35; }

/* ── Custom cursor ── */
#cursorDot {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: hsl(45,100%,72%); pointer-events: none; z-index: 99997;
  transform: translate(-50%,-50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
}
#cursorRing {
  position: fixed; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid hsla(45,100%,72%,0.5); pointer-events: none; z-index: 99996;
  transform: translate(-50%,-50%);
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1), height 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s, background 0.3s;
}
#cursorRing.hovered { width: 50px; height: 50px; border-color: hsla(45,100%,72%,0.8); background: hsla(45,100%,72%,0.06); }
#cursorDot.hovered { width: 10px; height: 10px; }
#cursorRing.clicked { transform: translate(-50%,-50%) scale(0.85); }
@media (hover:none) { #cursorDot, #cursorRing { display: none; } }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal-scale {
  opacity: 0; transform: scale(0.88);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible, .reveal-left.visible, .reveal-scale.visible { opacity: 1; transform: none; }
.stagger-1 { transition-delay: 0.04s; }
.stagger-2 { transition-delay: 0.10s; }
.stagger-3 { transition-delay: 0.16s; }
.stagger-4 { transition-delay: 0.22s; }
.stagger-5 { transition-delay: 0.28s; }
.stagger-6 { transition-delay: 0.34s; }
.stagger-7 { transition-delay: 0.40s; }
.stagger-8 { transition-delay: 0.46s; }

/* ── Avatar float ── */
.avatar-box {
  animation: avatarFloat 4s ease-in-out infinite;
}
.avatar-box:hover { filter: drop-shadow(0 0 14px hsla(45,100%,72%,0.5)); }
@keyframes avatarFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ── Article title shimmer underline ── */
.article-title::after {
  background: linear-gradient(90deg, hsl(45,100%,72%), hsl(35,100%,68%), hsl(55,100%,72%), hsl(45,100%,72%));
  background-size: 300% auto;
  animation: shimmerLine 3.5s linear infinite;
}
@keyframes shimmerLine { 0% { background-position: 0% center; } 100% { background-position: 300% center; } }

/* ── Split char animation ── */
.split-char {
  display: inline-block; opacity: 0; transform: translateY(12px);
  animation: charIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards;
}
.split-char.space { opacity: 0; }
.split-char.visible { animation: charIn 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes charIn { to { opacity: 1; transform: translateY(0); } }

/* ── Ripple ── */
.ripple-dot, .ripple-fx {
  position: absolute; border-radius: 50%;
  width: 6px; height: 6px;
  background: hsla(45,100%,72%,0.35);
  transform: translate(-50%,-50%) scale(0);
  animation: rippleAnim 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: translate(-50%,-50%) scale(22); opacity: 0; } }

/* ── Page wipe transition ── */
#pageWipe {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: linear-gradient(135deg, hsl(220,12%,5%), hsl(225,8%,10%));
  transform: translateY(-100%);
}
#pageWipe.enter { animation: wipeIn 0.4s cubic-bezier(0.22,1,0.36,1) forwards; }
#pageWipe.leave { animation: wipeOut 0.4s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes wipeIn  { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes wipeOut { from { transform: translateY(0); } to { transform: translateY(100%); } }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE  — 450px
════════════════════════════════════════════════════════════════ */
@media (min-width: 450px) {
  .project-img { height: auto; }
  .cert-list { gap: 20px; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE  — 580px
════════════════════════════════════════════════════════════════ */
@media (min-width: 580px) {
  :root {
    --fs-1: 32px; --fs-2: 24px; --fs-3: 26px;
    --fs-4: 18px; --fs-6: 15px; --fs-7: 15px; --fs-8: 12px;
  }
  .sidebar, article { width: 520px; margin-inline: auto; padding: 30px; }
  .article-title { font-weight: var(--fw-700); padding-bottom: 15px; }
  .article-title::after { width: 40px; height: 5px; }
  .icon-box { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; }
  main { margin-top: 60px; margin-bottom: 100px; }
  .sidebar { max-height: 180px; margin-bottom: 30px; }
  .sidebar.active { max-height: 584px; }
  .sidebar-info { gap: 25px; }
  .avatar-box { border-radius: 30px; }
  .avatar-box img { width: 120px; }
  .info-content .name { margin-bottom: 15px; }
  .info-content .title { padding: 5px 18px; }
  .info_more-btn { top: -30px; right: -30px; padding: 10px 15px; }
  .info_more-btn span { display: block; font-size: var(--fs-8); }
  .info_more-btn ion-icon { display: none; }
  .separator { margin: 32px 0; }
  .contacts-list { gap: 20px; }
  .contact-info { max-width: calc(100% - 64px); width: calc(100% - 64px); }
  .navbar { border-radius: 20px 20px 0 0; }
  .navbar-list { gap: 20px; }
  .navbar-link { --fs-8: 14px; }
  .about .article-title { margin-bottom: 20px; }
  .about-text { margin-bottom: 30px; }
  .service-item { display: flex; justify-content: flex-start; align-items: flex-start; gap: 18px; padding: 30px; }
  .service-icon-box { margin-bottom: 0; margin-top: 5px; }
  .service-content-box { text-align: left; }
  .mapbox { height: 380px; border-radius: 18px; }
  .input-wrapper { gap: 30px; margin-bottom: 30px; }
  .form-input { padding: 15px 20px; }
  textarea.form-input { margin-bottom: 30px; }
  .form-btn { --fs-6: 16px; padding: 16px 20px; }
  .form-btn ion-icon { font-size: 18px; }
  .stat-number { font-size: 1.55rem; }
  .cert-list { gap: 20px; }
  .tools-grid { gap: 18px; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE  — 768px
════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .sidebar, article { width: 700px; }
  .contacts-list { grid-template-columns: 1fr 1fr; gap: 30px 15px; }
  .navbar-link { --fs-8: 15px; }
  .article-title { padding-bottom: 20px; }
  .filter-select-box { display: none; }
  .filter-list {
    display: flex; justify-content: flex-start; align-items: center;
    gap: 25px; padding-left: 5px; margin-bottom: 30px;
  }
  .filter-item button { color: var(--light-gray); font-size: var(--fs-5); transition: var(--transition-1); }
  .filter-item button:hover { color: var(--light-gray-70); }
  .filter-item button.active { color: var(--orange-yellow-crayola); }
  .input-wrapper { grid-template-columns: 1fr 1fr; }
  .form-btn { width: max-content; margin-left: auto; }
  .cert-list { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE  — 1024px  — CRITICAL NAVBAR FIX
════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root {
    --shadow-1: -4px 8px 24px hsla(220,12%,0%,0.15);
    --shadow-2: 0 16px 30px hsla(220,12%,0%,0.15);
    --shadow-3: 0 16px 40px hsla(220,12%,0%,0.15);
  }
  .sidebar, article { width: 950px; box-shadow: var(--shadow-5); }
  main { margin-bottom: 60px; }
  .main-content { position: relative; width: max-content; margin: auto; }

  /* ──────────────────────────────────────────────────────
     NAVBAR: position at top-right, ONE row, NO wrap
  ────────────────────────────────────────────────────── */
  .navbar {
    position: absolute;
    bottom: auto; top: 0;
    left: auto; right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
    background: hsla(225,8%,10%,0.75);
  }
  .navbar-list {
    flex-wrap: nowrap;           /* ← THE FIX: prevent 2-row wrap */
    gap: 30px;
    padding: 0 20px;
    white-space: nowrap;
  }
  .navbar-link {
    font-weight: var(--fw-600);
    font-size: var(--fs-7);
  }
  .service-list { grid-template-columns: 1fr 1fr; gap: 20px 25px; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE  — 1250px  — SIDEBAR + MAIN SIDE-BY-SIDE
════════════════════════════════════════════════════════════════ */
@media (min-width: 1250px) {
  body::-webkit-scrollbar { width: 20px; }
  body::-webkit-scrollbar-track { background: var(--smoky-black); }
  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0,0%,100%,0.1); border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0,0%,100%,0.11), inset -1px -1px 0 hsla(0,0%,100%,0.11);
  }
  body::-webkit-scrollbar-thumb:hover { background: hsla(0,0%,100%,0.15); }
  body::-webkit-scrollbar-button { height: 60px; }
  .sidebar, article { width: auto; }
  article { min-height: 100%; }
  main {
    max-width: 1200px; margin-inline: auto;
    display: flex; justify-content: center; align-items: stretch; gap: 25px;
  }
  .main-content { min-width: 75%; width: 75%; margin: 0; }
  .sidebar {
    position: sticky; top: 60px;
    max-height: max-content; height: 100%;
    margin-bottom: 0; padding-top: 60px; z-index: 1;
  }
  .sidebar-info { flex-direction: column; }
  .avatar-box img { width: 150px; }
  .info-content .name { white-space: nowrap; text-align: center; }
  .info-content .title { margin: auto; }
  .info_more-btn { display: none; }
  .sidebar-info_more { opacity: 1; visibility: visible; }
  .contacts-list { grid-template-columns: 1fr; }
  .contact-info :is(.contact-link) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .contact-info :is(.contact-link, time, address) { --fs-7: 14px; font-weight: var(--fw-300); }
  .separator:last-of-type { margin: 15px 0; opacity: 0; }
  .social-list { justify-content: center; }
  .timeline-text { max-width: 700px; }
}

/* ════════════════════════════════════════════════════════════════
   PORTFOLIO RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .pf-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; }
}

/* ════════════════════════════════════════════════════════════════
   SIDEBAR — ENTRANCE & COMPONENT ANIMATIONS
   Each element animates in independently with staggered delays.
   Animations fire once on page load via @keyframes + animation-fill-mode:both
════════════════════════════════════════════════════════════════ */

/* ── 1. Panel slide-in from left ── */
@keyframes sidebarSlideIn {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.sidebar {
  animation: sidebarSlideIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}

/* ── 2. Avatar: scale-up with a subtle overshoot bounce ── */
@keyframes avatarEntrance {
  0%   { opacity: 0; transform: scale(0.6) translateY(10px); }
  65%  { transform: scale(1.06) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.avatar-box {
  /* override the float-only animation → sequence: entrance THEN float */
  animation:
    avatarEntrance 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s both,
    avatarFloat    4s  ease-in-out 1.1s infinite;
}

/* Animated gold ring pulse around avatar */
@keyframes avatarRingPulse {
  0%,100% { box-shadow: 0 0 0 0   hsla(45,100%,72%,0.0),  inset 0 0 0 1.5px hsla(45,100%,72%,0.25); }
  50%     { box-shadow: 0 0 0 7px hsla(45,100%,72%,0.0),  inset 0 0 0 1.5px hsla(45,100%,72%,0.5); }
}
.avatar-box::after {
  animation: avatarRingPulse 3s ease-in-out 1.2s infinite;
}

/* ── 3. Name: slide up + fade ── */
@keyframes nameReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.info-content .name {
  animation: nameReveal 0.6s cubic-bezier(0.22,1,0.36,1) 0.55s both;
  display: inline-block; /* needed so transform works on inline h1 */
}

/* ── 4. Title badge: fade + scale up slightly ── */
@keyframes badgeReveal {
  from { opacity: 0; transform: scale(0.82) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.info-content .title {
  animation: badgeReveal 0.5s cubic-bezier(0.22,1,0.36,1) 0.72s both;
}

/* ── 5. Show-contacts button: drop in from top-right ── */
@keyframes btnDrop {
  from { opacity: 0; transform: translate(8px,-8px) scale(0.85); }
  to   { opacity: 1; transform: translate(0,0) scale(1); }
}
.info_more-btn {
  animation: btnDrop 0.45s cubic-bezier(0.22,1,0.36,1) 0.85s both;
}

/* ── 6. Separator lines: width grows from 0 ── */
@keyframes separatorGrow {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}
/* We can't animate width on a block element directly without overflow:hidden trick,
   so we use a pseudo-element overlay approach instead */
.sidebar-info_more .separator {
  position: relative;
  overflow: hidden;
  background: transparent; /* hide the base */
}
.sidebar-info_more .separator::after {
  content: "";
  position: absolute; top: 0; left: 0;
  height: 100%; width: 100%;
  background: var(--jet);
  animation: separatorGrow 0.6s ease-out both;
}
/* Stagger the two separators */
.sidebar-info_more .separator:nth-of-type(1)::after { animation-delay: 0.1s; }
.sidebar-info_more .separator:nth-of-type(2)::after { animation-delay: 0.55s; }

/* Only animate separators when sidebar is expanded */
.sidebar:not(.active) .sidebar-info_more .separator::after { animation: none; width: 100%; background: var(--jet); }

/* ── 7. Contact items: slide in from left, staggered ── */
@keyframes contactSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.contact-item {
  animation: contactSlideIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
  opacity: 0; /* start hidden; animation fills forward */
}
/* Trigger animation only once sidebar is opened to avoid re-fire issues.
   We use the parent .sidebar.active to gate via CSS alone. */
.sidebar.active .contact-item:nth-child(1) { animation-delay: 0.08s; }
.sidebar.active .contact-item:nth-child(2) { animation-delay: 0.16s; }
.sidebar.active .contact-item:nth-child(3) { animation-delay: 0.24s; }
.sidebar.active .contact-item:nth-child(4) { animation-delay: 0.32s; }

/* On desktop where sidebar is always open (≥1250px), fire immediately */
@media (min-width: 1250px) {
  .contact-item:nth-child(1) { animation-delay: 0.7s; }
  .contact-item:nth-child(2) { animation-delay: 0.8s; }
  .contact-item:nth-child(3) { animation-delay: 0.9s; }
  .contact-item:nth-child(4) { animation-delay: 1.0s; }
}

/* ── 8. Icon-boxes: spin + scale on hover ── */
.icon-box {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s ease,
              background  0.25s ease;
}
.icon-box:hover,
.contact-item:hover .icon-box {
  transform: rotate(-8deg) scale(1.12);
  box-shadow: 0 6px 20px hsla(45,100%,72%,0.22);
  background: var(--bg-gradient-yellow-1);
}
/* Icon inside spins the other way for a double-rotation feel */
.icon-box ion-icon {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), color 0.25s;
}
.contact-item:hover .icon-box ion-icon {
  transform: rotate(10deg) scale(1.1);
  color: var(--orange-yellow-crayola);
}

/* Contact text highlight on row hover */
.contact-item {
  border-radius: 10px;
  padding: 4px 6px;
  margin: -4px -6px;
  transition: background 0.25s ease;
}
.contact-item:hover { background: hsla(45,100%,72%,0.05); }
.contact-item:hover .contact-link,
.contact-item:hover time,
.contact-item:hover address { color: var(--white-2); }

/* ── 9. Social icons: pop in with bounce stagger ── */
@keyframes socialPop {
  0%   { opacity: 0; transform: scale(0.4) translateY(10px); }
  65%  { transform: scale(1.18) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.social-item {
  animation: socialPop 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.sidebar.active .social-item:nth-child(1) { animation-delay: 0.42s; }
.sidebar.active .social-item:nth-child(2) { animation-delay: 0.52s; }
.sidebar.active .social-item:nth-child(3) { animation-delay: 0.62s; }

@media (min-width: 1250px) {
  .social-item:nth-child(1) { animation-delay: 1.1s; }
  .social-item:nth-child(2) { animation-delay: 1.2s; }
  .social-item:nth-child(3) { animation-delay: 1.3s; }
}

/* Social hover: lift + glow + spin icon */
.social-item .social-link {
  position: relative;
  padding: 6px; border-radius: 50%;
  transition: color 0.25s, transform 0.3s cubic-bezier(0.22,1,0.36,1),
              background 0.25s, box-shadow 0.3s !important;
}
.social-item .social-link:hover {
  color: var(--smoky-black) !important;
  background: var(--orange-yellow-crayola);
  transform: translateY(-5px) scale(1.2) !important;
  box-shadow: 0 8px 20px hsla(45,100%,72%,0.4);
}
/* The icon itself does a micro-spin on hover */
.social-item .social-link ion-icon {
  display: block;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.social-item .social-link:hover ion-icon { transform: rotate(12deg); }

/* ── 10. Sidebar shimmer streak on load ── */
@keyframes sidebarShimmer {
  0%   { left: -80%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
.sidebar::after {
  content: "";
  position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    hsla(255,255%,100%,0.04),
    hsla(45,100%,72%,0.04),
    transparent
  );
  transform: skewX(-12deg);
  border-radius: 20px;
  pointer-events: none;
  animation: sidebarShimmer 1.6s ease-out 0.4s both;
  z-index: 2;
}



/* ════════════════════════════════════════════════════════════════
   PAGE ANIMATIONS — ABOUT · RESUME · CONTACT
   All scoped to their article so they never leak between pages.
════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   SHARED KEYFRAMES
───────────────────────────────────────────────────────────────*/
@keyframes fadeUp        { from { opacity:0; transform:translateY(28px);  } to { opacity:1; transform:none; } }
@keyframes fadeLeft      { from { opacity:0; transform:translateX(-28px); } to { opacity:1; transform:none; } }
@keyframes fadeRight     { from { opacity:0; transform:translateX(28px);  } to { opacity:1; transform:none; } }
@keyframes scaleIn       { from { opacity:0; transform:scale(.84);        } to { opacity:1; transform:scale(1); } }
@keyframes popIn         { 0%{opacity:0;transform:scale(.5) translateY(8px)} 70%{transform:scale(1.08)} 100%{opacity:1;transform:scale(1) translateY(0)} }
@keyframes glowPulse     { 0%,100%{box-shadow:0 0 0 0 hsla(45,100%,72%,.0)} 50%{box-shadow:0 0 16px 4px hsla(45,100%,72%,.22)} }
@keyframes shimmerSweep  { 0%{left:-80%;opacity:0} 20%{opacity:1} 100%{left:160%;opacity:0} }
@keyframes dotPulse      { 0%,100%{box-shadow:0 0 0 4px var(--jet)} 50%{box-shadow:0 0 0 4px var(--jet),0 0 12px 4px hsla(45,100%,72%,.4)} }
@keyframes underlineIn   { from{width:0} to{width:100%} }
@keyframes floatY        { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes iconSpin      { from{transform:rotate(-20deg) scale(.7);opacity:0} to{transform:rotate(0) scale(1);opacity:1} }
@keyframes borderFlow    { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }
@keyframes formFocusGlow { from{box-shadow:0 0 0 0 hsla(45,100%,72%,0)} to{box-shadow:0 0 0 4px hsla(45,100%,72%,.12)} }
@keyframes lineGrow      { from{clip-path:inset(0 0 100% 0)} to{clip-path:inset(0 0 0% 0)} }
@keyframes tagFloat      { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }

/* ─────────────────────────────────────────────────────────────
   ARTICLE HEADER — title slides up + underline draws
───────────────────────────────────────────────────────────────*/
.about.active header .article-title,
.resume.active header .article-title,
.contact.active header .article-title {
  animation: fadeUp .55s cubic-bezier(.22,1,.36,1) .05s both;
}
.about.active .article-title::after,
.resume.active .article-title::after,
.contact.active .article-title::after {
  width: 0;
  animation: underlineIn .5s cubic-bezier(.22,1,.36,1) .5s forwards;
}

/* ═════════════════════════════════════════════════════════════
   ██████  ABOUT PAGE
═════════════════════════════════════════════════════════════ */

/* Bio text block */
.about.active .about-text {
  animation: fadeUp .55s cubic-bezier(.22,1,.36,1) .18s both;
}

/* Section sub-headings */
.about.active .service-title,
.about.active .tools-grid ~ h3,
.about.active h3.h3 {
  opacity: 0;
  animation: fadeLeft .5s cubic-bezier(.22,1,.36,1) .25s forwards;
}

/* ── Service items: stagger up ── */
.service-item { --si: 0; overflow: hidden; }
.service-item:nth-child(1) { --si: 0; }
.service-item:nth-child(2) { --si: 1; }
.service-item:nth-child(3) { --si: 2; }
.service-item:nth-child(4) { --si: 3; }
.service-item {
  opacity: 0; transform: translateY(26px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1) calc(var(--si)*0.1s),
              transform .55s cubic-bezier(.22,1,.36,1) calc(var(--si)*0.1s),
              box-shadow .3s, background .3s;
}
.service-item.visible { opacity: 1; transform: none; }

/* Icon box: spin-in when card becomes visible */
.service-item.visible .service-icon-box {
  animation: iconSpin .5s cubic-bezier(.22,1,.36,1) .1s both;
}

/* Service title hover underline */
.service-item-title { position: relative; display: inline-block; }
.service-item-title::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  height: 1.5px; width: 0;
  background: var(--text-gradient-yellow); border-radius: 2px;
  transition: width .35s cubic-bezier(.22,1,.36,1);
}
.service-item:hover .service-item-title::after { width: 100%; }

/* Shimmer sweep on service card hover */
.service-item::before { z-index: -1; } /* ensure existing pseudo is unaffected */
.service-item .shimmer-layer {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(90deg, transparent, hsla(255,255%,100%,.04), transparent);
  transform: skewX(-12deg) translateX(-100%);
  transition: transform .6s ease;
}
.service-item:hover .shimmer-layer { transform: skewX(-12deg) translateX(260%); }

/* ── Tools categories: stagger up ── */
.tools-category { --tc: 0; }
.tools-category:nth-child(1) { --tc: 0; }
.tools-category:nth-child(2) { --tc: 1; }
.tools-category:nth-child(3) { --tc: 2; }
.tools-category:nth-child(4) { --tc: 3; }
.tools-category {
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease calc(var(--tc)*0.09s),
              transform .5s cubic-bezier(.22,1,.36,1) calc(var(--tc)*0.09s),
              box-shadow .3s, transform .3s;
}
.tools-category.visible { opacity: 1; transform: none; }

/* Label icon floats */
.tools-label ion-icon {
  display: inline-block;
  animation: floatY 2.8s ease-in-out infinite;
  animation-delay: calc(var(--tc,0) * .5s);
}

/* Skill tags: pop in sequentially once parent visible */
.skill-tag { opacity: 0; }
.tools-category.visible .skill-tag,
.timeline-item.visible .skill-tag {
  animation: popIn .38s cubic-bezier(.22,1,.36,1) both;
}
.tools-category.visible .skill-tag:nth-child(1)  { animation-delay: .06s; }
.tools-category.visible .skill-tag:nth-child(2)  { animation-delay: .12s; }
.tools-category.visible .skill-tag:nth-child(3)  { animation-delay: .18s; }
.tools-category.visible .skill-tag:nth-child(4)  { animation-delay: .24s; }
.tools-category.visible .skill-tag:nth-child(5)  { animation-delay: .30s; }
.tools-category.visible .skill-tag:nth-child(6)  { animation-delay: .36s; }
.tools-category.visible .skill-tag:nth-child(7)  { animation-delay: .42s; }
.tools-category.visible .skill-tag:nth-child(8)  { animation-delay: .48s; }
.tools-category.visible .skill-tag:nth-child(9)  { animation-delay: .54s; }
.tools-category.visible .skill-tag:nth-child(10) { animation-delay: .60s; }
.timeline-item.visible .skill-tag:nth-child(1) { animation-delay: .3s; }
.timeline-item.visible .skill-tag:nth-child(2) { animation-delay: .38s; }
.timeline-item.visible .skill-tag:nth-child(3) { animation-delay: .46s; }
.timeline-item.visible .skill-tag:nth-child(4) { animation-delay: .54s; }
.timeline-item.visible .skill-tag:nth-child(5) { animation-delay: .62s; }

/* ═════════════════════════════════════════════════════════════
   ██████  RESUME PAGE
═════════════════════════════════════════════════════════════ */

/* Section title-wrappers */
.resume.active .timeline .title-wrapper {
  opacity: 0;
  animation: fadeLeft .5s cubic-bezier(.22,1,.36,1) both;
}
.resume.active .timeline:nth-of-type(1) .title-wrapper { animation-delay: .1s; }
.resume.active .timeline:nth-of-type(2) .title-wrapper { animation-delay: .15s; }
.resume.active .timeline:nth-of-type(3) .title-wrapper { animation-delay: .2s; }

/* Section icon-box: spin + pulse */
.resume.active .title-wrapper .icon-box {
  animation: iconSpin .5s cubic-bezier(.22,1,.36,1) .25s both,
             glowPulse 2.8s ease 1.2s infinite;
}

/* ── Timeline connector line draws downward ── */
.timeline-item:not(:last-child)::before {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(.22,1,.36,1) .35s;
}
.timeline-item.visible:not(:last-child)::before {
  clip-path: inset(0 0 0% 0);
}

/* Timeline dot: scale up then pulse */
.timeline-item::after {
  transform: scale(0);
  transition: transform .4s cubic-bezier(.22,1,.36,1) .15s;
}
.timeline-item.visible::after {
  transform: scale(1);
  animation: dotPulse 2.8s ease-in-out .6s infinite;
}

/* Timeline items: slide in alternating */
.timeline-item { --ti: 0; }
.timeline-item:nth-child(1) { --ti: 0; }
.timeline-item:nth-child(2) { --ti: 1; }
.timeline-item:nth-child(3) { --ti: 2; }
.timeline-item:nth-child(4) { --ti: 3; }
.timeline-item {
  opacity: 0; transform: translateX(-20px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1) calc(var(--ti)*0.1s),
              transform .5s cubic-bezier(.22,1,.36,1) calc(var(--ti)*0.1s);
}
.timeline-item.visible { opacity: 1; transform: none; }

/* Item title: gold underline draws on hover */
.timeline-item-title {
  background-image: var(--text-gradient-yellow);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s ease;
  display: inline;
}
.timeline-item:hover .timeline-item-title { background-size: 100% 1.5px; }

/* Skills title */
.resume.active .skills-title {
  opacity: 0;
  animation: fadeUp .5s cubic-bezier(.22,1,.36,1) .05s forwards;
}

/* Skills items: stagger in from left */
.skills-item { --ski: 0; }
.skills-item:nth-child(1) { --ski: 0; }
.skills-item:nth-child(2) { --ski: 1; }
.skills-item:nth-child(3) { --ski: 2; }
.skills-item:nth-child(4) { --ski: 3; }
.skills-item:nth-child(5) { --ski: 4; }
.skills-item:nth-child(6) { --ski: 5; }
.skills-item {
  opacity: 0; transform: translateX(-18px);
  transition: opacity .5s ease calc(var(--ski)*0.08s),
              transform .5s cubic-bezier(.22,1,.36,1) calc(var(--ski)*0.08s);
}
.skills-item.visible { opacity: 1; transform: none; }

/* Skill bar fill: shimmer rides over bar after it fills */
.skill-progress-fill { position: relative; overflow: hidden; }
.skill-progress-fill.animated::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, hsla(255,255%,100%,.45) 50%, transparent 100%);
  animation: shimmerSweep 1.6s ease 1.3s both;
}

/* Cert items: stagger up with badge pop */
.cert-item { --ci: 0; }
.cert-item:nth-child(1) { --ci: 0; }
.cert-item:nth-child(2) { --ci: 1; }
.cert-item:nth-child(3) { --ci: 2; }
.cert-item {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease calc(var(--ci)*0.1s),
              transform .5s cubic-bezier(.22,1,.36,1) calc(var(--ci)*0.1s);
}
.cert-item.visible { opacity: 1; transform: none; }
.cert-item.visible .cert-badge {
  animation: popIn .45s cubic-bezier(.22,1,.36,1) calc(var(--ci)*0.1s + .1s) both;
}
.cert-item:hover .cert-badge {
  transform: scale(1.15) rotate(-6deg);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.cert-badge {
  animation: glowPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--ci,0) * .5s);
}

/* ═════════════════════════════════════════════════════════════
   ██████  CONTACT PAGE
═════════════════════════════════════════════════════════════ */

/* Map box: scale in + animated flowing border */
.contact.active .mapbox {
  animation: scaleIn .65s cubic-bezier(.22,1,.36,1) .2s both;
}
.mapbox {
  position: relative; border: none !important;
}
.mapbox::before {
  content: ''; position: absolute; inset: -1.5px;
  border-radius: inherit; z-index: -1;
  background: linear-gradient(90deg,
    var(--jet) 0%,
    hsl(45,100%,72%) 40%,
    hsl(35,100%,68%) 60%,
    var(--jet) 100%);
  background-size: 200% auto;
  animation: borderFlow 3s linear .8s infinite;
}

/* Form title */
.contact.active .form-title {
  opacity: 0;
  animation: fadeLeft .5s cubic-bezier(.22,1,.36,1) .38s forwards;
}

/* Input fields: stagger float up */
.contact.active .input-wrapper .form-input:nth-child(1) {
  opacity: 0;
  animation: fadeUp .45s cubic-bezier(.22,1,.36,1) .48s forwards;
}
.contact.active .input-wrapper .form-input:nth-child(2) {
  opacity: 0;
  animation: fadeUp .45s cubic-bezier(.22,1,.36,1) .58s forwards;
}
.contact.active textarea.form-input {
  opacity: 0;
  animation: fadeUp .45s cubic-bezier(.22,1,.36,1) .68s forwards;
}

/* Input: lift + glow on focus */
.form-input {
  transition: border-color .25s, box-shadow .3s, transform .2s;
}
.form-input:focus {
  transform: translateY(-2px);
  animation: formFocusGlow .3s ease forwards;
}

/* Send button: slide up */
.contact.active .form-btn {
  opacity: 0;
  animation: fadeUp .45s cubic-bezier(.22,1,.36,1) .78s forwards;
}

/* Button enabled: idle glow pulse */
.form-btn:not([disabled]) {
  opacity: 1 !important;
  animation: glowPulse 2.5s ease-in-out infinite !important;
}

/* Button hover: shimmer + icon rotate */
.form-btn { overflow: hidden; }
.form-btn .shimmer-btn {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, hsla(255,255%,100%,.07), transparent);
  transform: skewX(-12deg) translateX(-100%);
  transition: transform .5s ease;
}
.form-btn:not([disabled]):hover .shimmer-btn { transform: skewX(-12deg) translateX(260%); }
.form-btn ion-icon {
  display: inline-block;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.form-btn:not([disabled]):hover ion-icon { transform: rotate(18deg) scale(1.15) translateX(2px); }
