/* ============================================
   HASSEN CV — Futuristic Redesign
   ============================================ */

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

:root {
  --bg: #06080f;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.55);
  --accent-1: #6C5CE7;
  --accent-2: #00CEFF;
  --gold: #C8A96E;
  --gold-light: #E8D5A8;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1060px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-heading: var(--font);
  --font-display: var(--font);
}

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.6;
}

::selection {
  background: rgba(108,92,231,0.4);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* --- Noise overlay --- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Cursor-following ambient glow (global) --- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.22) 0%,
    rgba(0, 206, 255, 0.10) 28%,
    transparent 70%
  );
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
}
body.is-mouse .cursor-glow { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}
@media (hover: none) {
  .cursor-glow { display: none; }
}

/* --- Comet cursor --- */
.comet-cursor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.is-mouse .comet-cursor { opacity: 1; }
body.is-mouse,
body.is-mouse a,
body.is-mouse button,
body.is-mouse input,
body.is-mouse textarea,
body.is-mouse select,
body.is-mouse [role="button"] {
  cursor: none;
}
@media (prefers-reduced-motion: reduce) {
  .comet-cursor { display: none; }
  body.is-mouse, body.is-mouse * { cursor: auto !important; }
}
@media (hover: none) {
  .comet-cursor { display: none; }
}

/* --- Parallax starfield backdrop --- */
.starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .starfield { display: none; }
}

/* --- Matrix code rain backdrop --- */
.code-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.55;
  mask: linear-gradient(to bottom, #000 0%, #000 25%, rgba(0,0,0,0.6) 55%, transparent 85%);
  -webkit-mask: linear-gradient(to bottom, #000 0%, #000 25%, rgba(0,0,0,0.6) 55%, transparent 85%);
}
@media (prefers-reduced-motion: reduce) {
  .code-rain { display: none; }
}

/* --- Gradient orbs --- */
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: orbFloat 40s ease-in-out infinite;
  will-change: transform;
}
.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
  top: -10%; left: -8%;
  animation-duration: 45s;
}
.orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  top: 30%; right: -12%;
  animation-duration: 55s;
  animation-delay: -12s;
}
.orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: 5%; left: 20%;
  opacity: 0.10;
  animation-duration: 60s;
  animation-delay: -25s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(40px, -30px) scale(1.05); }
  50%  { transform: translate(-25px, 35px) scale(0.97); }
  75%  { transform: translate(30px, 15px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Ambient grid lines */
.grid-ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 80px 80px;
  mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse 60% 50% at 50% 50%, #000 20%, transparent 70%);
}

/* Floating particles — CSS only, no JS, no blur */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  animation: particleDrift linear infinite;
  will-change: transform;
}
.particle:nth-child(1)  { left:12%; top:20%; animation-duration:28s; }
.particle:nth-child(2)  { left:35%; top:65%; animation-duration:34s; animation-delay:-8s; width:3px; height:3px; background:rgba(108,92,231,0.3); }
.particle:nth-child(3)  { left:70%; top:15%; animation-duration:40s; animation-delay:-15s; }
.particle:nth-child(4)  { left:85%; top:45%; animation-duration:32s; animation-delay:-5s; width:3px; height:3px; }
.particle:nth-child(5)  { left:50%; top:80%; animation-duration:36s; animation-delay:-20s; background:rgba(0,206,255,0.25); }
.particle:nth-child(6)  { left:25%; top:40%; animation-duration:42s; animation-delay:-12s; }
.particle:nth-child(7)  { left:60%; top:55%; animation-duration:30s; animation-delay:-3s; width:3px; height:3px; background:rgba(200,169,110,0.2); }
.particle:nth-child(8)  { left:90%; top:75%; animation-duration:38s; animation-delay:-18s; }

@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity:0; }
}

/* Slow scan line — ultra subtle */
.scanline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(108,92,231,0.12), rgba(0,206,255,0.08), transparent);
  animation: scanMove 8s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes scanMove {
  0%   { top: -1px; }
  100% { top: 100vh; }
}

