@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

body {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  color: #242424;
  font-family: "Bodoni Moda", sans-serif;
  background-color: #d2cbbb;
}

span {
  font-size: 20px;
}

.titles {
  font-size: 20px;
}

.list__titles {
  margin-bottom: 20px;
}

.container {
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  width: 100vw;
  max-width: 1200px;
}

.row {
  padding: 32px;
  margin: 0 auto;
  max-width: 1200px;
}

.background__image--container {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -99;
}

.background__image {
  min-width: 100%;
  height: 100%;
  filter: blur(30px);
}

/* TOP NAV */

.nav__container {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 48px;
  width: 100%;
  height: 90px;
  /* background-color: #242424; */
}

.nav__row {
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__image {
  height: 40px;
  transform: translateY(-6%);
}

a {
  text-decoration: none;
  color: #242424;
}

a:active {
  color: gray;
}

a:focus {
  color: gray;
}

.h1__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 45px;
  transition: all 300ms ease;
  color: #242424;
}

.h1__nav:hover {
  color: #d2cbbb;
  cursor: pointer;
}

.top__nav--container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.nav__option {
  font-family: "Inter", sans-serif;
  text-decoration: none;
  color: #242424;
  font-weight: 500;
  transition: all 300ms ease;
  /* background-color: #d7a29a; */
  padding: 10px 20px;
  width: 75px;
  border-radius: 20px;
  border: 1px solid #242424;
  font-size: 14px;
  text-align: center;
}

.nav__option:hover {
  /* transform: scale(1.2); */
  width: 100px;
  /* color: #f2f2f2; */
}

/* HERO SECTION */

h1 {
  font-size: 6rem;
  margin: 0;
  line-height: 1;
}

h2 {
  font-size: 4rem;
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

h3 {
  font-size: 2rem;
  font-weight: 500;
  margin: 0;
  line-height: 1;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
  background-color: #d2cbbb;
  padding: 100px 0px;
}

.hero__left {
  width: 50%;
}

.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__portrait {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 450px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: -16px 16px 48px #00000050;
}

.hero__portrait--image {
  height: 120%;
  transform: translateX(8%);
  filter: contrast(1.2);
}

.hero__button {
  border-radius: 24px;
  border: none;
  padding: 16px;
  width: 150px;
  background-color: #242424;
  color: #d2cbbb;
  margin-top: 32px;
  margin-right: 16px;
  font-size: 16px;
  font-family: "Intel", sans-serif;
  transition: all 300ms ease;
}

.hero__button:hover {
  color: #242424;
  background-color: #d2cbbb;
  cursor: pointer;
  transform: translate(0%, -6%);
  box-shadow: -6px 6px 32px #00000040;
}

/* BRANDING + WORK */

.hero__work {
  margin-bottom: 100px;
  padding-bottom: 40px;
  border-bottom: 1px solid #242424;
}

.row__branding,
.row__work {
  display: flex;
  justify-content: center;
  flex-direction: column;
  max-width: 1200px;
  background-color: #d2cbbb;
  padding: 100px;
}

.h2__branding,
.h2__work {
  font-size: 2rem;
  text-wrap: wrap;
  margin: 60px 0px;
}

.h2__branding {
  border-bottom: 1px solid #242424;
  padding-bottom: 40px;
}

span.branding {
  font-size: 20px;
}

ul {
  margin-bottom: 60px;
}

.external__link {
  height: 16px;
  transform: translateY(2px);
}

.date {
  font-size: 12px;
}

/* Container for the carousel */
.selected__brands {
  display: flex;
  align-items: center;
  overflow: hidden; /* Hide content outside the bounds */
  width: 100%; /* Full-width carousel */
  background-color: #d2cbbb; /* Optional background for better visibility */
  padding: 20px 0; /* Optional spacing */
  position: relative;
  margin-top: 20px;
  border: 1px solid #242424;
}

/* Wrapper for each brand logo */
.brand__wrapper {
  flex: 0 0 auto; /* Prevent logos from resizing */
  margin: 0 20px; /* Space between logos */
}

/* Styling for the logos */
.brand__logo {
  max-height: 100px; /* Adjust to desired logo size */
  width: auto;
  display: block;
}

/* Carousel animation */
@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-120%);
  }
}

/* Animation for the logos */
.carousel-track {
  display: flex;
  width: calc(200%); /* Twice the width for seamless looping */
  animation: scroll 20s linear infinite;
}

/* Duplicate the logos for seamless looping */
.selected__brands .carousel-track .brand__wrapper:last-child {
  margin-right: 0; /* Prevent extra spacing at the end */
}

/* CV */

iframe.CV {
  width: 100vw;
  height: 100vh;
}

/* BLOG */

.blog {
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  background-color: #d2cbbb;
}

/* FOOTER */

.footer {
  background-color: #fff; /* Light gray background */
  padding: 20px;
}

