/*reset*/
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
/*base*/
html {
  font-family: "Inter", sans-serif;
  background-color: rgba(210, 180, 140, 0);
  overflow-x: hidden;
  scroll-behavior: smooth;
}
code,
.terminal {
  font-family: monospace;
}
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
h1,
h2 {
  display: flex;
  align-items: center;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  margin-bottom: 30px;
  color: #87ae73;
  padding-top: 18px;
}
h1 {
  letter-spacing: 0.03em;
}
h2 {
  display: flex;
  align-items: center;
}
h3 {
  color: #87ae73;
  font-size: 2rem;
}
p {
  font-size: 1.05rem;
  max-width: 65ch;
  line-height: 1.6;
}
header,
section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 3rem);
  border-radius: 1em;
}
section {
  scroll-margin-top: 70px;
}
/*navigation bar*/
nav {
  overflow: visible;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  background-color: #aaaaaa65;
  z-index: 10;
  backdrop-filter: blur(5px);
  padding: 4px 2em;
  box-sizing: border-box;
}
nav ul {
  display: flex;
  justify-content: flex-end;
  list-style-type: none;
  gap: 0.5em;
  margin: 0;
  padding: 0;
}
nav ul li {
  background-color: transparent;
  border-radius: 20px;
  transition: 0.2s linear;
}
nav ul li:hover {
  background-color: #87ae73;
}
nav ul li a {
  display: block;
  padding: 1em;
  text-decoration: none;
  color: var(--white);
}
nav ul li a:hover {
  background-color: transparent;
  color: white;
}
nav li:first-child {
  margin-right: auto;
}
#desktop-nav li:last-child {
  border: 2px solid #87ae73;
}
#desktop-nav li:first-child a {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #87ae73;
  font-weight: 600;
}
#hamburger-nav {
  display: none;
  overflow: visible;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}
