:root {
  --bg-color: #0f1420;
  --bg-alt: #151c2e;
  --text-color: #e6e9f0;
  --accent: #4f8cff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Navbar */
#navbar {
  background-color: rgba(15, 20, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#navbar .nav-link { color: var(--text-color); }
#navbar .nav-link:hover,
#navbar .nav-link.active { color: var(--accent); }

/* Hero */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  background:
    radial-gradient(ellipse at top, rgba(79, 140, 255, 0.12), transparent 60%),
    var(--bg-color);
}
.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px rgba(79, 140, 255, 0.35);
}

/* Sections */
.section { padding: 90px 0; }
.section-alt { background-color: var(--bg-alt); }
.section-title {
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.section .section-title { display: block; text-align: center; }

/* Project cards */
.card {
  background-color: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.card .card-text { color: #b6bdcc; }
.card .tech-badge {
  font-size: 0.75rem;
  background-color: rgba(79, 140, 255, 0.15);
  color: var(--accent);
}

/* Skills */
.skill-group h4 { letter-spacing: 0.08em; }
.skill-tag {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  margin: 0.3rem;
  border-radius: 50rem;
  background-color: var(--bg-alt);
  border: 1px solid rgba(79, 140, 255, 0.35);
  color: var(--text-color);
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.skill-tag:hover {
  background-color: var(--accent);
  color: #fff;
}

/* Education */
.education-list {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.edu-item { display: flex; align-items: flex-start; }
.edu-item i { color: var(--accent); font-size: 1.3rem; line-height: 1.5; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.8rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(79, 140, 255, 0.4);
}
.timeline-item { position: relative; margin-bottom: 2.2rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.78rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79, 140, 255, 0.6);
}
.timeline-date { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* Social links */
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text-color);
  background-color: var(--bg-alt);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-link:hover {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* Scroll offset for fixed navbar */
section[id] { scroll-margin-top: 70px; }

@media (max-width: 576px) {
  .hero h1 { font-size: 2.2rem; }
}
