/* ============================================
   Meron Shibiru - GitHub Pages Profile
   Dark theme with soft pink accents
   ============================================ */

:root {
  --color-bg: #0d0d12;
  --color-bg-elevated: #15151c;
  --color-surface: #1a1a24;
  --color-surface-hover: #22222e;
  --color-accent: #c9a0dc;
  --color-accent-soft: rgba(201, 160, 220, 0.2);
  --color-accent-muted: rgba(201, 160, 220, 0.12);
  --color-text: #e8e6f0;
  --color-text-muted: #a8a6b8;
  --color-text-faint: #6a6878;
  --color-border: #2a2838;

  --hero-gradient-from: #1a0f1f;
  --hero-gradient-via: #2d1b3d;
  --hero-gradient-to: #1f1628;
  --hero-glow: rgba(180, 100, 220, 0.25);
  --hero-glow-pink: rgba(220, 140, 200, 0.15);
  --color-soft-pink: #e8b4c8;
  --color-pink: #fa97bd;

  --glass-bg: rgba(26, 26, 36, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 40px rgba(201, 160, 220, 0.08);
  --shadow-nav-active: 0 2px 12px rgba(201, 160, 220, 0.15);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar - hidden for full-width layout */
.sidebar {
  display: none;
}

.sidebar-brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: var(--space-2xl);
  transition: color var(--transition-fast);
}

.sidebar-brand:hover {
  color: var(--color-accent);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.nav-link.active {
  color: var(--color-accent);
  background-color: var(--color-accent-muted);
  box-shadow: var(--shadow-nav-active);
}

/* Right-side vertical navbar */
.page-nav-right {
  position: fixed;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  z-index: 100;
  max-height: 90vh;
  justify-content: center;
  padding: var(--space-md) 0;
}

.page-nav-right a {
  position: relative;
  display: block;
  flex-shrink: 0;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: var(--space-xs) var(--space-sm);
  transition: color var(--transition-fast);
}

.page-nav-right a::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--space-lg) + 2px);
  transform: translateX(-50%);
  width: 1px;
  height: calc(var(--space-lg) - 4px);
  background: var(--color-border);
  opacity: 0.4;
}

.page-nav-right a:last-child::before {
  display: none;
}

.page-nav-right a:hover {
  color: var(--color-text);
}

.page-nav-right a.active {
  color: var(--color-accent);
  font-weight: 700;
}

.page-nav-cta {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transform: none;
}

.page-nav-cta:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .page-nav-right {
    display: none;
  }
}

/* Content area - full width */
.content {
  flex: 1;
  margin-left: 0;
  min-width: 0;
  padding: var(--space-xl);
  width: 100%;
}

@media (min-width: 769px) {
  .content {
    padding-right: calc(var(--space-xl) + 5rem);
    padding-left: var(--space-xl);
  }
}

/* Glassmorphism */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-2xl) var(--space-xl);
  overflow: hidden;
}

