/* ═══════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════ */
:root {
  /* Typography */
  --font-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;

  /* Font sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --sidebar-width: 220px;

  /* Transitions */
  --transition-fast:    150ms ease;
  --transition-base:    300ms ease;
  --transition-slow:    500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-section: 620ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Effects */
  --glass-blur: blur(18px);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════
   LAYOUT — CORE
   ═══════════════════════════════════════════════ */
.app {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════
   SECTION SWITCHING ENGINE
   ═══════════════════════════════════════════════ */
.section {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition:
    opacity var(--transition-section),
    transform var(--transition-section);
}

.section--active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.section--prev {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-60px);
}

.section--next {
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}

/* ═══════════════════════════════════════════════
   SECTION INNER WRAPPER
   ═══════════════════════════════════════════════ */
.section__inner {
  width: 100%;
  max-width: 960px;
  padding: var(--space-8) var(--space-10);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
}

.section__inner--centered {
  align-items: center;
  text-align: center;
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  font-family: var(--font-mono);
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  z-index: 100;
  padding: var(--space-8) 0 var(--space-6);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.sidebar__monogram {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-mint));
  display: grid;
  place-items: center;
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-bg);
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(76, 158, 235, 0.25);
}

.sidebar__nav {
  flex: 1;
  padding: var(--space-2) 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar__nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  position: relative;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-right: var(--space-3);
  transition: background var(--transition-base);
  outline: none;
}

.nav-item:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: -2px;
}

/* Left-edge active indicator */
.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--color-accent-blue);
  box-shadow: 0 0 8px var(--color-accent-blue);
  opacity: 0;
  transform: scaleY(0);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-item--active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-item--active {
  background: var(--nav-active-bg);
}

.nav-item:not(.nav-item--active):hover {
  background: var(--nav-hover-bg);
}

.nav-item__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-muted);
  flex-shrink: 0;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.nav-item--active .nav-item__dot {
  background: var(--color-accent-blue);
  transform: scale(1.6);
  box-shadow: 0 0 6px var(--color-accent-blue);
}

.nav-item__icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.nav-item--active .nav-item__icon { color: var(--color-accent-blue); }
.nav-item:not(.nav-item--active):hover .nav-item__icon { color: var(--color-text-secondary); }

.nav-item__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: color var(--transition-base);
}

.nav-item--active .nav-item__label {
  color: var(--color-text-primary);
  font-weight: 600;
}

.sidebar__footer {
  padding: var(--space-4) var(--space-6) 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.theme-toggle {
  display: none;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.theme-toggle:hover {
  background: var(--nav-hover-bg);
  border-color: var(--color-border-glow);
  color: var(--color-text-secondary);
}

.theme-toggle__track {
  width: 28px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-border-glow);
  position: relative;
  flex-shrink: 0;
  transition: background var(--transition-base);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(12px);
}

.theme-toggle__label {
  white-space: nowrap;
}

.sidebar__status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.sidebar__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-mint);
  box-shadow: 0 0 6px var(--color-accent-mint);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   PROGRESS BAR (right edge)
   ═══════════════════════════════════════════════ */
.progress-bar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  z-index: 50;
}

.progress-bar__fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--color-accent-blue), var(--color-accent-mint));
  transition: height var(--transition-slow);
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════
   SECTION COUNTER (bottom right)
   ═══════════════════════════════════════════════ */
.section-counter {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  z-index: 50;
  letter-spacing: 0.05em;
}

.section-counter__sep { color: var(--color-border-glow); }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-base);
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(76, 158, 235, 0.3);
}

.btn--primary:hover {
  background: #6aaff2;
  box-shadow: 0 0 30px rgba(76, 158, 235, 0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-glow);
}

.btn--ghost:hover {
  background: rgba(76, 158, 235, 0.08);
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   GLASS CARD
   ═══════════════════════════════════════════════ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.glass-card:hover {
  border-color: rgba(76, 158, 235, 0.35);
  box-shadow: var(--shadow-card), var(--glow-blue);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 158, 235, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 158, 235, 0.055) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 65% at 50% 50%, transparent 20%, var(--color-bg) 80%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  top: -80px;
  right: 5%;
  background: radial-gradient(circle, rgba(76, 158, 235, 0.12), transparent 70%);
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  bottom: -60px;
  left: 10%;
  background: radial-gradient(circle, rgba(100, 216, 163, 0.10), transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  padding: 0 var(--space-10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
  min-width: 0;
}

/* ─── PROFILE PHOTO ─── */
.hero__photo-wrap {
  flex-shrink: 0;
  width: 240px;
  height: 240px;
  position: relative;
  display: none;
}

/* Outer border ring */
.hero__photo-ring {
  display: none;
}

/* Photo content area */
.hero__photo-inner {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg-1);
  z-index: 1;
  border: 1.5px solid rgba(76, 158, 235, 0.3);
}

.hero__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 1;
}

