/* Hide document until translations are applied */
html.i18n-hide {
  visibility: hidden;
}

/*--------------- basic styling --------------- */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Old Standard TT" !important;
  font-size: 1.15rem;
  background: #0f0f0f !important;
  color: #fff !important;
}

.whitespace {
  width: 100%;
  height: 100px;
}

@media (max-width: 768px) {
  .whitespace {
    display: none;
  }
}

/*--------------- scroll bar --------------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #3c3c3c;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/*--------------- typewriter effect --------------- */
.line {
  width: 24em;
  top: 50%;
  margin: auto;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transform: translateY(-50%);
}

.anim-typewriter {
  animation: typewriter 4s steps(40) 1s 1 normal both,
    blinkTextCussor 500ms steps(40) infinite normal;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 18em;
  }
}

@media (max-width: 768px) {
  @keyframes typewriter {
    from {
      width: 0;
    }
    to {
      width: 17em;
    }
  }
}

@keyframes blinkTextCussor {
  from {
    border-right-color: rgba(255, 255, 255, 0.75);
  }
  to {
    border-right-color: transparent;
  }
}

/*--------------- navigation --------------- */
nav {
  width: 100%;
  background: #0f0f0f;
  height: 80px;
  position: fixed;
  z-index: 1;
}

nav #brand {
  float: left;
  display: block;
  margin-left: 82px;
  line-height: 80px;
  font-weight: bold;
}

nav #brand a {
  color: #fff;
  transition: all 0.3s ease-out;
}

nav #brand a:hover {
  text-decoration: none;
}

nav #menu {
  float: left;
  right: 80px;
  position: fixed;
}

nav #menu li {
  padding-left: 40px;
  display: inline-block;
  cursor: pointer;
  font-weight: 300;
  line-height: 80px;
  position: relative;
  transition: all 0.3s ease-out;
}

nav #menu li span {
  font-weight: 700;
}

nav #menu li a {
  color: #fff;
}

nav #menu li a:hover {
  color: #d1b675;
  text-decoration: none;
}

#toggle {
  position: absolute;
  right: 30px;
  top: 20px;
  font-weight: 300;
  z-index: 2;
  width: 30px;
  height: 30px;
  cursor: pointer;
  float: right;
  transition: all 0.3s ease-out;
  visibility: hidden;
  opacity: 0;
}

.close-btn {
  position: absolute;
  right: 16px;
  font-weight: 300;
  z-index: 2;
  cursor: pointer;
  top: -2px;
  line-height: 80px;
}

.language-icon-resize-container {
  display: inline-block; /* Change display to inline-block */
  padding-left: 18px;
  padding-top: 25px;
}

.language-icon-resize {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("images/language-icon-white.svg"); /* White icon image */
  background-size: cover;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.2s, background-image 0.2s; /* Add background-image transition */
  transform-origin: center center; /* Add this line for the animation */
}

.language-icon-resize:active {
  transform: scale(0.8); /* Add this line for the click squish animation */
  transition-duration: 0.14s; /* Adjust the duration as desired (faster animation) */
}

#resize {
  z-index: 1;
  top: 0px;
  position: fixed;
  background: #0f0f0f;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  transition: all 0.45s ease-out;
}

#resize #menu {
  height: 90px;
  position: absolute;
  left: 45%;
  transform: translateX(-40%);
  text-align: center;
  display: table-cell;
  vertical-align: center;
}

#resize #menu .language-icon-resize {
  position: static;
  margin-top: 30px; /* Adjust the margin as needed to align the globe icon properly */
}

#resize #menu li {
  display: block;
  text-align: center;
  padding: 5px 0;
  font-size: 40px;
  min-height: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

#resize li:nth-child(1) {
  margin-top: 100px;
}

#resize #menu li a {
  color: #fff;
}

#resize #menu li a:hover {
  text-decoration: none;
}

#resize.active {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
  #toggle {
    visibility: visible;
    opacity: 1;
    margin-top: 6px;
    margin-right: 4px;
  }

  nav #brand {
    margin-left: 24px;
  }

  #menu a {
    font-size: 20px;
    font-weight: 300;
  }

  #resize li span {
    font-weight: bolder;
  }

  nav #menu {
    display: none;
  }
}

@media (min-width: 768px) {
  #resize {
    visibility: hidden !important;
  }
}

/*--------------- hero section --------------- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-weight: lighter;
  text-align: center;
  letter-spacing: -2px;
  line-height: 58px;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 26px;
  }
}

/*--------------- scroll down icon animation --------------- */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 100px;
  display: block;
  text-align: center;
  font-size: 20px;
  z-index: 0;
  text-decoration: none;
  text-shadow: 0;
  width: 13px;
  height: 13px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  -webkit-transform: translate(-50%, 0) rotate(45deg);
  animation: fade_move_down 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes fade_move_down {
  0% {
    transform: translate(0, -20px) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 20px) rotate(45deg);
    opacity: 0;
  }
}

/*--------------- projects section --------------- */
h6 {
  text-align: center;
}

.vertical {
  margin-top: 40px;
  border-left: 1px solid #fff;
  height: 80px;
  position: absolute;
  left: 50%;
}