/* Hero background: pinkish irregular gradient blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 1.2;
}

.hero-blob-1 {
  width:  min(400px, 90vw);
  height: min(400px, 90vw);
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.7) 0%, rgba(255, 105, 180, 0.4) 40%, rgba(232, 180, 200, 0.25) 70%, transparent 100%);
}

.hero-blob-2 {
  width:  min(320px, 70vw);
  height: min(320px, 70vw);
  bottom: -20%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.65) 0%, rgba(255, 182, 193, 0.4) 50%, transparent 75%);
  border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
}

.hero-blob-3 {
  width:  min(280px, 60vw);
  height: min(280px, 60vw);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 180, 200, 0.55) 0%, rgba(255, 182, 193, 0.35) 45%, transparent 75%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.hero-blob-4 {
  width:  min(260px, 55vw);
  height: min(260px, 55vw);
  top: 10%;
  right: 15%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, rgba(232, 180, 200, 0.3) 50%, transparent 75%);
  border-radius: 30% 70% 60% 40% / 50% 40% 60% 50%;
}

.hero-blob-5 {
  width:  min(220px, 50vw);
  height: min(220px, 50vw);
  bottom: 10%;
  left: 26%;
  top: 40%;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.55) 0%, rgba(255, 105, 180, 0.25) 55%, transparent 80%);
  border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%;
}

.hero-blob-6 {
  width:  min(180px, 45vw);
  height: min(180px, 45vw);
  top: 60%;
  right: 25%;
  background: radial-gradient(circle, rgba(232, 180, 200, 0.5) 0%, rgba(255, 182, 193, 0.28) 50%, transparent 75%);
  border-radius: 50% 50% 30% 70% / 60% 40% 50% 50%;
}

.hero-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .hero-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 4rem;
  }
}

/* DEVELOPER overlay - name-style: right side, half on image, horizontal */
.hero-developer-overlay {
  position: absolute;
  top: var(--space-lg);
  left: 45%;
  right: calc(-1 * var(--space-xl));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  z-index: 15;
  padding: 0;
  margin: 0;
  margin-top: 25rem;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.hero-developer-overlay .hero-software,
.hero-developer-overlay .hero-developer {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.hero-software {
  display: block;
  font-size: clamp(1.2rem, 2.85vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-align: right;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  transform: none;
}

.hero-developer {
  display: block;
  font-size: clamp(1.5rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--color-soft-pink);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  text-align: right;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  transform: none;
}

.hero-divider {
  display: none;
}

@media (max-width: 899px) {
  .hero-developer-overlay {
    left: 40%;
    right: var(--space-md);
  }
}

/* Image wrapper (contains image + name overlay) */
.hero-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

/* Image container */
.hero-image-container {
  position: relative;
  width: 360px;
  aspect-ratio: 3 / 4;
  z-index: 2;
  overflow: hidden;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

@media (min-width: 1024px) {
  .hero-image-container {
    width: 420px;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    transparent 40%,
    transparent 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Name block: developer-style - left edge, vertical rotated */
.hero-name-block {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 10;
  pointer-events: none;
}

.hero-first-name {
  font-size: 3rem;
  font-weight: 800;
  color: #d0cece;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: center;
  position: relative;
  top: 4.6rem;
  left: -14.8rem;
  margin: 0;
}

.hero-last-name {
  font-size: 3.9rem;
  font-weight: 800;
  color: var(--color-soft-pink);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: center;
  position: relative;
  left: -10.6rem;
  top: -3.5rem;
  margin: 0;
}

.hero-name-divider {
  display: none;
}

@media (max-width: 899px) {
  .hero-name-block {
    left: var(--space-md);
    top: var(--space-lg);
    transform: none;
    flex-direction: row;
    gap: var(--space-md);
  }

  .hero-first-name,
  .hero-last-name {
    transform: none;
  }

  .hero-name-divider {
    transform: none;
    width: 24px;
    height: 1px;
  }
}

/* Right content */
.hero-right-content {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.hero-intro {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 360px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
}

.hero-cta:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-muted);
}

.hero-social {
  display: flex;
  gap: var(--space-md);
}

.hero-social a {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.hero-social a:hover {
  color: var(--color-accent);
}

/* Content container */
.content-container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Content section padding */
.content-pad {
  padding: var(--space-2xl) var(--space-xl);
}

.content-container + .content-container {
  margin-top: var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
  scroll-margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.6s var(--transition-smooth) forwards;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }

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

.section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.01em;
}

.section h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: var(--space-lg) 0 var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-intro {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

.about-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: 0;
}

.about-details div {
  display: flex;
  gap: var(--space-md);
}

.about-details dt {
  margin: 0;
  font-weight: 500;
  color: var(--color-text-muted);
  min-width: 5rem;
}

.about-details dd {
  margin: 0;
  color: var(--color-text);
}

.about-details a {
  color: var(--color-accent);
  text-decoration: none;
}

.about-details a:hover {
  text-decoration: underline;
}

/* Skills – small cards with auto-scrolling marquee, 2 rows */
.skills-section {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.skills-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skills-row-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.skills-row-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.skills-rows .skills-row-group:first-child .skills-cards-wrap {
  border-top: 1px solid rgba(201, 160, 220, 0.4);
}

.skills-rows .skills-cards-wrap {
  border-bottom: none;
  padding: var(--space-sm) 0;
}

.skills-rows .skills-row-group:last-child .skills-cards-wrap {
  border-bottom: 1px solid rgba(201, 160, 220, 0.4);
}

.skills-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
}

.skill-card {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  white-space: nowrap;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  opacity: 0;
  animation: skill-card-in 0.4s ease forwards;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-smooth);
}

.skills-cards-wrap .skill-card:nth-child(1) { animation-delay: 0.02s; }
.skills-cards-wrap .skill-card:nth-child(2) { animation-delay: 0.04s; }
.skills-cards-wrap .skill-card:nth-child(3) { animation-delay: 0.06s; }
.skills-cards-wrap .skill-card:nth-child(4) { animation-delay: 0.08s; }
.skills-cards-wrap .skill-card:nth-child(5) { animation-delay: 0.1s; }
.skills-cards-wrap .skill-card:nth-child(6) { animation-delay: 0.12s; }
.skills-cards-wrap .skill-card:nth-child(7) { animation-delay: 0.14s; }
.skills-cards-wrap .skill-card:nth-child(8) { animation-delay: 0.16s; }
.skills-cards-wrap .skill-card:nth-child(9) { animation-delay: 0.18s; }
.skills-cards-wrap .skill-card:nth-child(10) { animation-delay: 0.2s; }
.skills-cards-wrap .skill-card:nth-child(n+11) { animation-delay: 0.22s; }

@keyframes skill-card-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-card:hover {
  border-color: rgba(201, 160, 220, 0.35);
  color: var(--color-text);
  transform: translateY(-1px);
}

/* Main */
main {
  padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
  max-width: 100%;
  width: 100%;
  margin: 0;
}

/* Experience - Work + Journey layout */
.experience-section {
  padding: 0;
}

.experience-container {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(201, 160, 220, 0.08);
  transition: box-shadow 0.35s ease;
}

.experience-container:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 160, 220, 0.15);
}

/* Experience sand-like pinkish speckles at random places */
.experience-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.experience-speck {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.experience-speck-1 {
  width: 48px;
  height: 48px;
  top: 8%;
  left: 12%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.6) 0%, transparent 70%);
}

.experience-speck-2 {
  width: 36px;
  height: 36px;
  top: 25%;
  right: 18%;
  background: radial-gradient(circle, rgba(232, 180, 200, 0.5) 0%, transparent 70%);
}

.experience-speck-3 {
  width: 42px;
  height: 42px;
  top: 45%;
  left: 8%;
  background: radial-gradient(circle, rgba(201, 160, 220, 0.45) 0%, transparent 70%);
}

.experience-speck-4 {
  width: 32px;
  height: 32px;
  top: 60%;
  right: 22%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, transparent 70%);
}

