/* ============================================================
   RIFAT'S PORTFOLIO — style.css
   Palette: Light Blue / White / Purple
   Fonts: Space Grotesk + Inter + Space Mono
   ============================================================ */

/* ─── TOKENS ────────────────────────────────────────────────── */
:root {
  --bg:         #f8f9ff;
  --bg-2:       #eef2ff;
  --surface:    rgba(255, 255, 255, 0.75);
  --surface-2:  rgba(255, 255, 255, 0.55);
  --border:     rgba(124, 58, 237, 0.15);
  --border-hover: rgba(124, 58, 237, 0.4);

  --blue:       #38bdf8;
  --blue-light: #7dd3fc;
  --blue-deep:  #0ea5e9;
  --purple:     #7c3aed;
  --purple-light: #a78bfa;
  --purple-soft: #ede9fe;
  --white:      #ffffff;
  --text:       #1e1b3a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --grad-hero:  linear-gradient(135deg, #f8f9ff 0%, #eef2ff 50%, #f0f4ff 100%);
  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #38bdf8 100%);
  --grad-card:  linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(238,242,255,0.8) 100%);
  --grad-accent: linear-gradient(90deg, #7c3aed, #38bdf8);

  --shadow-sm:  0 2px 8px rgba(124, 58, 237, 0.08);
  --shadow-md:  0 8px 32px rgba(124, 58, 237, 0.12);
  --shadow-lg:  0 20px 60px rgba(124, 58, 237, 0.18);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.25);

  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'Space Mono', monospace;

  --nav-h:      70px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--purple);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.3s;
  mix-blend-mode: multiply;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid var(--purple-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, border-color 0.3s;
}
body:hover .cursor-follower { border-color: var(--blue); }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grad-primary); border-radius: 3px; }

/* ─── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(248, 249, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
}
.logo-bracket { color: var(--purple); }

.nav-links {
  display: flex; gap: 2rem; align-items: center;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--purple); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); z-index: 0; pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  bottom: 0; left: -50px;
  animation: glowPulse 8s ease-in-out infinite reverse;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 2rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-deep);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--text);
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.4s;
}
.title-accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.6s;
}
.highlight {
  color: var(--purple);
  font-weight: 600;
}

.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s ease forwards 0.8s;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}
.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple-light);
}
.btn-ghost:hover {
  background: var(--purple-soft);
  transform: translateY(-2px);
}
.btn-cv {
  background: rgba(56, 189, 248, 0.08);
  color: var(--blue-deep);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.12);
  gap: 0.6rem;
}
.btn-cv:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.28);
}
.btn-cv svg {
  color: var(--blue);
  transition: transform var(--transition);
}
.btn-cv:hover svg {
  transform: translateY(2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── DESK SCENE ─────────────────────────────────────────────── */
.hero-desk {
  opacity: 0;
  animation: slideIn 0.9s ease forwards 0.5s;
}

.desk-scene {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  filter: drop-shadow(0 30px 60px rgba(124,58,237,0.2));
}

.desk-img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow-lg);
}

/* MIMICO BOT */
.mimico-wrapper {
  position: absolute;
  bottom: 8%;
  left: 4%;
  z-index: 10;
  display: flex; flex-direction: column; align-items: flex-start;
  animation: mimicoBob 3s ease-in-out infinite;
}
@keyframes mimicoBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.mimico-img {
  width: 100px; height: 100px;
  object-fit: contain;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 24px rgba(124,58,237,0.25);
  border: 2px solid rgba(124,58,237,0.2);
  transition: transform var(--transition);
}
.mimico-img:hover { transform: scale(1.1) rotate(-5deg); }

.mimico-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
  letter-spacing: 2px;
}

/* Speech bubble */
.speech-bubble {
  position: absolute;
  left: 110px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid var(--border-hover);
  border-radius: 16px 16px 16px 4px;
  padding: 0.8rem 1rem;
  min-width: 220px;
  max-width: 280px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  animation: bubbleAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes bubbleAppear {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.bubble-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
  font-family: var(--font-body);
  min-height: 36px;
}
.bubble-dots {
  display: flex; gap: 5px; margin-top: 0.5rem;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  transition: background 0.3s;
}
.dot.dot-active { background: var(--purple); }
.bubble-slide-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  float: right;
  margin-top: -14px;
}

/* Floating chips */
.desk-chip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--border-hover);
  color: var(--purple);
  box-shadow: var(--shadow-sm);
  animation: chipFloat 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.chip-1 { top: 10%; right: 5%; animation-delay: 0s; }
.chip-2 { top: 22%; right: 2%; animation-delay: 0.8s; }
.chip-3 { top: 4%; right: 22%; animation-delay: 1.6s; }
.chip-4 { top: 35%; right: 8%; animation-delay: 0.4s; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--text-light);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--purple-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.7); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ─── SECTIONS ──────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
}
.section:nth-child(even) { background: var(--bg-2); }

.section-header {
  margin-bottom: 3.5rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute; bottom: -8px; left: 0;
  width: 60px; height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ABOUT ─────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.about-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  transition: box-shadow var(--transition), transform var(--transition);
}
.about-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.about-avatar-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.about-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute; inset: 0;
}
.avatar-initials {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
}
.avatar-ring {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--purple-light);
  animation: ringRotate 8s linear infinite;
}
.avatar-ring::before {
  content: '';
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  transform: translateX(-50%);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.avatar-pulse {
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.2);
  animation: pulseExpand 3s ease-in-out infinite;
}
@keyframes pulseExpand {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0; transform: scale(1.2); }
}

.about-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: statusBlink 2s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}

.about-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.about-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.about-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 12px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,0.2);
  font-weight: 600;
}

