:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1400px;
  margin: 0 auto;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

.main-header{
    background-color: rgba(0,0,0,.6);
    background-image: url("Images/Mountain2.jpg");
    background-blend-mode: multiply;
    background-size: cover;
    padding-bottom: 30px;

}

/* NAVBAR */
.site-nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0 20px; 
  height: 80px; 

  position: sticky;
  top: 0;
  z-index: 1000;
  background: #eeeff1; 
}

.site-nav .left a { 
  font-size: 22px; 
  font-weight: 600; 
  color: var(--text-color); 
}

nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 600;
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:hover {
  color: var(--background-color);
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

nav .right a:hover::after {
  width: 100%;
}

nav .right a span {
  margin-left: 5px;
}

[id]::before {
  content: "";
  display: block;
  height: 100px;   /* nav height */
  margin-top: -100px;
}

/* Default: hide hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  box-sizing: content-box;
}

/* three bars */
.hamburger .bar {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--text-color);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* right (menu) - default desktop style */
.site-nav .right {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* HERO (Home)*/
.hero {
  position: relative;
  width: 100%;
  height: 300px; 
  background: url('Images/Mountain2.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); 
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  font-weight: lighter;
}


/* HERO (Publications) */
.hero2 {
  position: relative;
  width: 100%;
  height: 300px; /* adjust */
  background: url('Images/Mountain1.jpg') center center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero2::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); 
}

.hero2-content {
  position: relative;
  z-index: 1;
}

.hero2 h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero2 p {
  font-size: 1.2rem;
  font-weight: lighter;
}

/* SECTION: intro */
.intro-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.intro-section .text {
  flex: 5;
}

.intro-section .text h2 {
  font-size: 45px;
}

.intro-section .text .links {
  margin-top: 25px;
  text-align: center;
}

.intro-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: .1s;
}

.intro-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.intro-section .headshot {
  flex: 2;
  display: flex;
  justify-content: left;
}

.intro-section .headshot img {
  width: 350px;
  border-radius: 50%;
}

/* SECTION: Skills */
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  text-align: center;
  font-size: 35px;
  margin-bottom: 40px;
}

