/* ── VARIABLES ── */
:root {
  --bg: #0e0e10;
  --surface: #16161a;
  --border: #2a2a30;
  --accent: #7fffb2;
  --accent2: #5bc8ff;
  --accent3: #ff7eb3;
  --text: #e8e8ec;
  --muted: #7a7a88;
  --card: #1a1a20;
}

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

html {
  scroll-behavior: smooth;
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── LAYOUT ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(10px);
  z-index: 100;
}

header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

nav.nav-links {
  display: flex;
  gap: 22px;
}

nav.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

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

/* ── HERO IMAGE ── */
.hero-image {
  margin: 36px 0 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-height: 260px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

/* ── SECTIONS ── */
section {
  padding: 56px 0 0;
}

section h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── INTRO ── */
.intro-section {
  padding: 48px 0 0;
}

.intro-section p {
  font-size: 15px;
  line-height: 1.85;
  color: #c0c0cc;
  max-width: 680px;
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

/* ── EDUCATION ── */
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
}

.edu-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.edu-card .school {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 8px;
}

.edu-card .edu-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.edu-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-right: 6px;
  background: rgba(91, 200, 255, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(91, 200, 255, 0.2);
}

.coursework {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.coursework span {
  color: #9090a0;
}

/* ── TIMELINE (experience) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 28px;
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 168px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 164px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.timeline-meta {
  text-align: right;
  padding-top: 2px;
}

.timeline-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.timeline-type {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  margin-top: 6px;
}

.type-work {
  background: rgba(127, 255, 178, 0.1);
  color: var(--accent);
  border: 1px solid rgba(127, 255, 178, 0.2);
}

.type-cert {
  background: rgba(91, 200, 255, 0.1);
  color: var(--accent2);
  border: 1px solid rgba(91, 200, 255, 0.2);
}

.type-comp {
  background: rgba(255, 126, 179, 0.1);
  color: var(--accent3);
  border: 1px solid rgba(255, 126, 179, 0.2);
}

.type-club {
  background: rgba(127, 255, 178, 0.07);
  color: #a0e8c0;
  border: 1px solid rgba(127, 255, 178, 0.15);
}

.timeline-content h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-org {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
}

.timeline-content ul li {
  font-size: 13px;
  color: #a8a8b4;
  padding: 2px 0 2px 14px;
  position: relative;
  line-height: 1.65;
}

.timeline-content ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ── PROJECTS ── */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.project-item:hover {
  border-color: #3a3a42;
  transform: translateX(2px);
}

.project-item:hover::before {
  opacity: 1;
}

.project-item h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.project-item p {
  font-size: 13px;
  color: #a0a0b0;
  margin-bottom: 10px;
  line-height: 1.6;
}

.project-item ul {
  list-style: none;
  margin-bottom: 12px;
}

.project-item ul li {
  font-size: 12.5px;
  color: #909098;
  padding: 1.5px 0 1.5px 14px;
  position: relative;
}

.project-item ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

.tech-stack {
  font-size: 11.5px;
  color: var(--accent2);
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-bottom: 10px;
}

.project-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}

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

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
}

.skill-group h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.skill-group p {
  font-size: 13px;
  color: #b8b8c4;
  line-height: 1.7;
}

.skill-tag {
  display: inline-block;
  background: rgba(127, 255, 178, 0.07);
  border: 1px solid rgba(127, 255, 178, 0.12);
  color: #a8d8b8;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 3px;
  margin: 2px 3px 2px 0;
}

/* ── CONTACT ── */
.contact-info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.contact-info p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-links a {
  display: inline-block;
  background: rgba(127, 255, 178, 0.07);
  border: 1px solid rgba(127, 255, 178, 0.15);
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.contact-links a:hover {
  background: rgba(127, 255, 178, 0.15);
}

/* ── FOOTER ── */
footer {
  margin-top: 72px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-section,
.edu-card,
.timeline-item,
.project-item,
.skill-group,
.contact-info {
  animation: fadeUp 0.5s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.10s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.20s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }

.project-item:nth-child(1) { animation-delay: 0.05s; }
.project-item:nth-child(2) { animation-delay: 0.10s; }
.project-item:nth-child(3) { animation-delay: 0.15s; }
.project-item:nth-child(4) { animation-delay: 0.20s; }
.project-item:nth-child(5) { animation-delay: 0.25s; }

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before,
  .timeline-item::after {
    display: none;
  }

  .timeline-meta {
    text-align: left;
    margin-bottom: 8px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  nav.nav-links {
    gap: 14px;
  }
}