.project {
  height: 500px;
}

.project1 {
  background: url(images/lulu_main.webp) no-repeat 50% 50%;
  background-size: cover;
}

.project1::after {
  content: "LULU Boutique";
  font-family: "Old Standard TT", serif;
  font-size: 36px;
  position: relative;
  color: #fff;
  display: block;
  top: 25%;
  left: -20%;
  right: 0;
  bottom: 0;
}

.project2 {
  background: url(images/haven_main.webp) no-repeat 50% 50%;
  background-size: cover;
}

.project2::after {
  content: "Havenworth";
  font-family: "Old Standard TT", serif;
  font-size: 36px;
  position: relative;
  color: #fff;
  display: block;
  top: 50%;
  left: 90%;
  right: 0;
  bottom: 0;
}

.project3 {
  background: url(images/tnw_main.webp) no-repeat 50% 50%;
  background-size: cover;
}

.project3::after {
  content: "The New World";
  font-family: "Old Standard TT", serif;
  font-size: 36px;
  position: relative;
  color: #fff;
  display: block;
  top: 50%;
  left: -40%;
  right: 0;
  bottom: 0;
}

.project4 {
  background: url(images/generatif_main.webp) no-repeat 50% 50%;
  background-size: cover;
}

.project4::after {
  content: "Génératif";
  font-family: "Old Standard TT", serif;
  font-size: 36px;
  position: relative;
  color: #fff;
  display: block;
  top: 35%;
  left: 100%;
  right: 0;
  bottom: 0;
}

.project5 {
  background: url(images/nobl_main.webp) no-repeat 50% 50%;
  background-size: cover;
}

.project5::after {
  content: "nobl";
  font-family: "Old Standard TT", serif;
  font-size: 36px;
  position: relative;
  color: #fff;
  display: block;
  top: 35%;
  left: -20%;
  right: 0;
  bottom: 0;
}

.project6 {
  background: url(images/pta.webp) no-repeat 50% 50%;
  background-size: auto 100%;
}

@media (max-width: 378px) {
  .project {
    height: 150px;
  }
}

@media (min-width: 378px) and (max-width: 768px) {
  .project {
    height: 250px;
  }
  .project6 {
    background: url(images/pta.webp) no-repeat 50% 50%;
    background-size: 100% auto;
  }
}

@media (min-width: 768px) and (max-width: 993px) {
  .project {
    width: 90% !important;
    margin: 14px auto;
  }

  .vertical {
    display: none;
  }

  .project1::after,
  .project2::after,
  .project3::after,
  .project4::after,
  .project5::after {
    font-family: "Old Standard TT", serif;
    font-size: 42px;
    position: relative;
    color: #fff;
    display: block;
    top: 50%;
    left: -30%;
    right: 0;
    bottom: 0;
    max-width: 60%;
  }

  .project1::after {
    content: "LULU Boutique";
    top: 50%;
    left: 20%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project2::after {
    content: "Havenworth";
    top: 50%;
    left: 20%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project3::after {
    content: "The New World";
    top: 50%;
    left: 15%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project4::after {
    content: "Génératif";
    top: 60%;
    left: 40%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project5::after {
    content: "nobl";
    top: 40%;
    left: 60%;
    max-width: 30%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .project {
    width: 90% !important;
    margin: 14px auto;
  }

  .vertical {
    display: none;
  }

  .project1::after,
  .project2::after,
  .project3::after,
  .project4::after,
  .project5::after {
    font-family: "Old Standard TT", serif;
    font-size: 36px;
    position: relative;
    color: #fff;
    display: block;
    top: 50%;
    left: -30%;
    right: 0;
    bottom: 0;
    max-width: 60%;
  }

  .project1::after {
    content: "LULU Boutique";
    top: 50%;
    left: 10%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project2::after {
    content: "Havenworth";
    top: 50%;
    left: 30%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project3::after {
    content: "The New World";
    top: 44%;
    left: 25%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project4::after {
    content: "Génératif";
    top: 60%;
    left: 20%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }

  .project5::after {
    content: "nobl";
    top: 60%;
    left: 20%;
    color: #fff;
    background: #000;
    padding: 3px 5px;
    text-align: center;
    display: inline-block;
  }
}

/*--------------- footer section --------------- */
.collab {
  text-align: right;
}

.collab p {
  font-weight: lighter !important;
  margin-bottom: 20px;
}

.hr {
  background: rgba(255, 255, 255, 0.2);
  height: 1px;
}

.info h4 {
  font-size: 18px;
  font-weight: lighter;
}

.info p {
  color: grey;
  font-weight: lighter;
}

.info li {
  font-weight: lighter;
  color: #fff;
  font-size: 18px;
  padding-left: 20px;
}

#gh::before {
  display: inline-block;
  content: "";
  border-radius: 100%;
  height: 4px;
  width: 4px;
  margin-right: 6px;
  background: #fffa6a;
}

#be::before {
  display: inline-block;
  content: "";
  border-radius: 100%;
  height: 4px;
  width: 4px;
  margin-right: 6px;
  background: #0056ff;
}

#yt::before {
  display: inline-block;
  content: "";
  border-radius: 100%;
  height: 4px;
  width: 4px;
  margin-right: 6px;
  background: #c4302b;
}

#media,
#address {
  text-align: right;
}

#media ul {
  list-style: none;
}

#media ul li {
  display: inline-block;
}

@media (max-width: 768px) {
  .collab,
  #personal,
  #media,
  #address {
    text-align: center;
  }

  .info ul {
    margin: 0 0 0 -22px;
    padding: 0;
  }
}

/*--------------- works page --------------- */

.hero-content {
  margin-left: 0%;
}

.hero-content p {
  font-weight: 300;
  line-height: 36px;
  color: #b7b7b7;
}

.hero-content h6 {
  text-align: left;
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 50px;
    width: 96%;
    margin: 0 auto;
  }
}

