/* ═══════════════════════════════════════════════════════════
   PORTFOLIO — Thème Rose/Pink Neon
   Palette: rose · pink · magenta · blush · coral — fond noir
═══════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:  #020205;
  --bg2: #08040d;
  --bg3: #0e0818;
  --surface: rgba(244, 63, 94, 0.04);
  --surface2: rgba(255,255,255,0.03);
  --border: rgba(244, 63, 94, 0.12);
  --border-bright: rgba(244, 63, 94, 0.35);

  /* Pink palette */
  --rose:      #f43f5e;   /* rose-500 — primary */
  --pink:      #ec4899;   /* pink-500 */
  --hot:       #f472b6;   /* pink-400 */
  --magenta:   #e879f9;   /* fuchsia-400 */
  --blush:     #fda4af;   /* rose-300 */
  --coral:     #fb7185;   /* rose-400 */
  --deep-rose: #9f1239;   /* rose-800 */

  /* Gradients */
  --grad-main:  linear-gradient(135deg, var(--magenta), var(--rose), var(--coral));
  --grad-glow:  linear-gradient(135deg, #e879f9, #f43f5e, #fb7185);
  --grad-soft:  linear-gradient(135deg, rgba(232,121,249,0.15), rgba(244,63,94,0.1));

  --text:       #fdf2f8;
  --text-muted: #c084a8;
  --text-dim:   #6b3d5a;

  --radius:    16px;
  --radius-sm: 8px;
  --shadow:    0 8px 40px rgba(0,0,0,0.6);
  --glow-sm:   0 0 20px rgba(244,63,94,0.25);
  --glow-md:   0 0 40px rgba(244,63,94,0.35);
  --glow-lg:   0 0 80px rgba(232,121,249,0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Cursor spotlight ─────────────────────────────────────── */
#spotlight {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(244,63,94,0.06) 0%,
    rgba(232,121,249,0.03) 30%,
    transparent 70%);
  transition: background 0.1s;
}

/* ── Utilities ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 100px 0; position: relative; }
.section-dark { background: var(--bg2); }
.mt-2 { margin-top: 1.5rem; }

.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated shimmer text */
.shimmer-text {
  background: linear-gradient(90deg,
    var(--magenta) 0%, var(--rose) 25%, var(--blush) 50%,
    var(--rose) 75%, var(--magenta) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ── Glowing card border (shared) ────────────────────────── */
.glow-card {
  position: relative;
}
.glow-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: var(--grad-glow);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition);
  filter: blur(8px);
}
.glow-card:hover::before { opacity: 0.4; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap; position: relative; overflow: hidden;
}

/* Ripple on btn */
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--bx,50%) var(--by,50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(244,63,94,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(244,63,94,0.55), 0 0 60px rgba(244,63,94,0.2);
}
.btn-ghost {
  background: rgba(244,63,94,0.06);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); box-shadow: var(--glow-sm); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-block { width: 100%; justify-content: center; }

/* ── Section header ───────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 1rem auto 0; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rose);
  background: rgba(244,63,94,0.1);
  border: 1px solid rgba(244,63,94,0.25);
  padding: 0.35rem 0.9rem; border-radius: 99px; margin-bottom: 1rem;
  box-shadow: 0 0 16px rgba(244,63,94,0.1);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(2, 2, 5, 0.6);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  padding: 0.75rem 2rem;
  background: rgba(2, 2, 5, 0.85);
  box-shadow: 0 4px 30px rgba(244,63,94,0.08);
}

.nav-brand { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; }
.brand-bracket { color: var(--rose); text-shadow: 0 0 12px rgba(244,63,94,0.6); }
.brand-slash   { color: var(--magenta); text-shadow: 0 0 12px rgba(232,121,249,0.6); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  padding: 0.5rem 1.2rem; border-radius: 99px; font-weight: 600;
  box-shadow: 0 0 20px rgba(244,63,94,0.3);
}
.nav-links a.nav-cta:hover { box-shadow: 0 0 35px rgba(244,63,94,0.5); transform: scale(1.03); }

/* ── Lang toggle ──────────────────────────────────────────── */
.lang-toggle {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(244,63,94,0.06);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0.38rem 0.9rem;
  cursor: pointer;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: var(--transition);
  flex-shrink: 0;
}
.lang-toggle:hover {
  border-color: var(--rose);
  color: var(--rose);
  box-shadow: var(--glow-sm);
  background: rgba(244,63,94,0.1);
}
.lang-toggle i { font-size: 0.8rem; }
.lang-toggle.active-en { border-color: rgba(244,63,94,0.4); color: var(--hot); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Aurora layer */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 60%, rgba(244,63,94,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 25%, rgba(232,121,249,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 90%, rgba(244,63,94,0.06) 0%, transparent 50%);
}
@keyframes aurora {
  0%   { opacity: 0.6; transform: scale(1) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.05) rotate(1deg); }
  100% { opacity: 0.7; transform: scale(0.98) rotate(-1deg); }
}

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

#particleCanvas { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.hero-content {
  position: relative; z-index: 3;
  max-width: 820px; text-align: center;
  padding: 2rem 1.5rem;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 500; color: var(--hot);
  background: rgba(244,114,182,0.08); border: 1px solid rgba(244,114,182,0.2);
  padding: 0.4rem 1rem; border-radius: 99px; margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(244,114,182,0.1);
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--hot);
  box-shadow: 0 0 8px var(--hot);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--hot); }
  50%       { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 16px var(--hot); }
}

