/*importem  llertra montserrat per els titols*/
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/*importem  llertra per el text*/
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;

}




body{
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/*Fem que tots els titols tinguin la tipografia Monserrat*/
h1, h2, h3{
    font-family: 'Montserrat';
    font-weight: bold;
}

/*Fem que tot el text tingui la tipografia open Sans*/
p{
    font-family: 'Open Sans';
    font-weight: 100;
    font-style: normal;
}

/*Donem estil a la clase header*/
.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; 
    background-color: #89CFF0;
    color: white;
    padding: 15px 20px;
    position: relative;
    z-index: 10;
    
    
    
}

/*Estil pel nom*/
.name{
    margin: 0;
    font-size: 20px;
}

/**********************************
                MENU
***********************************/

/* Menu normal (pantalles grans) */
.menu-list {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.menu-link {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
}

.menu-link:hover{
    background-color: gold;
    color: black;
    border-radius: 30px;
}

/* Icona del menú (hamburguesa) */
.checkbtn {
  display: none;
  
}

/* Ocultem el checkbox */
#check {
  display: none;
}


/**********************************
                BANNER
***********************************/

/*donem estil menu*/
.banner{
    width: 100%;
    height: 100vh;
    background-image: url(../img/fonsbanner.png);
    background-size: cover;    
    background-repeat: no-repeat;
    position: relative;
    
}

/*Donem estil el contingut del banner*/
.contentbanner{
    position: absolute;
    margin-left: 200px;
    margin-top: 100px;
    width: 40%;
    text-align: center;
    color: white;
}

/*Donem estil els titols del banner*/
.contentbanner h1{
    text-align: center;
    font-size: 60px;
    margin-bottom: 20px;
}

/*Donem estil al text del banner*/
.contentbanner p{
    font-size: 25px;
}
/*Donem estil els links del banner*/
.contentbanner a{
    background-color: #89CFF0;
    color: white;
    border: 2px solid;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    display: inline-block;
    margin-top: 30px;
    margin-left: 10px;
}

/*Donem estil per quan passem per sobre els links del banner*/
.contentbanner a:hover{
    background-color: #FFFFFF;
    color: black;
}

/**********************************
          SECCIO SOBRE MI
***********************************/



/*Donem estil a la seccio sobre mi en general*/  
.about-section {
    padding: 50px 20px;
    background-color: #2c2c2c /* fons negre o fosc */   
}
  
.about-container {
    display: flex;
    flex-wrap: wrap; /* important per adaptar a mòbil */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/*Donem estil a la colmna 1 sobre mi*/  
.about-column1 {
    flex: 2;
    padding: 20px;
    color: #CCCCCC;
}

/*Donem estil els titols h2 de la colmna 1 sobre mi*/
.about-column1 h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-align: center;
}

/*Donem estil els parragrafs de la colmna 1 sobre mi*/
.about-column1 p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/*Donem estil a la colmna 2 sobre mi*/  
.about-column2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/*Donem estil a la imatge*/
.profile-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #CCCCCC;
    margin-bottom: 20px;
}
  


/*Donem esil al link del cv*/
.link-cv{
    margin-top: 50px;
    color: white;
    background-color: #89CFF0;
    border-radius: 30px;
    padding: 10px 20px;
    text-align: center;
}

/*Donem esil per quan pasem per sobre el link del cv*/
.link-cv:hover{
    color: black;
    background-color: white;
}


/**********************************
          SECCIO SKILLS
***********************************/
.skills-section {
    background-color: #2e2e2e;
    opacity: 0.9;

}
.skills-section h2{
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 800; 
  text-align: center;
  color: white;
    padding-top: 30px; 

}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center; /* centra les etiquetes */
  margin: 20px auto; /* centra el contenidor */
  align-items: center; /* centra les etiquetes */
  padding: 50px;
}


.skill{
  background-color: #e5e5e5;
  color: #555;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: default;
  border-radius: 30px;

}

.skill:hover{
  background-color: #89CFF0;
  color: white;
  border: 1px solid; 
}



/****************************
        SECCIO PROJECTES
****************************/

