@font-face {
  font-family: "Mulish";
  src: url("/01_portfolio_sidebar/assets/fonts/mulish/Mulish-ExtraLight.ttf")
    format("ttf");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/01_portfolio_sidebar/assets/fonts/mulish/Mulish-Regular.ttf")
    format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/01_portfolio_sidebar/assets/fonts/mulish/Mulish-Black.ttf")
    format("ttf");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/01_portfolio_sidebar/assets/fonts/mulish/Mulish-MediumItalic.ttf")
    format("ttf");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --accent-color: #d9fda1;
  --secondary-color: #5552fe;
  --bg-color: #dbdbdb;
  --text-color: #161616;
  --border-color: #f1eded;
  --swiper-navigation-color: var(--text-color);
  --swiper-theme-color: var(--text-color);
  --fade-amount: 60%;
  --fade-amount-img: 60%;

  /* --linear-gradient: linear-gradient(
  90deg,
  rgba(78, 101, 248, 1) 0%,
  rgba(133, 149, 255, 0.33) 28%,
  rgba(255, 255, 0, 1) 47%,
  rgba(66, 245, 173, 1) 71%,
  rgba(133, 149, 255, 1) 83%
  ); */
  /* --section-border: 1px solid #8595ff; */
  --box-shadow: 0 10px 20px rgba(90, 90, 90, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  font-family: "Mulish", sans-serif;
  /* font-size: clamp(18px, 1.6vw, 24px); */
  font-size: clamp(16px, 0.9vw, 20px);
  line-height: 1.4em;
  color: var(--text-color);
  font-weight: 400;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
}

body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
  -moz-animation: none !important;
  -webkit-animation: none !important;
  -ms-animation: none !important;
  animation: none !important;
  -moz-transition: none !important;
  -webkit-transition: none !important;
  -ms-transition: none !important;
  transition: none !important;
}

nav,
section {
  display: block;
}

.bold {
  font-weight: 700;
}
.hl-lrg {
  color: var(--text-color);
  background: var(--accent-color);
  display: inline-block;
  padding: 5px 12px;
  box-shadow: var(--box-shadow);
}
.hl-smll {
  background: var(--text-color);
  color: var(--accent-color);
  display: inline-block;
  padding: 5px 12px;
  box-shadow: var(--box-shadow);
  opacity: 0;
  transform: translateX(-200%);
}
.border-top {
  border-top: 1px solid var(--accent-color);
}

h1 {
  font-family: "Mulish", sans-serif;
  /* font-size: clamp(42px, 7vw, 58px); */
  font-size: clamp(2rem, 4vw, 5rem);
  text-transform: uppercase;
  margin: 0.5rem 0;

  font-weight: 400;
  line-height: 0.9;
}
h2 {
  /* font-size: clamp(38px, 5vw, 46px); */
  font-size: clamp(2rem, 2.5vw, 3rem);

  margin: 0 0 2rem 0;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
}

h3 {
  /* font-size: clamp(28px, 4vw, 32px); */
  font-size: clamp(1.8rem, 2vw, 2.5rem);

  max-width: 50vw;
  margin: 2rem 0;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}
h4 {
  /* font-size: clamp(18px, 3vw, 22px); */
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);

  margin: 1rem 0;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

h5 {
  text-transform: uppercase;
  /* font-size: clamp(16px, 2vw, 22px); */
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 0;
}
p {
  /* font-size: clamp(16px, 1.6vw, 20px); */
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 40px 0;
  /* max-width: 90%; */
}

.center {
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
  outline: 0;
}

a:hover {
  color: var(--secondary-color);
}

strong {
  font-weight: 800;
}

ul,
ol {
  list-style: none;
}

/* Buttons */
.ui-scroll-down {
  height: 10vh;
  width: 100%;
  margin-top: 20px;
  /* margin-bottom: 10vh; */
}
.arrow-down {
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-justify-content: center;
  -webkit-justify-content: center;
  -ms-justify-content: center;
  justify-content: center;
  -moz-align-items: center;
  -webkit-align-items: center;
  -ms-align-items: center;
  align-items: center;
  text-decoration: none;
  transform-origin: center;
  transition: transform 0.3s;
  /* fill: var(--accent-color); */
  transform: scale(2);
}

.arrow-down:hover {
  transform: scale(2.2);
  transform-origin: center;
  transition: transform 0.3s;
}