/* Stats */
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.stat-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}
.stat-plus {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ─── EDUCATION & EXPERIENCE LAYOUT ─────────────────────────── */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.timeline-col-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.timeline-col-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple-light, #a78bfa);
  border: 1px solid rgba(124, 58, 237, 0.25);
  flex-shrink: 0;
}
.timeline-col-icon svg { width: 19px; height: 19px; display: block; }
.timeline-col-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* ─── VERTICAL LINE TIMELINE ────────────────────────────────── */
.vline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 0;
}
.vline-item {
  display: flex;
  gap: 1rem;
  position: relative;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.vline-item.revealed {
  opacity: 1;
  transform: translateX(0);
}
.vline-item:nth-child(1) { transition-delay: 0.05s; }
.vline-item:nth-child(2) { transition-delay: 0.2s; }
.vline-item:nth-child(3) { transition-delay: 0.35s; }

.vline-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
  padding-top: 4px;
}
.vline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 2px solid var(--purple-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.vline-dot.active {
  background: var(--grad-primary);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.18), 0 0 16px rgba(56,189,248,0.3);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(56,189,248,0.18), 0 0 16px rgba(56,189,248,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(56,189,248,0.08), 0 0 24px rgba(56,189,248,0.5); }
}
.vline-connector {
  width: 2px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, var(--purple-light), rgba(124,58,237,0.15));
  margin: 4px 0;
  border-radius: 1px;
}

.vline-content {
  flex: 1;
  padding-bottom: 1.75rem;
}
.vline-item.last .vline-content { padding-bottom: 0; }

.vline-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.vline-abbr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.5px;
  min-width: 36px;
}
.vline-label {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.vline-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-left: auto;
}
.vline-status.completed {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple-light);
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.vline-status.ongoing {
  background: rgba(56, 189, 248, 0.12);
  color: var(--blue-deep);
  border: 1px solid rgba(56, 189, 248, 0.3);
  animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.6; }
}
.vline-org {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 12px;
}
.vline-org::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 2px;
  background: var(--blue);
  border-radius: 1px;
  transform: translateY(-50%);
}
.vline-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Hover effect on whole vline-item */
.vline-item:hover .vline-dot:not(.active) {
  background: var(--purple-soft);
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.vline-item:hover .vline-content { color: var(--text); }

/* ─── SKILLS ─────────────────────────────────────────────────── */
.skills-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.skills-category {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding-left: 12px;
  border-left: 3px solid var(--purple);
}

.skill-bars { display: flex; flex-direction: column; gap: 1rem; }
.skill-bar-item {}
.skill-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.skill-name { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple);
  font-weight: 700;
}
.skill-track {
  width: 100%; height: 6px;
  background: rgba(124,58,237,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill.filled { box-shadow: 0 0 8px rgba(124,58,237,0.4); }

.tools-grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.tool-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  color: var(--text);
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: default;
  box-shadow: var(--shadow-sm);
}
.tool-badge:hover {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ─── PROJECTS ────────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-6px); }

.project-card.featured .project-card-inner {
  background: linear-gradient(145deg, rgba(124,58,237,0.08) 0%, rgba(56,189,248,0.08) 100%);
  border-color: rgba(124,58,237,0.25);
}
.project-card.featured .project-glow {
  background: radial-gradient(circle at top right, rgba(56,189,248,0.15), transparent 60%);
}

.project-card-inner {
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.project-card:hover .project-card-inner {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.project-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(124,58,237,0.08), transparent 60%);
  pointer-events: none;
}

.project-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(56,189,248,0.12);
  color: var(--blue-deep);
  border: 1px solid rgba(56,189,248,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.project-tag.design {
  background: rgba(124,58,237,0.1);
  color: var(--purple);
  border-color: rgba(124,58,237,0.25);
}
.project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
  flex-shrink: 0;
}
.project-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.project-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.3px;
}
.project-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 20px;
  border: 1px solid rgba(124,58,237,0.15);
}
.project-footer { margin-top: auto; }
.project-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.project-link:hover { gap: 8px; color: var(--blue-deep); }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem;
  align-items: start;
}
.contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.contact-links { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.contact-item:hover {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
  color: var(--purple);
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
  color: #a855f7;
  border: 1px solid rgba(124, 58, 237, 0.28);
  flex-shrink: 0;
  transition: all var(--transition);
}
.contact-item:hover .contact-icon {
  background: rgba(124, 58, 237, 0.24);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.55);
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-mimico {
  display: flex; align-items: flex-end; gap: 1rem;
  margin-top: 1rem;
}
.contact-mimico-img {
  width: 70px; height: 70px;
  border-radius: 12px;
  background: white;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
  animation: mimicoBob 3s ease-in-out infinite;
}
.contact-bubble {
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--border-hover);
  border-radius: 12px 12px 12px 4px;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  max-width: 200px;
  line-height: 1.4;
}

/* Contact form */
.contact-form {
  background: var(--grad-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.8);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  background: white;
}
.form-input::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  text-align: center;
  padding: 0.8rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--text);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}
.footer .logo-bracket { color: var(--blue-light); }
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-mimico {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--purple-light);
  letter-spacing: 1px;
}

/* ─── KEYFRAMES ─────────────────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-text { order: 1; }
  .hero-desk { order: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(248,249,255,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .timeline-grid { grid-template-columns: 1fr; gap: 2rem; }
  .skills-layout { grid-template-columns: 1fr; gap: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-content { padding: 2rem 1.5rem; }
  .speech-bubble { min-width: 160px; max-width: 200px; left: 85px; }
  .mimico-img { width: 70px; height: 70px; }
  .desk-chip { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .about-card { flex-direction: column; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
