:root {
  --accent: #0077B5;
  --bg-card: rgba(255, 255, 255, 0.08);
  --text-light: #eee;
  --text-muted: #ccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #000, #1a1a1a, #333);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
}

h2, h3 {
  font-family: 'Montserrat', sans-serif;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 10%;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.logo {
  max-width: 150px;
  max-height: 50px;
  margin-right: auto;
  filter: drop-shadow(0 2px 4px rgba(255,255,255,0.1));
}

.nav_links {
  list-style: none;
}

.nav_links li {
  display: inline-block;
  padding: 0 15px;
}

.nav_links li a {
  font-size: 18px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav_links li a:hover,
.nav_links li a.active {
  color: #6fa3ef;
}

.container {
  width: 95%;
  max-width: 1000px;
  margin: 80px auto 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* 40px vertical gap between each direct child of .container */
.container > * + * {
  margin-top: 40px;
}

.summary p,
.education p {
  line-height: 1.5;
  color: var(--text-muted);
}

.summary h2,
.education h2 {
  margin-bottom: 12px;
}

/* Timeline layout */
.timeline {
  position: relative;
  margin-left: 160px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.date {
  grid-column: 1;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
  align-self: start;
  padding-right: 10px;
}

.entry.visible {
  opacity: 1;
  transform: none;
}

.entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.content {
  grid-column: 2;
  background: var(--bg-card);
  padding: 1.2rem;
  border-radius: 6px;
}

.content h3 {
  margin-bottom: 8px;
  color: var(--accent);
}

.content p {
  margin-bottom: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.content ul {
  list-style: disc inside;
  color: var(--text-light);
  line-height: 1.4;
}

.content ul li {
  margin-bottom: 8px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skills-list p {
  color: var(--text-muted);
  line-height: 1.4;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  padding: 20px 0;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  margin: 0;
}

.footer-content nav {
  flex-grow: 1;
  text-align: right;
}

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

.footer-content nav ul li {
  display: inline-block;
  margin-right: 10px;
}

.footer-content nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-content nav ul li a:hover {
  color: #6fa3ef;
}

/* — Responsiveness — */
@media (max-width: 768px) {
  /* collapse timeline into a single column */
  .timeline {
    margin-left: 0;
  }
  .entry {
    grid-template-columns: 1fr;
  }
  .date {
    display: none;
  }
  .content {
    grid-column: 1;
  }
}
