/*=============== HOME PAGE STYLES ===============*/

/*========== HOME SECTION ==========*/
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home__container {
  position: relative;
  display: grid;
  row-gap: 2rem;
  padding-block: 10vh 5vh;
  height: 100vh;
  align-content: center;
}

/*========== HOME DATA ==========*/
.home__data {
  text-align: center;
}

.home__subtitle {
  font-family: var(--second-font);
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
  color: var(--white-color);
  display: inline-block;
  overflow: hidden;
  border-right: 0.15em solid var(--vert-mini);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: 
    typing 2.25s steps(40, end),
    blink-caret 0.5s step-end infinite;
}

.home__title {
  font-family: var(--second-font);
  font-size: var(--biggest-font-size);
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--bleu-mini) 0%, var(--vert-mini) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.home__description {
  font-family: var(--body-font);
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/*========== HOME BUTTON ==========*/
.home__button {
  display: inline-block;
  background-color: var(--black-color);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.1);
  padding: 1rem 3rem;
  border-radius: 4rem;
  font-weight: var(--font-bold);
  font-family: var(--second-font);
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
  z-index: 1;
}

.home__button::before {
  content: '';
  background: linear-gradient(30deg, 
    #ff0000, #ff0000, #FF4500, #fffb00, #00FF00, 
    #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400% 400%;
  z-index: -1;
  filter: blur(10px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 10s linear infinite;
  opacity: 1;
  border-radius: 4rem;
}

.home__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px hsla(0, 0%, 0%, 0.2);
}

.home__button:hover::before {
  opacity: 1;
}

/*========== HOME IMAGES ==========*/
.home__images {
  display: grid;
  position: relative;
  justify-items: center;
}

.home__swiper {
  width: 100%;
  max-width: 400px;
}

.home__article {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home__shoe {
  width: 300px;
  margin-inline: auto;
  transition: transform 0.3s ease;
}

.home__shoe:hover {
  transform: scale(1.05);
}

/*========== SWIPER PAGINATION ==========*/
.swiper-pagination {
  position: relative;
  margin-top: 2rem;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -2rem;
}

.swiper-pagination-bullet {
  width: 1rem;
  height: 0.25rem;
  border-radius: 1rem;
  background-color: var(--black-color-light);
  opacity: 1;
  transition: background-color 0.3s, width 0.3s;
}

.swiper-pagination-bullet-active {
  width: 1.25rem;
  background-color: var(--vert-mini);
}

.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0 2px;
}

/*========== ANIMATIONS ==========*/
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--vert-mini); }
}

@keyframes glowing {
  0% { 
    background-position: 0% 50%;
    filter: blur(8px);
  }
  50% { 
    background-position: 100% 50%;
    filter: blur(12px);
  }
  100% { 
    background-position: 0% 50%;
    filter: blur(8px);
  }
}

/*========== RESPONSIVE ADJUSTMENTS ==========*/
@media screen and (max-width: 550px) {
  .home__container {
    grid-template-columns: 1fr;
    padding-block: 8vh 4vh;
    row-gap: 1.5rem;
  }
  
  .home__title {
    font-size: 2.2rem;
  }
  
  .home__subtitle {
    font-size: 1rem;
  }
  
  .home__description {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }
  
  .home__shoe {
    width: 160px;
  }
  
  .home__button {
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 551px) and (max-width: 1023px) {
  .home__container {
    grid-template-columns: 1fr;
    padding-block: 9vh 5vh;
  }
  
  .home__title {
    font-size: 3rem;
  }
  
  .home__subtitle {
    font-size: 1.25rem;
  }
  
  .home__description {
    font-size: 1rem;
    padding: 0 2rem;
  }
  
  .home__shoe {
    width: 200px;
  }
}

@media screen and (min-width: 1024px) {
  .home__container {
    grid-template-columns: repeat(2, 400px);
    place-items: center;
    column-gap: 2rem;
    min-height: 100vh;
  }
  
  .home__data {
    text-align: center;
  }
}

@media screen and (min-width: 1152px) {
  .home__container {
    grid-template-columns: repeat(2, 500px);
    column-gap: 3rem;
  }
  
  .home__title {
    font-size: var(--biggest-font-size);
  }
  
  .home__shoe {
    width: 350px;
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .home__container {
    padding-block: 5vh 3vh;
  }
  
  .home__title {
    font-size: 2.5rem;
  }
  
  .home__subtitle {
    font-size: 1rem;
  }
}

/*========== REDUCED MOTION ==========*/
@media (prefers-reduced-motion: reduce) {
  .home__subtitle {
    animation: none;
    border-right: none;
  }
  
  .home__shoe:hover {
    transform: none;
  }
}