/* Cursor */
.happyTrail {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #4e65f8;
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  filter: blur(2px);
  animation-duration: 0.5s;
  animation-name: rainbowFade;
  animation-timing-function: ease;
}

@keyframes rainbowFade {
  0% {
    background: #4e65f8;
  }

  20% {
    background: #8595ff;
  }

  40% {
    background: #ff0;
  }

  60% {
    background: #42f5ad;
  }

  80% {
    background: #8595ff;
    opacity: 0.8;
  }

  100% {
    background: #4e65f8;
    opacity: 0;
  }
}

/* LOGO */
.logo {
  font-size: clamp(28px, 5vw, 42px);
  /* font-size: 26px; */
  /* margin: 0 0 -2px 0; */
  letter-spacing: 2px;
  line-height: 1;
  font-weight: 500;
  font-style: italic;
  /* text-transform: uppercase; */
  position: relative;
  opacity: 0;
  transform: translateX(200%);
}

/* Navigation */
#navigation {
  position: fixed;
  text-align: right;
  top: 0;
  right: 0;
  padding: 8px;
  display: flex;
  gap: 5px;
  z-index: 10;
  align-items: flex-end;
}
.nav-bg {
  background: var(--accent-color);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  box-shadow: var(--box-shadow);
  opacity: 0;
  transform: translateX(200%);
}

#nav {
  position: absolute;
  top: anchor(--logo-anker bottom);
  right: anchor(--logo-anker right);
  /* bottom: anchor(bottom); */
  /* padding: 5px; */
  margin-top: 3vmax;
  transition: all 0.3s;
  opacity: 0;
}

.open {
  pointer-events: auto;
  opacity: 1;
}
#nav ul {
  display: flex;
  flex-direction: column;
  gap: 2vmax;
  margin: 0;
  padding: 0;
}
#nav ul li a {
  /* font-size: clamp(20px, 3vw, 30px); */
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  background: var(--accent-color);
  padding: 0 5px;
  box-shadow: var(--box-shadow);
  /* border-radius: 3px; */
}
#nav ul a:hover,
#nav ul a:focus {
  background: var(--accent-color);
}

#nav ul a.active {
  color: var(--accent-color);
  background-color: var(--secondary-color);
  font-weight: 700;
  transform: scale(1.1);
  transform-origin: left;
  transition: 0.3s all;
}

/* MENU BAR */
#menu-btn {
  anchor-name: --logo-anker;
  width: 25px;
}
#menu-btn .bar1,
.bar2,
.bar3 {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  margin: 0 0 5px 0;
  transition: all 0.3s;
}
.change .bar1 {
  transform: translate(0, 8px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -8px) rotate(45deg);
}

/* Main */
#main {
  /* margin-right: 15vw;
  border: var(--border-color); */
}

#main > section {
  margin: 0;
  overflow: hidden;
  max-height: max-content;
  /* min-height: 100vh; */
}
/* Container */
.container {
  margin: 0 auto;
  /* max-width: 100%;
  padding: 3em 10vw;
  max-width: 1000px; */
  padding: clamp(2rem, 4vw, 6rem);
  max-width: clamp(800px, 60vw, 1800px);
}

.first {
  margin-top: 10vh;
  opacity: 0;
  transform: translateX(200%);
}
.second {
  opacity: 0;
  transform: translateX(-200%);
}
#intro {
  display: grid;
  grid-template-rows: 50vh repeat(auto-fit, minmax(250px, 1fr));
}
.intro-container {
  grid-area: 2/1/3/-1;
}
.container-foto {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 5vh;
  right: 15vw;
  width: 50%;
  height: 75vh;
  background: transparent url("/images/portrait/IMG_Portrait.jpg") no-repeat;
  background-size: contain;
  background-position: bottom right;
  mask: linear-gradient(
    to bottom,
    black var(--fade-amount-img),
    black calc(100% - var(--fade-amount-img)),
    transparent
  );
}

/* About */
#about {
}
#about .flex-container {
  display: flex;
  gap: 5rem;
  margin-bottom: 10vh;
}
#about .flex-container div {
  width: 50%;
}

