/* Hamburger menu styles */
.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
}

/* Typewriter effect */
.typewriter {
  font-size: 60px;
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: break-word;
  caret-color: transparent;
  color: #fff;
}

.typewriter {
  position: relative;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.5em;
  background-color: var(--text-color);
  animation: blink 0.8s infinite;
  vertical-align: bottom;
  margin-left: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
:root {
    --text-color: #1a1c20;
    /* --link-color: #4a76ee; */
    --link-color: #357944;
    --background-color: #eeeff1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--background-color);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 0;
}

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

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px; 
    height: 50px;
    /*
    Below is to keep the navbar on top of the page
    */
    background-color: var(--background-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    /*
    Above is to keep the navbar on top of the page
    */
}

nav .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

nav .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

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

.navbar-logo {
  height: 35px;
  margin-right: 5px;
  vertical-align: middle;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
}

.nav-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-color);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-social a:hover,
.nav-social a:focus-visible {
  background-color: #357944;
  color: #fff;
  border-color: #357944;
}

.nav-social__icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* Global text sizing */
body {
  font-size: 16px;
  line-height: 1.7;
}

p,
li,
.about-section .text,
.about-section__text,
.about-page-section,
.skills-section .text,
.projects-section .text,
.contact-section .text,
.skill-card p,
.project-cell p {
  font-size: 16px;
  line-height: 1.7;
}

/* SECTION 1: Hero Intro */
.hero-intro-section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 0 50px;
}

.hero-intro-section--compact {
  height: 220px;
  padding: 40px 30px;
}

.hero-header {
  background: url("images/bg.webp") no-repeat center center/cover;
  width: 100vw;
  margin-left: calc(-1 * ((100vw - 100%) / 2));
  animation: fadeInBackground 1.5s ease-in-out forwards;
  opacity: 0;
}

.hero-intro-section h2 {
  font-size: 60px;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  color: white;
}

.hero-intro-section p {
  color: white;
}

.hero-intro-section .scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  font-size: 24px;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: bounce 1.5s infinite;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-intro-section .scroll-down:hover,
.hero-intro-section .scroll-down:focus-visible {
  background-color: var(--link-color);
  border-color: var(--link-color);
  color: #fff;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* SECTION 2: About */
.about-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px;
  gap: 40px;
  position: relative;
  z-index: 0;
}

.about-section .text {
  flex: 5;
  font-size: 15px;
}

.about-section .links {
  margin-top: 25px;
}

.about-section .links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: .1s;
}

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

.about-section--page {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  justify-content: center;
}

.about-section__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.about-section--page .links {
  margin-top: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.about-section__text {
  max-width: 720px;
  line-height: 1.8;
  text-align: left;
  font-size: 16px;
}

.about-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
  position: relative;
  width: 350px;
  aspect-ratio: 1 / 1;
  z-index: 0;
}

.about-section--page .headshot {
  flex: unset;
  justify-content: center;
  width: min(350px, 80vw);
}

@media (min-width: 900px) {
  .about-section--page {
    flex-direction: row;
    text-align: left;
  }

  .about-section__text {
    text-align: left;
  }
}

.about-section .headshot img,
.headshot-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  z-index: 0;
}

/* SECTION 2: Projects */
/* .projects-section {
    padding: 0 50px;
    margin-bottom: 100px;
}

.projects-section h2 {
    font-size: 35px;
    margin-bottom: 30px;
}

.projects-section .group {
    display: flex;
    align-items: center;
    gap: 50px;
}

.projects-section .group .person-details {
    text-align: center;
    flex: 2;
}

.projects-section .group .person-details img{
    width: 200px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.projects-section .group .person-details p {
    font-weight: 600;
}

.projects-section .group .person-details p:last-child {
    font-weight: normal;
}

.projects-section .group .text {
    flex: 8;
} */

.projects-section {
    padding: 0 50px;
    margin-bottom: 100px;
    color: var(--text-color);
    text-align: center;
  }
  
  .projects-section h2 {
    font-size: 35px;
    margin-bottom: 15px;
  }

  .projects-section .text {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
.project-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.project-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 25px;
}

.project-sort label {
  font-weight: 600;
  font-size: 14px;
}

.project-sort select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  background-color: #fff;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}

@media (max-width: 900px) {
  .project-cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .project-cells {
    grid-template-columns: 1fr;
  }
}
  
  .project-cell {
    border: 2px solid #357944;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
    cursor: pointer;
  }

.project-cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px rgba(53, 121, 68, 0.5), 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #2a6134;
}
  
.project-card__image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  padding: 0;
}
  
  .project-cell h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .projects-section h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: 0 0 12px;
  justify-content: center;
}

.project-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  background-color: rgba(53, 121, 68, 0.1);
  color: #2a6134;
}

.project-tag--more {
  background-color: rgba(53, 121, 68, 0.18);
  color: #1f4728;
}