.hero__photo-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  z-index: 0;
}

/* Corner bracket accents */
.hero__photo-bracket {
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 3;
}

.hero__photo-bracket--tl {
  top: -6px; left: -6px;
  border-top: 2px solid var(--color-accent-blue);
  border-left: 2px solid var(--color-accent-blue);
  border-radius: 3px 0 0 0;
}

.hero__photo-bracket--tr {
  top: -6px; right: -6px;
  border-top: 2px solid var(--color-accent-blue);
  border-right: 2px solid var(--color-accent-blue);
  border-radius: 0 3px 0 0;
}

.hero__photo-bracket--bl {
  bottom: -6px; left: -6px;
  border-bottom: 2px solid var(--color-accent-blue);
  border-left: 2px solid var(--color-accent-blue);
  border-radius: 0 0 0 3px;
}

.hero__photo-bracket--br {
  bottom: -6px; right: -6px;
  border-bottom: 2px solid var(--color-accent-blue);
  border-right: 2px solid var(--color-accent-blue);
  border-radius: 0 0 3px 0;
}

.hero__greeting {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-accent-mint);
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.hero__name {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-text-primary) 40%, var(--color-accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__typewriter-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 2rem;
}

.hero__typewriter {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent-blue);
}

.hero__location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
}

.hero__location::before {
  content: '◎';
  color: var(--color-accent-mint);
  font-size: 0.8em;
}

.hero__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.hero__nav-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__nav-hint-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════════════════ */
.about__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about__summary {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 720px;
  border-left: 3px solid var(--color-accent-blue);
  padding-left: var(--space-4);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.highlight-card {
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.highlight-card__value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-accent-blue);
  letter-spacing: -0.01em;
}

.highlight-card__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.about__edu {}

.edu-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-4) var(--space-6);
}

.edu-card__degree {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
}

.edu-card__field {
  font-size: var(--text-sm);
  color: var(--color-accent-mint);
  font-weight: 500;
}