#skill-container {
  margin-bottom: 10vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#skill-container ul {
  display: flex;
  margin: 0;
  padding: 0;
}
.icons-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.icons-flex .icon {
  background: var(--accent-color);
  color: var(--text-color);
  font-size: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  /* border-radius: 3px; */
  box-shadow: var(--box-shadow);
  anchor-name: --icon-anchor;
}
.icons-flex .icon img {
  width: 30px;
  height: auto;
  display: block;
}

.icons-flex .acrobat .st1 {
  fill: var(--bg-color);
}

.tooltip {
  position: absolute;
  position-anchor: --icon-anker;
  top: anchor(--icon-anker top);
  left: anchor(--icon-anker left);

  background: #111;
  color: white;
  padding: 3px 5px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 10;
  translate: 50% 0%;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    translate 0.2s ease;
}

.tooltip.visible {
  opacity: 1;
  translate: 50% -130%;
}

.experience-container {
  display: flex;
  justify-content: center;
  width: 100%;
  /* border-radius: 5px; */
  gap: 20px;
  margin: 20px 0;
}

.flip-card {
  cursor: pointer;

  background-color: transparent;
  width: 100%;
  height: 10vh;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  /* border-radius: 5px; */
}

.flip-card:focus {
  outline: 0;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
  transform: rotateX(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  /* border-radius: 5px; */
}

.flip-card-front {
  background: var(--bg-color);
  color: var(--text-color);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  /* box-shadow: var(--box-shadow); */
}
/* .flip-card-front h5 {
margin-bottom: 0 !important;
font-size: clamp(16px, 1.4vw, 18px);
} */

.flip-card-back {
  background: var(--accent-color);
  border: 1px solid var(--border-color);
  transform: rotateX(180deg);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 0 20px; */
  box-shadow: var(--box-shadow);
}

.flip-card-front p,
.flip-card-back p {
  margin: 0 !important;
  padding: 0 20px;
  /* text-transform: uppercase; */
}

.divider {
  width: 100%;
  height: 10vh;
}

.cv-wrapper {
  /* display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px; */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 60px;
  row-gap: 40px;
}
.cv-container {
  border-top: 1px solid var(--accent-color);
  border-left: 1px solid var(--accent-color);
  padding: 10px;
  box-shadow: var(--box-shadow);
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.counter-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.counter {
  /* font-size: clamp(20px, 4vw, 40px); */
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin: 0;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 10vh;
  flex-wrap: wrap;
}

.tab-btn {
  font-size: clamp(16px, 2vw, 26px);
  padding: 12px 30px;
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--text-color);
  box-shadow: var(--box-shadow);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.5s ease;
  font-size: 12px;
  /* border-radius: 5px; */
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--accent-color);
  border-color: var(--border-color);
  color: var(--text-color);
  transform: translateY(-2px);
}

.videoWrapper video {
  width: 100%;
  /* border-radius: 5px; */
  cursor: pointer;
  box-shadow: var(--box-shadow);
}
figcaption {
  font-size: clamp(12px, 1vw, 14px);
  text-align: center;
  color: var(--accent-color);
}

/* GALLERY */

.gallery-container {
  margin: 0 auto;
  padding: 0 0 10vh 0;
  min-height: 60vh;
}
.gallery-list {
  display: grid;
  grid-template-columns: repeat(9, minmax(50px, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 20px;
}
/* .gallery-item {
  will-change: transform, opacity;
} */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* border-radius: 5px; */
  box-shadow: var(--box-shadow);
}
/* .gallery-item.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
} */

.gallery-item {
  opacity: 1;
}

.gallery-item.is-hidden {
  display: none;
}

/* Utility classes for grid column spans */
.cl1 {
  grid-column: span 1;
}
.cl2 {
  grid-column: span 2;
}
.cl3 {
  grid-column: span 3;
}
.cl4 {
  grid-column: span 4;
}
.cl5 {
  grid-column: span 5;
}
.cl6 {
  grid-column: span 6;
}
.rl2 {
  grid-row: span 2;
}

/* Contact */
#contact {
  /* animation: rotate-bg-color 10s infinite; */
  /* background-color: var(--accent-color); */
}

#contact .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 30vh;
}
#contact .cta-container {
  height: 15vh;
}

