/* GENERAL */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f7f7f7;
    color: #333;
}

/* HEADER */
header {
    background-image: url("fons-mecanic.png"); /* 👉 posa aquí el nom del teu fitxer */
    background-size: cover; /* fa que cobreixi tot el header */
    background-position: center; /* centra la imatge */
    color: white;
    text-align: center;
    padding: 100px 20px; /* més gran per donar espai al text */
    position: relative;
}

/* opcional: un filtre fosc perquè el text es llegeixi millor */
header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* foscor del 50% */
    z-index: 1;
}

header h1, header p, .primary-btn {
    position: relative;
    z-index: 2; /* assegura que surtin a sobre del filtre */
}


header h1 {
    margin: 0;
    font-size: 3rem;
}

header p {
    margin: 10px 0 20px 0;
    font-size: 1.2rem;
}

.primary-btn {
    padding: 12px 25px;
    font-size: 16px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #e68900;
}

/* SECCIONS */
section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    color: #1a73e8;
    margin-bottom: 30px;
}

/* FEATURES */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    flex: 1 1 250px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
}

/* PROJECTES */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project {
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
}

.project img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.project img:hover {
    transform: scale(1.05);
}

.project p {
    margin-top: 10px;
    font-weight: bold;
    color: #1a73e8;
}

/* CONTACTE */
#contact p {
    text-align: center;
    margin: 5px 0;
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .features {
        flex-direction: column;
        align-items: center;
    }
    .projects-container {
        flex-direction: column;
        align-items: center;
    }
}

footer {
    text-align: center;
    font-size: 0.8rem; /* lletra petita */
    font-weight: 300; /* lletra fina */
    color: #777; /* gris suau */
    margin-top: 40px;
    padding: 10px 0;
     border-top: 1px solid #e0e0e0; /* línia subtil de separació */
}

/* SECCIONS */
section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Centrar contingut del download */
#download {
    text-align: center;
}

