         .pepe {
            border-radius: 10px;
            background-color: rgba(185, 185, 185,0.6) ;
            text-align: center;
            font-family:'Times New Roman', Times, serif;
            display: inline-block;
            font-size: 30px;
            color: rgb(0, 0, 0);
            transition-duration: 0.4s;
            cursor: pointer;
            margin-top: 30px;
            margin-bottom: 40px;
         }
         .pepe:hover {
            background-color: rgba(185, 185, 185,0.6) ;
            color: rgb(240, 240, 240);
            font-size: 28px;
            border-radius: 15px;
         }
         h5 {
            text-align:justify;
            font-family:'Times New Roman', Times, serif;
            font-size: 25px;
            margin-left: 60px;
            margin-right: 60px;
            font-weight: normal;
         }
         body {
            margin: 0;
            text-align: center;
            font-family: Arial, sans-serif;
            background-color: rgb(197, 196, 196);
         }
         #titol{
            
            font-family:'Times New Roman', Times, serif;
            font-size: 60px;
            background-color: rgba(185, 185, 185,0.6);
            border-radius: 20px;
            margin-top: 35px;
            margin-bottom: 40px;
         }
         #capsa{ 
            
            background-color: #282828;
           
         }
          
         h6{
            color: white;
            text-align:center;
            font-family:'Times New Roman', Times, serif;
            font-size: 25px;
            margin-left: 60px;
            margin-right: 60px;
            font-weight: normal;
            
         }
         #titol2{
            
            font-family:'Times New Roman', Times, serif;
            font-size: 60px;
            background-color: rgba(185, 185, 185,0.6);
            border-radius: 20px;
            margin-top: 3px;
            margin-bottom: 00px;
         }
          #titol22{

            font-family:'Times New Roman', Times, serif;
            font-size: 60px;
            background-color: rgba(185, 185, 185,0.6);
            border-radius: 0px;
            margin-top: 50px;
            margin-bottom: 00px;
         }
         #titol2v2{

            font-family:'Times New Roman', Times, serif;
            font-size: 40px;
            background-color: rgba(185, 185, 185,0.6);
            margin-top: 70px;
         }
         #separacio{

            font-family:'Times New Roman', Times, serif;
            font-size: 40px;
            background-color: rgba(185, 185, 185,0.6);
            margin-top: 10px;
            margin-bottom: 10;
         }


         #Projectes{
            font-family:'Times New Roman', Times, serif;
            font-size: 60px;
            background-color: rgba(185, 185, 185, 0.7);
            border-radius: 20px;
            margin-top: 35px;
            margin-bottom: 0px;
         }

         h1, h2 {
            margin: 20px 0;
         }
         
         p{
            text-align: center;
            font-size: 25px;
            font-family:'Times New Roman', Times, serif;
         }

         #Lluc {
            width: 100%; 
            transition: 2s;
         }

         #projectsSection {
            color: blue;
            margin-top: 40px;
         }

         /* NEW: project grid */
         .Taula-Projectes {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 columns */
            gap: 50px; /* space between items */
            max-width: 100%; /* keeps layout centered and tidy */
            margin: 0 auto; /* center the grid */
            padding: 100px;
         }

         .Taula-Projectes2 {
            background-color: #2c2c2c;
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 columns */
            gap: 50px; /* space between items */
            max-width: 100%; /* keeps layout centered and tidy */
            margin: 0 auto; /* center the grid */
            padding: 100px;
         }

         .Taula-contacte {
            background-color: #b1b0b0;
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* 2 columns */
            gap: 20px; /* space between items */
            max-width: 100%; /* keeps layout centered and tidy */
            margin: 0; /* center the grid */
            padding: 10px;
         }

      
         .fprojectes {
            overflow: hidden; /* ensures hover effects respect rounded corners */
            transition: 0.3s;
            background-color: rgba(185, 185, 185, 0.7);
            border-radius: 20px;
         }

        
         .fprojectes img {
            display: block;
            width: 100%; /* now auto scales to grid column */
            height: auto;
            border-radius: 20px;
            filter: grayscale(100%) brightness(0.5);
            transition: 0.3s;
            cursor: pointer;
         }
         .fprojectes2 img {
             margin: 0 auto;
            display: block;
            width: 40%; /* now auto scales to grid column */
            height: auto;
            border-radius: 20px;
            filter: grayscale(100%) brightness(0.5);
            transition: 0.3s;
            cursor: pointer;
         }
         
         .fprojectes video{
            display: block;
            width: 100%; /* now auto scales to grid column */
            height: auto;
            border-radius: 20px;
            filter: grayscale(100%) brightness(0.5);
            transition: 0.3s;
            cursor: pointer;
         }

         .fprojectesProduction video{
            display: block;
            width: auto; /* now auto scales to grid column */
            height: 60%;
            margin: 0 auto;
            border-radius: 20px;
            filter: grayscale(100%) brightness(0.5);
            transition: 0.3s;
            cursor: pointer;
         }
         .fprojectesProduction :hover video {
            filter: grayscale(0) brightness(1);
            border-radius: 30px;
         }

         .PFoto {    
            margin: 10px 0 0;
            background-color: rgba(185, 185, 185, 0.7);
            border-radius: 10px;
            transition: color 0.3s;
            cursor: pointer;
         }

         /* Hover effect applies to the container */
         .fprojectes:hover img {
            filter: grayscale(0) brightness(1);
            border-radius: 30px;
         }
         .fprojectes2:hover img {
            filter: grayscale(0) brightness(1);
            border-radius: 30px;
         }

         .fprojectes:hover video {
            filter: grayscale(0) brightness(1);
            border-radius: 30px;
         }
         .B {
            border-radius: 10px;
            background-color: #b1b0b0;;
            text-align: center;
            font-family:'Times New Roman', Times, serif;
            display: inline-block;
            font-size: 40px;
            color: black;
            transition-duration: 0.4s;
            cursor: pointer;
            margin-top: 30px;
            margin-bottom: 40px;
         }

         .B:hover {
            background-color: #ffffff;
            color: rgb(12, 12, 12);
            font-size: 35px;
            border-radius: 25px;
         }

         .h2{
            font-size: 20px;
            font-family:'Times New Roman', Times, serif;
         }
          .h4{
            font-size: 15px;
            font-family:'Times New Roman', Times, serif;
         }

         /* Ajustes responsivos para pantallas pequeñas */
   @media (max-width: 900px) {
   #visualizer {
      height: 280px;
      width: 96vw;
      padding: 10px;
   }
   .bar {
      width: clamp(4px, calc(80vw / var(--n-bars, 40)), 14px);
   }
   .controls {
      flex-direction: column;
      gap: 8px;
      font-size: 0.9rem;
   }
   button {
      width: 100%;
      max-width: 300px;
   }
   }

   @media (max-width: 600px) {
   #visualizer {
      height: 220px;
      width: 98vw;
      margin: 8px auto 20px;
   }
   .bar {
      width: clamp(3px, calc(90vw / var(--n-bars, 40)), 12px);
   }
   h1 {
      font-size: 1.5rem;
      margin: 16px 0 8px;
   }
   }
   #visualizer{
   aspect-ratio: 5 / 2; /* mantiene proporción */
   max-height: 500px;
   }
   #visualizer{
  height: 360px; /* antes 260px */
  width: min(1200px, 95vw); /* un poco más ancho */
  margin: 16px auto 32px;
  padding: 14px 10px;
  background: linear-gradient(180deg, #797979, #2c2c2c 60%);
  border-radius: 18px;
  border: 1px solid #222a57;
  box-shadow: 0 20px 50px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
#visualizer:hover{
  height: 360px; /* antes 260px */
  width: min(1200px, 95vw); /* un poco más ancho */
  margin: 16px auto 32px;
  padding: 14px 10px;
  background: rgb(12, 12, 12);
  border-radius: 18px;
  border: 1px solid #222a57;
  box-shadow: 0 20px 50px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar{
  width: clamp(5px, calc(65vw / var(--n-bars, 40)), 18px); /* más anchas */
}

