@font-face {
    font-family: 'PlayfairDisplay';
    src: url('../fonts/playfair-display/PlayfairDisplay-Regular.ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.parallax-section {
    position: relative;
    width: 100%;
    height: 500px;
    background-image: url('../slike/BeneteauMotors/GranTurismo40IB/GRAN\ TURISMO\ 40\ COUPE\ -\ ALPINE\ -\ IMAGE\ -\ EXTERIOR.webp ');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Serve smaller image to mobile — parallax is disabled there anyway */
@media (max-width: 768px) {
    .parallax-section {
        background-image: url('../slike/BeneteauMotors/GranTurismo40IB/GRAN\ TURISMO\ 40\ COUPE\ -\ ALPINE\ -\ IMAGE\ -\ EXTERIOR.webp ');
    }
}

.parallax-heading {
    position: absolute;
    top: 50px;
    left: 220px;
    margin: 0;
    color: #ffffff;
    font-family: 'PlayfairDisplay', serif;
    font-size: 55px;
    line-height: 1.3;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.parallax-subtext {
    position: absolute;
    top: 230px;
    left: 220px;
    margin: 0;
    color: #ffffff;
    font-family: 'PlayfairDisplay', serif;
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.parallax-btn {
    position: absolute;
    top: 390px;
    left: 220px;
    padding: 1em 2em;
    border: 0.1px solid white;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: white;
    transition: all 1000ms;
    font-size: 12px;
    overflow: hidden;
    background-color: transparent;
    font-family: 'Synco', Arial, Helvetica, sans-serif;
    cursor: pointer;
    z-index: 1;
}

.parallax-btn::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 0;
    width: 0;
    height: 100%;
    background-color: white;
    transform: skewX(45deg);
    z-index: -1;
    transition: width 1000ms;
}

.parallax-btn:hover::before {
    width: 250%;
}

.parallax-btn:hover {
    color: black;
    outline: 2px solid white;
    box-shadow: 4px 5px 17px -4px white;
}

@media (min-width: 769px) and (max-width: 877px) {
    .parallax-section {
        height: 520px;
    }

    .parallax-heading {
        left: 60px;
        font-size: 38px;
    }

    .parallax-subtext {
        left: 60px;
        top: 200px;
        font-size: 1rem;
        max-width: 380px;
    }

    .parallax-btn {
        left: 60px;
        top: 390px;
    }
}

@media (max-width: 768px) {
    .parallax-section {
        height: 460px;
        background-attachment: scroll;
    }

    .parallax-heading {
        left: 30px;
        font-size: 2rem;
    }

    .parallax-subtext {
        left: 30px;
        font-size: 0.95rem;
        max-width: calc(100% - 60px);
        top: 145px;
    }

    .parallax-btn {
        left: 30px;
        top: 350px;
    }
}

@media (max-width: 480px) {
    .parallax-heading {
        left: 20px;
        font-size: 1.5rem;
    }
}
