/* ============================================================
   Pranav P J — Software Engineer Portfolio
   ============================================================ */

/* --- Font Face: Geist Pixel Circle (local fallback) --- */
@font-face {
  font-family: 'Geist Pixel Circle';
  src: url('fonts/GeistPixel-Circle.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Background Video --- */
.bg {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* Dark overlay for text readability */
.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* --- Page Container --- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  gap: clamp(18px, 2.8vw, 28px);
  flex-shrink: 0;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Logo */
.logo-btn {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.logo-btn:hover {
  transform: scale(1.04);
}

.logo-btn img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

/* Nav Pill */
.nav-pill {
  display: flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  flex: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav-pill a {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  padding: 0 clamp(8px, 1.2vw, 14px);
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.nav-pill a:hover {
  opacity: 0.75;
}

.nav-pill a.active {
  opacity: 1;
}

/* Active three-dot indicator */
.nav-pill a.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  transform: translateX(-50%);
}

/* Sign In Button */
.sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(14px, 1.6vw, 20px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  z-index: 1;
}

/* --- Trust Row --- */
.trust-row {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
  --trust-size: clamp(36px, 4.5vw, 42px);
}

@media (max-width: 420px) {
  .trust-row { --trust-size: 34px; }
}

.trust-avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease;
}

.trust-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.trust-avatar i {
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-avatar:nth-child(2) {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 1;
}
.trust-avatar:nth-child(2):hover { transform: translateY(-2px); }

.trust-avatar:nth-child(3) {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 2;
}
.trust-avatar:nth-child(3):hover { transform: translateY(-4px); }

.trust-avatar:nth-child(4) {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 4;
}
.trust-avatar:nth-child(4):hover { transform: translateY(-2px); }

.trust-pill {
  display: flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(12px, 1.4vw, 16px);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .trust-pill { font-size: 12px; }
}

/* --- Headline --- */
.headline {
  margin-bottom: clamp(14px, 2vh, 22px);
}

.headline span {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(0, 0, 0, 0.2);
}

.headline span.line-1 {
  animation-delay: 0.12s;
}

.headline span.line-2 {
  animation-delay: 0.3s;
  font-size: clamp(22px, 4.8vw, 60px);
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 720px) {
  .headline span { letter-spacing: -0.08em; line-height: 1.05; }
}

@media (max-width: 420px) {
  .headline span { letter-spacing: -0.09em; line-height: 1.04; }
}

/* --- Subhead --- */
.subhead {
  max-width: min(520px, 92%);
  font-family: var(--font-sans);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #e0e0e0;
  opacity: 0.92;
  line-height: 1.6;
  font-weight: 400;
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 0, 0, 0.3);
}

/* --- CTA --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(16px, 2.4vh, 28px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  letter-spacing: -0.01em;
  box-shadow:
    0 2px 20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 4px 28px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 32px rgba(255, 255, 255, 0.3);
}

/* ============================================================
   STATS FOOTER
   ============================================================ */
.stats {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  flex-shrink: 0;
  z-index: 1;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.stat-icon {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.stat-value {
  font-family: var(--font-sans);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-family: var(--font-sans);
  color: #bbb;
  font-size: clamp(11px, 1.2vw, 12.5px);
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   SHARED ENTRANCE ANIMATIONS
   ============================================================ */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

/* CTA uses a different animation */
.cta.anim {
  animation-name: revealPulse;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  85% {
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ============================================================
   MOBILE — ≤720px
   ============================================================ */
.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  position: relative;
  flex-shrink: 0;
  z-index: 100;
  transition: background 0.3s ease;
}

.burger span {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}

.burger span:nth-child(1) { transform: translate(-50%, -50%) translateY(-6.5px); }
.burger span:nth-child(2) { transform: translate(-50%, -50%); }
.burger span:nth-child(3) { transform: translate(-50%, -50%) translateY(6.5px); }

.burger.open {
  background: #fff;
}

.burger.open span {
  background: #000;
}

.burger.open span:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-6.5px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translate(-50%, -50%) translateY(6.5px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  animation: overlayIn 0.28s ease forwards;
}

/* Mobile menu sheet */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  width: calc(100% - 32px);
  max-width: 380px;
  margin-top: clamp(70px, 10vh, 90px);
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: #111;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: color 0.2s ease;
}

.mobile-menu a.active {
  color: #000;
  font-weight: 600;
}

.mobile-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  transform: translateX(-50%);
}

.mobile-menu .mobile-sign-in {
  margin-top: 8px;
  padding: 13px 0;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
}

.mobile-menu .mobile-sign-in:hover {
  background: #323234;
  color: #fff;
}

/* Staggered link entrance */
.mobile-menu.visible a,
.mobile-menu.visible button {
  animation: linkIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mobile-menu.visible a:nth-child(1),
.mobile-menu.visible button:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.visible a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.visible a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.visible a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.visible button:nth-child(5) { animation-delay: 0.25s; }

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile layout adjustments */
@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    max-width: 100%;
  }

  .nav-pill,
  .sign-in {
    display: none;
  }

  .logo-btn {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Short height adjustments */
@media (max-height: 700px) {
  .hero {
    gap: 0;
  }
  .trust-row {
    margin-bottom: clamp(8px, 1.5vh, 14px);
  }
  .headline {
    margin-bottom: clamp(8px, 1.2vh, 14px);
  }
  .cta {
    margin-top: clamp(10px, 1.5vh, 18px);
  }
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  position: relative;
  z-index: 2;
  padding: clamp(60px, 8vh, 100px) clamp(14px, 3vw, 32px) clamp(40px, 6vh, 80px);
  max-width: 960px;
  margin: 0 auto;
}

/* Section labels */
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--trust-border);
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: clamp(32px, 4vh, 56px);
}

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.about-card {
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
}

.about-name {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 3.5vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.about-role {
  color: #d0d0d0;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 500;
  margin-bottom: 20px;
}

.about-summary {
  color: #a8a8a8;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.7;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bbb;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.about-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.about-link i {
  font-size: 14px;
  color: #888;
  transition: color 0.3s ease;
}

.about-link:hover i {
  color: #fff;
}

/* --- Info List --- */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
}

.info-icon i {
  color: #888;
  font-size: 15px;
}

.info-label {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 2px;
}

.info-value {
  font-size: 14px;
  color: #d0d0d0;
  font-weight: 500;
}

.info-value a {
  color: #d0d0d0;
  transition: color 0.2s ease;
}

.info-value a:hover {
  color: #fff;
}

/* --- Experience Timeline --- */
.timeline {
  position: relative;
  padding-left: clamp(24px, 3vw, 32px);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(32px, 4vh, 48px);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * clamp(24px, 3vw, 32px) + 2px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.timeline-company {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.timeline-name {
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #fff;
}

.timeline-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.timeline-date {
  font-size: 12px;
  color: #666;
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-desc {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-desc li {
  color: #a0a0a0;
  font-size: clamp(13px, 1.3vw, 14.5px);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.timeline-desc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.timeline-tech {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #888;
  font-weight: 500;
}

/* --- Skills Grid --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-category {
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(20px, 2.5vw, 28px);
}

.skill-cat-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  font-weight: 600;
  margin-bottom: 16px;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-name {
  font-size: 13px;
  color: #bbb;
  font-weight: 500;
  min-width: 80px;
  flex-shrink: 0;
}

.skill-bar-wrap {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.55));
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-bar.filled {
  width: var(--w, 0%);
}

/* --- Education Grid --- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.edu-card {
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(20px, 2.5vw, 28px);
}

.edu-degree {
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 16px);
  color: #fff;
  margin-bottom: 4px;
}

.edu-school {
  font-size: 13px;
  color: #999;
  margin-bottom: 4px;
}

.edu-date {
  font-size: 12px;
  color: #666;
}

.edu-courses {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.edu-courses-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  font-weight: 600;
  margin-bottom: 10px;
}

.edu-courses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- Scroll Reveal Animation --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s ease;
  transition-delay: var(--d, 0s);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --- Portfolio Footer --- */
.portfolio-footer {
  text-align: center;
  padding: 40px 0 0;
  margin-top: clamp(48px, 6vh, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-footer p {
  font-size: 12px;
  color: #555;
}

/* --- Portfolio Mobile --- */
@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-dot {
    left: -18px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .headline span {
    opacity: 1;
    transform: none;
    color: #fff;
  }

  .header {
    opacity: 1;
    transform: none;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .skill-bar {
    transition: none;
  }
}