/* ── Interactive skills brain — realistic textured art, pieces lift on hover
   Frontal → UX/UI Design · Temporal → LLM Engineering
   Parietal → Data Visualization · Occipital → Frontend Dev
   Cerebellum → Backend Dev · Brainstem → Machine Learning
────────────────────────────────────────────────────────────── */
.brain-viz {
  margin: 0.5rem auto 1.75rem;
  max-width: 340px;
}
.brain-svg {
  width: 100%; max-width: 320px; height: auto;
  overflow: visible;
  display: block; margin: 0 auto;
}

/* Static base artwork */
.silhouette { filter: drop-shadow(0 6px 20px rgba(122,29,63,0.35)); }
.fold {
  fill: none; stroke: rgba(120,20,55,0.5);
  stroke-width: 2; stroke-linecap: round;
}
.fissure {
  fill: none; stroke: rgba(90,10,40,0.65);
  stroke-width: 2.5; stroke-linecap: round;
}
.cereb-line {
  fill: none; stroke: rgba(90,40,25,0.5);
  stroke-width: 1.5; stroke-linecap: round;
}
.cereb-shadow { fill: #5c1030; opacity: 0.35; }

/* Interactive regions */
.brain-region { cursor: pointer; outline: none; }
.hit-area { fill: transparent; }

.brain-region[data-region="frontal"]    { color: var(--magenta); --tx: -16px; --ty: -8px;  }
.brain-region[data-region="parietal"]   { color: var(--pink);    --tx: 0px;   --ty: -20px; }
.brain-region[data-region="occipital"]  { color: var(--hot);     --tx: 16px;  --ty: -10px; }
.brain-region[data-region="temporal"]   { color: var(--rose);    --tx: -10px; --ty: 16px;  }
.brain-region[data-region="cerebellum"] { color: var(--coral);   --tx: 14px;  --ty: 12px;  }
.brain-region[data-region="brainstem"]  { color: var(--magenta); --tx: 0px;   --ty: 18px;  }

/* The lifting piece — a clipped duplicate of the cortex (frontal/parietal/occipital/temporal),
   or the real single cerebellum/brainstem shape (always-visible, so hovering just lifts it —
   no second copy underneath, which is what caused the "double cerebellum" look) */
.brain-piece {
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box; transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}
.brain-piece.always-visible { opacity: 1; }
.brain-region:hover .brain-piece,
.brain-region:focus-visible .brain-piece,
.brain-region.active .brain-piece {
  opacity: 1;
  transform: translate(var(--tx), var(--ty)) scale(1.12);
  filter: drop-shadow(0 16px 18px rgba(0,0,0,0.55)) drop-shadow(0 0 14px currentColor);
}

/* Labels — hidden until the region is hovered/active, appear over the lifted piece */
.brain-label-title, .brain-label-sub {
  text-anchor: middle;
  fill: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font);
  transform-box: fill-box; transform-origin: center;
}
.brain-label-title {
  font-size: 20px; font-weight: 700;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}
.brain-label-sub {
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  fill: var(--text-muted);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}
.brain-region:hover .brain-label-title,
.brain-region:focus-visible .brain-label-title,
.brain-region.active .brain-label-title,
.brain-region:hover .brain-label-sub,
.brain-region:focus-visible .brain-label-sub,
.brain-region.active .brain-label-sub {
  opacity: 1;
  transform: translate(var(--tx), var(--ty));
}

