/* ─────────────────────────────────────────────────────────────────────────────
   Enzo Portfolio — style.css   |   Minimal + Icon-Rich Dark Theme
   ───────────────────────────────────────────────────────────────────────────── */

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

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface2: #1a1a1a;
  --border: #262626;
  --text: #ececec;
  --muted: #5a5a5a;
  --accent: #7c7cf7;
  --accent-soft: rgba(124, 124, 247, .12);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --t: .22s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface2);
  border-radius: 99px;
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent-text {
  color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font: 600 .9rem 'Inter', sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s cubic-bezier(.23, 1, .32, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124, 124, 247, .25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

/* Button States for Forms (Skeleton/Success/Error) */
.btn-loading {
  pointer-events: none;
  opacity: .8;
  background: var(--surface2);
  color: var(--muted);
  border-color: var(--border);
}

.btn-success {
  pointer-events: none;
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  transform: scale(0.97);
  box-shadow: 0 0 20px rgba(16, 185, 129, .3);
}

.btn-error {
  pointer-events: none;
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: translateX(4px);
  /* will shake in JS */
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, .96);
  border-color: var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 1.05rem 'Inter', sans-serif;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  color: var(--accent);
  font-size: 1rem;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--muted);
  font: 500 .875rem 'Inter', sans-serif;
  transition: var(--t);
}

.nav-link i {
  font-size: .78rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 720px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--bg);
    padding: 10px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: var(--t);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link span {
    display: inline;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 70px;
  max-width: 1020px;
  margin: 0 auto;
  gap: 56px;
}

.hero-content {
  flex: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font: 500 .8rem 'Inter', sans-serif;
  color: var(--muted);
  margin-bottom: 22px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade8099;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

/* Title */
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

/* Subtitle */
.hero-subtitle {
  font-size: .975rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 30px;
  line-height: 1.8;
}

.subtitle-icon {
  color: var(--accent);
  margin-right: 4px;
}

/* Actions */
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Social buttons */
.hero-socials {
  display: flex;
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font: 500 .82rem 'Inter', sans-serif;
  text-decoration: none;
  transition: var(--t);
}

.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.social-btn i {
  font-size: .95rem;
}

/* ── Profile Card ─────────────────────────────────────────────────────────── */
.hero-visual {
  flex: 0 0 290px;
}

.profile-card {
  padding: 0;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  text-align: left;
  overflow: hidden;
}

.profile-banner {
  width: 100%;
  height: 120px;
  background: #2b2d31;
}

.profile-banner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-content {
  padding: 0 28px 32px;
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: -45px;
  margin-bottom: 12px;
}

.profile-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #8084f3;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  border: 6px solid #18191c;
  box-sizing: content-box;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  background: #18191c;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.status-indicator.dnd::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f23f43;
}

.status-indicator.dnd::after {
  content: '';
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 3.5px;
  border-radius: 2px;
  background: #18191c;
}

.profile-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f2f3f5;
  margin-bottom: 2px;
}

.profile-info p {
  font-size: .95rem;
  font-weight: 500;
  color: #b5bac1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-info i {
  color: #8084f3;
}

.profile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.stat-icon {
  color: #80848e;
  font-size: .9rem;
  margin-bottom: 2px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #8084f3;
  line-height: 1;
}

.stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: #949ba4;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ptag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #2b2d31;
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-size: .8rem;
  font-weight: 500;
  color: #dbdee1;
}

.ptag i {
  color: #8084f3;
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 110px;
  }

  .hero-subtitle {
    margin: 0 auto 30px;
  }

  .hero-actions,
  .hero-socials {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .profile-top {
    flex-direction: row;
    align-items: flex-start;
  }

  /* Keep Discord look on mobile */
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font: 600 .72rem 'Inter', sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

.section-tag i {
  color: var(--accent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--muted);
  font-size: .9rem;
}

/* ── Services Grid ─────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
    border-color .3s ease,
    box-shadow .35s ease;
}

/* Shimmer on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(124, 124, 247, .06) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .6s ease;
  pointer-events: none;
}

.service-card:hover::before {
  transform: translateX(110%);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 36px rgba(124, 124, 247, .12);
}

/* Icon box (reuses existing .skill-icon color classes) */
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform .3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: .975rem;
  font-weight: 700;
  transition: color var(--t);
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-card>p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

/* Checklist */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
}