/* --- Container --- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* ============================================
   TOP BAR / NAV
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,8,15,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}
.logo:hover { text-decoration: none; }
.logo__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 16px rgba(108,92,231,0.6);
  animation: pulse 2.5s ease-in-out infinite;
}

.topnav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.topnav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.topnav a:hover {
  color: var(--text);
  background: var(--surface-hover);
  text-decoration: none;
}
.topnav a.active {
  color: var(--text);
  background: var(--surface);
}

.topnav__cta {
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,206,255,0.1)) !important;
  border: 1px solid rgba(108,92,231,0.25);
  color: var(--text) !important;
}

.langBtn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.langBtn:hover { border-color: var(--border-hover); color: var(--text); }

/* Burger */
.navToggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 11px;
}
.navToggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
body.mnav-open .navToggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.mnav-open .navToggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mnav {
  display: none;
  position: fixed;
  top: 62px;
  left: 12px; right: 12px;
  z-index: 90;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(6,8,15,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.mnav a {
  display: block;
  padding: 14px 14px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.mnav a:hover { background: var(--surface-hover); color: var(--text); text-decoration: none; }
body.mnav-open .mnav { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 100px 0 60px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00E676;
  box-shadow: 0 0 10px rgba(0,230,118,0.5);
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.9s ease both;
  animation-delay: 0.1s;
}

.hero__name {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-1));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero photo */
.hero__photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(108,92,231,0.4);
  box-shadow:
    0 0 0 4px rgba(6,8,15,0.8),
    0 0 30px rgba(108,92,231,0.25),
    0 20px 50px rgba(0,0,0,0.5);
  animation: photoReveal 0.8s cubic-bezier(0.16,1,0.3,1) both;
  position: relative;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  filter: contrast(1.05) saturate(1.08);
}

@keyframes photoReveal {
  from {
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* Photo bounce + glow triggered after "Hassen" reveal */
.hero__photo.photo-bounce {
  animation: photoBounce 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes photoBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.hero__photo.photo-glow {
  box-shadow:
    0 0 0 4px rgba(6,8,15,0.8),
    0 0 40px rgba(108,92,231,0.5),
    0 0 60px rgba(0,206,255,0.2),
    0 20px 50px rgba(0,0,0,0.5);
  transition: box-shadow 0.5s ease;
}

/* Hero text reveal — word by word blur-in */
.hero__line .word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(14px);
  animation: wordReveal 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* "Hassen" dramatic entrance */
.hero__name {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: nameReveal 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: 1s;
  position: relative;
}

@keyframes nameReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(16px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Glow flash on name after reveal */
.hero__name.revealed::after {
  content: "";
  position: absolute;
  inset: -10px -20px;
  border-radius: 20px;
  background: radial-gradient(ellipse, rgba(108,92,231,0.35), rgba(0,206,255,0.2), transparent 70%);
  opacity: 0;
  animation: glowFlash 0.8s ease-out forwards;
  pointer-events: none;
  z-index: -1;
}

@keyframes glowFlash {
  0%   { opacity: 0; transform: scale(0.6); }
  30%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.4); }
}

.hero__sub {
  max-width: 55ch;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  animation: fadeUp 1s ease both;
  animation-delay: 0.2s;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 1.1s ease both;
  animation-delay: 0.3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 32px rgba(108,92,231,0.3);
}
.btn--primary:hover { box-shadow: 0 12px 40px rgba(108,92,231,0.45); }

.btn--outline {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.3); background: var(--surface); }

.glass-card .btn { margin-top: 18px; }

.game-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.game-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), #D4B87A);
  color: #1A1714;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(200,169,110,0.25);
}
.btn--gold:hover { box-shadow: 0 12px 40px rgba(200,169,110,0.4); filter: brightness(1.05); }

/* ============================================
   BENTO GRID
   ============================================ */
.bento {
  display: grid;
  gap: 16px;
}
.bento--2 { grid-template-columns: repeat(2, 1fr); }
.bento--3 { grid-template-columns: repeat(3, 1fr); }

.bento__card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.bento__card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.bento__icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 10px;
  opacity: 0.6;
}
.bento__num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bento__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--surface-hover);
}

.glass-card--accent::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(300px 200px at 20% 0%, rgba(108,92,231,0.15), transparent 60%),
              radial-gradient(250px 180px at 80% 10%, rgba(0,206,255,0.10), transparent 55%);
  pointer-events: none;
  mask: linear-gradient(#000, transparent 75%);
}