@media (max-width: 480px) {
  .brain-viz { max-width: 280px; }
  .brain-label-title { font-size: 17px; }
  .brain-label-sub { font-size: 11px; }
}

.hero-sub {
  font-size: 1.15rem; color: var(--text-muted); max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-sub strong { color: var(--text); }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-socials { display: flex; gap: 1.5rem; justify-content: center; }
.hero-socials a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(244,63,94,0.06);
  border: 1px solid var(--border); border-radius: 50%;
  font-size: 1.1rem; color: var(--text-muted);
  transition: var(--transition); cursor: pointer;
}
.hero-socials a:hover {
  border-color: var(--rose); color: var(--rose);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(244,63,94,0.3);
}

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 3;
}
.scroll-indicator {
  width: 1.5px; height: 40px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(244,63,94,0.4);
}
@keyframes scroll-anim {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.about-text h2 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); font-weight: 800; margin: 0.75rem 0 1.25rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1rem; }

/* Education block */
.education-block {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.75rem;
  background: rgba(244,63,94,0.04);
  border: 1px solid rgba(244,63,94,0.18);
  border-radius: 14px; padding: 1rem 1.25rem;
}
.edu-icon { color: var(--rose); font-size: 1.4rem; flex-shrink: 0; }
.edu-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.25rem; }
.edu-school { font-weight: 700; font-size: 0.95rem; }
.edu-degree { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.4; }

/* Profile photo */
.profile-photo-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 2rem; gap: 0.6rem;
}
.profile-photo {
  width: 150px; height: 150px; border-radius: 50%;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244,63,94,0.06);
  box-shadow: 0 0 0 3px var(--rose), 0 0 40px rgba(244,63,94,0.25);
}
.profile-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 2;
}
.profile-photo .photo-icon {
  position: relative; z-index: 1;
  font-size: 4rem; color: rgba(244,63,94,0.25);
}
.profile-name { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; }
.profile-title { font-size: 0.8rem; color: var(--text-muted); }

.about-stats { display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-size: 2.5rem; font-weight: 900; line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(244,63,94,0.3));
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Code card */
.code-card {
  background: rgba(8,4,13,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow), 0 0 60px rgba(244,63,94,0.08);
  position: relative;
}
/* Glowing top border */
.code-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-glow);
  opacity: 0.7;
}

.code-card-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(244,63,94,0.04);
  border-bottom: 1px solid var(--border);
}
.code-card-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; box-shadow: 0 0 6px #ff5f5780; }
.dot.yellow { background: #ffbd2e; box-shadow: 0 0 6px #ffbd2e80; }
.dot.green  { background: #28c840; box-shadow: 0 0 6px #28c84080; }
.code-filename { font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

.code-body { padding: 1.5rem; font-family: var(--mono); font-size: 0.85rem; line-height: 1.8; overflow-x: auto; }
.code-body .c  { color: #f472b6; }  /* keywords — hot pink */
.code-body .fn { color: #e879f9; }  /* functions — magenta */
.code-body .s  { color: #fda4af; }  /* strings — blush */

/* ── Skills ───────────────────────────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem;
}
.skill-category {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
/* Hover accent. This used to be a conic-gradient ::before at z-index:-1, spun
   by an animated @property angle. Two problems: the angle animation repainted
   the gradient every frame on every card, forever; and :hover applies a
   transform, which makes the card its own stacking context — so the "border"
   painted on top of the card's background instead of behind it and washed the
   text out. The rest of the site signals hover with border + glow, so do that. */
.skill-category:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 40px rgba(244,63,94,0.15), 0 0 24px rgba(244,63,94,0.10);
}

.skill-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(244,63,94,0.12);
  color: var(--c, var(--rose));
  font-size: 1.3rem; margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(244,63,94,0.15);
}
.skill-category h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.skill-tags span {
  font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.65rem;
  background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.15);
  border-radius: 99px; color: var(--text-muted);
}

.skill-bar-list { display: flex; flex-direction: column; gap: 0.75rem; }
.skill-bar-item { display: flex; flex-direction: column; gap: 0.3rem; }
.skill-bar-item span { font-size: 0.8rem; color: var(--text-muted); }
.skill-bar { background: rgba(244,63,94,0.08); border-radius: 99px; height: 6px; overflow: hidden; }
.skill-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--rose), var(--magenta));
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 10px rgba(244,63,94,0.5);
}

