/* Document Styles */
:root {
  --accent: #0C6936;
  --background-header-footer: #C3E5F9;
  --background-page: #FBFBEA;
  --button-text: #FFFAFA;
  --text-dark: #091D13;
  --text-light: #13254A;
  --shadow: #BEC8C4;
}

a {
  color: var(--text-dark);
}

.l-body {
  background: var(--background-page);
  color: var(--text-dark);
  min-height: 100vh;
  /* display: grid;
  grid-template-rows: auto 1fr auto; */
}

/* Headings */
h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.3rem;
}

h4 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
}

.divider__year,
.header__title,
.l-footer,
.main__heading,
.main__work,
.organization,
.work__projects,
.work__title,
.work__year {
  font-family: 'Montserrat', sans-serif;
}

.nav__menu-name{
  font-size: 2rem;
}

/* Content */
.description,
.header__body--description,
.header__description,
.main__description,
.work__design,
.work__goal {
  line-height: 1.5;
}

.copyright,
.date,
.description,
.footer__social,
.header__body--description,
.header__description,
.l-footer,
.main__description,
.main-nav,
.social__item,
.volunteer__link,
.work__code,
.work__goal,
.work__link,
.work__tech-stack,
.work__design,
.work__work-experience,
.work__work-experience-list {
  font-family: 'Nunito', serif;
  font-size: 1.1rem;
}

.l-footer,
.main-nav {
  background: var(--background-header-footer);
}

.l-main {
  margin: 10%;
}

.l-main.contact {
  margin: 5%;
  overflow: hidden;
}

h3.work__title {
  margin-bottom: .1em;
}

/* Navigation */
.nav__menu-item {
  position: relative;
}

.footer__social-icon a:focus,
.nav__menu-name:focus,
.nav__menu-item a:focus {
    outline: dotted;
    outline-color: var(--text-light);
    outline-offset: .4rem;
}