.experience-speck-5 {
  width: 40px;
  height: 40px;
  top: 78%;
  left: 15%;
  background: radial-gradient(circle, rgba(232, 180, 200, 0.45) 0%, transparent 70%);
}

.experience-speck-6 {
  width: 28px;
  height: 28px;
  top: 15%;
  right: 8%;
  background: radial-gradient(circle, rgba(201, 160, 220, 0.5) 0%, transparent 70%);
}

.experience-speck-7 {
  width: 44px;
  height: 44px;
  top: 52%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.4) 0%, transparent 70%);
}

.experience-speck-8 {
  width: 34px;
  height: 34px;
  top: 85%;
  right: 25%;
  background: radial-gradient(circle, rgba(232, 180, 200, 0.45) 0%, transparent 70%);
}

.experience-speck-9 {
  width: 38px; height: 38px; top: 12%; left: 35%; background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, transparent 70%);
}

.experience-speck-10 {
  width: 30px; height: 30px; top: 22%; right: 42%; background: radial-gradient(circle, rgba(201, 160, 220, 0.45) 0%, transparent 70%);
}

.experience-speck-11 {
  width: 44px; height: 44px; top: 35%; left: 28%; background: radial-gradient(circle, rgba(232, 180, 200, 0.4) 0%, transparent 70%);
}

