/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  background-color: #0a0a0f;
  color: #e2e2ee;
}

::selection {
  background: rgba(255, 178, 44, 0.35);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #1e1e2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #FFB22C; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
#nav { backdrop-filter: blur(0px); }
#nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e2a;
}

.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: #FFB22C;
  transition: width 0.25s ease;
}
.nav-link:hover { color: #e2e2ee; }
.nav-link:hover::after { width: 100%; }

.mobile-link {
  color: #9090a8;
  transition: color 0.2s;
}
.mobile-link:hover { color: #e2e2ee; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  background: #FFB22C;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #e09820;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #1e1e2a;
  background: transparent;
  color: #9090a8;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: #FFB22C;
  color: #e2e2ee;
  transform: translateY(-1px);
}

/* ── Section helpers ──────────────────────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #FFB22C;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #e2e2ee;
  line-height: 1.2;
}

.section-header {
  max-width: 36rem;
}

/* ── Social icons ─────────────────────────────────────────────────────────── */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #4a4a5a;
  font-size: 1rem;
  transition: color 0.2s, transform 0.15s;
}
.social-icon:hover {
  color: #FFB22C;
  transform: translateY(-2px);
}

.social-icon-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #1e1e2a;
  border-radius: 0.5rem;
  color: #4a4a5a;
  font-size: 1.1rem;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
}
.social-icon-lg:hover {
  color: #FFB22C;
  border-color: #FFB22C;
  transform: translateY(-2px);
}

/* ── Stat card ────────────────────────────────────────────────────────────── */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #0a0a0f;
  border: 1px solid #1e1e2a;
  border-radius: 0.75rem;
  padding: 1rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFB22C;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: #4a4a5a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Tech pill ────────────────────────────────────────────────────────────── */
.tech-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  background: rgba(255, 178, 44, 0.1);
  border: 1px solid rgba(255, 178, 44, 0.2);
  color: #FFB22C;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── Skill card ───────────────────────────────────────────────────────────── */
.skill-card {
  background: #111118;
  border: 1px solid #1e1e2a;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.2s, background 0.25s;
}
.skill-card:hover {
  border-color: rgba(255, 178, 44, 0.4);
  background: #16161e;
  transform: translateY(-3px);
}

.skill-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(255, 178, 44, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFB22C;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.skill-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e2ee;
  margin-bottom: 0.5rem;
}

.skill-desc {
  font-size: 0.8rem;
  color: #9090a8;
  line-height: 1.6;
}

/* ── Project card ─────────────────────────────────────────────────────────── */
.project-card {
  background: #111118;
  border: 1px solid #1e1e2a;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.2s;
}
.project-card:hover {
  border-color: rgba(255, 178, 44, 0.4);
  transform: translateY(-3px);
}

.featured-card {
  border-color: rgba(255, 178, 44, 0.3);
  background: #13131b;
}

.project-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: #1e1e2a;
  color: #4a4a5a;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.project-badge.featured {
  background: rgba(255, 178, 44, 0.15);
  color: #FFB22C;
}
.project-badge.ai {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.project-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: #9090a8;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #1e1e2a;
  transition: color 0.2s, border-color 0.2s;
}
.project-link:hover {
  color: #FFB22C;
  border-color: #FFB22C;
}

/* ── Timeline ─────────────────────────────────────────────────────────────── */
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.3125rem;
  top: 1.25rem;
  bottom: -1.5rem;
  width: 1px;
  background: #1e1e2a;
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #1e1e2a;
  border: 2px solid #4a4a5a;
  margin-top: 0.35rem;
}
.timeline-dot.accent {
  background: rgba(255, 178, 44, 0.4);
  border-color: #FFB22C;
}

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ── Hero accent cursor ───────────────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: #FFB22C;
}

/* ── Glow pulse on featured card ──────────────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 178, 44, 0); }
  50% { box-shadow: 0 0 24px 2px rgba(255, 178, 44, 0.08); }
}
.featured-card {
  animation: glowPulse 4s ease-in-out infinite;
}

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-title { font-size: 1.6rem; }
}

/* ── Kielo: Coding Companion card ────────────────────────────────────────── */
.kielo-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #16161e;
  border: 1px solid #1e1e2a;
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.kielo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 10% 50%, rgba(255,178,44,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.kielo-card:hover {
  border-color: rgba(255,178,44,0.25);
}
.kielo-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.kielo-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255,178,44,0.4);
  box-shadow: 0 0 0 6px rgba(255,178,44,0.07), 0 4px 24px rgba(0,0,0,0.4);
  display: block;
  background: #1e1e2a;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.kielo-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(255,178,44,0.12), 0 8px 32px rgba(0,0,0,0.5);
}
.kielo-paw {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: #FFB22C;
  color: #0a0a0f;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.kielo-info {
  flex: 1;
  min-width: 0;
}
.kielo-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #FFB22C;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,178,44,0.1);
  border: 1px solid rgba(255,178,44,0.2);
  border-radius: 0.375rem;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.5rem;
}
.kielo-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e2ee;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.kielo-desc {
  font-size: 0.875rem;
  color: #9090a8;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}
.kielo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.kielo-tag {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #9090a8;
  background: #111118;
  border: 1px solid #1e1e2a;
  border-radius: 0.375rem;
  padding: 0.2rem 0.55rem;
  transition: color 0.2s, border-color 0.2s;
}
.kielo-tag:hover {
  color: #FFB22C;
  border-color: rgba(255,178,44,0.3);
}
@media (max-width: 580px) {
  .kielo-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .kielo-tags {
    justify-content: center;
  }
}

/* ── Purple override — hero name + typing animation only ─────────────── */
.purple { color: #7c6af7; }
