/* Comportament de scroll suau en fer clic a enllaços d'ancora */
html {
    scroll-behavior: smooth;
}

/* Secció principal: disposició horitzontal, espaiat entre elements */
#seccio1 {
    margin: 40px;
    display: flex;
    justify-content: center;
    gap: 280px;
    flex-wrap: wrap; /* Permet que es reestructuri en pantalles petites */
}

/* Contenidor del text */
.container1 {
    max-width: 500px;
    text-align: left;
}

/* Títol principal */
.titol1 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Text descriptiu */
.descripcioprincipi {
    font-size: 16px;
    color: black;
    margin-bottom: 50px;
}

/* Animació de pulsació per al botó */
@keyframes pulsar {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Estil del botó amb animació i hover */
.botodescargar {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 26px 36px;
    text-decoration: none;
    font-size: 32px;
    font-family: Bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: pulsar 2s infinite;
    border: 2px solid transparent;
}

.botodescargar:hover {
    background-color: white;
    color: black;
    transform: scale(1.1);
    border: 2px solid black;
}

/* Imatge GIF */
.gifmobil {
    width: 450px;
    max-width: 100%;
}

/* Responsivitat: pantalles menors de 768px */
@media screen and (max-width: 768px) {
    #seccio1 {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .titol1 {
        font-size: 42px;
        text-align: center;
    }

    .container1 {
        text-align: center;
        max-width: 90%;
    }

    .descripcioprincipi {
        font-size: 15px;
    }

    .botodescargar {
        font-size: 24px;
        padding: 18px 30px;
    }

    .gifmobil {
        width: 90%;
        max-width: 350px;
    }
}