.glass-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.glass-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

/* ============================================
   CHIPS / BADGES
   ============================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chips--sm { margin-top: 12px; }

.chip {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color 0.2s;
}
.chip:hover { border-color: var(--border-hover); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  margin-bottom: 12px;
}
.badge--gold {
  background: linear-gradient(135deg, rgba(200,169,110,0.2), rgba(200,169,110,0.08));
  border-color: rgba(200,169,110,0.3);
  color: var(--gold-light);
}

/* ============================================
   VIDEO BACKGROUND (Projects section)
   ============================================ */
.section--video {
  position: relative;
  overflow: hidden;
}
.section--video .container {
  position: relative;
  z-index: 2;
}

.bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-video__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  transform: scale(1.05);
}

/* ============================================
   FEATURED PROJECT (KLARITY)
   ============================================ */
.featured-project {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200,169,110,0.2);
  background: linear-gradient(145deg, rgba(200,169,110,0.06), rgba(108,92,231,0.04), var(--surface));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.featured-project:hover {
  border-color: rgba(200,169,110,0.35);
  transform: translateY(-3px);
}

.featured-project__glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.featured-project__content {
  position: relative;
  z-index: 1;
}

.featured-project__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease-in-out infinite;
}

.featured-project p {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 72ch;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.featured-project .btn {
  margin-top: 20px;
}

/* ============================================
   SKILLS
   ============================================ */
.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.skill-header h3 { margin-bottom: 0; }
.skill-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
  font-style: italic;
  line-height: 1.5;
}
.skill-pct {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-2);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-bottom: 16px;
}
.progress__bar {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  animation: loadBar 1.2s ease both;
}

@keyframes loadBar {
  from { width: 0; }
  to { width: var(--w, 50%); }
}

.skill-list {
  list-style: none;
  padding: 0;
}
.skill-list li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.skill-list li:last-child { border-bottom: none; }

/* ============================================
   TAG LIST / ICON LIST
   ============================================ */
.tag-list {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}
.tag-list li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.tag-list li:last-child { border-bottom: none; }

.icon-list {
  list-style: none;
  padding: 0;
}
.icon-list li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.icon-list li:last-child { border-bottom: none; }

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.tl-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 20px;
  align-items: start;
  position: relative;
  padding-bottom: 20px;
}

.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 14px rgba(108,92,231,0.4);
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.tl-line {
  position: absolute;
  left: 5px;
  top: 42px;
  width: 2px;
  height: calc(100% - 14px);
  background: var(--border);
}
.tl-item:last-child .tl-line { display: none; }

.tl-item .glass-card h3 {
  font-size: 1rem;
}

/* ============================================
   LANGUAGE ROWS
   ============================================ */
.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}
.lang-row:last-child { border-bottom: none; }

.lang-level {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent-2);
}
.lang-level--muted {
  color: var(--text-muted);
}

/* ============================================
   CONTACT ROWS
   ============================================ */
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.contact-row span { color: var(--text-muted); }
.contact-row a { font-weight: 600; }

/* ============================================
   QUOTE BOX
   ============================================ */
.quote-box {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(108,92,231,0.05);
  font-style: italic;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================
   EXTRA: sub-heading, tl-place, chips lit, hero role, logo-group
   ============================================ */
.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__role {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  margin: -16px auto 20px;
  animation: fadeUp 0.95s ease both;
  animation-delay: 0.15s;
}

.sub-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tl-place {
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 4px;
  font-weight: 500;
}

.tl-dot--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  box-shadow: 0 0 14px rgba(200,169,110,0.5) !important;
}

