/* Main Image */
.parallax {
    background-image: url('../images/bg_webite.jpg');
    min-height: 500px;
    height: 80vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.parallax-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 2.5rem;
    border-radius: 10px;
    color: white;
    max-width: 900px;
}

.parallax h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Animation on load */
.hover-words span {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    cursor: pointer;
  }
  
  .hover-words span:nth-child(1) { animation-delay: 0.2s; }
  .hover-words span:nth-child(2) { animation-delay: 0.4s; }
  .hover-words span:nth-child(3) { animation-delay: 0.6s; }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Animation on hover */
  .hover-words span:hover {
    transform: scale(1.1) rotate(-1deg);
    color: var(--secondary-color); /* Bootstrap primary or your brand color */
  }

.parallax p {
    font-size: 1.2rem;
    margin: 0;
}
.parallax::after {
    content: '';
    position: absolute;
    bottom: -20px; /* Positioning the triangle below the section */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #003655; /* The color of the triangle */
}

/*************************/
/***** MEDIA BREAKS ******/
/*************************/

@media (max-width: var(--tablet)) {
    .parallax {
        background-image: url('../images/bg_webite.jpg');
        min-height: 300px;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }

    .parallax h1 {
        font-size: 2rem;
        padding: 0.5rem;
    }
}

@media (max-width: var(--mobile)) {
    .parallax {
        background-image: url('../images/bg_webite.jpg');
        min-height: 200px;
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        padding: 1.5rem;
    }
    
    .parallax h1 {
        font-size: 1.5rem;
    }
    
    .parallax-content {
        padding: 1rem;
        background: rgba(0, 0, 0, 0.7);
    }
}