.service-list li i {
  color: var(--accent);
  font-size: .7rem;
  flex-shrink: 0;
}

/* CTA button */
.service-cta {
  margin-top: 4px;
}

.btn-sm {
  padding: 7px 14px;
  font-size: .8rem;
}

.btn-sm i {
  font-size: .75rem;
  transition: transform .3s ease;
}

.btn-ghost:hover i {
  transform: translateX(3px);
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

/* Card */
.project-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1),
    border-color .3s ease,
    box-shadow .35s ease;
}

/* Shimmer sweep */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(124, 124, 247, .07) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .6s ease;
  pointer-events: none;
}

.project-card:hover::before {
  transform: translateX(110%);
}

/* Float + glow */
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(124, 124, 247, .13);
}

/* Staggered fade-up on reveal */
@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card.reveal.visible {
  animation: cardFadeUp .5s cubic-bezier(.4, 0, .2, 1) both;
}

/* Top row */
.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  transition: transform .3s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(-4deg);
}

.project-links {
  display: flex;
  gap: 6px;
}

.plink {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.plink:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Text */
.project-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color var(--t);
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-desc {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 600;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color var(--t), color var(--t);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* View Project link */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 600 .85rem 'Inter', sans-serif;
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  width: 100%;
  transition: color var(--t), gap var(--t);
}

.project-link i {
  transition: transform .3s ease;
}

.project-card:hover .project-link {
  color: var(--accent);
  gap: 10px;
}

.project-card:hover .project-link i {
  transform: translateX(4px);
}

.loading-spinner {
  grid-column: 1/-1;
  text-align: center;
  font-size: 1.6rem;
  color: var(--muted);
  padding: 48px 0;
}

/* ── Skills Grid ───────────────────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.skill-card {
  padding: 18px;
  transition: border-color var(--t);
}

.skill-card:hover {
  border-color: var(--accent);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* individual icon colors */
.js-icon {
  background: #f7df1e22;
  color: #f7df1e;
}

.node-icon {
  background: #68a06322;
  color: #68a063;
}

.discord-icon {
  background: #5865f222;
  color: #5865f2;
}

.html-icon {
  background: #e34c2622;
  color: #e34c26;
}

.mongo-icon {
  background: #47a24822;
  color: #47a248;
}

.py-icon {
  background: #3776ab22;
  color: #3776ab;
}

.git-icon {
  background: #f0552222;
  color: #f05522;
}

.linux-icon {
  background: #fcc62422;
  color: #fcc624;
}

.skill-card h4 {
  font-size: .9rem;
  font-weight: 600;
}

.skill-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(.4, 0, .2, 1);
}

.skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.skill-desc {
  font-size: .72rem;
  color: var(--muted);
}

.skill-pct {
  font-size: .72rem;
  color: var(--accent);
  font-weight: 700;
}

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 18px;
}

@media (max-width: 720px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Info — Glassmorphism */
.contact-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.06);
}

.cinfo-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-info p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  background: rgba(26,26,26,.5);
  border: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t), background .25s ease;
}

.contact-item:hover {
  border-color: var(--accent);
  background: rgba(124,124,247,.06);
}

.ci-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: .95rem;
  flex-shrink: 0;
}

.contact-item>div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ci-label {
  font-size: .68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.ci-val {
  font-size: .82rem;
  font-weight: 600;
  margin-top: 1px;
}

.ci-arrow {
  color: var(--muted);
  font-size: .75rem;
}

/* Form — Glassmorphism */
.contact-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.06);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 .8rem 'Inter', sans-serif;
  color: var(--muted);
}

.form-group label i {
  color: var(--accent);
}

.input-wrap {
  position: relative;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  color: var(--text);
  font: .9rem 'Inter', sans-serif;
  outline: none;
  transition: border-color var(--t);
  resize: vertical;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--accent);
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: var(--muted);
}

