:root {
  --bg: #0f0e17;
  --bg-alt: #1a1826;
  --text: #e8e6f0;
  --muted: #9a95b0;
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --border: #2a2740;
  --max-width: 900px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }

a { color: inherit; text-decoration: none; }

section { max-width: var(--max-width); margin: 0 auto; padding: 60px 24px; }

/* NAVBAR */
.navbar {
  width: 100%;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  z-index: 10;
}
.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
}
.logo { font-weight: 800; font-size: 1.2rem; white-space: nowrap; display: flex; align-items: center; }
.logo img { height: 32px; width: auto; display: block}
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 32px;
}
.nav-links a { font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
  .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}

/* HERO */
.hero { text-align: center; padding-top: 80px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.hero h1 { font-size: 3rem; margin-bottom: 16px; }
.summary { max-width: 600px; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }
.hero-img { width: 100%; border-radius: 8px; }

/* TRAITS */
.traits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.trait-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.trait-card h3 { margin-bottom: 12px; }
.trait-card ul { padding-left: 20px; color: var(--muted); }
.trait-card li { margin-bottom: 6px; }

/* EXPERIENCE */
.experience h2, .projects h2, .about h2 { font-size: 2rem; margin-bottom: 24px; }

.logo-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.logo-strip img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.timeline-item:first-child { border-top: none; }
.timeline-meta { color: var(--muted); font-size: 0.9rem; }
.timeline-meta .date { display: block; font-weight: 600; color: var(--text); }
.timeline-content h3 { margin-bottom: 8px; font-size: 1.15rem; }
.timeline-content p { color: var(--muted); margin-bottom: 12px; }
.timeline-content img { width: 100%; max-width: 500px; border-radius: 8px; margin-bottom: 12px; display: block; }
.read-more { color: var(--accent); font-weight: 600; }

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.project-card {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  border-radius: 8px;
  overflow: hidden;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(139,92,246,0.25); border-color: var(--accent); }
.project-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.project-info { padding: 14px 16px; }
.project-info h4 { margin-bottom: 4px; }
.tag { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
}
.btn-outline:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }

/* ABOUT */
.about p { color: var(--muted); max-width: 700px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 48px 24px;
}
.footer-links { margin: 20px 0; display: flex; justify-content: center; gap: 24px; }
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--muted); font-size: 0.85rem; }

/* PROJECT DETAIL PAGE */
.project-detail { padding-top: 60px; }
.back-link {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
}
.back-link:hover { color: var(--accent); }

.project-detail h1 { font-size: 2.4rem; margin: 8px 0 16px; }
.project-detail .summary { text-align: left; margin: 0 0 28px; max-width: 700px; }
.project-hero-img { width: 100%; border-radius: 8px; margin-bottom: 32px; }

.project-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 40px;
}
.meta-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.project-meta-row p { font-weight: 600; }

.project-body h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--accent);
}
.project-body p { color: var(--muted); margin-bottom: 16px; }

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.project-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.project-gallery figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .project-meta-row { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-nav { flex-direction: column; gap: 12px; }
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 0.9rem; }
  .traits { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}