.projects {
  padding: 6rem 2rem;
  position: relative;
  color: white;
  overflow: hidden;
  z-index: 1;
}

projects {
  padding: 6rem 2rem;
  background:
    linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.75)),
    url('/src/IMG/projects/background.png') no-repeat center center / cover;
  position: relative;
  color: white;
  overflow: hidden;
}

    .section-title-decoration {
      display: block;
      text-align: center;
      font-family: 'Fira Code', monospace;
      color: rgba(255, 255, 255, 0.3);
      margin-bottom: 0.5rem;
      font-size: 0.875rem;
    }

    .projects h2 {
      text-align: center;
      font-size: 1.75rem;
      margin-bottom: 1.5rem;
      background: linear-gradient(to right, #ffffff, #fefefe);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
      padding: 1rem;
    }

    .project-card {
      background: rgba(30, 41, 59, 0.5);
      border-radius: 1rem;
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      border: 1px solid rgba(148, 163, 184, 0.1);
      position: relative;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(8px);
      display: flex;
      flex-direction: column;
    }

    /* Fondos personalizados para cada proyecto */
    .ethernalot-card {
      background: linear-gradient(135deg, rgba(129, 86, 46, 0.481), rgba(202, 136, 56, 0.95));
    }

    .marbella-card {
      background: linear-gradient(135deg, rgba(123, 35, 122, 0.95), rgba(128, 24, 137, 0.95));
    }

    .antonella-card {
      background: linear-gradient(135deg, rgba(21, 123, 128, 0.95), rgba(34, 189, 197, 0.95));
    }

    .firebot-card {
      background: linear-gradient(135deg, rgba(128, 73, 21, 0.95), rgba(197, 107, 34, 0.95));
    }

    .drako-card {
      background: linear-gradient(135deg, rgba(128, 21, 21, 0.95), rgba(197, 34, 34, 0.95));
    }

    .saturnina-card {
      background: linear-gradient(135deg, rgba(128, 21, 114, 0.95), rgba(197, 34, 186, 0.95));
    }

    /* Efectos hover con sombras de color */
    .ethernalot-card:hover {
      box-shadow: 0 10px 25px rgba(202, 119, 56, 0.4);
      border-color: rgba(202, 119, 56, 0.5);
    }

    .marbella-card:hover {
      box-shadow: 0 10px 25px rgba(154, 48, 96, 0.4);
      border-color: rgba(154, 48, 96, 0.5);
    }

    .antonella-card:hover {
      box-shadow: 0 10px 25px rgba(34, 184, 197, 0.4);
      border-color: rgba(34, 184, 197, 0.5);
    }

    .firebot-card:hover {
      box-shadow: 0 10px 25px rgba(197, 86, 34, 0.4);
      border-color: rgba(197, 86, 34, 0.5);
    }

    .drako-card:hover {
      box-shadow: 0 10px 25px rgba(197, 34, 34, 0.4);
      border-color: rgba(197, 34, 34, 0.5);
    }

    .saturnina-card:hover {
      box-shadow: 0 10px 25px rgba(192, 34, 197, 0.4);
      border-color: rgba(192, 34, 197, 0.5);
    }

    .project-card:hover {
      transform: translateY(-5px);
    }

    /* Contenedor de imagen */
    .project-image-container {
      position: relative;
      height: 200px;
      overflow: hidden;
      background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    }

    .project-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .project-image-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
          120deg,
          transparent,
          rgba(255, 255, 255, 0.1),
          transparent
      );
      transition: 0.5s;
      z-index: 1;
    }

    .project-card:hover .project-image-container::before {
      left: 100%;
    }

    .project-card:hover .project-image {
      transform: scale(1.08);
    }

    .project-icon {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background: rgba(228, 228, 228, 0.3);
      padding: 0.5rem;
      border-radius: 8px;
      backdrop-filter: blur(4px);
      transition: transform 0.2s ease;
      z-index: 2;
    }

    .project-card:hover .project-icon {
      transform: scale(1.05) rotate(-3deg);
    }

    /* Contenido de la tarjeta */
    .project-content {
      padding: 1.5rem;
      position: relative;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
    }

    .project-title {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
      color: white;
    }

    .project-description {
      color: rgb(255, 255, 255);
      margin-bottom: 1.5rem;
      line-height: 1.5;
      font-size: 0.875rem;
      flex-grow: 1;
    }

    /* Tags */
    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .tag {
      background: rgba(255, 255, 255, 0.12);
      color: white;
      padding: 0.35rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      backdrop-filter: blur(2px);
      transition: all 0.2s ease;
    }

    /* Efectos hover para tags según proyecto */
    .ethernalot-card .tag:hover {
      background: rgba(202, 161, 56, 0.7);
    }

    .marbella-card .tag:hover {
      background: rgba(219, 39, 119, 0.7);
    }

    .antonella-card .tag:hover {
      background: rgba(34, 197, 94, 0.7);
    }

    .firebot-card .tag:hover {
      background: rgba(197, 105, 34, 0.7);
    }

    .drako-card .tag:hover {
      background: rgba(144, 7, 7, 0.7);
    }

    .saturnina-card .tag:hover {
      background: rgba(222, 111, 207, 0.7);
    }

    /* Enlaces - BOTONES AL MISMO NIVEL */
    .project-links {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      padding: 0;
      margin-top: auto;
    }

    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      color: white;
      text-decoration: none;
      font-weight: 500;
      font-size: 0.875rem;
      transition: all 0.2s ease;
      border-radius: 8px;
      position: relative;
    }

    /* Estilos de enlaces por proyecto */
    .ethernalot-card .project-link {
      background: linear-gradient(135deg, #8e5b18, #a26b2d);
    }

    .marbella-card .project-link {
      background: linear-gradient(135deg, #cd3172, #862d59);
    }

    .antonella-card .project-link {
      background: linear-gradient(135deg, #155e80, #228cc5);
    }

    .firebot-card .project-link {
      background: linear-gradient(135deg, #802e15, #c56e22);
    }

    .drako-card .project-link {
      background: linear-gradient(135deg, #801515, #c52522);
    }

    .saturnina-card .project-link {
      background: linear-gradient(135deg, #791580, #c52279);
    }

    .project-link:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .project-link::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 100%;
      height: 2px;
      background: white;
      transform: scaleX(0);
      transition: transform 0.3s ease;
    }

    .project-link:hover::after {
      transform: scaleX(1);
    }

    /* Texto "Y DEMÁS..." */
    .more-projects {
      text-align: center;
      grid-column: 1 / -1;
      margin-top: 0.5rem;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 400;
      font-size: 0.875rem;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .projects {
        padding: 3rem 1rem;
      }
      
      .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
      }

      .project-image-container {
        height: 180px;
      }

      .project-content {
        padding: 1.25rem;
      }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
      .projects-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }