/* Code for header animation */
.header-logo {
  flex-basis: 0;
  transition: all 0.5s ease-in-out;
}

.header-logo #logo-img {
  top: 5.5rem;
  /* width: 30rem; */
  width: auto;
  height: 60vh; /* 24rem */
  transition: all 0.5s ease-in-out;
}

.header-logo p {
  position: absolute;
}

.active-link::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: url("/gifs/green-underline.gif") no-repeat;
  background-size: 100% 100%;
}

.header-scrolled .header-logo {
  flex-basis: 42% !important;
  top: 0;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.header-scrolled #logo-img {
  width: auto;
  height: 6.5rem;
  top: 1rem;
}

/* Code for burger menu */
#burger-menu {
  z-index: 100 !important;
}

.bar1,
.bar2,
.bar3 {
  width: 1.5rem;
  height: 0.2rem;
  background-color: var(--color-secondary);
  margin: 0.3rem 0;
  transition: 0.4s;
  transform-origin: center;
}

.active .bar1 {
  transform: translate(0, 0.5rem) rotate(-45deg);
}

.active .bar2 {
  opacity: 0;
}

.active .bar3 {
  transform: translate(0, -0.5rem) rotate(45deg);
}

/* Code for sidebar */
#menu-sidebar {
  z-index: 90;
  overflow: hidden;
  transform: translateX(100%);
  transition: 0.6s ease-in-out;
}

#menu-sidebar.active {
  transform: translateX(0);
}

/* Code for page transitions */
.transition {
  position: fixed;
  z-index: 2000;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  pointer-events: none;
  background: #fff;
  transform: scaleY(0);
}

.revealer {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
}

.revealer:after {
  content: "";
  position: absolute;
  top: 120px;
  left: 0;
  width: 110%;
  height: 110vh;
  background: #fff;
  transform: scaleY(1);
}

#main-container {
  opacity: 0;
}

/* .transition-active {
  opacity: 1;
} */

/* Navigation links alignment */
#header-nav-links {
  justify-content: flex-start;
  transition: justify-content 0.5s ease-in-out;
  white-space: nowrap;
}

.header-scrolled #header-nav-links {
  justify-content: center;
}

@media (max-width: 1280px) {
  .header-logo #logo-img {
    height: 50vh;
  }

  .header-scrolled #logo-img {
    height: 6.5rem;
  }
}

@media (max-width: 1024px) {
  .header-logo #logo-img {
    height: 45vh;
  }

  .header-scrolled #logo-img {
    height: 6.5rem;
  }
}

@media (max-width: 768px) {
  .header-logo #logo-img {
    top: 7rem;
    height: 30vh;
    width: auto;
  }

  /* Code for header animation */
  .header-scrolled #logo-img {
    top: 1rem;
    height: 6.5rem;
    width: auto;
  }

  .header-scrolled .header-logo {
    flex-basis: 30% !important;
  }
}

@media (max-width: 640px) {
  .header-logo #logo-img {
    height: 25vh;
    width: auto;
  }

  .header-scrolled #logo-img {
    height: 4rem;
  }
}

.portfolio-card:hover .portfolio-card-img {
  transform: scale(1.15);
}

.portfolio-card:hover .portfolio-card-overlay {
  transform: scale(0.95);
}

.portfolio-card-img,
.portfolio-card-overlay {
  transition: transform 0.5s ease;
}

.input {
  border-bottom: 1px solid white;
  border-radius: 0;
}

.input:focus {
  border-bottom: 1px solid var(--color-accent);
  outline: none;
}

textarea {
  resize: none;
}

.gallery-item {
  float: left;
  /* width: 100%; */
}

.grid-sizer {
  width: 20%;
}

/* Gallery */
.grid-gallery {
  /* display: flex; */
  /* flex-wrap: wrap; */
  gap: 10px;

  /* &::after {
    content: "";
    flex-grow: 999;
    flex-shrink: 1;
    flex-basis: auto;
  } */
}

.gallery-item {
  /* position: relative; */
  /* flex: auto; */
  /* overflow: hidden; */
  /* height: var(--gallery-item-height); */
  /* height: 550px; */
  /* border-radius: 0; */
}

.gallery-item img,
.gallery-item video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  height: 3.5rem;
}

.ticker {
  display: inline-flex;
  margin-top: 5px;
  animation: marquee 20s linear infinite;
}

.ticker-items {
  position: relative;
  left: 0%;
  animation: swap 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes swap {
  0%,
  50% {
    left: 0%;
  }
  50.01%,
  100% {
    left: 100%;
  }
}

/* Custom Cursor */
/* Hover state cursor */
a, 
button,
a:visited,
a *, 
button *,
a:hover,
button:hover,
a:visited:hover {
  cursor: url("/cursors/cursor-hover.png"), pointer;
}

/* Active/click state cursor */
a:active,
button:active,
a:focus,
a:visited:active,
a:visited:focus,
.touch-active,
a:active *,
button:active *,
a:focus *,
button:focus *,
a:visited:active *,
a:visited:focus *,
.touch-active * {
  cursor: url("/cursors/cursor-click.png"), pointer !important;
}
