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

:root {
  --bg: #0d0f14;
  --surface: #161b27;
  --surface-2: #1e2535;
  --accent: #4f8ef7;
  --accent-2: #a78bfa;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #2d3748;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-2);
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ===== HERO ===== */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.hero-tag {
  display: inline-block;
  background: rgba(79, 142, 247, 0.12);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
  border-radius: 99px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

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

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

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ===== SECTIONS ===== */
section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ===== SKILLS ===== */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

.skill-tag.tag-ai {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.3);
  color: #c084fc;
}

.skill-tag.tag-product {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.skill-tag.tag-backend {
  background: rgba(79, 142, 247, 0.08);
  border-color: rgba(79, 142, 247, 0.3);
  color: #60a5fa;
}

.skill-tag.tag-cloud {
  background: rgba(45, 212, 191, 0.08);
  border-color: rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
}

/* ===== EXPERIENCE ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.15rem;
  font-weight: 500;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.timeline-content .company {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== PROJECTS PAGE ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-icon {
  font-size: 1.5rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.project-links a:hover {
  color: var(--accent);
}

.project-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.project-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  width: fit-content;
}

.status-active {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-wip {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.status-archived {
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted);
  border: 1px solid var(--border);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  background: rgba(79, 142, 247, 0.08);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-next {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.75rem;
}

.project-next-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 0.3rem;
}

.project-next p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== CONTACT / FOOTER ===== */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