#projectes {
    padding: 3rem 1rem;  /* Espai interior gran (3 rem a dalt i baix, 1 rem als costats) */
    background-color: #f5f5f5;  /* Color de fons suau */
    text-align: center;  /* Centra el text del títol */
  }

  #projectes h2{
    text-transform: uppercase;
    font-size: 2em;
  }
  
  .grid-projectes {
    display: grid;  /* Usa un sistema de graella */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  
    /* Fa columnes flexibles: tantes com càpiguen, mínim 280px */
    gap: 1.5rem;  /* Espai entre targetes */
    margin-top: 2rem;  /* Espai superior després del títol */
  }
  
  .targeta-projecte {
    background: white;  /* Fons blanc per cada targeta */
    padding: 1.5rem;  /* Espai interior */
    border-radius: 15px;  /* Cantonades arrodonides */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);  /* Ombra suau per separar del fons */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Fa una animació suau quan el cursor passa per sobre */
  }
  
  .targeta-projecte:hover {
    transform: translateY(-5px);  /* Lleuger efecte de pujada */
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);  /* Ombra més intensa */
  }

  .targeta-projecte img {
    width: 60%;               /* Ocupa el 60% de l’ample de la targeta */
    max-width: 250px;         /* No més gran de 250px */
    height: auto;
    border-radius: 10px;
    margin: 0 auto 1rem auto; /* Centrada horitzontalment i amb marge inferior */
    display: block;           /* Cal per fer servir margin: auto */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .targeta-projecte h3 {
    margin-bottom: 0.5rem;  /* Espai sota el títol del projecte */
  }
  
  
  .etiqueta-proces {
    display: inline-block;
    background-color: #ffc107;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    margin-top: 10px;
  }
  
  .etiqueta-finalitzat{
    display: inline-block;
    background-color: #37ff0f;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    margin-top: 10px;
  }

  .techs span {
    display: inline-block;  /* Mostra cada tecnologia com una pastilla separada */
    background-color: #e0e0e0;  /* Color gris clar */
    color: #333;  /* Color de text fosc */
    padding: 0.2rem 0.6rem;  /* Espai interior petit */
    border-radius: 12px;  /* Cantonades arrodonides */
    margin: 0.2rem;  /* Espai entre etiquetes */
    font-size: 0.8rem;  /* Tipografia més petita */
  }
  
  .targeta-projecte a {
    display: inline-block;  /* Permet padding i marge */
    margin-top: 16px;  /* Espai a sobre del botó */
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;  /* Blau estil "enllaç" */
    text-decoration: none;  /* Sense subratllat */
    font-weight: bold;  /* Text destacat */
    border-radius: 8px;
    font-size: 16px;
  }

  .targeta-projecte a:hover{
    border-radius: 16px;

    background-color: #007BFF;
    color: white;
  }
  
/*******************************
        SECCIO CONTACTE
*******************************/
.contact{
    padding: 60px 20px;
    text-align: center;
    background-color: #f5f5f5;
}

.contact h2{
    font-size: 40px;
    margin-bottom: 20px;
    color: #222;
    text-transform: uppercase;
}

.contact p{
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.contact-icons{
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-icons a{
    font-size: 20px;
    color: #0073e6;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icons a img{
    width: 30px;
    height: 30px;
}

.contact-icons a:hover {
    color: #005bb5;
    transform: scale(1.05);
}

/*******************************
            FOOTER
*******************************/
.footer {
    background-color: #000; /* Fons negre */
    color: #ccc; /* Text en gris clar */
    text-align: center; /* Centrat horitzontalment */
    padding: 20px;/* Espai intern (top i bottom) */
    font-family: sans-serif; /* Tipus de lletra senzill i net */
    border-top: 1px solid #222; /* Línia superior subtil per separar del contingut */
}

/* Estil pel paràgraf dins el footer */
.footer p {
    margin: 0; /* Elimina l'espai per defecte */
    font-size: 14px;  /* Mida del text */
}

/* Destaca el nom amb color blanc */
.footer strong {
    color: #fff;
}



/*******************************
       COMENÇEM RESPONSIVE
*******************************/

/* ---------- Media Query: ≤ 768px (tablets i mòbils) ---------- */
@media (max-width: 768px) {
     /**********************************
                  MENU
    ***********************************/
    /* Mostrem la icona del menú (☰) a la dreta */
  .checkbtn {
    display: block;
    font-size: 28px;
    cursor: pointer;
  }

  /* Menú vertical ocult per defecte */
  .menu-list {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #89CFF0;
    display: none;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  /* Quan el checkbox està activat, mostrem el menú */
  #check:checked ~ .menu-list {
    display: flex;
  }

  /**********************************
                BANNER
  ***********************************/
 

  .contentbanner h1{
    font-size: 2rem;
  }

  .contentbanner p{
    font-size: 1rem;
  }

  .contentbanner a{
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /**********************************
          SECCIO SOBRE MI
  ***********************************/
  .about-container {
    flex-direction: column; /* Col·loquem les columnes una sota l’altra */
    align-items: center;
    padding: 0 10px;
  }

  .about-column1,
  .about-column2 {
    width: 100%;
    padding: 10px 0;
  }

  .about-column1 h2 {
    font-size: 1.6em;
  }

  .about-column1 p {
    font-size: 1em;
  }

  .profile-image img {
    width: 130px;
    height: 130px;
  }

  .link-cv {
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  /**********************************
          SECCIO SKILLS
  ***********************************/
   .skills-section {
    padding: 2rem 1rem;
  }

  .skills-section h2 {
    font-size: 1.6em;
    margin-bottom: 1.5rem;
  }

  .skills-container {
    gap: 1.5rem;
    grid-template-columns: 1fr; /* Una sola columna en tablets */
  }

  .skills-category {
    padding: 1.2rem 1.5rem;
  }

  .skills-category h3 {
    font-size: 1.1rem;
  }

  .skills-category li {
    font-size: 0.95rem;
  }

  /**********************************
          SECCIO PROJECTES
  ***********************************/
  #projectes {
    padding: 2rem 1rem;
  }

  .grid-projectes {
    gap: 1rem;
  }

  .targeta-projecte {
    padding: 1rem;
  }

  .targeta-projecte img {
    width: 70%;
  }


  /**********************************
           SECCIO CONTACTE
  ***********************************/
  .contact h2 {
    font-size: 32px;
  }

  .contact p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .contact-icons {
    gap: 20px;
  }

  .contact-icons a {
    font-size: 18px;
  }

  .contact-icons a img {
    width: 26px;
    height: 26px;
  }

  

}

/* ---------- Media Query: ≤ 480px (mòbils petits) ---------- */
@media (max-width: 480px) {
   
  /**********************************
                  MENU
  ***********************************/

    /* Reduïm la mida del nom */
  .name {
    font-size: 1.2rem;
  }

  /* Reduïm la mida de la icona del menú */
  .checkbtn {
    font-size: 24px;
  }

  
  /* Enllaços una mica més petits */
  .menu-link {
    font-size: 0.95rem;
  }

    /**********************************
                BANNER
    ***********************************/
    
    /* banner en general*/
    .banner {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #121212; /* o un gradient o una imatge */
    position: relative;
    overflow: hidden;
    min-height: 100vh; /* assegura altura mínima per a banners grans */
    z-index: 1;
}

.contentbanner {
   width: 100%;
    max-width: 700px;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto; /* Centrat horitzontal */
    padding: 0 20px; /* Evita que el text toqui les vores en pantalles petites */
    box-sizing: border-box;
}

.contentbanner h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    word-wrap: break-word;
    max-width: 90%;
    color: #ffffff;
}

.contentbanner p {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto 20px auto;
    color: #e0e0e0;
}

.contentbanner a {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 10px auto;
    padding: 12px 24px;
    background-color: #87d6f8;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.contentbanner a:hover {
    background-color: #5dc4e8;
}


    /**********************************
          SECCIO SOBRE MI
    ***********************************/
    .about-section {
    padding: 40px 15px;
  }

  .about-column1 h2 {
    font-size: 1.4em;
  }

  .about-column1 p {
    font-size: 0.95em;
  }

  .profile-image img {
    width: 110px;
    height: 110px;
  }

  .link-cv {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 12px;
  }


  /**********************************
          SECCIO SKILLS
  ***********************************/
  .skills-section {
    padding: 1.5rem 1rem;
  }

  .skills-section h2 {
    font-size: 1.4em;
    margin-bottom: 1rem;
  }

  .skills-category {
    padding: 1rem;
    
  }

  .skills-category h3 {
    font-size: 1rem;
  }

  .skills-category li {
    font-size: 0.9rem;
    gap: 8px;
  }

  .skills-category li img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }

  /**********************************
          SECCIO PROJECTES
  ***********************************/
  #projectes h2 {
    font-size: 1.6em;
  }

  .targeta-projecte {
    padding: 0.8rem;
  }

  .targeta-projecte img {
    width: 80%;
  }

  .targeta-projecte h3 {
    font-size: 1rem;
  }

  .targeta-projecte a {
    font-size: 14px;
    padding: 8px 16px;
  }

  .techs span {
    font-size: 0.75rem;
  }
  /**********************************
          SECCIO CONTACTE
  ***********************************/
  .contact {
    padding: 40px 15px;
  }

  .contact h2 {
    font-size: 26px;
  }

  .contact p {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .contact-icons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .contact-icons a {
    font-size: 16px;
  }

  .contact-icons a img {
    width: 24px;
    height: 24px;
  }

  /*canviem el tamany del text del footer*/
  .footer p {
    font-size: 13px;
  }
 
}