.edu-card__institution {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════
   SKILLS SECTION
   ═══════════════════════════════════════════════ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-right: var(--space-2);
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skill-category__name {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  cursor: default;
}

.skill-tag[data-color="blue"]   { background: rgba(76,158,235,0.12);  border-color: rgba(76,158,235,0.28);  color: #4C9EEB; }
.skill-tag[data-color="mint"]   { background: rgba(100,216,163,0.12); border-color: rgba(100,216,163,0.28); color: #64D8A3; }
.skill-tag[data-color="purple"] { background: rgba(157,127,234,0.12); border-color: rgba(157,127,234,0.28); color: #9D7FEA; }
.skill-tag[data-color="amber"]  { background: rgba(240,180,41,0.12);  border-color: rgba(240,180,41,0.28);  color: #F0B429; }
.skill-tag[data-color="rose"]   { background: rgba(245,101,101,0.12); border-color: rgba(245,101,101,0.28); color: #F56565; }
.skill-tag[data-color="cyan"]   { background: rgba(86,204,242,0.12);  border-color: rgba(86,204,242,0.28);  color: #56CCF2; }

.skill-tag:hover { transform: scale(1.06); filter: brightness(1.2); }

/* ═══════════════════════════════════════════════
   EXPERIENCE / TIMELINE
   ═══════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: var(--space-8);
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-right: var(--space-2);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-accent-blue) 0%,
    var(--color-accent-mint) 50%,
    transparent 100%
  );
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding: 0 0 var(--space-6) var(--space-8);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent-blue);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 10px rgba(76, 158, 235, 0.5);
  transition: box-shadow var(--transition-base);
}

.timeline-item:first-child::before {
  background: var(--color-accent-mint);
  box-shadow: 0 0 10px rgba(100, 216, 163, 0.5);
}

.timeline-item:hover::before {
  box-shadow: 0 0 18px rgba(76, 158, 235, 0.8);
}

.timeline-card {
  padding: var(--space-5) var(--space-6);
}

.timeline-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.timeline-card__company {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.timeline-card__client {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-accent-mint);
  font-weight: 600;
  margin-top: 2px;
  font-family: var(--font-mono);
}

.timeline-card__role {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-accent-blue);
  font-weight: 600;
  margin-top: var(--space-1);
}

.timeline-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.timeline-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
}

.timeline-card__location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.timeline-card__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline-card__bullets li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding-left: var(--space-4);
  position: relative;
}

.timeline-card__bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent-blue);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding-right: var(--space-2);
  padding-bottom: var(--space-2);
}

.project-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  cursor: default;
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-card__role {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-mint);
  font-family: var(--font-mono);
}

.project-card__status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.project-card__status--production {
  background: rgba(100, 216, 163, 0.12);
  border: 1px solid rgba(100, 216, 163, 0.3);
  color: var(--color-accent-mint);
}

.project-card__name {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.project-card__tagline {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent-blue);
}

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.project-card__client {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  display: none;
}

.project-card__client::before {
  content: '@ ';
  color: var(--color-accent-amber);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
}

.tech-tag {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(76, 158, 235, 0.09);
  border: 1px solid rgba(76, 158, 235, 0.22);
  color: var(--color-accent-blue);
  font-family: var(--font-mono);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(76, 158, 235, 0.18);
  border-color: rgba(76, 158, 235, 0.45);
}

/* ═══════════════════════════════════════════════
   CERTIFICATIONS SECTION
   ═══════════════════════════════════════════════ */
.certs__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: 640px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
}

.cert-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
}

.cert-card[data-color="blue"]   .cert-card__icon-wrap { background: rgba(76,158,235,0.14);  color: #4C9EEB; }
.cert-card[data-color="mint"]   .cert-card__icon-wrap { background: rgba(100,216,163,0.14); color: #64D8A3; }
.cert-card[data-color="amber"]  .cert-card__icon-wrap { background: rgba(240,180,41,0.14);  color: #F0B429; }

.cert-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cert-card__name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-primary);
}

.cert-card__issuer {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.cert-card__id {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════ */
.contact__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  max-width: 500px;
  width: 100%;
}

.contact__tagline {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.7;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  text-decoration: none;
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-link--email:hover    { background: rgba(76,158,235,0.1);  border-color: rgba(76,158,235,0.35);  color: var(--color-accent-blue); }
.contact-link--linkedin:hover { background: rgba(10,102,194,0.12); border-color: rgba(10,102,194,0.4);   color: #0a66c2; }
.contact-link--whatsapp:hover { background: rgba(37,211,102,0.1);  border-color: rgba(37,211,102,0.35);  color: #25d366; }

.contact-link:hover { transform: translateX(6px); box-shadow: var(--shadow-card); }

/* ═══════════════════════════════════════════════
   SCROLLBAR CUSTOM
   ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-border-glow); }

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root { --sidebar-width: 0px; }

  .sidebar {
    width: 100vw;
    height: 56px;
    top: auto;
    bottom: 0;
    flex-direction: row;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--color-border);
    justify-content: space-around;
    align-items: center;
  }

  .sidebar__brand,
  .sidebar__footer { display: none; }

  .sidebar__nav {
    display: flex;
    flex-direction: row;
    padding: 0;
    flex: 1;
    justify-content: space-around;
  }

  .nav-item {
    flex-direction: column;
    padding: var(--space-2);
    margin-right: 0;
    border-radius: var(--radius-md);
    gap: var(--space-1);
  }

  .nav-item::before { display: none; }
  .nav-item__dot { display: none; }
  .nav-item__label { font-size: 0.6rem; }

  .app {
    left: 0;
    bottom: 56px;
  }

  .section__inner {
    padding: var(--space-6) var(--space-4);
  }

  .section__title { font-size: var(--text-3xl); }

  .hero__content {
    flex-direction: column-reverse;
    align-items: center;
    padding: 0 var(--space-6);
    gap: var(--space-6);
  }
  .hero__text { align-items: center; text-align: center; }
  .hero__ctas { justify-content: center; }
  .hero__location { justify-content: center; }
  .hero__photo-wrap { width: 150px; height: 150px; }
  .hero__photo-ring { border-radius: 20px; }
  .hero__photo-inner { border-radius: 17px; }
  .hero__photo-initials { font-size: 2rem; }
  .hero__name { font-size: var(--text-4xl); }

  .about__highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills__grid {
    grid-template-columns: 1fr 1fr;
    max-height: calc(100dvh - 180px);
  }

  .timeline { max-height: calc(100dvh - 180px); }
  .projects__grid { grid-template-columns: 1fr; max-height: calc(100dvh - 180px); }

  .section-counter { right: var(--space-3); bottom: 64px; }
}

@media (max-width: 480px) {
  .skills__grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; width: 100%; }
  .btn { justify-content: center; }
}