.experience-speck-12 {
  width: 26px; height: 26px; top: 48%; right: 35%; background: radial-gradient(circle, rgba(255, 182, 193, 0.55) 0%, transparent 70%);
}

.experience-speck-13 {
  width: 40px; height: 40px; top: 55%; left: 45%; background: radial-gradient(circle, rgba(201, 160, 220, 0.4) 0%, transparent 70%);
}

.experience-speck-14 {
  width: 32px; height: 32px; top: 68%; right: 12%; background: radial-gradient(circle, rgba(232, 180, 200, 0.5) 0%, transparent 70%);
}

.experience-speck-15 {
  width: 36px; height: 36px; top: 5%; left: 65%; background: radial-gradient(circle, rgba(255, 182, 193, 0.45) 0%, transparent 70%);
}

.experience-speck-16 {
  width: 28px; height: 28px; top: 38%; right: 55%; background: radial-gradient(circle, rgba(232, 180, 200, 0.5) 0%, transparent 70%);
}

.experience-speck-17 {
  width: 42px; height: 42px; top: 72%; left: 38%; background: radial-gradient(circle, rgba(201, 160, 220, 0.45) 0%, transparent 70%);
}

.experience-speck-18 {
  width: 24px; height: 24px; top: 18%; left: 55%; background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, transparent 70%);
}

.experience-speck-19 {
  width: 34px; height: 34px; top: 42%; left: 72%; background: radial-gradient(circle, rgba(232, 180, 200, 0.45) 0%, transparent 70%);
}

.experience-speck-20 {
  width: 30px; height: 30px; top: 62%; right: 48%; background: radial-gradient(circle, rgba(201, 160, 220, 0.5) 0%, transparent 70%);
}

.experience-speck-21 {
  width: 40px; height: 40px; top: 82%; left: 55%; background: radial-gradient(circle, rgba(255, 182, 193, 0.4) 0%, transparent 70%);
}

.experience-speck-22 {
  width: 26px; height: 26px; top: 28%; left: 82%; background: radial-gradient(circle, rgba(232, 180, 200, 0.5) 0%, transparent 70%);
}

.experience-speck-23 {
  width: 36px; height: 36px; top: 75%; right: 38%; background: radial-gradient(circle, rgba(201, 160, 220, 0.45) 0%, transparent 70%);
}

.experience-speck-24 {
  width: 32px; height: 32px; top: 92%; left: 72%; background: radial-gradient(circle, rgba(232, 180, 200, 0.45) 0%, transparent 70%);
}

.work-section,
.journey-section {
  position: relative;
  z-index: 1;
}

.work-section {
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
}

.work-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-2xl);
  text-align: left;
  position: relative;
  display: inline-block;
}

.work-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 4rem;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-soft-pink));
  border-radius: 2px;
}

.work-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  padding-left: var(--space-md);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.35s ease;
  opacity: 0;
  animation: workEntryFade 0.6s ease forwards;
}

.work-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.work-entry:hover {
  border-left-color: var(--color-accent);
  background: rgba(201, 160, 220, 0.06);
}

.work-entry:nth-child(1) { animation-delay: 0.05s; }
.work-entry:nth-child(2) { animation-delay: 0.1s; }
.work-entry:nth-child(3) { animation-delay: 0.15s; }
.work-entry:nth-child(4) { animation-delay: 0.2s; }
.work-entry:nth-child(5) { animation-delay: 0.25s; }
.work-entry:nth-child(6) { animation-delay: 0.3s; }

@keyframes workEntryFade {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .work-entry {
    grid-template-columns: 140px 180px 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding-left: var(--space-lg);
  }
}

