:root {
  --color-biden-blue: #1d58ba;
  --color-joe-navy: #0a2458;
  --color-body-text: var(--color-joe-navy);
  --link-underline-color: var(--color-biden-blue);
  --light-blue: #e6f0ff;
  --newsletter-blue: #d9eaff;
  --hero-gradient-start: #1e3a5f;
  --hero-gradient-end: #2c5aa0;
  --hero-button-hover: #1741a6;
  --text-white: #fff;
  --text-light-gray: #e0e6ed;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  background-color: var(--light-blue);
  color: var(--color-body-text);
}

body.experience-page {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
  min-height: 100vh;
 
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Move nav to right */
  padding: 20px 40px;
  background-color: #001b44;
  color: white;
  position: relative;
  z-index: 100;
}

.navbar .logo {
  font-size: 14px;
  letter-spacing: 2px;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  font-family: 'Georgia', serif;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto; /* Push links to the right */
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 120;
  margin-left: 18px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3.5px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    background: #001b44;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    padding: 20px 0 10px 0;
    z-index: 99;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 8px 32px rgba(30,60,95,0.13);
  }
  .nav-links.active {
    display: flex;
  }
}

.hamburger.active {
  background: #2563eb22;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center; /* Center content horizontally */
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
  color: #fff;
  min-height: 90vh;
  padding: 0 10vw; /* Increase horizontal padding */
  position: relative;
  overflow: hidden;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 320px;
  z-index: 2;
  margin-left: 5vw; /* Move text a bit to the right */
  gap: 0.3rem; /* Reduce gap between text elements */
}