.main-nav, .l-footer {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.main-nav {
  justify-content: space-between;
  min-height: 70px;
  overflow: hidden;
  padding: 1.5%;
  text-align: center;
}

.nav__section,
.footer__social-section {
  display: block;
}

.nav__section {
  line-height: 1.8;
}

.footer__social,
.nav__menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav__menu {
  align-items: center;
  justify-content: space-around;
}

.nav__menu-item {
    margin: 0 .3em;
}

.nav__menu-item a,
.nav__menu-name {
  text-decoration: none;
}

.copyright,
.nav__menu-item a,
.nav__menu-name {
  color: var(--text-light);
}


/* Heading */
.header__description,
.header__title,
.main__heading {
  text-align: center;
}

.header__title {
  margin-top: 5%;
}

.header__description,
.header__body {
  line-height: 1.4;
  margin: 0 10%;
  text-align: left;
}


/* Main */
.l-main__experience,
.work__projects {
  display: block;
}

.l-main__experience {
  margin: 0 10%;
}

.main__link-group,
.work__link {
  align-items: center;
  background-color: var(--accent);
  border: 3px solid var(--accent);
  border-radius: 50px;
  display: flex;
  padding: 2%;
}

.work__personal-item > .main__link-group {
    width: 60%;
}

.main__link,
.work__link {
  color: var(--button-text);
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.main__link-group:hover,
.work__link:hover {
  background-color: var(--background-page);
  border: 3px solid var(--accent);
  transition: all 0.3s ease-in-out;
}

.main__link-group:hover .main__link,
.work__link:hover {
  color: var(--accent);
}

.main__link-group:hover .main__icon {
  fill: var(--accent);
}

.work__professional-item,
.work__personal-item {
  margin-bottom: 10%;
}

.work__year,
.work__tech-stack,
.work__design,
.work__goal,
.work__code,
.work__work-experience-list {
  line-height: 1.4;
}

.work__year,
.work__link,
.work__code {
  margin: 0;
}

.work__goal {
  margin: 0 0 1.2em;
}

.work__tech-stack,
.work__design {
  margin: 5% 0;
}

.work__project-preview {
    width: 100%;
}

.divider__year,
.main__work {
  border-bottom: 2px solid var(--text-dark);
  line-height: 2;
  margin-top: 10%;
}

.experience {
  padding: .5% 0;
}

.experience__featured {
  display: flex;
  flex-direction: column;
}

address > .social__items {
  font-style: normal;
}

.social__items {
  padding: 0;
}

.social__item {
  display: table;
  padding: 2%;
  position: relative;
}

.social__link {
  text-decoration: none;
}


/* Footer */
.l-footer {
  justify-content: center;
  min-height: 140px;
}

.footer__social-section {
  display: block;
}

.footer__social {
  align-items: center;
  justify-content: space-between;
}

.copyright {
  margin: 15px 0;
  padding: 0;
}

/* Images */
.main__image,
.header__image,
.header__body--image {
  max-width: 100%;
  margin: 0;
}

.main__icon {
  fill: var(--button-text);
  padding: 0 5%;
}

.social__icon {
  display: block;
  fill: var(--text-dark);
  padding-right: 5%;
}

.footer__social-icon {
  margin: 0 .5em;
  min-height: 32px;
}

.footer__social-icon:hover {
  background-color: var(--text-dark);
  border-radius: 20%;
  transition: all 0.3s ease-in-out;
}

.professional__img {
  display: block;
  margin: auto;
}

.personal__images {
  display: block;
}

.personal__img {
  margin-left: 0;
}

.personal__img:not(:last-of-type) {
    margin-bottom: 1.5em;
}

.professional__img,
.personal__img {
  max-width: 100%;
}

.volunteer__preview {
  align-self: center;
  height: auto;
  order: 2;
  width: 50%;
}

.volunteer__preview:nth-child(2) {
  width: 100%;
}

.resume-button {
  background-color: var(--accent);
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 4rem;
}

.projects-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-card {
  background: var(--background-header-footer);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  color: var(--text-dark);
}

.project-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px var(--shadow);
}

.project-title {
  margin-top: 0;
  color: var(--text-light);
}

.project-description {
  color: var(--text-dark);
}

.project-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background-color: var(--accent);
  color: var(--button-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow);
}

.projects-container .project-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--button-text) !important;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s ease;
}

.projects-container .project-button:hover {
  opacity: 0.85;
}

