/* ============================================================
   COMPONENTS — Nav, hero, experience, projects, stack, education, footer
   ============================================================ */

/* ── Nav ───────────────────────────────────────────────────── */
.nav-name {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color var(--duration) var(--ease);
}

.nav-name:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

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

.nav-link svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-location {
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.hero-tagline {
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-5);
  letter-spacing: 0;
}

.hero-bio {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: var(--space-6);
}

.hero-cta-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-faint);
  color: var(--text);
  transform: translateY(-1px);
}

/* Profile photo */
.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  flex-shrink: 0;
  background: var(--bg-subtle);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-subtle) 0%, #ede9e4 100%);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ── Tags / Pills ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--tag-bg);
  color: var(--tag-text);
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

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

/* ── Experience ─────────────────────────────────────────────── */
.exp-entry {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-light);
}

.exp-entry:first-child {
  padding-top: 0;
}

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

.exp-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.exp-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  line-height: 1;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.exp-meta {
  flex: 1;
  min-width: 0;
}

.exp-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: 2px;
}

.exp-company {
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-date {
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.exp-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.exp-role {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--text-muted);
  font-style: italic;
}

.exp-location {
  font-family: var(--font);
  font-size: var(--text-sm);
  color: var(--text-faint);
  flex-shrink: 0;
}

.exp-description {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-3);
  padding-left: calc(44px + var(--space-4));
}

/* ── Projects ───────────────────────────────────────────────── */
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--border);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms var(--ease);
}

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

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-placeholder span {
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: -0.02em;
  user-select: none;
}

/* ── Carousel ───────────────────────────────────────────────── */
.project-carousel { position: relative; }

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 300ms var(--ease);
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity var(--duration) var(--ease), background var(--duration) var(--ease);
  z-index: 2;
  font-size: 17px;
}

.project-carousel:hover .carousel-btn { opacity: 1; background: rgba(0, 0, 0, 0.7); }

.carousel-prev { left: var(--space-2); }
.carousel-next { right: var(--space-2); }

.carousel-dots {
  position: absolute;
  bottom: var(--space-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.project-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-3);
}

.project-body .tags {
  flex-wrap: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(to right, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.project-title {
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0;
}

.project-desc {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-2);
  flex-wrap: wrap;
}

/* ── Tech Stack ─────────────────────────────────────────────── */
.stack-category {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.stack-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stack-items li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Education ──────────────────────────────────────────────── */
.edu-entry {
  /* reuses exp-header styles */
}

.edu-coursework {
  margin-top: var(--space-4);
  padding-left: calc(44px + var(--space-4));
}

.edu-coursework-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-2);
}

.edu-coursework-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.edu-gpa {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  color: var(--text-muted);
}

.edu-gpa strong {
  color: var(--accent);
  font-weight: 700;
}

/* ── Hobbies ────────────────────────────────────────────────── */
.section--hobbies {
  border-bottom: none;
}

.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}

.hobby-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  cursor: default;
}

.hobby-item:hover {
  background: var(--tag-bg);
  transform: translateY(-2px);
}

.hobby-emoji {
  font-size: 28px;
  line-height: 1;
}

.hobby-label {
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer-note {
  font-size: var(--text-sm);
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.footer-link:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.footer-link svg {
  width: 15px;
  height: 15px;
  display: block;
}