.hero-seal {
  width: 90px;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.hero-welcome {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  color: #e0e6ed;
}

.hero-title {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2.2rem;
  color: #fff;
  line-height: 1.1;
}

.btn {
  padding: 12px 24px;
  background-color: #2962ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.hero-btn {
  background: #2563eb;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px rgba(30,60,95,0.08);
  transition: background 0.2s;
  margin-top: 0.5rem;
  display: inline-block;
}
.hero-btn:hover {
  background: #1741a6;
}

.hero-img {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;   /* Move image to the right */
  height: 100%;
  z-index: 1;
  width: 400px;
  height: auto;
  margin-left: 0.5px;
}

.hero-img img {
  height: 90vh;
  max-width: 110%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.newsletter {
  text-align: center;
  padding: 60px 20px;
  background-color: #d9eaff;
}

.newsletter h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.newsletter form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.newsletter input, .newsletter button {
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  min-width: 220px;
}

.newsletter button {
  background-color: #2962ff;
  color: white;
  cursor: pointer;
}

footer {
  background-color: #001b44;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.socials a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
}

/* --- ABOUT PAGE STYLES --- */
.about-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
  color: #fff;
  padding: 60px 0 40px 0;
  gap: 60px;
}
.about-hero-img img {
  width: 340px;
  height: 340px;
  max-width: 95vw;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(30,60,95,0.18);
  border: 6px solid #fff;
  background: #e6f0ff;
  display: block;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .about-hero-img img {
    width: 180px;
    height: 180px;
  }
}
.about-hero-text {
  max-width: 600px;
}
.about-hero-text h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-family: 'Georgia', serif;
}
.about-hero-text h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #e0e6ed;
}
.about-hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #f3f6fa;
}
.about-contact {
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
  color: #fff;
}
.about-contact li {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.portfolio-section, .experience-section, .publications-section {
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(30,60,95,0.08);
  padding: 40px 30px 30px 30px;
}
.portfolio-section h2, .experience-section h2, .publications-section h2 {
  color: #1e3a5f;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Georgia', serif;
}
.portfolio-items, .experience-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.portfolio-item, .experience-item {
  background: #f7faff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,60,95,0.06);
  padding: 24px 18px;
  margin-bottom: 0;
  transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s, background 0.22s;
}
.portfolio-item:hover, .experience-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px rgba(30,60,95,0.18);
  background: linear-gradient(120deg, #e6f0ff 0%, #d9eaff 100%);
}
.portfolio-item h3, .experience-item h3 {
  color: #2563eb;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}
.achievements {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.achievement {
  background: #e6f0ff;
  border-radius: 10px;
  padding: 18px 28px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(30,60,95,0.06);
}
.achievement h4 {
  font-size: 2.2rem;
  color: #1d58ba;
  margin: 0 0 0.3rem 0;
}
.achievement p {
  margin: 0;
  color: #2563eb;
  font-size: 1rem;
}
.publications-list, .workshops-list, .education-list {
  margin: 0 0 1.5rem 0;
  padding-left: 1.2rem;
}
.publications-list li, .workshops-list li, .education-list li {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  color: #222;
}
.publications-section h3 {
  color: #2563eb;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Animated counter styles */
.counter {
  font-size: 2.2rem;
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 0.2rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.counter-label {
  color: #e0e6ed;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

/* Add a little bounce to nav on device shake */
@keyframes navShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}
.navbar.shake {
  animation: navShake 0.7s cubic-bezier(.4,2,.6,1);
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column-reverse; /* Image first, then text */
    align-items: center;
    justify-content: flex-start;
    padding: 24px 0 0 0;
    min-height: unset;
  }
  .hero-img {
    width: 100vw;
    justify-content: center;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 18px; /* Space below image */
  }
  .hero-img img {
    width: 70vw;
    height: 70vw;
    max-width: 320px;
    min-width: 140px;
    min-height: 140px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    object-position: top center;
  }
  .hero-text {
    padding: 0 10px;
    align-items: center;
    text-align: center;
    gap: 0.1rem; /* Reduce gap between text elements */
  }

  .hero-title {
    margin-bottom: 0.2rem; 
    margin-top: 0;
  }
}

.blog-item {
  background: #fff;
  box-shadow: 0 2px 8px rgba(30,60,95,0.06);
  border-radius: 12px;
}

 body.publication-page {
      background: linear-gradient(135deg, #1e3a5f 0%, #2c5aa0 100%);
      min-height: 100vh;
      color: #fff;
    }
    .publications-hero {
      text-align: center;
      padding: 60px 0 30px 0;
    }
    .publications-hero h1 {
      font-size: 2.8rem;
      font-family: 'Georgia', serif;
      margin-bottom: 0.5rem;
      color: #fff;
    }
    .publications-hero p {
      font-size: 1.2rem;
      color: #e0e6ed;
      margin-bottom: 2.5rem;
    }
    .publications-section {
      max-width: 1100px;
      margin: 0 auto 40px auto;
      padding: 0 16px;
      display: flex;
      flex-wrap: wrap;
      gap: 36px;
      justify-content: space-between;
    }
    .publications-list, .workshops-list, .education-list {
      background: rgba(255,255,255,0.10);
      border-radius: 18px;
      box-shadow: 0 8px 32px rgba(30,60,95,0.13);
      color: #1e3a5f;
      flex: 1 1 320px;
      min-width: 320px;
      margin-bottom: 24px;
      padding: 32px 28px 24px 28px;
      transition: box-shadow 0.22s;
    }
    .publications-list:hover, .workshops-list:hover, .education-list:hover {
      box-shadow: 0 16px 48px rgba(30,60,95,0.18);
      background: linear-gradient(120deg, #e6f0ff 0%, #d9eaff 100%);
    }
    .publications-list h2, .workshops-list h2, .education-list h2 {
      color: #2563eb;
      font-size: 1.5rem;
      margin-bottom: 1.2rem;
      font-family: 'Georgia', serif;
    }
    .publications-list ul, .workshops-list ul, .education-list ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .publications-list li, .workshops-list li, .education-list li {
      margin-bottom: 1.1rem;
      font-size: 1.08rem;
      color: #1e3a5f;
      line-height: 1.5;
    }
    .publications-list a, .workshops-list a {
      color: #2563eb;
      text-decoration: underline;
      font-weight: 600;
      transition: color 0.2s;
    }
    .publications-list a:hover, .workshops-list a:hover {
      color: #1d58ba;
    }
    .google-scholar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 1.2rem;
      justify-content: center;
    }
    .google-scholar a {
      color: #fff;
      background: #2563eb;
      padding: 6px 16px;
      border-radius: 8px;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.2s;
    }
    .google-scholar a:hover {
      background: #1d58ba;
    }
    @media (max-width: 900px) {
      .publications-section {
        flex-direction: column;
        gap: 18px;
      }
      .publications-list, .workshops-list, .education-list {
        min-width: 0;
        padding: 18px 10px 12px 10px;
      }
    }