.work-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.work-dates {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.work-date-range {
  font-weight: 500;
}

.work-duration {
  font-size: 0.8125rem;
  color: var(--color-soft-pink);
  opacity: 0.9;
}

.work-company strong {
  color: var(--color-accent);
  font-size: 1rem;
  transition: color 0.25s ease;
}

.work-entry:hover .work-company strong {
  color: var(--color-soft-pink);
}

.work-company span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.work-details strong {
  color: var(--color-text);
  font-size: 0.9375rem;
}

.work-tech {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.work-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

@media (min-width: 900px) {
  .work-bullets {
    grid-template-columns: 1fr 1fr;
  }
}

.work-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  transition: color 0.25s ease;
}

.work-entry:hover .work-bullets li {
  color: var(--color-text);
}

.work-bullets li::before {
  content: 'o';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  color: var(--color-soft-pink);
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.work-entry:hover .work-bullets li::before {
  opacity: 1;
  color: var(--color-accent);
}

/* Journey section */
.journey-section {
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.15);
}

.journey-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 var(--space-lg);
  text-align: left;
}

.journey-intro {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 var(--space-xl);
  max-width: 720px;
}

.journey-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .journey-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.journey-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.journey-year {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.journey-role {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.journey-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Projects - Gallery view with description layout */
.projects-subtitle {
  margin: 0 0 var(--space-xl);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.projects-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .projects-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(26, 26, 36, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.project-card:hover {
  border-color: rgba(201, 160, 220, 0.3);
  box-shadow: 0 8px 24px rgba(201, 160, 220, 0.12);
  transform: translateY(-2px);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 140px;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(40, 28, 48, 0.9) 0%, rgba(26, 26, 36, 0.95) 100%);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder::after {
  content: 'Preview';
  color: var(--color-text-faint);
  font-size: 0.8125rem;
}

.project-card-body {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.project-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  font-size: 0.75rem;
  color: var(--color-text-faint);
  margin-top: var(--space-xs);
}

.project-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.project-link {
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.project-link:hover {
  color: var(--color-soft-pink);
}

.project-link-external::after {
  content: ' ↗';
  font-size: 0.7em;
  opacity: 0.8;
}

/* Affiliations & Certificates - Vertical timeline */
.affiliations-section {
  position: relative;
  padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
}

.affiliations-subtitle {
  margin: 0 0 var(--space-2xl);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.affiliations-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.affiliations-speck {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

.affiliations-speck-1 { width: 32px; height: 32px; top: 10%; left: 15%; background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, transparent 70%); }
.affiliations-speck-2 { width: 24px; height: 24px; top: 40%; right: 20%; background: radial-gradient(circle, rgba(232, 180, 200, 0.45) 0%, transparent 70%); }
.affiliations-speck-3 { width: 28px; height: 28px; top: 65%; left: 25%; background: radial-gradient(circle, rgba(201, 160, 220, 0.4) 0%, transparent 70%); }
.affiliations-speck-4 { width: 20px; height: 20px; top: 85%; right: 15%; background: radial-gradient(circle, rgba(255, 182, 193, 0.5) 0%, transparent 70%); }
.affiliations-speck-5 { width: 26px; height: 26px; top: 30%; right: 30%; background: radial-gradient(circle, rgba(201, 160, 220, 0.4) 0%, transparent 70%); }

.timeline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 24px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding-bottom: var(--space-2xl);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.affiliations-section.in-view .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

.affiliations-section.in-view .timeline-item[data-delay="0"] { transition-delay: 0ms; }
.affiliations-section.in-view .timeline-item[data-delay="1"] { transition-delay: 80ms; }
.affiliations-section.in-view .timeline-item[data-delay="2"] { transition-delay: 160ms; }
.affiliations-section.in-view .timeline-item[data-delay="3"] { transition-delay: 240ms; }
.affiliations-section.in-view .timeline-item[data-delay="4"] { transition-delay: 320ms; }
.affiliations-section.in-view .timeline-item[data-delay="5"] { transition-delay: 400ms; }
.affiliations-section.in-view .timeline-item[data-delay="6"] { transition-delay: 480ms; }

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: right;
  padding-top: var(--space-xs);
}

.timeline-node {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(201, 160, 220, 0.3);
  margin-top: var(--space-sm);
  animation: timelinePulse 2.5s ease-in-out infinite;
  z-index: 2;
  justify-self: center;
}

.timeline-node-award {
  background: var(--color-soft-pink);
  box-shadow: 0 0 0 4px rgba(232, 180, 200, 0.3);
}

@keyframes timelinePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(100px + 12px - 2px);
  top: 28px;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-soft-pink), transparent);
  opacity: 0.4;
  border-radius: 2px;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-content {
  background: rgba(26, 26, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-smooth);
}

.timeline-content:hover {
  border-color: rgba(201, 160, 220, 0.25);
  box-shadow: 0 8px 32px rgba(201, 160, 220, 0.1);
  transform: translateX(4px);
}

.timeline-image {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: 110px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-md);
  border: 1px solid var(--glass-border);
}

/* Hult Prize — side-by-side image + text (like hero) */
.hult-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .hult-row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
  }
}

