@import url('https://fonts.googleapis.com/css2?family=Montaga&family=Montserrat:wght@400;500;600&display=swap');

/* SLIDER CONTAINER */
#slider-vizcaya.custom-slider {
  width: 100%;
  height: 100vh; /* The visible window for snapping */
  overflow-y: scroll; /* Allows vertical scrolling */
  scroll-snap-type: y mandatory; /* Forces snapping */
  position: relative; 
  
  /* --- 👇 ADD THESE STYLES TO HIDE THE SCROLLBAR 👇 --- */
  
  /* For Internet Explorer and Edge */
  -ms-overflow-style: none;
  
  /* For Firefox */
  scrollbar-width: none;
  
  /* For Chrome, Safari, and Opera */
  &::-webkit-scrollbar {
    display: none;
  }
}
.slider-track {
  width: 100%;
}

/* SLIDES */
#slider-vizcaya .slide {
  /* Dimensions/Flow */
  width: 100%; 
  height: 100vh; /* CRITICAL: Each section must be exactly the viewport height */
  position: relative;
  
  /* Snapping Behavior (The Magnet Effect) */
  scroll-snap-align: start; 
  scroll-snap-stop: always; 
  
  /* Styling */
  background-size: cover;
  background-position: center;
}

#slider-vizcaya .slide.active {
  transform: translateY(0);
  z-index: 2;
}

/* CONTEÚDO DO SLIDE */
#slider-vizcaya .slide-content {
  position: absolute;
  left: 60px;
  bottom: 150px;
  color: #fff;
  z-index: 5;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}


#slider-vizcaya .title {
  font-family: 'Montaga', serif;
  font-size: clamp(23px,4vw,56px);
  margin: 0 0 8px 0;
  font-weight: 400;
}

.slide-content:hover .title {
    /* Ensure the content is above other elements when lifted */
    z-index: 15;
}


#slider-vizcaya .city {
  font-family: 'Montaga', serif;
  font-size: clamp(14px,1.4vw,22px);
  margin: 0;
}

/* BOTÃO DO PROJETO */
#slider-vizcaya .btn-project {
  position: absolute;
  top: 50%;
  right: 120px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0px 10px;
  background: #02010170;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  z-index: 6;
  transition: all 0.25s ease;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#slider-vizcaya .btn-project img {
  width: 28px;
  transition: transform 0.2s ease;
}

#slider-vizcaya .btn-project:hover {
  background-color: #96A077;
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 0 0 6px rgba(150,160,119,0.25);
}

#slider-vizcaya .btn-project:hover img {
  transform: translateX(4px);
}

/* BOTÕES DE NAVEGAÇÃO */
#slider-vizcaya .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 8;
    padding-inline: 5px;
    background: #00000063;
}

#slider-vizcaya .nav.prev { left: 30px; }
#slider-vizcaya .nav.next { right: 70px; }

/* SCROLL DOWN INDICATOR */
.scroll-down-indicator {
    position: fixed;
    bottom: 30px; /* Distance from the bottom of the screen */
    left: 50%;
    transform: translateX(-50%); /* Centers the element horizontally */
    color: #fff;
    font-size: 24px;
    z-index: 10;
    cursor: pointer; /* Suggests interaction */
    padding: 10px; /* For better click target if you add JS later */
}
@media (max-width:640px){
  .scroll-down-indicator {
      bottom: 10px; /* Distance from the bottom of the screen */
  }
}
.scroll-down-indicator:hover {
    opacity: 0.8; /* Slight hover effect */
}

/* Hide the old navigation styles */
#slider-vizcaya .nav,
#slider-vizcaya .nav.prev, 
#slider-vizcaya .nav.next {
    display: none;
}

/* RESPONSIVO */
@media (max-width:1024px){
  #slider-vizcaya .btn-project { right: 40px; top:75%; max-width: 135px;}
}
@media (max-width:640px){
  #slider-vizcaya .btn-project { font-size: 14px; left: 40px; top: 70%;}
  #slider-vizcaya .nav.prev { left: 20px; }
  #slider-vizcaya .nav.next { right: 20px; }
  #slider-vizcaya .slide-content { left: 40px; bottom: 150px; max-width: 300px;}
}

/* Define the bouncing movement */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px); /* Move up 10px */
    }
    60% {
        transform: translateY(-5px); /* Move up 5px */
    }
}

/* Apply the animation to the arrow */
.scroll-down-indicator .arrow-icon {
    display: block;
    animation: bounce 2s infinite; /* Loop the animation forever */
}


/* Initial State: Hidden and slightly moved up */
.custom-animation-post {
    opacity: 0;
    transform: translateY(20px);
    transition: 
        opacity 0.6s ease-out, /* Fade duration */
        transform 0.6s ease-out; /* Slide duration */
}

/* Final State: Visible and in original position */
/* This class will be added by JavaScript to trigger the animation */
.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Specific delays for the title and city elements */
/* ----------------------------------------------- */

/* Apply no delay initially for the title */
.slide:not(.active) .title.custom-animation-post {
    /* No transition-delay needed here */
}

/* Apply a delay to the city */
.slide:not(.active) .city.custom-animation-post {
    transition-delay: 0.1s; /* Start the city animation 100ms after the title */
}

/* Ensure the delays are applied to the active/animated state as well if needed */
.slide.active .city.animated {
    transition-delay: 0.1s; 
}