.project-tag--ghost {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

  
  .project-cell p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
.project-btn {
    padding: 10px 20px;
    /* background: linear-gradient(to right, #2c97df, #409edd); */
    background: linear-gradient(to right, #357944, #357944);
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    /* box-shadow: 0 0 10px #ff6600; */
  transition: filter 0.2s ease;
  margin-bottom: 10px;
}

.project-cell button,
.project-cell a {
  cursor: pointer;
}
  
.project-btn:hover {
  filter: brightness(1.2);
}

.project-btn--about {
  display: inline-flex;
  margin-top: 12px;
}

.skills-section {
  margin: 40px auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skills-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  align-items: end;
}

.skills-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skills-control label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
}

.skills-control input,
.skills-control select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.about-page-section {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.8;
}

.about-page-section h3 {
  margin: 0;
  font-size: 24px;
}

.about-page-section h5 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.about-page-experience__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-page-card {
  border: 2px solid #357944;
  border-radius: 10px;
  padding: 18px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.about-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px rgba(53, 121, 68, 0.5), 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #2a6134;
}

.about-page-card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}
.about-page-card__subhead {
  margin: -6px 0 10px;
  font-size: 14px;
  color: #444;
}

.about-page-card__subhead a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(53, 121, 68, 0.4);
}

.about-page-card__subhead a:hover,
.about-page-card__subhead a:focus-visible {
  color: #357944;
  text-decoration-color: #357944;
}

.about-page-card__dual-headings {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}

.about-page-card__dual-headings h4 {
  margin-bottom: 4px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  gap: 20px;
}

.skill-card {
  border: 2px solid #357944;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card h3 {
  margin: 0;
  font-size: 18px;
}

.skill-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.skill-card__projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-card__project-btn {
  padding: 4px 10px;
  border-radius: 10px;
  background-color: rgba(53, 121, 68, 0.12);
  font-size: 12px;
  font-weight: 600;
  color: #2a6134;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.skill-card__project-btn:hover,
.skill-card__project-btn:focus-visible {
  background-color: rgba(42, 97, 52, 0.8);
  color: #fff;
  outline: none;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px rgba(53, 121, 68, 0.5), 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #2a6134;
}

.skill-card--placeholder {
  border-color: rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.8);
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

.skill-card__placeholder-title,
.skill-card__placeholder-line,
.skill-card__placeholder-tags span {
  display: block;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12), rgba(0,0,0,0.06));
  background-size: 200% 100%;
  animation: skills-placeholder 1.2s ease-in-out infinite;
  border-radius: 999px;
  height: 16px;
  margin-bottom: 10px;
}

.skill-card__placeholder-title {
  width: 60%;
  height: 22px;
}

.skill-card__placeholder-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skill-card__placeholder-tags span {
  width: 70px;
  height: 18px;
}

@keyframes skills-placeholder {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.skills-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #777;
}

/* New slideshow styles */
.slideshow {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 15px;
}

.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
}

.slideshow:hover button {
  opacity: 1;
  pointer-events: auto;
}

.slideshow .prev {
  left: 10px;
}

.slideshow .next {
  right: 10px;
}

/* Modal overlay for image preview */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.modal-overlay button {
  position: absolute;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 36px;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 10000;
}

.modal-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.modal-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.modal-close {
  top: 20px;
  right: 20px;
  font-size: 32px;
  background: none;
}

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

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

.skills-section .text {
    text-align: center;
    margin-bottom: 20px;
}

.skills-section .cells {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.skills-section .cells .cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    width: 200px;
    padding: 10px 20px; 
    margin: 10px;
    border: 1.5px solid #d3d3d3;
    border-radius: 5px;
}

.skills-section .cells .cell img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;
}

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

/* SECTION 4: Contact */
.contact-section {
    padding: 0 50px;
    margin-bottom: 100px;
    max-width: 100%;
}

.contact-section h2 {
    font-size: 35px;
}

.contact-section .group {
    display: flex;
    gap: 50px;
}

.contact-section .group .text {
    flex: 3;
    margin-top: 20px;
    font-size: 15px;
}

.contact-section .group form {
    flex: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-section .group form input,
.contact-section .group form textarea {
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 2px solid var(--link-color);
    background-color: transparent;
    padding: 10px;
    margin-bottom: 15px;
    outline: none;
    resize: none;
    width: 100%;
}

.contact-section .group form button {
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    background-color: var(--link-color);
    border: none;
    height: 50px;
    cursor: pointer;
    transform: .1s;
}

.contact-section .group form button:hover {
    filter: brightness(0.9);
}


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

    /* SECTION 2: Projects */
    .projects-section .project-cells {
        justify-content: center;
        gap: 20px;
    }

    .projects-section .project-cell {
        width: calc(100% - 40px);
        margin: 0 auto;
    }
}

