/* dito animations, PALITAN MO LANG YUNG NASA LOOB NG FROM and TO PARA KUNG GUSTO MO PALITAN ANIMATIONS HEHE THANKS*/
@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px); 
  }
}


@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#main-content.fade-out {
  animation: fadeOutUp 0.5s ease-out forwards; 
}

#main-content.fade-in {
  animation: fadeInDown 0.5s ease-in forwards; 
}

#main-content {
    opacity: 1;
}

.sub-nav .nav-link.active {
    color: #f1f1f1 !important;
    background-color: #1e1e1e !important;
    border-radius: 14.5px;
}


/* Hoodie Animations */

#hoodie-main-image {
transition: opacity 0.4s ease-in-out;
}

/* Title Animation */
.arrivals-title {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.title-fade-slide {
  display: inline-block;
  position: relative;
  animation: slideFade 0.5s forwards;
}

@keyframes slideFade {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Slide animation for Login/Signup switch */
@keyframes slideInLeft {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Apply animation to the modal content when switching */
.modal-content.slide-left {
  animation: slideInLeft 0.4s ease forwards;
}

.modal-content.slide-right {
  animation: slideInRight 0.4s ease forwards;
}


/* ===================== MODAL ANIMATIONS ===================== */

/* Container for the modal (both login and signup share this) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 999;
}

/* Show modal */
.modal.active {
  opacity: 1;
  pointer-events: auto;
}

/* Shared container */
.modal-container {
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-40px);
  opacity: 0;
  animation: slideIn 0.5s ease forwards;
  max-width: 700px;
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: row;
}

/* Slide in when opening */
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Smooth fade out when closing */
.modal-closing .modal-container {
  animation: fadeOut 0.4s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* ===================== SWITCH BETWEEN LOGIN/SIGNUP ===================== */

/* Slide animation when switching between login <-> signup */
.slide-left-enter {
  animation: slideLeftIn 0.5s ease forwards;
}
.slide-left-exit {
  animation: slideLeftOut 0.5s ease forwards;
}

.slide-right-enter {
  animation: slideRightIn 0.5s ease forwards;
}
.slide-right-exit {
  animation: slideRightOut 0.5s ease forwards;
}

@keyframes slideLeftIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeftOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideRightIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideRightOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}


.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.popup-content img {
  width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.popup-content .close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.popup-desc {
  margin: 10px 0;
}

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