/*hamburger menu*/
.hamburger-menu {
  position: relative;
  display: inline-block;
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}
.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #87ae73;
  transition: all 0.3 ease-in-out;
}
.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.menu-links {
  position: absolute;
  top: 180%;
  right: 0;
  background-color: rgba(128, 128, 128, 0.112);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
  z-index: 100;
  border-radius: 1em;
}
.menu-links.open {
  max-height: 300px;
}
.menu-links li {
  list-style: none;
}
.menu-links a {
  display: block;
  padding: 12px 24px;
  text-align: center;
  font-size: 1rem;
  color: black;
  text-decoration: none;
  transition: all 0.2s ease;
}
.menu-links a:hover {
  background-color: #87ae73;
  color: white;
}
.headshot-img {
  width: clamp(260px, 28vw, 520px);
  height: auto;
  aspect-ratio: 3.4 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  box-shadow: 8px 12px 40px rgba(100, 148, 237, 0.35);
  transition:
    transform 0.4s ease,
    border-radius 0.4s ease;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 100%;
  min-width: unset;
}
/*main*/
main {
  width: min(1600px, 92%);
  margin: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(1rem, 4vw, 4rem);
}
main img {
  max-width: 100%;
  border-radius: 1em;
  object-fit: cover;
  object-position: bottom;
}
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  flex-shrink: 1;
}
.headshot-img {
  max-width: 100%;
  min-width: unset;
  width: clamp(260px, 28vw, 520px);
  height: auto;
  object-fit: cover;
  object-position: top center;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  box-shadow: 8px 12px 40px rgba(100, 148, 237, 0.35);
  transition: all 0.4s ease;
  cursor: pointer;
  flex-shrink: 0;
}
/*terminal*/
.terminal {
  background-color: #1e1e1e;
  border-radius: 10px;
  width: clamp(320px, 45vw, 720px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: monospace;
  overflow: hidden;
  margin: 2px auto;
}
.terminal-bar {
  background-color: #323232;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-title {
  color: #aaa;
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: auto;
}
.terminal-body {
  padding: 16px;
  min-height: 80px;
}
.terminal-line {
  color: #f0f0f0;
  font-size: 1rem;
  margin: 0;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background-color: #ff5f57;
}
.dot.yellow {
  background-color: #febc2e;
}
.dot.green {
  background-color: #28c840;
}
.prompt {
  color: #87ae73;
  font-weight: bold;
}
.cursor {
  animation: blink 1s step-start infinite;
  color: #f0f0f0;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
/*card*/

.previous-work button {
  background-color: transparent;
  border-radius: 20px;
  /*border: 2px solid cornflowerblue;*/
  transition: 0.2s linear;
}
.previous-work button:hover {
  background-color: #87ae73;
}
.previous-work button a {
  display: block;
  padding: 1em;
  text-decoration: none;
  color: var(--white);
}
.previous-work button a:hover {
  background-color: transparent;
  color: white;
}
.main {
  margin-top: 100px;
  padding: 0 0.5em;
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3rem, 6vw, 8rem);
  padding: 60px 20px;
  margin: auto;
  width: 100%;
}

.contact-right {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(100, 148, 237, 0.25);
  border-radius: 24px;
  padding: 40px 36px;
  /*width: min(460px, 90vw);*/
  width: clamp(320px, 32vw, 480px);
  order: 2;
  flex-shrink: 0;
}

.contact-right-title h2 {
  font-weight: 600;
  color: #87ae73;
  font-size: clamp(28px, 5vw, 40px);
  margin-bottom: 5px;
  padding-top: 0;
}

.contact-right-title hr {
  border: none;
  width: 180px;
  height: 5px;
  background-color: #87ae73;
  border-radius: 10px;
  margin-bottom: 20px;
}

.contact-inputs {
  width: 100%;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #87ae73;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(100, 148, 237, 0.1);
  transition:
    border 0.2s,
    box-shadow 0.2s;
}

.contact-right textarea {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
}

.contact-inputs:focus {
  border: 2px solid #87ae73;
  box-shadow: 0 0 0 4px rgba(100, 148, 237, 0.15);
}

.contact-inputs::placeholder {
  color: grey;
}

.contact-right button {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  font-size: 16px;
  color: #fff;
  gap: 10px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(270deg, #87ae7375, #87ae73);
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    scale 0.2s;
}

.contact-right button:hover {
  box-shadow: 0 4px 18px rgba(100, 148, 237, 0.5);
  scale: 1.03;
}

.contact-left {
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  order: 1;
  flex: 1;
}
.contact-left img {
  width: clamp(400px, 45vw, 900px);
  height: auto;
  border-radius: 1em;
}
.contact h1 {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 30px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: #87ae73;
  text-align: center;
  justify-content: center;
  width: 100%;
}
.container {
  width: min(1400px, 92%);
  margin: auto;
  padding: clamp(2rem, 6vw, 6rem);
}

.social-links-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.social-links {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.5em;
  height: 1.5em;
  background-color: transparent;
  border: 0.2rem solid #87ae73;
  border-radius: 50%;
  color: #87ae73;
  font-size: 1.5rem;
  transition: 0.2s linear;
  text-decoration: none;
}

.social-links:hover {
  scale: 1.3;
  color: white;
  background-color: #87ae73;
  filter: drop-shadow(0 0 10px c#87ae73);
}
.social-links h5 {
  display: flex;
  justify-content: center;
  align-items: center;
}
/*responsive*/
@media (max-width: 800px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-left,
  .contact-right {
    order: unset;
    width: 100%;
  }

  .contact-right {
    padding: 28px 20px;
  }
}
@media (max-width: 950px) {
  main {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 60px 1rem 1rem 1rem;
  }
  .hero-right {
    align-items: center;
    text-align: center;
    gap: 0.2rem;
  }
  body {
    padding: 0 0.5em;
  }
  .terminal {
    width: 100%;
    max-width: 480px;
  }
  .headshot-img {
    width: 300px;
    aspect-ratio: 3.4 / 4;
  }
  figure {
    order: -1;
  }
  h1 {
    font-size: 3rem;
  }
  .job-description li {
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
  }
}

@media (min-width: 1025px) {
  .headshot-img {
    width: 320px;
    aspect-ratio: 3.4 / 4;
    padding: 0;
    margin: 0;
  }
}
@media (min-width: 1400px) {
  .terminal {
    width: 640px;
  }
  h1 {
    font-size: 4rem;
  }
  main {
    gap: 4rem;
    padding: 4rem;
    justify-content: center;
  }
  .headshot-img {
    max-width: 100%;
    min-width: unset;
    width: clamp(260px, 28vw, 520px);
    height: auto;
    object-fit: cover;
    object-position: top center;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    box-shadow: 8px 12px 40px rgba(100, 148, 237, 0.35);
    transition: all 0.4s ease;
    cursor: pointer;
    flex-shrink: 0;
  }
  .hero-right {
    align-items: center;
    text-align: center;
  }
  h1 {
    font-size: 4rem;
    padding-bottom: 50px;
  }
}

@media (min-width: 1800px) {
  .headshot-img {
    max-width: 100%;
    margin: auto;
    border-radius: 24px;
    object-fit: cover;
    object-position: bottom;
  }
  .hero-right {
    align-items: center;
    text-align: center;
  }
  h1 {
    font-size: 4rem;
  }
  .terminal {
    width: 780px;
  }
  h1 {
    font-size: 4rem;
  }
  main {
    gap: 6rem;
    padding: 6rem;
  }
}

@media (max-width: 768px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 2rem;
  }

  .contact-left img {
    width: 100%;
    max-width: 100%;
  }

  .terminal {
    width: 100%;
  }
}
/*footer*/
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 2rem;
  z-index: 10;
  border-top: 1px solid rgba(100, 148, 237, 0.2);
}
.footer-nav {
  display: flex;
  gap: 1rem;
}

.footer-nav a {
  text-decoration: none;
  color: #87ae73;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #333;
}
.footer-copy {
  font-size: 0.75rem;
  color: #888;
}
body {
  padding-bottom: 60px;
}

/*projects section*/
.nav-btn {
  display: inline-block;
  padding: 1em;
  text-decoration: none;
  color: black;
  border: 2px solid #87ae73;
  border-radius: 20px;
  background-color: transparent;
  transition: 0.2s linear;
  cursor: pointer;
}

.nav-btn:hover {
  background-color: #87ae73;
  color: white;
}

.project {
  background: rgba(135, 174, 115, 0.07);
  padding: 0.8rem 0.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.project li {
  list-style-type: none;
}

.projects h5 {
  margin-bottom: 1rem;
}

/*skills button*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  /*padding: 0.8rem 1.2rem;*/
  padding: 0.8rem 0.5rem;
  margin: 0.4rem;
  background: transparent;
  color: #87ae73;
  border: 1.5px solid #87ae73;
  border-radius: 4px;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition:
    color 0.3s ease,
    box-shadow 0.3s ease;
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #87ae73;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:hover {
  color: #1a1a1a;
}
.btn i {
  font-size: 1rem;
  width: 1rem;
  color: currentColor;
}
.btn-tools {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.5rem;
  margin: 0.4rem;
  background: transparent;
  color: #87ae73;
  border: 1.5px solid #87ae73;
  border-radius: 4px;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition:
    color 0.3s ease,
    box-shadow 0.3s ease;
  isolation: isolate;
}
.btn-tools:hover {
  color: #1a1a1a;
}

.btn-tools i {
  font-size: 1rem;
  width: 1rem;
  color: currentColor;
}
.btn-tools::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #87ae73;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn-tools:hover::before {
  transform: scaleX(1);
}
.btn-tools img {
  width: 1.2rem;
  height: 1.2rem;
}
.sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  animation: sparkle-fly 1s ease-out forwards;
  z-index: 9999;
  color: #ffffff;
  user-select: none;
}