/* ── Projects ─────────────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: rgba(8,4,13,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: var(--transition);
}
.project-card::after {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(244,63,94,0.07) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
  pointer-events: none;
}
.project-card:hover { transform: translateY(-6px); border-color: var(--border-bright); }
.project-card:hover::after { opacity: 1; }
.project-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(244,63,94,0.12); }

.project-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  font-size: 0.75rem; font-weight: 700;
  background: linear-gradient(135deg, var(--rose), var(--magenta));
  color: #fff; padding: 0.3rem 0.8rem; border-radius: 99px;
  box-shadow: 0 0 16px rgba(244,63,94,0.4);
}

.project-img { flex-shrink: 0; position: relative; overflow: hidden; }
.project-img-placeholder {
  width: 100%; height: 200px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  font-size: 3.5rem; color: rgba(255,255,255,0.9);
  position: relative;
}
/* Shimmer overlay on project img */
.project-img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  background-size: 200% 100%;
}
@keyframes card-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.project-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; position: relative; z-index: 1; }

.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 99px; }
.tag-purple { background: rgba(244,63,94,0.12);  color: var(--rose); }
.tag-blue   { background: rgba(244,114,182,0.12); color: var(--hot); }
.tag-green  { background: rgba(232,121,249,0.12); color: var(--magenta); }
.tag-orange { background: rgba(253,164,175,0.12); color: var(--blush); }

.project-body h3 { font-size: 1.1rem; font-weight: 700; }
.project-body p  { color: var(--text-muted); font-size: 0.9rem; flex: 1; }

.project-meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.project-meta span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.project-meta i { color: var(--rose); }

.project-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }

/* ── Dashboard ────────────────────────────────────────────── */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem; margin-bottom: 2rem;
}
.kpi-card {
  background: rgba(8,4,13,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1.25rem; align-items: center;
  transition: var(--transition); position: relative; overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-glow); opacity: 0;
  transition: opacity var(--transition);
}
.kpi-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(244,63,94,0.1); }
.kpi-card:hover::before { opacity: 1; }

.kpi-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(244,63,94,0.1);
  color: var(--c, var(--rose)); font-size: 1.3rem;
  box-shadow: 0 0 20px rgba(244,63,94,0.12);
}
.kpi-body { display: flex; flex-direction: column; }
.kpi-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.kpi-value { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.kpi-unit  { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }
.kpi-trend { font-size: 0.78rem; margin-top: 0.3rem; display: flex; align-items: center; gap: 0.3rem; }
.kpi-trend.up      { color: var(--hot); }
.kpi-trend.neutral { color: var(--text-dim); }

.charts-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.charts-grid-3 { grid-template-columns: repeat(3, 1fr); }

.chart-card {
  background: rgba(8,4,13,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color var(--transition);
}
.chart-card:hover { border-color: var(--border-bright); }

.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.chart-header h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.chart-legend { display: flex; gap: 0.75rem; align-items: center; font-size: 0.78rem; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(244,63,94,0.1);
  color: var(--c, var(--rose)); font-size: 1.1rem;
  box-shadow: 0 0 16px rgba(244,63,94,0.1);
}
.contact-label { font-size: 0.78rem; color: var(--text-muted); display: block; }
.contact-value { font-weight: 600; transition: color 0.2s; }
.contact-value:hover { color: var(--rose); }

/* Form */
.contact-form {
  background: rgba(8,4,13,0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden;
}
/* Pink glow top */
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-glow); opacity: 0.6;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea {
  background: rgba(244,63,94,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  font-family: var(--font); font-size: 0.9rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244,63,94,0.12), 0 0 20px rgba(244,63,94,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-feedback {
  padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
}
.form-feedback.success { background: rgba(244,114,182,0.1); color: var(--hot); border: 1px solid rgba(244,114,182,0.2); }
.form-feedback.error   { background: rgba(244,63,94,0.1); color: var(--rose); border: 1px solid rgba(244,63,94,0.2); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer .nav-brand { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; }
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(244,63,94,0.06); border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-muted); transition: var(--transition); cursor: pointer;
}
.footer-socials a:hover { border-color: var(--rose); color: var(--rose); box-shadow: 0 0 16px rgba(244,63,94,0.25); }

/* ── Reveal animations ────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ── Floating particles (extra decorative blobs) ──────────── */
.blob {
  position: absolute; border-radius: 50%; filter: blur(48px); pointer-events: none; z-index: 0;
}
@keyframes float-blob {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-10px, 15px) scale(0.95); }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .charts-grid, .charts-grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 1rem 2rem; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .section { padding: 70px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 1.5rem; }
}