@media (max-width: 740px) {
  /* Hamburger Menu */
  .hamburger {
    display: block;
  }
  
  nav {
    padding: 0 16px;
    height: 50px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  nav .left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
  }

  nav .left > a {
    font-size: 20px;
  }

  .navbar-logo {
    height: 30px;
  }

  .nav-social {
    order: 2;
    gap: 6px;
    margin: 0 8px;
    justify-content: flex-end;
  }

  .nav-social a {
    width: 28px;
    height: 28px;
  }

  nav .right {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--background-color);
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 10px 20px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Moved from 600px media query */
    flex-direction: column;
    align-items: flex-start;
  }

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

  nav .right a {
    margin: 10px 0;
    font-size: 18px;
    /* Moved from 600px media query */
    display: block;
    width: 100%;
    text-align: left;
    padding-bottom: 4px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  #hamburger-toggle {
    order: 3;
    margin-left: auto;
    align-self: center;
  }
  
  /* SECTION 1: Hero */
  .hero-section {
    flex-direction: column-reverse;
  }

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

  /* About section stacks vertically with headshot on top */
  .about-section {
    flex-direction: column-reverse;
    text-align: center;
  }
  .about-section .headshot {
    justify-content: center;
    margin-bottom: 30px;
  }

  .about-section--page {
    flex-direction: column;
    text-align: center;
    gap: 1px;
  }

  .about-section--page .about-section__media {
    order: -1;
    margin-bottom: 10px;
  }

  /* SECTION 3: Projects */
  /* .projects-section {
      text-align: center
  }

  .projects-section .group {
      flex-direction: column;    
  } */
  
  /* SECTION 4: Contact */
  .projects-section .group {
    flex-direction: column;
  }
}

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

    /* nav .right, nav .right a, nav .right a:last-child, nav .right a span moved to 740px media query */

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

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

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

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

    /* SECTION 3: Testimony */
    /* .projects-section {
        padding: 0 20px;
    } */
    .projects-section .project-cells {
        flex-direction: column;
        align-items: center;
    }

    .projects-section .project-cell {
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    /* SECTION 4: Contact */
    .contact-section {
        padding: 0 20px;
        max-width: 100%;
    }
}
/* Footer styles */
.footer {
  text-align: center;
  color: #888;
  padding: 18px 0;
  background-color: transparent;
}

.footer p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}
/* Keep Navbar on Page */
.hero-header {
    padding-top: 50px;
}
/* Highlight class for typewriter animation */
.highlight {
    color: #357944;
  /* color: #2c6338; */
  /* color: #556b2f */
}

@keyframes fadeInBackground {
  to {
    opacity: 1;
  }
}
/* Fade-in Animation Section */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

/* Prevent headshot images from blocking pointer events */
.about-section .headshot img,
.headshot-img {
  pointer-events: none;
}

header.hero-header {
  z-index: 9999;
  position: relative;
}
/* Indent bullet points in About section */
.about-section .text ul,
.about-section__text ul {
  padding-left: 30px;
  list-style-position: outside;
}

.about-page-experience ul {
  padding-left: 30px;
  list-style-position: outside;
}
/* Project video embed styles */
.project-video {
  margin-top: 15px;
  width: 100%;
}

.project-video iframe {
  border-radius: 8px;
  padding-bottom: 20px;
}

/* Project modal / detail overlay */
.project-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100000;
}

.project-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal__content {
  background: var(--background-color);
  border-radius: 16px;
  width: min(90vw, 900px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(53, 121, 68, 0.2);
}

.project-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-color);
  cursor: pointer;
}

.project-modal__body .project-cell {
  border: none;
  padding: 0;
  flex: none;
  min-width: auto;
  cursor: default;
}

.project-modal__header {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 15px;
}

.project-modal__title {
  font-size: 24px;
  margin-bottom: 5px;
}

.project-modal__meta {
  font-size: 14px;
  color: #666;
}

.course-modal__meta {
  font-style: italic;
  color: #444;
}

.project-modal__media {
  margin-bottom: 20px;
}

.project-modal__tags {
  margin-bottom: 20px;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.project-modal__tags-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
  display: inline-block;
}

.project-modal__tags .project-tags {
  justify-content: flex-start;
  margin: 0;
}

.project-modal__media .slideshow {
  height: 320px;
  max-width: 100%;
}

.project-modal__description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-color);
}

.project-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-modal__links .project-btn {
  margin-bottom: 0;
}

body.modal-open {
  overflow: hidden;
}
.about-page-card {
  border: 2px solid #357944;
  border-radius: 12px;
  padding: 18px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  width: 100%;
}
.about-page-card__courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.about-page-card__courses span {
  border: 1px solid rgba(53, 121, 68, 0.4);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  background-color: rgba(53, 121, 68, 0.08);
  color: #1f4728;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.about-page-card__courses span:hover,
.about-page-card__courses span:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: rgba(53, 121, 68, 0.2);
  color: #1e3b24;
}

@media (min-width: 760px) {
  .about-page-card__courses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