@keyframes sparkle-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(var(--dr));
  }
}

/*work entries*/
.work-entries {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.work-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1.5px solid #87ae7321;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  background: rgba(135, 174, 115, 0.07);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.work-entry:hover {
  background: rgba(135, 174, 115, 0.15);
  box-shadow: 0 4px 16px rgba(135, 174, 115, 0.2);
  transition: all 0.2s ease;
}
.work-entries h5 {
  font-size: 1rem;
}
.work-date {
  color: black;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
}
.job-description {
  list-style-type: none;
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  opacity: 0;
}

.work-entry:hover .job-description {
  max-height: 200px;
  opacity: 1;
}

.job-description li {
  font-size: 0.9rem;
  color: #444;
  padding-left: 0.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.job-description li::before {
  content: "✦";
  color: #87ae73;
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  display: inline-block;
}
.job-description li:hover::before {
  transform: rotate(180deg) scale(1.4);
  color: #f9c74f;
}

.job-description li:hover {
  color: #87ae73;
  transform: translateX(4px);
}
.work-entry {
  transition: all 0.2s ease;
  cursor: pointer;
}

/*education section*/
.timeline {
  position: relative;
  margin: 1rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.timeline-content {
  background: rgba(135, 174, 115, 0.07);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
  border: 1.5px solid #87ae7321;
}
.timeline-content:hover {
  background: rgba(135, 174, 115, 0.15);
  box-shadow: 0 4px 16px rgba(135, 174, 115, 0.2);
}
.timeline-content p {
  font-size: 1rem;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.3rem;
}
.grad-date {
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
}
/*about section*/

.about-card {
  border: 1.5px solid #87ae7321;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  background: rgba(135, 174, 115, 0.07);
  backdrop-filter: blur(10px);
  max-width: 580px;
  margin: 0 auto;
  border-left: 5px solid #87ae73d0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.about-card:hover {
  background: rgba(135, 174, 115, 0.15);
  box-shadow: 0 4px 16px rgba(135, 174 115, 0.2);
}

.work-entry:hover,
.work-entry.active {
  background: rgba(135, 174, 115, 0.15);
  box-shadow: 0 4px 16px rgba(135, 174, 115, 0.2);
}

.work-entry:hover .job-description,
.work-entry.active .job-description {
  max-height: 200px;
  opacity: 1;
}

.work-entry.active .job-description {
  max-height: 600px;
  opacity: 1;
}
@media (hover: hover) {
  nav ul li:hover {
    background-color: #87ae73;
  }
  nav ul li a:hover {
    color: white;
  }
  .menu-links a:hover {
    background-color: #87ae73;
    color: white;
  }
  .work-entry:hover {
    background: rgba(135, 174, 115, 0.15);
    box-shadow: 0 4px 16px rgba(135, 174, 115, 0.2);
  }
  .work-entry:hover .job-description {
    max-height: 200px;
    opacity: 1;
  }
  .job-description {
    pointer-events: none;
  }
  .job-description li {
    pointer-events: auto;
  }
  .job-description li:hover {
    color: #87ae73;
    transform: translateX(4px);
  }
  .job-description li:hover::before {
    transform: rotate(180deg) scale(1.4);
    color: #f9c74f;
  }
  .timeline-content:hover {
    background: rgba(135, 174, 115, 0.15);
    box-shadow: 0 4px 16px rgba(135, 174, 115, 0.2);
    transform: translateX(6px);
  }
  .about-card:hover {
    background: rgba(135, 174, 115, 0.15);
  }
  .social-links:hover {
    scale: 1.3;
    color: white;
    background-color: #87ae73;
  }
  .btn:hover::before {
    transform: scaleX(1);
  }
  .btn:hover {
    color: #1a1a1a;
  }
  .btn-tools:hover::before {
    transform: scaleX(1);
  }
  .btn-tools:hover {
    color: #1a1a1a;
  }
  .nav-btn:hover {
    background-color: #87ae73;
    color: white;
  }
  .contact-right button:hover {
    box-shadow: 0 4px 18px rgba(100, 148, 237, 0.5);
    scale: 1.03;
  }
}
.portland-img {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
}
