html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: Arial, sans-serif;
  color: white;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background-color: #647389;
  color: white;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  list-style-type: none;
  align-items: center;
}

.nav-links li {
  margin: 0 60px;
}

.nav-links a {
  text-decoration: none;
  font-size: 16px;
  color: white;
  font-family: "Karla", sans-serif;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}

.nav-links .logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 30px;
  height: auto;
}

header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  text-align: center;
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero h1 {
  font-family: "Gilda Display", serif;
  font-size: 180px;
  font-weight: 400;
  margin-bottom: 10px;
}

.hero p {
  font-family: "Karla", sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.15em;
}

.work-link {
  position: relative;
  display: block;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  color: white;
}

.other-work-section .work-link {
  cursor: pointer;
}

.work-link img {
  width: 100%;
  height: auto;
  display: block;
}

.work-link .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(100, 115, 137, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}

.work-link:hover .overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay-text h3 {
  font-family: "Gilda Display", serif;
  font-size: 70px;
  font-weight: 300;
  color: white;
  margin: 0 0 0.5rem 0;
}

.overlay-text p {
  font-family: "Karla", sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: white;
  margin: 0;
}

.my-work {
  text-align: center;
  padding: 20px 0 0;
}

.my-work:last-of-type {
  padding-top: 50px;
}

.my-work h2 {
  font-family: "Gilda Display", serif;
  font-size: 70px;
  font-weight: 400;
  color: #163354;
  margin-bottom: 120px;
  margin-top: 120px;
}

.work-image {
  max-width: 1300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0;
  margin-bottom: 20px;
}

#work-detail {
  margin-bottom: 200px;
}

.three-work {
  width: 100%;
  max-width: 1300px;
  margin: 20px auto 0;
  display: flex;
  gap: 20px;
}

.three-work .work-link {
  width: calc((100% - 2 * 20px) / 3);
  position: relative;
  display: block;
}

.three-work .work-link img {
  width: 100%;
  height: auto;
  display: block;
}

.two-work {
  width: 100%;
  max-width: 1300px;
  margin: 20px auto 0;
  display: flex;
  gap: 20px;
}

.two-work .work-link {
  width: calc((100% - 20px) / 2);
  position: relative;
  display: block;
}

.two-work .work-link img {
  width: 100%;
  height: auto;
  display: block;
}

.other-work-section {
  background-color: #647389;
  padding: 200px 0 200px 0;
  text-align: center;
  margin-top: 200px;
}

.other-work-title {
  font-family: "Gilda Display", serif;
  font-size: 70px;
  color: white;
  font-weight: 400;
  margin: 0 0 40px 0;
}

.two-work {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.work-link img {
  max-width: 100%;
  height: auto;
  display: block;
}

.about-me {
  background-color: #163354;
  color: white;
  padding: 160px 40px;
  margin-top: 150px;
  margin-bottom: 120px;
}

.about-me__title {
  font-family: "Gilda Display", serif;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 80px 0 20px;
}

.about-me__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  gap: 60px;
}

.about-me__text {
  flex: 1;
  text-align: left;
  padding-right: 40px;
}

.about-me__intro {
  font-family: "Gilda Display", serif;
  font-size: 70px;
  font-weight: 400;
  margin: 0 0 20px;
}

.about-me__textbody p {
  font-family: "Karla", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.about-me__cv {
  font-family: "Gilda Display", serif;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid white;
  padding-bottom: 2px;
  color: white;
  display: inline-flex;
  align-items: center;
}

.star-icon {
  width: 18px;
  height: auto;
  margin-right: 8px;
}

.about-me__cv:hover {
  opacity: 0.8;
}

.about-me__image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.about-me__image img {
  max-width: 100%;
  height: auto;
}

.skills {
  padding: 80px 40px;
  margin-bottom: 120px;
  text-align: center;
}

.skills__title {
  text-align: left;
  margin-left: 200px;
  margin-bottom: 120px;
  font-family: "Gilda Display", serif;
  font-size: 70px;
  font-weight: 400;
  color: #163354;
}

.skills__list {
  display: flex;
  justify-content: flex-start;
  gap: 220px;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 130px;
}

.skills__group {
  display: flex;
  flex-direction: column;
  gap: 150px;
  align-items: flex-start;
}

.skills__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-family: "Gilda Display", serif;
  font-size: 30px;
  font-weight: 400;
  color: #163354;
}

.skills__underline {
  width: 150px;
  height: auto;
}

