/* Shared styles for Akash Anand's website.
   Common header / nav / footer / layout live here so every page stays in sync.
   Page-specific rules remain in a small inline <style> on each page. */

body {
  font-family: Georgia, serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background: #fdfdf1;
}
header {
  background: #003366;
  color: #fff;
  padding: 20px 40px;
  position: fixed;      /* makes header stick */
  top: 0;               /* stick to very top */
  left: 0;
  right: 0;
  z-index: 1000;        /* stays above page content */
}

nav {
  margin-bottom: 20px; /* extra space before name */
}

nav a {
  color: #fff;
  margin-right: 20px;
  text-decoration: none;
  font-size: 1em;
}

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

nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px; /* space between photo and text */
}

.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%; /* circular photo */
  object-fit: cover;
  border: 3px solid #fff;
}

.header-text {
  flex: 1;
}

header h1 {
  margin: 0 0 10px 0; /* space after name */
  font-size: 2em;
}

.contact-info {
  margin-top: 10px;
  font-size: 0.9em;
  line-height: 1.6;
  color: #cfd8e0;
}

.contact-info a {
  color: #66b3ff; /* bright blue email link */
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

main {
  padding: 40px;
  max-width: 900px;
  margin: auto;
  margin-top: 250px; /* pushes content below the fixed header */
}

h2 {
  color: #003366;
  margin-top: 30px;
}

footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 50px;
}

/* Responsive: on narrow screens the fixed header would grow taller (photo,
   name, four contact lines, nav all stacking) and the fixed 250px offset on
   <main> would no longer clear it, hiding content underneath. On small
   screens we let the header scroll normally with the page instead. */
@media (max-width: 768px) {
  header {
    position: static;
    padding: 16px 20px;
  }
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .profile-photo {
    width: 90px;
    height: 90px;
  }
  header h1 {
    font-size: 1.5em;
  }
  nav a {
    display: inline-block;
    margin-bottom: 6px;
  }
  main {
    margin-top: 20px;
    padding: 20px;
  }
}