.skills-section .cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.skills-section .card {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-section .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.skills-section .card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

.skills-section .card p {
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 10px;
}

.card .icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card .icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* SECTION: education */
.education-section {
  padding: 0 5%;
  margin-bottom: 100px;
}

.education-section img {
  max-width: 100%;
  height: auto;
}

.education-section h2 {
  text-align: center;
  font-size: 35px;
  margin-bottom: 40px;
}

.education-section .entry {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff; 
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.education-section .details {
  text-align: center;
  flex: 2;
}

.education-section .details img {
  width: 150px;
  /* aspect-ratio: 1 / 1; */
  height: auto;
  object-fit: cover;
  margin-bottom: 10px;
}

.education-section .header {
    display: flex;
    justify-content: space-between; 
    align-items: baseline;          
    margin-bottom: 10px;
    gap: 20px;
}

.education-section .header h3 {
    margin: 0;
    font-size: 1.2em;
}

.education-section .header h5 {
    margin: 0;
    font-size: 1.2em;        
    font-weight: 400;        
    color: #555;             
}

.education-section .text {
  flex: 8;
  margin-bottom: 10px;
}

.education-section .text ul {
    margin-left: 20px; 
    padding-left: 20px; 
}

.education-section .text li {
    margin-bottom: 5px; 
}

.education-section .text a {
    color: inherit;          
    text-decoration: none;   
    font-weight: 500;        
}

.education-section .text a:hover,
.education-section .text a:focus {
    color: #0056b3;          /* accessible contrast color on hover/focus */
    text-decoration: underline; /* show underline on hover/focus for accessibility */
}

/* SECTION: Experience */
.xp-section {
  padding: 0 5%;
  margin-bottom: 100px;
}

.xp-section img {
  max-width: 100%;
  height: auto;
}

.xp-section h2 {
  text-align: center;
  font-size: 35px;
  margin-bottom: 40px;
}

.xp-section h4 {
  text-align: left;
  font-size: 25px;
  margin-bottom: 15px;
}

.xp-section .entry {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff; 
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.xp-section .details {
  text-align: center;
  flex: 2;
}

.xp-section .details img {
  width: 150px;
  /* aspect-ratio: 1 / 1; */
  height: auto;
  object-fit: cover;
  margin-bottom: 10px;
}

.xp-section .header {
    display: flex;
    justify-content: space-between; 
    align-items: flex-start;          
    margin-bottom: 10px;
    gap: 20px;
}

.xp-section .header h3 {
    margin: 0;
    font-size: 1.2em;
    flex: 1;
}

.xp-section .header h5 {
    margin: 0;
    font-size: 1.2em;        
    font-weight: 400;        
    color: #555; 
    white-space: nowrap;            
}

.xp-section .sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xp-section .sub-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.xp-section .sub-header h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #555;
}

.xp-section .text {
  flex: 8;
}

.xp-section .text ul {
    margin-left: 20px; 
    padding-left: 20px; 
}

.xp-section .text li {
    margin-bottom: 5px; 
}

.xp-section .header a {
    color: inherit;          
    text-decoration: none;   
    font-weight: 500;        
}

.xp-section .header a:hover,
.xp-section .header a:focus {
    color: #0056b3;          /* accessible contrast color on hover/focus */
    text-decoration: underline; /* show underline on hover/focus for accessibility */
}

/* SECTION: awards */
.awards-section {
  padding: 0 5%;
  margin-bottom: 100px;
}

.awards-section img {
  max-width: 100%;
  height: auto;
}

.awards-section h2 {
  text-align: center;
  font-size: 35px;
  margin-bottom: 30px;
}

.awards-section h4 {
  text-align: left;
  font-size: 25px;
  margin-bottom: 15px;
}

.awards-section .entry {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff; 
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.awards-section .details {
  text-align: center;
  flex: 2;
}

.awards-section .details img {
  width: 150px;
  /* aspect-ratio: 1 / 1; */
  height: auto;
  object-fit: cover;
  margin-bottom: 10px;
}

.awards-section .header {
    display: flex;
    justify-content: space-between; 
    align-items: baseline;          
    margin-bottom: 10px;
    gap: 20px;
}

.awards-section .header h3 {
    margin: 0;
    font-size: 1.2em;
}

.awards-section .header h5 {
    margin: 0;
    font-size: 1.2em;        
    font-weight: 400;        
    color: #555;             
}

.awards-section .sub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.awards-section .sub-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
}

.awards-section .sub-header h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #555;
  margin-left: auto;    
  text-align: right;  
  max-width: 300px;     
  /* line-height: 1.4; */
  /* word-wrap: break-word;  */
}

.awards-section .text {
  flex: 8;
}

.awards-section .text ul {
    margin-left: 20px; 
    padding-left: 20px; 
}

.awards-section .text li {
    margin-bottom: 5px; 
}

.awards-section .text a {
    color: inherit;          
    text-decoration: none;   
    font-weight: 500;        
}

.awards-section .text a:hover,
.awards-section .text a:focus {
    color: #0056b3;          /* accessible contrast color on hover/focus */
    text-decoration: underline; /* show underline on hover/focus for accessibility */
}

/* Research */
.research-section {
  padding: 0 5%;
  margin-bottom: 100px;
}

.research-section .other-sites {
  flex: 8;
  text-align: left;
  margin-top: 20px;
  margin-bottom: 20px;
}

.research-section h2 {
  text-align: center;
  font-size: 35px;
  margin-bottom: 30px;
}

.research-section h4 {
  text-align: left;
  font-size: 25px;
  margin-bottom: 15px;
}

.research-section .text {
  background: #f9f9f9;
  border-left: 4px solid #0056b3;
  padding: 15px;
}

.research-section .entry {
  display: block; /* or flex only if you want side-by-side columns */
  padding: 20px;
  background-color: #fff; 
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  margin-bottom: 30px;
}

.research-section .entry h2 {
  margin-bottom: 10px;
  font-size: 1.2em;
  text-align: left;
}

.research-section .entry ul {
  margin-left: 20px; 
  padding-left: 20px; 
}

.research-section .entry li {
  margin-bottom: 8px;
}

.research-section .thesis-text ul {
  margin-left: 20px; 
  padding-left: 20px; 
}

.research-section .thesis-text li {
  margin-bottom: 0px;
}

.research-section .thesis-text a {
    color: inherit;          
    text-decoration: none;   
    font-weight: 500;        
}

.research-section .thesis-text a:hover,
.research-section .thesis-text a:focus {
    color: #0056b3;          /* accessible contrast color on hover/focus */
    text-decoration: underline; /* show underline on hover/focus for accessibility */
}


/* FOOTER */
footer {
  border-top: 1px solid #ccc;
  margin-top: 40px;
  padding: 20px 50px;         
  margin-bottom: 40px;           
  text-align: center;
  color: #666;               
  font-size: 14px;
}


@media (max-width: 850px) {
  /* SECTION 1: intro */
  .intro-section .text h2 {
    font-size: 35px;
  }
}

/* MOBILE - show hamburger, hide inline nav until toggled */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* show hamburger on small screens */
  }

  .site-nav .right {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;               /* full width dropdown - change as you like */
    margin: 0 20px;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform-origin: top;
    transform: translateY(-6px) scaleY(0.98);
    opacity: 0;
    pointer-events: none;
    z-index: 1200;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  nav .right.active {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .right a {
    padding: 12px 10px;
    margin: 4px 0;
    text-align: left;
    display: block;
    color: var(--text-color);
  }
}

/* hamburger -> X animation when .open added */
.hamburger.open .bar:nth-child(1) { 
  transform: translateY(7px) rotate(45deg); 
}
.hamburger.open .bar:nth-child(2) { 
  opacity: 0; 
  transform: scaleX(0.2); 
}
.hamburger.open .bar:nth-child(3) { 
  transform: translateY(-7px) rotate(-45deg); 
}

@media (max-width: 740px) {
  /* SECTION 1: intro */
  .intro-section {
    flex-direction: column-reverse;
  }

  .intro-section .headshot img {
    width: 300px;
  }

  /* SECTION 3: education */
  .education-section {
    text-align: center;
  }

  .education-section .group {
    flex-direction: column;
  }

  /* SECTION 4: Experience */
  .xp-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  /* SECTION 1: intro */
  .intro-section {
    padding: 0 20px;
  }

  .intro-section .text h2 {
    font-size: 30px;
  }

  /* SECTION 2: Skills */
  .skills-section {
    padding: 0 20px;
  }

  .skills-section .cells .cell span {
    font-size: 16px;
  }

  /* SECTION 3: Education */
  .education-section {
    padding: 0 20px;
  }

  /* SECTION 4: Experience */
  .xp-section {
    padding: 0 20px;
  }
}