@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&display=swap');

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

html, body {
  height: 100%;
}

body {
  background-color: #fffdf9;
  color: #000000;
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

/* === NAV === */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 48px;
  position: relative;
  border-bottom: 1px solid #3F373220;
}

nav::before {
  content: '';
  position: absolute;
  inset: 0;
  animation: navcolor 14s ease-in-out infinite;
  z-index: 0;
}

nav > * {
  position: relative;
  z-index: 1;
}

@keyframes navcolor {
  0%   { background-color: #89e2d025; }
  25%  { background-color: #de828525; }
  50%  { background-color: #F7A50025; }
  75% { background-color: #888cd225; }
  100% { background-color: #89e2d025; }
}

.logo svg {
  width: 50px;
  height: 50px;
  display: block;
}

.logo svg path {
  fill: #3F3732;
  animation: navcolor-fill 14s ease-in-out infinite;
}

@keyframes navcolor-fill {
  0%   { fill: #12735F; }
  25%  { fill: #854E50; }
  50%  { fill: #946300; }
  75%  { fill: #122173; }
  100% { fill: #12735F; }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  animation: navcolor-dark 15s ease-in-out infinite;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.8;
}

@keyframes navicon-dark {
  0%   { fill: #12735F; }
  25%  { fill: #854E50; }
  50%  { fill: #946300; }
  75%  { fill: #122173; }
  100% { fill: #12735F; }
}

.nav-links a:hover .nav-icon {
  animation: navicon-dark 5s ease-in-out infinite;
}

.nav-icon {
  height: 30px;
  width: auto;
  display: block;
  fill: #3F3732;
}

main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 85vh;
  text-align: left;
  padding: 70px 70px 0 70px;
}

.name-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 16px;
}

h1 {
  font-size: 150px;
  font-weight: 20;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 12px;
}

.handwritten {
  font-size: 18px;
  opacity: 0.7;
}

body {
  cursor: url('assets/star.png') 10 10, auto;
}

a, button {
  cursor: url('assets/star.png') 10 10, auto;
}

h2 {
  font-size: 30px;
  font-weight: 10;
  color: #fd692b;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 25px;
}

h3 {
  font-size: 30px;
  font-weight: 10;
  color: #f8cf00;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 20px;
  text-align: center
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.bio-text p {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 10px;
}

.bio-text a {
  color: #122173;
  text-decoration: underline;
}

.bio-text a:hover {
  color: #946300;
}

.resume-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #ffb1a3;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: 1px;
  margin-top: 24px;
  transition: background 0.3s ease;
}

.resume-btn:hover {
  background: #fddc37;
}

.bio-text a.resume-btn {
  color: #FFF9EF;
  text-decoration: none;
}

.photo-swap {
  position: relative;
  width: 360px;
  height: 480px;
  flex-shrink: 0;
}

.photo-swap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.photo-hover {
  opacity: 0;
}

.photo-swap:hover .photo-hover {
  opacity: 1;
}

.photo-swap:hover .photo-default {
  opacity: 0;
}

.sparkle {
  position: fixed;
  width: 18px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  pointer-events: none;
  animation: sparkle-fade 0.5s ease-out forwards;
}

@keyframes sparkle-fade {
  0% { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(0) rotate(45deg) translateY(-10px); }
}

html {
  scroll-behavior: smooth;
}

#work {
  min-height: 100vh;
}

.landing {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
}

.door {
  position: relative;  
  width: 280px;
}

.door-img {
  width: 100%;
  height: auto;
  display: block;
}

.doorknob-wrapper {
  position: absolute;
  top: 49%;
  left: 71%;
  width: 50px;
  transform: translate(-50%, -50%);
  transition: transform 0.6s ease;
}

.doorknob-wrapper.spinning {
  transform: translate(-50%, -50%) rotate(360deg);
}

.doors-wrapper {
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: flex-end;
}

.carousel-wrapper {
  max-width: 2000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  min-width: 0;
  width: 100%;
}

.carousel-track img {
  height: 500px;
  width: auto;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: 10px 10px 10px rgba(0,0,0,0.15);
}

.carousel-arrow {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #b35a22;
  padding: 8px;
}

.carousel-caption {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.7;
  text-align: center;
}

.carousel-section {
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  margin: 0 auto 48px auto;
}
.carousel-caption a {
  color: #122173;
  text-decoration: underline;
}

.carousel-caption a:hover {
  color: #946300;
}

.carousel-track a {
  display: block;
  cursor: pointer;
}

@media (max-width: 600px) {
  .carousel-track img {
    height: 400px;
    width: auto;
  }

  .carousel-arrow {
    font-size: 24px;
    padding: 4px;
  }

  .carousel-section {
    max-width: 100%;
    padding: 0 0;
    box-sizing: border-box;
    margin: 0 auto 20px auto;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .photo-swap {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  h2 {
    font-size: 25px;
  }

  h3 {
    font-size: 27px;
    margin-top: 25px;
    line-height: 1.5;
  }

  body {
    overflow-x: hidden;
  }

    .bio-text p {
    font-size: 14px;
  }

    .carousel-caption {
    font-size: 13.5px;
  }

  main {
    padding: 10px 25px 25px 25px;
  }

    .resume-btn {
    display: block;
    width: fit-content;
    margin: 16px auto 10px auto;
    padding: 8px 16px;
    font-size: 12px;
  }

  .doors-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

    .landing {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    padding: 16px 0;
  }

    .door {
    width: 230px;
  }

    .doorknob-wrapper {
    width: 40px;
  }
}