/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f7feff;
  color: #333;
}

/* Navigation */
header {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
}

.nav-container a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}

.nav-container a:hover {
  background: #d9faff;
  color: #219fe9;
}

/* Intro section */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8rem 1rem 3rem;
  text-align: center;
}

.intro .text {
  max-width: 600px;
}

.photo img {
  margin-top: 1.5rem;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 800px;
  margin: auto;
  text-align: left;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}


@media (min-width: 768px) {
  .intro {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
  }

  .photo img {
  width: 240px;
  height: auto;
  max-height: 400px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

}

/* Mobile navbar tweaks */
@media (max-width: 767px) {
  header {
    /* less padding around the pill */
    top: 0.5rem;
    padding: 0.25rem 0.5rem;
  }

  .nav-container {
    /* tighter spacing between links */
    gap: 0.5rem;
  }

  .nav-container a {
    /* smaller touch targets */
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
  }
}