.cta-message {
  color: var(--accent-color);
  background: var(--secondary-color);
  /* border: 2px solid var(--border-color); */
  box-shadow: var(--box-shadow);
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.5s ease;
  /* border-radius: 5px; */
  font-size: clamp(1rem, 1.4vw, 1.6rem);
  font-weight: 400;
  min-width: max-content;
  text-align: center;
}
.cta-message:hover,
.cta-message :focus {
  color: var(--secondary-color);
  box-shadow: var(--box-shadow);
  background-color: var(--accent-color);
  /* text-shadow: 1px 4px 12px rgba(90, 90, 247, 0.9); */
  transform: scale(1.03);
}

footer {
  min-height: 30vh;
}
footer p {
  /* font-size: clamp(14px, 1.2vw, 16px); */
  font-size: clamp(0.8rem, 1.2vw, 1.4rem);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes rotate-bg-color {
  0% {
    background: #4e65f8;
  }

  50% {
    background: #8595ff;
  }

  100% {
    background: #4e65f8;
  }
}

/* MEDIA QUERIES */

@media (min-width: 1921px) {
  h1 {
    font-size: 5rem;
    margin: 1rem 0;
  }
  h2 {
    font-size: 4rem;
    margin: 0 0 3rem 0;
  }
  h3 {
    font-size: 3.2rem;
    margin: 3rem 0;
  }
  h4 {
    font-size: 2.5rem;
    margin: 2rem 0;
  }
  h5 {
    font-size: 2.2rem;
  }
  p,
  .cta-message {
    font-size: 2.2rem;
  }
  .tab-btn {
    font-size: 1.8rem;
  }
  footer p {
    font-size: 1.6rem;
  }
  .container {
    max-width: 1800px;
  }
  .container-foto {
    right: clamp(5vw, 10vw, 15vw);
    width: clamp(300px, 40vw, 800px);
    height: 85vh;
  }

  .experience-container {
    gap: 40px;
  }

  #about .flex-container {
    gap: 8rem;
  }
  .icons-flex .icon {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
  .icons-flex .icon img {
    width: 40px;
  }

  .logo {
    font-size: 5rem;
  }
  #menu-btn {
    width: 40px;
  }
  #menu-btn .bar1,
  .bar2,
  .bar3 {
    height: 5px;
    margin: 0 0 10px 0;
  }
  .change .bar1 {
    transform: translate(0, 15px) rotate(-45deg);
  }
  .change .bar3 {
    transform: translate(0, -15px) rotate(45deg);
  }
  #nav ul li a {
    font-size: 3.5rem;
  }
}

@media (min-width: 960px) and (max-width: 1024px) {
  .container-foto {
    width: 100%;
  }
  #intro .container {
    justify-content: flex-end;
  }
}

@media screen and (max-width: 960px) {
  .container-foto {
    width: 100%;
  }

  .cv-wrapper {
    grid-template-columns: 1fr;
  }

  .cta-message {
    margin: 0 auto;
  }
  footer {
    width: 100%;
    margin-left: 0;
  }
}

/* Mobile */

@media screen and (max-width: 768px) {
  #about .flex-container {
    flex-direction: column;
  }
  #about .flex-container div {
    width: 100%;
  }

  #skill-container {
    flex-direction: column;
  }
  .skill-container-div {
    width: 100%;
  }
  #skill-container ul {
    width: 100%;
  }

  .gallery-list {
    grid-template-columns: repeat(3, minmax(50px, 1fr));
  }
  .cl1 {
    grid-column: span 3;
  }
  .cl2 {
    grid-column: span 3;
  }
  .cl3 {
    grid-column: span 3;
  }
  .cl4 {
    grid-column: span 3;
  }
  .cl5 {
    grid-column: span 3;
  }
  .cl4 {
    grid-column: span 3;
  }
  .cl5 {
    grid-column: span 3;
  }
  .cl6 {
    grid-column: span 3;
  }
  .rl2 {
    grid-row: span 1;
  }
  .experience-container {
    flex-direction: column;
  }
  footer {
    width: 100%;
    margin-left: 0;
  }
}

@media screen and (max-width: 520px) {
  #nav ul li a {
    font-size: clamp(16px, 2.4vw, 24px);
  }

  #about .flex-container {
    flex-direction: column;
  }
  #about .flex-container div {
    width: 100%;
  }
  .gallery-list {
    grid-template-columns: repeat(1, minmax(50px, 1fr));
  }
  footer {
    width: 100%;
    margin-left: 0;
  }
}