.project-image {
  width: 100%;
  max-width: 450px; /* adjust this size however you want */
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.page-proj-title {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.project-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-page__title {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.project-page__hero-image {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow);
}

.project-page__content {
  line-height: 1.7;
  color: var(--text-dark);
}

.project-page__content h2 {
  margin-top: 1rem;
  color: var(--accent);
}

/* ----------------------------- */
/* PROJECT PAGE (MULTIPLE IMAGES) */
/* ----------------------------- */

/* Main container for the project page */
.project-page {
  max-width: 800px;        /* readable text width */
  margin: 0 auto;
  padding: 1rem;
}

/* Project title */
.project-page__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Text blocks */
.project-page__text {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Gallery container */
.project-gallery {
  width: 100%;             /* let images break out of text width */
  max-width: 100%;
  margin: 2rem auto;
}

/* Individual project images */
.gallery__image {
  width: 100%;             /* fill gallery width */
  max-width: 100%;         /* no artificial limit */
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px var(--shadow);
}

/* Optional: description under each image */
.gallery__caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.bibliography {
  max-width: 800px;   /* limits the width for readability */
  margin: 0 auto;     /* centers the bibliography on the page */
  padding: 2rem;
  background-color: #FBFBEA; /* matches your page background */
  color: #091D13;     /* dark text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.bibliography p {
  margin-bottom: 1rem;  /* spacing between entries */
}

.bibliography a {
  color: #0C6936;       /* accent color for links */
  text-decoration: underline;
}



/* Animations */
.nav__menu-item:before {
  background-color: var(--accent);
  left: 53%;
  width: 100%;
  transform-origin: center;
  -webkit-transition: transform 0.2s ease-in-out;
  -o-transition: transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
}

.social__item:before {
  background-color: var(--text-dark);
  left: 35%;
  width: 65%;
  transform: translate(-50%, 0) scaleX(0);
  transform-origin: left;
  -webkit-transition: transform 0.3s ease-in-out;
  -o-transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
}

.nav__menu-item:before,
.social__item:before {
  bottom: 0;
  content: '';
  height: 2px;
  position: absolute;
  transform: translate(-50%, 0) scaleX(0);
}

.nav__menu-item:hover:before,
.social__item:hover:before {
  transform: translate(-50%, 0) scaleX(1);
}

/* Desktop Styles */
@media only screen and (min-width: 768px) {

  /* Navigation */
  .main-nav {
    flex-direction: row;
    padding: 1.5% 8%;
  }

  .nav__section {
    font-size: 1.5rem;
    margin-top: 0;
    min-width: 500px;
  }

  .nav__menu {
    justify-content: space-between;
  }

  .nav__menu-item {
    margin: 0 .7em;
  }

  /* Heading */
  .header__description {
    margin: 0 20%;
    text-align: center;
  }

  .header__body--description,
  .header__description {
    line-height: 1.3;
  }

  .header__body {
    margin: 0 15%;
  }

  /* Main */
  .header__body,
  .l-main,
  .experience__featured,
  .work__personal-items {
    display: grid;
  }

  .experience__featured,
  .header__body,
  .l-main {
    align-items: center;
    column-gap: 10%;
    grid-auto-columns: 1fr;
    grid-column-gap: 10%;
  }

  .l-main {
    margin: 3% 5%;
  }

  .l-main.contact {
    margin: 0 10% 10%;
  }

  .main__contact,
  .main__copy,
  .main__image,
  .header__body--description,
  .header__body--image,
  .volunteer__preview,
  .experience__featured-copy {
    grid-row: 1;
  }

  .main__heading {
    margin-top: 0;
  }

  .main__heading {
    text-align: left;
  }

  .main__link-group {
    width: 20em;
  }

  .main__copy > .main__link-group {
    align-self: center;
  }

  .work__personal-item > .main__link-group {
    width: 11em;
  }

  .main__copy {
    /* display: block; */
    display: flex;
    flex-direction: column;
    line-height: 1.4;
  }

  .work__personal,
  .work__professional {
    margin-top: 10%;
  }

  .work__tech-stack,
  .work__design {
    margin: 2% 0 ;
  }

  .work__personal-items {
    column-gap: 10%;
  }

  .work__personal-items.code {
    grid-template-columns: repeat(2, 1fr);
  }

  .work__personal-items.design {
    grid-template-columns: 1fr 1fr;
  }

  .work__projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1.5em;
  }

  .work__project-preview {
    justify-self: center;
  }

  .design > .work__personal-item:first-of-type,
  .work__project-preview:last-of-type {
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .work__year,
  .work__tech-stack,
  .work__design,
  .work__goal,
  .work__link,
  .work__code {
    line-height: 1.7;
  }

  .social__item {
    display: flex;
    align-items: center;
  }

  .experience__featured {
    justify-items: center;
  }

  .work__link {
    margin-top: 1em;
    padding-left: 1.3em;
    text-align: center;
    width: 10em;
  }

  .codepen {
    margin-left: 0;
  }

  .personal__images {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Images */
  .main__icon {
    padding: 0 5% 0 2%;
  }

  .social__icon {
    min-height: 40px;
    padding-bottom: 0;
  }

  .volunteer__preview {
    order: 0;
  }

  .volunteer__preview:nth-child(2) {
    grid-column: 2;
  }
}

/* Reduced Motion */
@media screen and (prefers-reduced-motion: reduce) {

  .footer__social-icon:hover,
  .main__link-group:hover,
  .nav__meun-item:before,
  .nav__menu-item:hover:before,
  .social__item:before,
  .social__item:hover:before,
  .work__link {
    transition: none;
    transition-duration: 0.001s;;
  }
}
