/* ───────────────────────────────────────────────────────── */
/*                           Fonts                           */
/* ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Lato&family=Playfair+Display&display=swap');

/* ───────────────────────────────────────────────────────── */
/*                       Color Palette                      */
/* ───────────────────────────────────────────────────────── */
:root {
  --primary: #2a6f97;
  --accent:  #e89d50;
  --bg:      #f7f7f7;
  --card:    #ffffff;
  --text:    #333333;
}

/* ───────────────────────────────────────────────────────── */
/*                            Reset                          */
/* ───────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

/* ───────────────────────────────────────────────────────── */
/*                         Container                         */
/* ───────────────────────────────────────────────────────── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ───────────────────────────────────────────────────────── */
/*                           Header                          */
/* ───────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  height: 120px;                          /* increased height for elegance */
  background: var(--card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);   /* subtle depth */
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;                    /* vertical centering */
  justify-content: space-between;
  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo a {
  text-decoration: none;
  font-family: 'Playfair Display', serif; /* elegant serif for the logo */
  font-size: 2.5rem;                      /* larger, more striking */
  letter-spacing: 1px;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;                              /* more breathing room */
}

nav ul li a {
  font-family: 'Lato', sans-serif;        /* clean sans-serif */
  font-size: 1rem;
  color: #555;                            /* slightly muted by default */
  text-decoration: none;
  padding: 0.5rem 0;                      /* increased click area */
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: #000;                            /* darker on hover/active */
  border-bottom: 2px solid var(--primary);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

/* @media (max-width: 768px) {
  header {
    height: auto;
    padding: 1rem 0;
  }

  header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  nav ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0.5rem 1rem;
    border-top: 1px solid #ddd;
  }

  nav ul li {
    flex: 0 1 auto;
  }

  nav ul li a {
    font-size: 0.95rem;
    padding: 0.5rem;
  }

  .mobile-menu {
    display: none !important;
  }
} */

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
    height: auto;
  }

  header .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  nav {
    width: 100%; /* Ensures nav stretches full width */
    overflow-x: auto;
  }

  nav ul {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1rem;
    padding: 0.5rem 1rem;
    margin: 0;
    list-style: none;
    justify-content: flex-start;
    border-top: 1px solid #ddd;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  }

  nav ul::-webkit-scrollbar {
    display: none; /* optional: hides scrollbar */
  }

  nav ul li {
    flex: 0 0 auto;
  }

  nav ul li a {
    display: inline-block;
    font-size: 0.95rem;
    color: #444;
    text-decoration: none;
    padding: 0.5rem;
  }

  nav ul li a.active {
    border-bottom: 2px solid var(--primary);
    color: #000;
  }

  .mobile-menu {
    display: none !important;
  }
}


/* ───────────────────────────────────────────────────────── */
/*                            Main                           */
/* ───────────────────────────────────────────────────────── */
main {
  padding: 2rem 0;
}

/* ───────────────────────────────────────────────────────── */
/*                      Section Title                        */
/* ───────────────────────────────────────────────────────── */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* ───────────────────────────────────────────────────────── */
/*                Photos & Featured (Zig-Zag)               */
/* ───────────────────────────────────────────────────────── */
.photo-features {
  margin: 3rem 0;
}
.photo-features .section-title {
  margin-bottom: 2.5rem;
}

/* feature row */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

/* default: image left, text right */
.feature:not(.reverse) {
  grid-template-areas: "image text";
}
.feature:not(.reverse) .feature-image {
  grid-area: image;
}
.feature:not(.reverse) .feature-text {
  grid-area: text;
}

/* reverse: text left, image right */
.feature.reverse {
  grid-template-areas: "text image";
}
.feature.reverse .feature-text {
  grid-area: text;
}
.feature.reverse .feature-image {
  grid-area: image;
}

/* image styling */
.feature-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  display: block;
  transition: transform .3s ease;
}
.feature-image img:hover {
  transform: scale(1.02);
}

/* text styling */
.feature-text h3 {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: .5rem;
}
.feature-text .feature-meta {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}
.feature-text a {
  text-decoration: none;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  transition: color .3s, border-bottom-color .3s;
}
.feature-text a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* Ensure both cover images share the same shape */
.photo-features .feature-image {
  width: 100%;
  aspect-ratio: 3 / 4;    /* portrait orientation—adjust to taste (e.g. 1/1 for square) */
  overflow: hidden;
}

.photo-features .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  /* Make every feature use a single‐column layout with image on top */
  .photo-features .feature,
  .photo-features .feature.reverse {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "image"
      "text" !important;
    text-align: center;
    gap: 1rem;
  }

  /* Ensure the children occupy the defined grid-areas */
  .photo-features .feature-image {
    grid-area: image !important;
    width: 100%;
  }
  .photo-features .feature-text {
    grid-area: text !important;
    width: 100%;
  }
}


/* ───────────────────────────────────────────────────────── */
/*                     Conference Presentations             */
/* ───────────────────────────────────────────────────────── */
.presentations {
  margin: 3rem 0;
}
.presentations-wrapper {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.presentation-card {
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--card);
  border-radius: 6px;
  transition: box-shadow .3s ease;
}
.presentation-card:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.presentation-date {
  font-size: .9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .5rem;
}
.presentation-title {
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.presentation-detail {
  font-style: italic;
  color: #555;
  margin-bottom: 1rem;
}
.presentation-desc {
  line-height: 1.7;
}

/* ───────────────────────────────────────────────────────── */
/*                         Work Published                   */
/* ───────────────────────────────────────────────────────── */
.publications {
  margin: 3rem 0;
}
.publications-wrapper {
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.subsection-title {
  font-size: 1.5rem;
  color: var(--text);
  margin: 2rem 0 1rem;
  position: relative;
}
.subsection-title::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--accent);
  position: absolute;
  left: 0;
  bottom: -4px;
  border-radius: 1px;
}
.publication-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.publication-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border-left: 4px solid var(--accent);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform .3s, box-shadow .3s;
}
.publication-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.publication-link,
.publication-link:link,
.publication-link:visited {
  color: #000;
  text-decoration: none;
}

/* ───────────────────────────────────────────────────────── */
/*                      About Me (Grid)                     */
/* ───────────────────────────────────────────────────────── */
.about-section .bio-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--card);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.bio-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform .3s ease;
}
.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-image:hover {
  transform: scale(1.03);
}
.bio-text p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.about-section .section-title {
  grid-column: 1 / -1;
  justify-self: center;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .about-section .bio-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bio-image {
    margin: 0 auto 1.5rem;
  }
  .about-section .section-title {
    margin-bottom: 1rem;
  }
}

/* ───────────────────────────────────────────────────────── */
/*                      Contact Page                        */
/* ───────────────────────────────────────────────────────── */
.contact-section {
  margin: 3rem 0;
}
.contact-section .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
.contact-section .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.contact-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.contact-info p {
  margin-bottom: .5rem;
}
.contact-email {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px dashed var(--accent);
  transition: color .3s, border-bottom-color .3s;
}
.contact-email:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.btn-schedule {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.4rem;
  border-radius: 6px;
  transition: background .3s, transform .3s;
}
.btn-schedule:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }
}

/* ───────────────────────────────────────────────────────── */
/*                          Footer                          */
/* ───────────────────────────────────────────────────────── */
footer {
  background: #f0f0f0;
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
}
footer p {
  color: #777;
  font-size: .9rem;
}
