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

body {
  background-color: white;
  font-family: Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  align-items: center;
  padding: 45px 40px;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 30px;
  letter-spacing: 3px;
  font-size: 13px;
}

.nav-links a {
  text-decoration: none;
  color: black;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-bottom: 1px solid black;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.nav-title {
  font-size: 32px;
  letter-spacing: 4px;
  text-decoration: none;
  color: black;
  display: block;
}

.nav-title:hover {
  opacity: 0.5;
}

.nav-subtitle {
  font-size: 13px;
  letter-spacing: 2px;
  color: #555;
  margin-top: 4px;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1000px;
}

.arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 10px;
  flex-shrink: 0;
  width: 60px;
}

.arrow svg {
  width: 50px;
  height: 50px;
}

.arrow:hover {
  opacity: 0.4;
}

.photo-frame {
  width: 70vw;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#portfolio-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.30s ease;
  color: transparent;
}

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

.about-photo {
  max-height: 45vh;
  max-width: 400px;
  object-fit: contain;
}

.about-text {
  line-height: 2;
  font-size: 14px;
  letter-spacing: 1px;
}

.social-icon {
  color: black;
  font-size: 24px;
  text-decoration: none;
  vertical-align: middle;
}

.social-icon:hover {
  opacity: 0.5;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
  }

  .nav-center {
    position: static;
    transform: none;
    order: -1;
  }

  .nav-title {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .nav-subtitle {
    font-size: 10px;
  }

  .nav-links {
    gap: 20px;
    order: 1;
  }

  .carousel {
    flex-direction: column;
    gap: 10px;
  }

  .photo-frame {
    width: 90vw;
    height: 50vh;
    order: 1;
  }

  .arrow.left {
    order: 0;
  }

  .arrow.right {
    order: 2;
  }

  .arrow svg {
    width: 40px;
    height: 40px;
    transform: rotate(90deg);
  }
}