.hult-row-media {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
  max-width: 200px;
}

.timeline-image-hult {
  display: block;
  width: 100%;
  max-width: 200px;
  max-height: 260px;
  height: auto;
  object-fit: contain;
  object-position: center top;
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.hult-row-body {
  flex: 1;
  min-width: 0;
}

.hult-row-body .timeline-label {
  margin-top: 0;
}

.affiliations-flow {
  position: relative;
  z-index: 1;
}

/* Education */
.education-subtitle {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-xl);
}

.education-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .education-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .education-card-wide {
    grid-column: 1 / -1;
  }
}

.education-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.education-date {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.education-title {
  margin: 0 0 var(--space-xs);
  font-size: 1.125rem;
  color: var(--color-text);
}

.education-school {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.education-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.education-courses {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.education-courses li {
  margin-bottom: var(--space-xs);
}

/* Certificates — single award card, images ~85% of card area */
.timeline-item-certs .timeline-content-award {
  padding: var(--space-lg) var(--space-xl);
}

.timeline-item-certs .timeline-content-award .timeline-label {
  margin-bottom: var(--space-md);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  width: 100%;
  align-items: stretch;
  min-height: 280px;
}

.certificate-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
}

.certificate-image-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85%;
  min-height: 220px;
  max-height: 320px;
  margin: 0 auto var(--space-md);
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

.certificate-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border: none;
  border-radius: var(--radius-sm);
}

.certificate-title {
  flex-shrink: 0;
  margin: 0 0 var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.certificate-meta {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .certificate-image-wrap {
    width: 90%;
    min-height: 200px;
    max-height: 280px;
  }
}

.timeline-content-award {
  border-color: rgba(232, 180, 200, 0.2);
  background: rgba(40, 28, 48, 0.6);
}

.timeline-content-award:hover {
  border-color: rgba(232, 180, 200, 0.4);
  box-shadow: 0 8px 32px rgba(232, 180, 200, 0.12);
}

.timeline-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.timeline-label-award {
  color: var(--color-soft-pink);
}

.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.01em;
}

.timeline-location {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.timeline-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

@media (max-width: 768px) {
  .timeline-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "content";
    gap: var(--space-sm);
    padding-left: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-left: 3px solid var(--color-accent);
  }

  .timeline-item::before {
    display: none;
  }

  .timeline-date {
    grid-area: date;
    text-align: left;
    padding-top: 0;
  }

  .timeline-node {
    display: none;
  }

  .timeline-content {
    grid-area: content;
  }
}

/* Interests */
.interests-section {
  padding: var(--space-2xl) var(--space-xl) var(--space-3xl);
}

.interests-subtitle {
  margin: 0 0 var(--space-2xl);
  color: var(--color-text-muted);
  font-size: 1rem;
}

.interests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .interests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .interests-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1200px) {
  .interests-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.interest-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.interest-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(201, 160, 220, 0.2);
  transform: translateY(-2px);
}

.interest-card-title {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.interest-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Contact */
#contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#contact ul li {
  margin-bottom: var(--space-md);
}

#contact a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

#contact a:hover {
  color: var(--color-text);
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl);
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-faint);
}

/* Mobile */
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
  }

  .content {
    margin-left: 0;
    padding: var(--space-md);
  }

  main {
    padding: 0 var(--space-lg) var(--space-2xl);
  }
}