.quote {
  position: relative;
  width: 100%;
  height: calc(100vw * 9 / 16);
  padding: 80px 40px 0;
  color: white;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.quote-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

.quote__text {
  font-family: "Gilda Display", serif;
  font-size: 60px;
  font-weight: 400;
  color: white;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 1;
}

.quote__icon {
  width: 30px;
  height: auto;
  margin: 30px 0;
  z-index: 1;
}

.quote__author {
  font-family: "Karla", sans-serif;
  font-size: 30px;
  color: white;
  margin-top: 30px;
  z-index: 1;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-section {
  background-color: white;
  text-align: left;
  padding: 180px 40px 120px;
  position: relative;
  overflow: hidden;
}

.contact-image-wolk {
  position: absolute;
  right: -400px;
  bottom: -200px;
  max-width: 900px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.contact-heading {
  font-family: "Gilda Display", serif;
  font-size: 70px;
  font-weight: 400;
  color: #163354;
  margin-left: 200px;
  line-height: 1.1;
  margin-bottom: 40px;
}

.contact-heading__break {
  display: block;
}

.contact-subheading {
  font-family: "Gilda Display", serif;
  font-size: 18px;
  font-weight: 400;
  color: #163354;
  margin-left: 200px;
  margin-bottom: 10px;
  margin-top: 60px;
}

.contact-details {
  font-family: "Karla", sans-serif;
  font-size: 20px;
  color: #163354;
  line-height: 1.4;
  margin-left: 200px;
  margin-top: 20px;
}

.footer {
  background-color: #163354;
  color: white;
  padding: 80px 40px;
  font-family: "Karla", sans-serif;
}

.footer-container {
  align-items: flex-start;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.contact-column .footer-title {
  font-family: "Gilda Display", serif;
  font-size: 70px;
  font-weight: 400;
  color: white;
  margin-bottom: 40px;
}

.contact-column {
  flex: 2.5;
}

.contact-column .social-icons {
  margin-top: 100px;
}

.social-icons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.social-icons img {
  width: 25px;
  height: 25px;
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  filter: invert(60%) sepia(100%) saturate(500%) hue-rotate(160deg);
}

.nav-column .footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 30px;
}

.footer-nav li:last-child {
  margin-bottom: 0;
}

.footer-nav a {
  text-decoration: none;
  font-family: "Karla", sans-serif;
  font-size: 16px;
  color: white;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.nav-column {
  margin-left: -170px;
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.logo-column {
  margin-top: 140px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

.blue-background {
  background-color: #163354;
  color: white;
  padding: 20rem 2rem 20rem 6rem;
  text-align: left;
}

#go-back {
  background: transparent;
  border: none;
  color: white;
  font-family: "Gilda Display", serif;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  text-decoration: underline;
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
}

.blue-background h1 {
  font-family: "Gilda Display", serif;
  font-weight: 400;
  font-size: 70px;
  color: white;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.blue-background p {
  font-family: "Karla", sans-serif;
  font-size: 20px;
  color: white;
  margin-top: 0;
  line-height: 1.5;
  max-width: 680px;
}

@media (max-width: 1200px) {
  .nav-links li {
    margin: 0 30px;
  }

  .hero h1 {
    font-size: 120px;
  }

  .hero p {
    font-size: 22px;
  }

  .my-work h2,
  .other-work-title,
  .about-me__intro,
  .skills__title,
  .contact-heading {
    font-size: 50px;
    margin: 60px 0;
  }

  .overlay-text h3 {
    font-size: 40px;
  }

  .overlay-text p {
    font-size: 18px;
  }

  .three-work {
    gap: 15px;
  }

  .three-work .work-link {
    width: calc((100% - 2 * 15px) / 3);
  }

  .two-work {
    gap: 15px;
  }

  .two-work .work-link {
    width: calc((100% - 15px) / 2);
  }

  .about-me__content {
    gap: 30px;
  }

  .skills__list {
    gap: 150px;
    padding-left: 50px;
  }

  .skills__item {
    font-size: 24px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 15px 10px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links li {
    margin: 0 15px;
  }

  .hero h1 {
    font-size: 90px;
  }

  .hero p {
    font-size: 18px;
  }

  .my-work h2,
  .other-work-title,
  .about-me__intro,
  .skills__title,
  .contact-heading {
    font-size: 38px;
    margin: 40px 0;
  }

  .overlay-text h3 {
    font-size: 30px;
  }

  .overlay-text p {
    font-size: 16px;
  }

  .three-work,
  .two-work {
    flex-direction: column;
    gap: 20px;
  }

  .three-work .work-link,
  .two-work .work-link {
    width: 100%;
  }

  .about-me__content {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  .about-me__text {
    padding-right: 0;
    text-align: center;
  }

  .about-me__image {
    justify-content: center;
  }

  .skills__list {
    flex-direction: column;
    gap: 80px;
    padding-left: 20px;
    max-width: 100%;
  }

  .skills__item {
    font-size: 22px;
  }

  .contact-heading,
  .contact-subheading,
  .contact-details {
    margin-left: 20px;
  }

  .contact-section {
    padding: 100px 20px 60px;
  }

  .contact-image-wolk {
    right: -200px;
    bottom: -100px;
    max-width: 400px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .footer-column {
    flex: none;
    width: 100%;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .social-icons a {
    display: inline-flex;
  }

  .contact-column {
    flex: none;
    width: 100%;
  }

  .nav-column {
    margin-left: 0;
    margin-top: 40px;
    align-items: center;
    text-align: center;
  }

  .nav-column .footer-nav li {
    margin-bottom: 20px;
  }

  .nav-column .footer-nav a {
    display: inline-block;
  }

  .logo-column {
    margin-top: 40px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 60px;
  }

  .hero p {
    font-size: 14px;
  }

  .my-work h2,
  .other-work-title,
  .about-me__intro,
  .skills__title,
  .contact-heading {
    font-size: 28px;
    margin: 30px 0;
  }

  .overlay-text h3 {
    font-size: 22px;
  }

  .overlay-text p {
    font-size: 14px;
  }

  .about-me__text,
  .about-me__image {
    width: 100%;
  }

  .skills__list {
    padding-left: 0;
    gap: 40px;
  }

  .skills__item {
    font-size: 18px;
  }

  nav {
    padding: 10px 5px;
  }

  .nav-links li {
    margin: 0 10px;
  }

  .contact-heading,
  .contact-subheading,
  .contact-details {
    margin-left: 10px;
    font-size: 16px;
  }

  .contact-section {
    padding: 80px 10px 40px;
  }

  .contact-image-wolk {
    right: -100px;
    bottom: -50px;
    max-width: 250px;
  }
}

