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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 99px; }
.dark ::-webkit-scrollbar-thumb { background: #3f3f46; }

/* ===== SELECTION ===== */
::selection { background: #000; color: #fff; }
.dark ::selection { background: #fff; color: #000; }

/* ===== NAV LINKS ===== */
.nav-link {
  color: #71717a;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.nav-link:hover { color: #09090b; }
.nav-link:hover::after { transform: scaleX(1); }
.dark .nav-link { color: #a1a1aa; }
.dark .nav-link:hover { color: #fafafa; }

.mobile-nav-link {
  color: #52525b;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f4f4f5;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: #09090b; }
.dark .mobile-nav-link { color: #a1a1aa; border-color: #27272a; }
.dark .mobile-nav-link:hover { color: #fafafa; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #09090b; color: #fafafa;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  border: 1.5px solid #09090b;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.82; transform: translateY(-1px); }
.dark .btn-primary { background: #fafafa; color: #09090b; border-color: #fafafa; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #09090b;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  border: 1.5px solid #d4d4d8;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: #09090b; transform: translateY(-1px); background: #f4f4f5; }
.dark .btn-secondary { color: #fafafa; border-color: #3f3f46; }
.dark .btn-secondary:hover { border-color: #fafafa; background: #18181b; }

.btn-card-outline {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 0.375rem;
  border: 1.5px solid #d4d4d8;
  color: #52525b;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-card-outline:hover { border-color: #09090b; color: #09090b; background: #f4f4f5; }
.dark .btn-card-outline { border-color: #3f3f46; color: #a1a1aa; }
.dark .btn-card-outline:hover { border-color: #fafafa; color: #fafafa; background: #27272a; }

.btn-card-text {
  display: inline-flex; align-items: center;
  font-size: 0.8rem; font-weight: 600;
  color: #52525b;
  transition: color 0.2s;
  cursor: pointer;
}
.btn-card-text:hover { color: #09090b; }
.dark .btn-card-text { color: #a1a1aa; }
.dark .btn-card-text:hover { color: #fafafa; }

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; }
.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: 2rem; font-weight: 700;
  letter-spacing: -0.03em;
  color: #09090b;
}
.dark .section-title { color: #fafafa; }
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }

/* ===== CARDS ===== */
.card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.875rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: #a1a1aa;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.dark .card { background: #18181b; border-color: #27272a; }
.dark .card:hover { border-color: #52525b; box-shadow: 0 4px 24px rgba(0,0,0,0.3); }

.card-top { flex: 1; margin-bottom: 1rem; }
.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.card-title { font-size: 0.95rem; font-weight: 700; color: #09090b; line-height: 1.4; margin-bottom: 0.5rem; }
.dark .card-title { color: #f4f4f5; }
.card-desc { font-size: 0.8rem; color: #71717a; line-height: 1.6; }

/* ===== SKILL BADGES ===== */
.skill-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 600;
  background: #f4f4f5;
  color: #52525b;
  border: 1px solid #e4e4e7;
  transition: background 0.2s, border-color 0.2s;
}
.skill-badge:hover { background: #e4e4e7; border-color: #a1a1aa; }
.dark .skill-badge { background: #27272a; color: #a1a1aa; border-color: #3f3f46; }
.dark .skill-badge:hover { background: #3f3f46; border-color: #52525b; }

/* ===== TECH BADGES ===== */
.tech-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.68rem; font-weight: 600;
  background: #f4f4f5;
  color: #71717a;
  border: 1px solid #e4e4e7;
}
.dark .tech-badge { background: #27272a; color: #71717a; border-color: #3f3f46; }

/* ===== TIMELINE ===== */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px; top: 12px; bottom: 0;
  width: 1px;
  background: #e4e4e7;
}
.timeline-item:last-child::before { display: none; }
.dark .timeline-item::before { background: #27272a; }

.timeline-dot {
  position: absolute;
  left: 0; top: 10px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #09090b;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px #e4e4e7;
  z-index: 1;
}
.dark .timeline-dot {
  background: #fafafa;
  border-color: #09090b;
  box-shadow: 0 0 0 2px #3f3f46;
}
.timeline-content { margin-left: 0.5rem; }

/* ===== CONTACT ===== */
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem;
  color: #52525b;
  transition: color 0.2s;
  padding: 0.4rem 0;
}
.contact-link:hover { color: #09090b; }
.dark .contact-link { color: #a1a1aa; }
.dark .contact-link:hover { color: #fafafa; }
.contact-link-icon { font-size: 1rem; flex-shrink: 0; }

.form-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: #52525b;
  margin-bottom: 0.4rem;
}
.dark .form-label { color: #a1a1aa; }

.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  color: #09090b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-input:focus { border-color: #a1a1aa; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.form-input::placeholder { color: #a1a1aa; }
.dark .form-input { background: #18181b; border-color: #27272a; color: #fafafa; }
.dark .form-input:focus { border-color: #52525b; box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.dark .form-input::placeholder { color: #52525b; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOCUS RING ===== */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #09090b;
  outline-offset: 2px;
  border-radius: 4px;
}
.dark a:focus-visible, .dark button:focus-visible { outline-color: #fafafa; }