.form-status {
  text-align: center;
  font: 600 .875rem 'Inter', sans-serif;
  padding: 10px;
  border-radius: var(--r-sm);
  display: none;
}

.form-status.success {
  background: rgba(74, 222, 128, .08);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .2);
  display: block;
}

.form-status.error {
  background: rgba(248, 113, 113, .08);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, .2);
  display: block;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px 16px;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-text {
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials a {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: var(--t);
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-copy {
  color: var(--muted);
  font-size: .73rem;
}

/* ── Reveal + Skill card (JS-driven) ────────────────────────────────────── */
/* All opacity/transform animations handled by JS IntersectionObserver       */
.skill-card {
  transition: border-color var(--t);
}

/* ── Scroll progress bar (disabled) ─────────────────────────────────────── */
.scroll-progress {
  display: none;
}

/* ── Back-to-top button ──────────────────────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, color var(--t), border-color var(--t), transform var(--t);
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ── Typing cursor ────────────────────────────────────────────────────────── */
.typing-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 1px;
  animation: blink .7s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.typing-text {
  color: var(--text);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 30px;
}

.subtitle-icon {
  color: var(--accent);
  margin-right: 5px;
}

/* ── Toast notifications ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  right: 28px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font: 500 .875rem 'Inter', sans-serif;
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  transform: translateY(20px) translateX(20px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  max-width: 300px;
}

.toast.toast-in {
  transform: translateY(0) translateX(0);
  opacity: 1;
}

.toast-success i {
  color: #4ade80;
}

.toast-error i {
  color: #f87171;
}

.grid-err {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Floating nav pill ────────────────────────────────────────────────────── */
.nav-links {
  position: relative;
}

.nav-pill {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.23, 1, .32, 1),
    width .35s cubic-bezier(.23, 1, .32, 1),
    height .35s cubic-bezier(.23, 1, .32, 1),
    opacity .2s ease;
}

/* ── Split-word title reveal ──────────────────────────────────────────────── */
.sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.2;
}

.sw-i {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform .72s cubic-bezier(.16, 1, .3, 1), opacity .72s ease;
}

.sw.sw-on .sw-i {
  transform: translateY(0);
  opacity: 1;
}

/* ── Hero parallax — will-change hint ────────────────────────────────────── */
.hero-content,
.hero-visual {
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CSS SCROLL-DRIVEN ANIMATION — fixed element
   Uses the native CSS animation-timeline: scroll() API (Chrome 115+ / Edge 115+)
   with a JS RAF fallback for Firefox / Safari
   ═══════════════════════════════════════════════════════════════════════════ */

/* Track: fixed vertical line on the left */
.sd-track {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: clamp(100px, 22vh, 180px);
  background: var(--border);
  border-radius: 99px;
  z-index: 998;
  overflow: visible;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

/* Show after page loads (JS adds .sd-ready) */
.sd-track.sd-ready {
  opacity: 1;
}

/* Endpoint dots */
.sd-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s ease;
}

.sd-dot--top {
  top: -3px;
}

.sd-dot--bot {
  bottom: -3px;
}

/* The fill bar — animated by scroll */
.sd-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  /* start empty */
  background: var(--accent);
  border-radius: 99px;


  /* ── Pure CSS scroll-driven:                              */
  /* The height animates 0% → 100% linked to the root scroll */
  animation: sdFill linear both;
  animation-timeline: scroll(root);
}

@keyframes sdFill {
  from {
    height: 0%;
  }

  to {
    height: 100%;
  }
}

/* When fill reaches top/bottom dot, light them up */
.sd-track.sd-ready .sd-dot--top {
  background: var(--accent);
}

/* JS fallback — for browsers without animation-timeline support */
.sd-track.sd-js .sd-fill {
  animation: none;
  /* disable CSS API          */
  transition: height .08s linear;
  /* JS sets height inline  */
}

/* Hide on small screens — not enough horizontal space */
@media (max-width: 900px) {
  .sd-track {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TERMINAL SPLASH SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent);
  display: flex;
  align-items: center;
}

.splash-prefix {
  color: var(--muted);
  margin-right: 12px;
}