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

body {
  background-color: #faf9f8;
}

.blur {
  filter: blur(5px);
}
/* MOBILE FIRST  */
.page_wrapper {
  max-width: 375px;
  margin: 0 auto;
}

.main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}
.main {
  /* Scroll-driven animation (shows final state when unsupported) */
  animation: main_apper 0.5s ease;
  animation-timeline: load();
  animation-range: entry 20% cover 40%;
  padding: 0;
  margin: 0 auto;
}
/* ===== ANIMATIONS ===== */
@keyframes main_apper {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

.main .profile_wrapper {
  position: relative;
  max-width: 250px;
  display: block;
  margin: 50px auto;
}

.main video.profile {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.main .profile_wrapper::after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background-color: #f4eade;
  position: absolute;
  top: 30px;
  left: -30px;
  z-index: -1;
}

.main .main_text_box {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  max-width: 330px;
  transition-delay: 0.2s;
}

.main .main_text_box p.main_txt {
  margin: 0 auto;
  text-align: center;
  letter-spacing: 2px;
  font-family: TheSeasonsBold;
  font-size: 30pt;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main .main_text_box p.main_txt > span {
  font-size: 16pt;
  font-family: TheSeasonsBold;
}

.main .main_text_box p.description_txt {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 50px;
  font-size: 16pt;
  letter-spacing: 1px;
  font-family: CormorantGaramond;
}

.main .main_text_box .contact_me {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

}

.main .main_text_box .contact_me img {
  width: 40px;
  height: 40px;
}

.main .main_text_box .contact_me,
.main .main_text_box .contact_me p {
  margin: 5px;
  font-size: 16pt;
  text-decoration: none;
  color: black;
  font-family: CormorantGaramond;
}
.main .main_text_box .contact_me {
  position: relative;
}
.main .main_text_box .contact_me .point_arrow {
  width: 100px;
  height: 70px;
  rotate: -90deg;
  transform: scaleX(-1);
  position: absolute;
  top: 35px;
  right: -100px;
  z-index: 2;
}

.main .main_text_box .instagram_highlights {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 30px;
}
.main .main_text_box .instagram_highlights .highlights {
  display: flex;
  align-items: center;
  justify-content: center;
}
.main .main_text_box .instagram_highlights .highlights a {
  margin-top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-decoration: none;
  color: black;
  font-family: CormorantGaramond;
  font-size: 1.2em;
}
.main .main_text_box .instagram_highlights .highlights a div {
  padding: 30px;
  margin: 10px;
  border-radius: 50px;

  position: relative;
  z-index: 3;
}
.main .main_text_box .instagram_highlights .highlights a div::after {
  content: "";
  background-color: #dbdee200;
  position: absolute;
  left: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50px;
  z-index: -1;
  padding: 33px;
}
/* Content */
.main .main_text_box .instagram_highlights .highlights a:nth-child(1) > div {
  background-color: #d6ccc2;
}
/* UGC */
.main .main_text_box .instagram_highlights .highlights a:nth-child(2) > div {
  background-image: url(/assets/ugc_highlights.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* Edits */
.main .main_text_box .instagram_highlights .highlights a:nth-child(3) > div {
  background-color: #e3d5ca;
}
/* Product */
.main .main_text_box .instagram_highlights .highlights a:nth-child(4) > div {
  background-image: url(/assets/product_highlights.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.main .main_text_box .instagram_highlights p.highlight_desc {
  padding: 10px;
  text-align: center;
  font-family: TheSeasonsLight;
  font-weight: 0;
  font-size: 10pt;
}
.main .main_text_box .instagram_highlights .typewriter {
  margin: 0 auto;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.main .main_text_box .instagram_highlights .typewriter .typewriter_animation {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: 0.1em solid black; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: 1px;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  transition: all 0.6s ease-out;
}

/* The typing effect */
 @keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
} 
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

/* Veći ekran (npr. tablet) */
@media (min-width: 768px) {
  .page_wrapper {
    max-width: 750px;
  }

  .main {
    max-height: 150vh;
  }
  .main .profile_wrapper {
    max-width: 300px;
  }
  .main .main_text_box p.main_txt {
    font-size: 25pt;
  }
  .main .main_text_box p.main_txt span {
    font-size: 20pt;
  }
  .main .main_text_box .instagram_highlights {
    position: relative;
    right: -50%;
    top: 20px;
    transform: translateX(-50%);
  }
  .main .main_text_box .instagram_highlights img.point_arrow {
    max-width: 80px;
    rotate: -90deg;
    transform: scaleX(-1);
    position: absolute;
    top: -80px;
    right: 50px;
  }
}

/* Još veći ekran (npr. desktop) */
@media (min-width: 1200px) {
  .page_wrapper {
    max-width: 1100px;
  }
  .main {
    max-height: 100vh;
  }
  .main .profile_wrapper {
    max-width: 350px;
    margin: 20px auto;
  }

  .main .proffile_wrapper::after {
    top: 50px;
    left: -50px;
  }

  .main .main_text_box {
    max-width: 500px;
  }

  .main .main_text_box p.main_txt {
    letter-spacing: 5px;
    font-size: 40pt;
  }
  .main .main_text_box p.main_txt > span {
    font-size: 25pt;
  }

  .main .main_text_box p.description_txt {
    font-size: 17pt;
  }
  .main .main_text_box .instagram_highlights {
    position: relative;
    left: 0%;
    top: 40px;
    transform: translateX(0%);
  }
  .main .main_text_box .instagram_highlights img.point_arrow {
    max-width: 100px;
    rotate: -90deg;
    transform: scaleX(-1);
    position: absolute;
    top: -100px;
    right: 150px;
  }
  .main .main_text_box .instagram_highlights .highlights a {
    font-size: 1.3em;
  }
  .main .main_text_box .instagram_highlights p.highlight_desc {
    font-size: 1.1em;
  }
  .main .main_text_box .instagram_highlights .typewriter {
    margin-top: 10px;
    max-width: 500px;
  }
}
