/* ================== Base Styles (Desktop) ================== */
body {
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;
  line-height: 1.6;
  background: #fff;
  color: #222;
}

.site-header {
  background: #f8f8f8;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  margin-left: 1rem;
  color: #1a73e8;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 3fr; /* sidebar + main content */
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.sidebar {
  text-align: center;
  padding-top: 2rem;
}

.avatar {
  width: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-weight: 300;
  font-size: 1rem;
  color: #555;
}

.main-content h1 {
  color: #2c3e50;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.main-content h2 {
  color: #2c3e50;
  margin-top: 1.5rem;
}

/* CV Button */
.cv-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: #1e3a5f;
  color: #fff !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.cv-link:hover {
  background: #2d5a87;
  text-decoration: none;
}

ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

a {
  color: #1a73e8;
}

a:hover {
  text-decoration: underline;
}

/* ================== Responsive Styles ================== */
/* Tablet / small screens: <= 860px */
@media (max-width: 860px) {
  .home-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;  /* stack sidebar and main content */
    grid-template-rows: auto auto;          /* sidebar first, then main */
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .sidebar {
    grid-column: 1 / -1;  /* full width */
    text-align: center;
  }

  .main-content {
    grid-column: 1 / -1;  /* full width */
    width: 100%;
  }

  .sidebar .avatar {
    width: 160px;
  }

  .main-content p {
    text-align: left;  /* keep paragraphs left-aligned for readability */
  }
}

/* Mobile: <= 480px */
@media (max-width: 480px) {
  .sidebar .avatar {
    width: 128px;
  }

  .name {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .main-content h1 {
    font-size: 1.5rem;
  }

  .main-content h2 {
    font-size: 1.25rem;
  }

  .home-grid {
    padding: 0.5rem;
    gap: 1rem;
  }
}