.footer__row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Ensure responsiveness */
  gap: 20px; /* Space between rows */
  flex-direction: column;
}

.footer__logo-container {
  display: flex;
  align-items: center;
}

.footer__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Space between logos */
}

.footer__logo-wrapper {
  background-color: #fff; /* White background for logos */
  padding: 10px;
  border-radius: 4px;
  overflow: hidden; /* Prevent overflow */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px; /* Fixed size */
  height: 100px;
}

.footer__logo {
  max-width: 100%; /* Scale logos proportionally */
  max-height: 100%; /* Prevent overflow */
  object-fit: contain; /* Maintain aspect ratio */
}

.footer__title {
  color: #242424;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  margin-bottom: 10px;
}

.footer__copyright {
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #242424;
}

.footer__links-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap; /* Wrap links on smaller screens */
  color: #d2cbbb;
}

.footer__link {
  height: 20px;
  width: 20px;
  filter: invert(1);
  transition: all 0.3s ease;
}

.home {
  filter: invert(0);
}

.footer__link:hover {
  transform: scale(1.2); /* Highlight color on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer__row {
    flex-direction: column; /* Stack items vertically */
    text-align: center;
  }

  .footer__logo-wrapper {
    width: 80px; /* Smaller size for smaller devices */
    height: 80px;
  }

  .footer__link {
    font-size: 12px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer__row {
    flex-direction: column; /* Stack items vertically */
    text-align: center;
  }

  .footer__logo--wrapper {
    width: 80px; /* Smaller size for smaller devices */
    height: 80px;
  }

  .nav__option {
    font-size: 12px;
  }
}

/* TRANSITIONS */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  animation: fadeIn 1s ease;
}

.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* SMALLER DEVICES */

@media (max-width: 768px) {
  /* Navigation becomes a dropdown menu on small screens */
  .top__nav--container {
    display: none;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #d2cbbb;
    border: 1px solid #242424;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .top__nav--container.active {
    display: flex;
    width: 300px;
  }

  .nav__option {
    border: none;
  }

  .nav__toggle {
    display: inline-block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #242424;
  }
}

/* Hide nav toggle button on larger screens */

@media (min-width: 769px) {
  .nav__toggle {
    display: none;
  }
}

/* PHONE */

@media (max-width: 480px) {
  body {
    margin: 0 auto;
    line-height: 1.6;
    overflow-x: hidden;
  }

  .container {
    /* padding: 20px; */
    margin: 0 auto;
  }

  .row {
    margin: 0 auto;
    padding: 0px;
  }

  .row__branding {
    width: 90vw;
  }

  .row__work {
    padding: 20px;
  }

  h1.h1__branding {
    font-size: 3rem;
  }

  .header__work {
    font-size: 3rem;
    line-height: 1.5;
  }

  .background__image--container {
    position: fixed;
    width: 1000%;
    height: 1000%;
  }

  .background__image {
    width: 1000%;
    height: 1000%;
    display: block;
  }

  .nav__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .h1__nav {
    font-size: 1.5rem;
    margin: 0;
  }

  .nav__image {
    width: 30px;
    height: auto;
    margin-left: 5px;
  }

  .nav__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .top__nav--container {
    display: flex;
    gap: 15px;
  }

  .nav__option {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
  }

  .nav__option:hover {
    color: #333;
  }

  /* Home Hero Section */
  .hero {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse !important;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    width: 90vw;
  }

  .hero__left {
    /* flex: 1 1 300px; */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
  }

  .hero__left h1 {
    font-size: 3rem !important;
    margin: 0 0 10px;
  }

  .hero__left p {
    font-size: 1rem;
    margin-bottom: 20px;
    width: 100%;
  }

  .hero__button {
    padding: 10px 15px;
    margin: 5px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }

  .hero__button:hover {
    background-color: #0056b3;
  }

  .hero__right {
    /* flex: 1 1 300px; */
    text-align: center;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }

  .hero__portrait--image {
    width: auto;
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 0 0;
    margin-bottom: 60px;
  }

  .hero__portrait {
    box-shadow: none;
    margin-bottom: 60px;
    border-radius: 3px;
  }

  figure.hero__portrait {
    margin: 0 auto;
  }

  /* Home Footer */
  .footer {
    background-color: #fff;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
  }

  .footer__logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }

  .footer__logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
  }

  .footer__logo {
    max-width: 100px;
    height: auto;
  }

  .footer__links-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .footer__link {
    width: 30px;
    height: 30px;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .hero {
      flex-direction: column;
    }

    .hero__left h1 {
      font-size: 1.5rem;
    }

    .hero__left p {
      font-size: 0.9rem;
    }

    .footer__logo-container {
      flex-direction: column;
    }

    .nav__toggle {
      display: block;
    }

    .top__nav--container {
      display: none;
      flex-direction: column;
      gap: 10px;
    }

    .nav__container.nav__expanded .top__nav--container {
      display: flex;
    }
  }
}