.chip--lit {
  background: rgba(108,92,231,0.12);
  border-color: rgba(108,92,231,0.3);
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer__muted { opacity: 0.5; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children reveals */
.bento .reveal:nth-child(1) { transition-delay: 0s; }
.bento .reveal:nth-child(2) { transition-delay: 0.08s; }
.bento .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .topnav { display: none; }
  .navToggle { display: inline-flex; }
  .bento--3 { grid-template-columns: 1fr; }
  .bento--2 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 40px; }
  .hero__title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .featured-project { padding: 28px 20px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero__badge { font-size: 0.72rem; padding: 6px 12px; }
  .hero__title { font-size: 2.2rem; }
  .featured-project__title { font-size: 1.3rem; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}

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

/* ============================================
   MOTION POLISH — spotlight, tilt, magnetic, scroll
   ============================================ */

/* Glass cards — spotlight + tilt + lift */
.glass-card {
  transform: perspective(1200px)
             rotateX(var(--rotX, 0deg))
             rotateY(var(--rotY, 0deg))
             translate3d(0, var(--lift, 0px), 0);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1),
              border-color 0.3s,
              background 0.3s,
              box-shadow 0.4s;
  will-change: transform;
}
.glass-card:hover {
  --lift: -4px;
  box-shadow: 0 22px 60px -22px rgba(108, 92, 231, 0.35);
}
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(108, 92, 231, 0.13),
    rgba(0, 206, 255, 0.06) 32%,
    transparent 55%
  );
  z-index: 0;
}
.glass-card:hover::after { opacity: 1; }
.glass-card > * { position: relative; z-index: 1; }

/* Holographic sheen sweep on glass-card hover */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.10) 48%,
    rgba(108, 92, 231, 0.14) 50%,
    rgba(0, 206, 255, 0.10) 52%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s;
  opacity: 0;
  z-index: 0;
  mix-blend-mode: screen;
}
.glass-card:hover::before {
  transform: translateX(120%);
  opacity: 1;
}

/* Featured project — gold spotlight, slightly stronger lift */
.featured-project {
  transform: perspective(1400px)
             rotateX(var(--rotX, 0deg))
             rotateY(var(--rotY, 0deg))
             translate3d(0, var(--lift, 0px), 0);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1),
              border-color 0.3s,
              box-shadow 0.4s;
  will-change: transform;
}
.featured-project:hover {
  --lift: -5px;
  box-shadow: 0 28px 90px -22px rgba(200, 169, 110, 0.4);
}
.featured-project::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    540px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 169, 110, 0.18),
    rgba(108, 92, 231, 0.08) 30%,
    transparent 55%
  );
  z-index: 0;
}
.featured-project:hover::after { opacity: 1; }

/* Bento stat cards (hero) — tilt without spotlight */
.bento__card {
  transform: perspective(1000px)
             rotateX(var(--rotX, 0deg))
             rotateY(var(--rotY, 0deg))
             translate3d(0, var(--lift, 0px), 0);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1),
              border-color 0.3s,
              background 0.3s;
  will-change: transform;
}
.bento__card:hover { --lift: -4px; }

/* Magnetic buttons — JS sets inline transform during hover */
.btn, .langBtn, .navToggle {
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1),
              box-shadow 0.25s,
              border-color 0.25s,
              filter 0.2s;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 9999;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.55);
  transition: transform 0.08s linear;
}

/* Hero — cursor-following soft glow */
.hero {
  position: relative;
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }

/* Chip shimmer on hover */
.chip {
  position: relative;
  overflow: hidden;
}
.chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.10) 50%,
    transparent 65%
  );
  transform: translateX(-110%);
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}
.chip:hover::before { transform: translateX(110%); }
.chip > * { position: relative; z-index: 1; }

/* Topnav — animated underline */
.topnav a {
  position: relative;
}
.topnav a::after {
  content: '';
  position: absolute;
  left: 50%; right: 50%;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
  transition: left 0.35s cubic-bezier(0.2, 0.9, 0.3, 1),
              right 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.topnav a:hover::after,
.topnav a.active::after {
  left: 14%; right: 14%;
}
.topnav a:hover { text-decoration: none; }
.topnav__cta::after { display: none; }

/* Stagger — extend to more children */
.bento .reveal:nth-child(4) { transition-delay: 0.24s; }
.bento .reveal:nth-child(5) { transition-delay: 0.32s; }
.bento .reveal:nth-child(6) { transition-delay: 0.40s; }

/* Reduced motion overrides for the new effects */
@media (prefers-reduced-motion: reduce) {
  .glass-card, .featured-project, .bento__card { transform: none !important; }
  .glass-card::after, .featured-project::after, .hero::before { display: none; }
  .scroll-progress { display: none; }
  .chip::before { display: none; }
}
