/* ===== Base Layout ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Lora', serif;
  color: #333;
  display: flex;
  flex-direction: column;
  background-image: url('photos/IMG_8098.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===== Hero Section ===== */
header.hero {
  flex: 1;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0; /* remove extra space above profile photo */
}

/* Title centered over photo */
header.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 3rem;
  margin: 0;
}




header.hero h2 {
  font-size: 1.6rem;
  margin: 10px 0 20px;
}
header.hero h3 {
  font-size: 1.6rem;
  margin: 10px 0 20px;
}

@media (max-width: 600px) {
  .header.hero h3 {
    display: none;
  }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  background-color: #2C3E50;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #34495e;
}

/* ===== Hamburger Toggle ===== */
.nav-toggle {
  position: absolute;
  top: 10px; /* align with top of photo */
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2000;
}

/* ===== Navigation ===== */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  background-color: rgba(44,62,80,0.9);
  position: absolute;
  top: 60px;
  right: 20px;
  border-radius: 8px;
  z-index: 2000;
}

.nav-links.active {
  display: flex;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

.nav-links li a:hover {
  background-color: #34495e;
}

/* ===== Footer ===== */
footer {
  background-color: rgba(44,62,80,0.9);
  color: white;
  text-align: center;
  padding: 20px;
}

.social-links {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links a:hover {
  color: #1da1f2;
}

.social-links img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Mobile Footer Icons */
@media (max-width: 600px) {
  .social-links {
    width: 100%;
    justify-content: space-evenly;
    gap: 0;
  }
  .social-links li {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .social-links a {
    font-size: 0;
    gap: 0;
  }
  .social-links a i {
    font-size: 1.8rem;
    line-height: 1;
  }
  .social-links img {
    width: 24px;
    height: 24px;
  }


}

img[src*="bluesky-brands-solid.svg"] {
  filter: invert(1);
}

/* ===== Responsive Hero ===== */
@media (max-width: 768px) {
  header.hero h1 {
    font-size: 2rem;
  }
  header.hero h2 {
    font-size: 1.2rem;
  }
  header.hero h3 {
    font-size: 1.0rem;
  }
}

/* ===== About Page ===== */

/* About page override for no image on background */
body.about-page {
  background-image: none;       /* removes image */
  background-color: #768fad;    /* solid background */
}

/* Title centered over photo for about page only */
h1.about-header {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 3rem;
  margin: 0;
  position: absolute; 
  top: 50%; /* center vertically over profile photo */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
/* ===== Profile/Header Photos ===== */
.profile-photo {
  width: 1000px;
  border-radius: 0;
  margin: 0; /* remove extra spacing above */
 /* box-shadow: 0px 4px 6px rgba(0,0,0,0.3);*/
  position: relative;
  object-fit: contain;
}
.about-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: #fdfaf3; /* solid background instead of image */
}

.bio {
  max-width: 800px;
  margin: 0 auto;
  /*border-radius: 8px;
  /*box-shadow: 0 4px 6px rgba(0,0,0,0.1);*/
  padding: 20px;
  background-color: #fdfaf3;
}

.bio p {
  font-size: 1.1em;
  text-align: left;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    align-items: flex-start;
  }
  .bio {
    width: 60%;
  }
  .accordion-container {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
/* ===== Mobile Profile Photo ===== */
@media (max-width: 768px) {
  .profile-photo {
    width: 100vw;          /* smaller on iPhone so text fits */
    height: auto;
    border-radius: 0;
    object-fit: cover;
   /* margin-top: 20px;
    margin-bottom: 20px;*/
  }
}

/* ===== Accordion ===== */
.accordion-section {
  margin-bottom: 10px;
}

.accordion-label {
  display: block;
  background-color: #2C3E50;
  color: white;
  padding: 18px;
  font-size: 1.2em;
  cursor: pointer;
  text-align: left;
  border: none;
  width: 80%;
  border-radius: 5px;
}

.accordion-label:hover {
  background-color: #34495e;
}

.accordion-input {
  display: none;
}

.accordion-input:checked + .accordion-label + .accordion-content {
  display: block;
}

.accordion-content {
  display: none;
  background-color: #f4f4f9;
  padding: 18px;
  border-left: 4px solid #2C3E50;
  border-radius: 0 0 5px 5px;
}

.accordion-content ul {
  list-style: none;
  padding-left: 20px;
}

.accordion-content li {
  margin-bottom: 8px;
}

/* Education Items */
.education-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.education-photo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.education-details h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
}

/* Research Page */
.research-projects {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.project {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 15px;
    border-left: 5px solid #2C3E50;
    margin-bottom: 20px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.project img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
}

.project-info h3 {
    margin: 0;
    font-size: 1.2em;
    color: #2C3E50;
}

.project-info p {
    margin: 5px 0;
    color: #555;
}
