@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }
a { transition: color 0.2s ease-in-out; }

/* Navigation */
.container-fluid {
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.container-fluid > nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

.container-fluid > nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

/* Home link */
.container-fluid > nav > ul:first-child {
  margin-right: auto;
}

.container-fluid > nav > ul:first-child a {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  display: inline-block;
}

/* Mobile menu button (hidden on desktop) */
#mobile-menu-button {
  display: none;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  color: #4a5568;
  transition: all 0.2s ease;
  z-index: 1000;
}

#mobile-menu-button:hover {
  background-color: #f7fafc;
  border-color: #cbd5e0;
}

/* Mobile menu styles */
#mobile-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #f8fafc;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  margin-top: 0.5rem;
}

#mobile-menu.active {
  max-height: 500px;
  opacity: 1;
  padding: 0.5rem 0;
}

#mobile-menu li {
  width: 100%;
}

#mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s ease;
}

#mobile-menu a:hover {
  background-color: #edf2f7;
  color: #2d3748;
}

/* Mobile styles */
@media (max-width: 767px) {
  #mobile-menu-button {
    display: block;
    position: relative;
  }
  
  .container-fluid > nav > ul:not(:first-child) {
    display: none;
  }
  
  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
  }
}

/* Desktop styles */
@media (min-width: 768px) {
  #mobile-menu-button {
    display: none;
  }
  
  #mobile-menu {
    display: flex;
    flex-direction: row;
    max-height: none;
    opacity: 1;
    background: transparent;
    box-shadow: none;
    width: auto;
    padding: 0;
    margin: 0;
  }
  
  #mobile-menu li {
    width: auto;
  }
  
  #mobile-menu a {
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
  }
  
  #mobile-menu a:hover {
    background-color: #f7fafc;
    color: #2b6cb0;
  }
}

/* Active link styling */
nav a[aria-current="page"] {
  color: #2b6cb0;
  font-weight: 600;
}

/* Custom helpers for Pico-based layout */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: #f6f6f7;
}
.avatar {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  margin-bottom: 1.5rem;
}
.card {
  padding: 1.5rem;
  border: 1px solid #e0e0e2;
  border-radius: 0.75rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  background: #e4ecff;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .85rem;
}

/* Improve legibility of intro paragraph on About hero */
.hero hgroup p {
  color: #2d3138; /* darker text for stronger contrast */
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 65ch;
  margin-inline: auto;
}

/* icon size */
.icon { width: 10vw; max-width: 60px; height: auto; }

.contact-grid svg { width:5vw; max-width:40px; height:auto; }

.hero hgroup h1 {
  color: #181c25; /* nearly black for strong contrast */
}
