
.hero {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    background-color: var(--background-h);

    margin-bottom: 2rem;

    & .slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; 
        height: 100%;
        padding: 3rem 0; 
        
        z-index: 1;
        &.active {
            z-index: 0;
        }
        
        & .text {
            position: absolute;
            z-index: 1;
            background-color: #0f0f0f5f;
            
            bottom: 4rem;
            top: 3rem;
            padding: 1rem;
            
            display: flex;
            flex-direction: column;
            margin: 0 auto;
        }
        & img {
            position: absolute;  
            z-index: 0;
            inset: 0;
            width: 100%; height: 100%;
            
            object-fit: cover;
            object-position: right center;
            transform-origin: 80% 50%;

            transition: transform 3s ease-in-out;
        }
    }
    &:hover img {
        transform: scale(1.02);
    }

    & nav {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: flex;
        gap: 0.5rem;

        & .dot {
          transform-origin: 50% 40%;
          opacity: 0.4;
          transition: all 0.1s;

          &.current {
              opacity: 0.8;
              transform: scale(2.0);
          }

        }
        
        & button {
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s ease;

            &:hover {
                background-color: rgba(0, 0, 0, 0.8);

            }
        }
    }

}

