/* Master Stylesheet - styles.css */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 8rem;
}

body {
  font-family: Montserrat, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-size: 1rem;
  padding: 15vh 10vw 10vw;
  min-height: 100vh;
}

header[role="banner"],
footer[role="contentinfo"] {
  width: 100%;
}

.header-content,
.footer-content,
.section-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.header-content,
.section-content  {
  min-height: 60vh;
}

.header-left,
.footer-left,
.portfolio-left,
.resume-left {
  width: 58.2%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 5rem;
}

h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.header-right,
.footer-right,
.portfolio-project,
.resume-right {
  width: 41.8%;
  margin-left: 2rem;
  margin-right: 2rem;
}

.header-right p,
.resume-right p,
.resume-left p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

section.portfolio {
  margin: 5rem 0;
}

.portfolio-left {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.project-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.thumbnail {
  position: relative;
  width: calc(33.333% - 1rem);
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  color: #000;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.thumbnail:hover span {
  opacity: 1;
}

.portfolio-project,
.resume-content {
  margin-top: 3rem;
}

.resume-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.portfolio-project p,
.resume-content p {
  margin-bottom: 1.5rem;
}

.resume-left .company-name {
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.resume-left .position {
  margin-left: 0;
}

ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}


.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 0;
  z-index: 1000;
}

.top-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.top-nav a:hover {
  color: #000;
}


footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 2vh 10vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ddd;
}

.footer-left img {
  max-width: 9.375rem;
}

.footer-right p {
  font-size: 0.875rem;
  margin: 0.3125rem 0;
}

footer a {
  color: #000;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .footer-left {
    display: none;
  }

  .footer-right {
    position: relative;
  }

  body {
    padding-top: 4rem;
    padding-left: 5vw;
    padding-right: 5vw;
    padding-bottom: 20vh;
    overflow-x: hidden;
  }

  .header-content,
  .footer-content,
  .section-content,
  .resume-content {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    text-align: left;
  }

  .header-left,
  .header-right,
  .footer-left,
  .footer-right,
  .portfolio-left,
  .portfolio-project,
  .resume-left,
  .resume-right {
    width: 100% !important;
    margin-bottom: 2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: static;
  }

  .project-thumbnails {
    gap: 1rem;
  }

  .thumbnail {
    width: calc(33.333% - 0.75rem);
    height: auto;
  }

  .footer-right p {
    font-size: 0.75rem;
  }
}

a:focus,
button:focus,
.thumbnail:focus {
  outline: 3px solid #ff007f;
  outline-offset: 2px;
}