/*--------------- about page --------------- */

.about {
  height: 500px;
  margin-top: 120px;
}

.image {
  background: url(images/aboutme.webp) no-repeat 50.3% 10%;
}

/*--------------- project LULU --------------- */
.image2 {
  background: url(images/lulu_slogans.webp) no-repeat 50% 30%;
  background-size: cover;
}

.image3 {
  background: url(images/lulu_natural.webp) no-repeat 50% 70%;
  background-size: cover;
}

/*--------------- project IDM --------------- */

.image4 {
  background: url(images/havenworth_colors.webp) no-repeat 50% 70%;
  background-size: cover;
}

.image5 {
  background: url(images/idm2_small.jpg) no-repeat 50% 70%;
  background-size: cover;
}

/*--------------- project Havenworth --------------- */

.image6 {
  background: url(images/havenworth_colors.webp) no-repeat 50% 10%;
  background-size: cover;
}

.image7 {
  background: url(images/havenworth_box.webp) no-repeat 50% 70%;
  background-size: cover;
}

/*--------------- project TNW --------------- */

.image8 {
  background: url(images/tnw_bg.webp) no-repeat 50% 70%;
  background-size: cover;
}

.image9 {
  background: url(images/tnw_poster.webp) no-repeat 50% 70%;
  background-size: cover;
}

/*--------------- project Generatif --------------- */

.image10 {
  background: url(images/generatif_bg.webp) no-repeat 50% 70%;
  background-size: cover;
}

.image11 {
  background: url(images/generatif_main.webp) no-repeat 50% 70%;
  background-size: cover;
}

/*--------------- project nobl --------------- */

.image12 {
  background: url(images/nobl_businesscards.webp) no-repeat 50% 70%;
  background-size: cover;
}

.image13 {
  background: url(images/nobl_bag.webp) no-repeat 50% 70%;
  background-size: cover;
}

/* project pta */

.image14 {
  background: url(images/pta.webp) no-repeat 50% 70%;
  background-size: auto 100%;
}

.image15 {
  background: url(images/pta_app.webp) no-repeat 50% 70%;
  background-size: auto 100%;
}

@media (min-width: 992px) {
  .image14,
  .image15 {
    background-size: 100% auto;
    background-position: center center;
  }
}

/*--------------- contact form --------------- */

#contact-form {
  margin: 5% 1.4%;
}

#contact-form ul {
  list-style: none;
  border-radius: 5px;
  margin-bottom: 40px;
}

#contact-form li {
  padding: 10px;
}

#contact-form li:last-of-type {
  border-bottom: none;
}

#contact-form label {
  display: block;
  font-size: 0.8em;
  color: #999;
  padding-left: 5px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 5px;
  border: none;
  resize: vertical;
  background: transparent;
  color: #fff;
  font-weight: bolder;
}

input:focus {
  outline: none;
  border: none;
}

textarea:focus {
  outline: none;
  border: none;
}

.textarea {
  border-bottom: 1px solid #dfdfdf;
}

.send {
  margin-left: 50px;
  text-transform: uppercase;
  padding: 20px 30px;
  background: transparent;
  color: #dfdfdf;
  font-size: 14px;
  letter-spacing: 2px;
}

.send:hover {
  background: #dfdfdf;
  color: #101010;
}

@media (max-width: 768px) {
  #contact-form {
    margin: 5% -8%;
    width: 98%;
  }
}

/*--------------- project page --------------- */

.prev,
.next p {
  color: grey;
}

.prev p {
  text-align: left;
}

.next p {
  text-align: right;
}

.language-selector {
  position: relative;
}

.language-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("images/language-icon-white.svg"); /* White icon image */
  background-size: cover;
  cursor: pointer;
  vertical-align: middle;
  transition: transform 0.2s, background-image 0.2s; /* Add background-image transition */
  transform-origin: center center; /* Add this line for the animation */
}

.language-icon:hover {
  background-image: url("images/language-icon-color.svg"); /* Colored icon image */
  transform: scale(0.9); /* Add this line for the hover squish animation */
}

.language-icon:active {
  transform: scale(0.8); /* Add this line for the click squish animation */
  transition-duration: 0.14s; /* Adjust the duration as desired (faster animation) */
}

#language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
