body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  background-color: #f0f9ff; /* soft light blue background */
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("Treble_Clef.png");
  background-repeat: repeat;
  background-size: 100px auto;
  opacity: 0.2;
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, #bae6fd, #60a5fa);
  color: #0c4a6e;
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  margin-bottom: 10px;
  font-weight: 600;
}

header blockquote {
  font-style: italic;
  font-size: 0.95em;
  color: #082f49;
  margin-top: 20px;
}

/* Navigation */
nav {
  background-color: #7dd3fc;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  color: #0c4a6e;
  text-decoration: none;
  padding: 15px 25px;
  transition: background 0.3s;
  font-weight: 600;
}

nav a:hover {
  background-color: #38bdf8;
  color: white;
  text-decoration: underline;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: flex-start;
  margin-top: 30px;
}

.grid img {
  width: 150px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid #bae6fd;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  display: block;
  margin-bottom: 15px;
}

.contact-box {
  margin-top: 10px;
  font-size: 0.9em;
}

.contact-box a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

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

.bio h2,
#teaching h2,
#research h2,
#contact h2,
#publications h2 {
  color: #0369a1;
  margin-top: 40px;
  border-bottom: 2px solid #7dd3fc;
  padding-bottom: 5px;
}

ul {
  list-style: disc;
  margin-left: 20px;
}

footer {
  background-color: #e0f2fe;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #0c4a6e;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .grid img {
    margin: 0 auto 15px;
    width: 160px;
  }

  .contact-box {
    text-align: center;
  }

  nav {
    flex-direction: column;
  }
}
