/* Vinyl Record Box Style for Projects Section */

.vinyl-projects {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.vinyl-projects .container {
  max-width: 1600px;
  width: 100%;
}

/* Background texture */
.vinyl-projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><rect width="20" height="20" fill="none"/><path d="M0,0 L20,20 M20,0 L0,20" stroke="rgba(217,165,102,0.05)" stroke-width="0.5"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.vinyl-projects .section-title {
  font-family: "Alfa Slab One", cursive;
  color: var(--primary);
  text-align: center;
  font-size: 3rem;
  margin-bottom: 50px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

@media (max-width: 480px) {
  .vinyl-projects .section-title {
    font-size: 1.5rem;
    line-height: 1.1;
    padding: 0 10px;
    overflow-wrap: anywhere; /* evita corte/clipping */
  }
}

/* Vinyl Collection Layout */
.vinyl-collection {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  width: 100%;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Vinyl Box */
.vinyl-box {
  position: relative;
  flex: 1;
  min-width: 0; /* Permite que o elemento encolha abaixo da sua largura mínima de conteúdo */
  height: 650px;
  background: linear-gradient(
    to bottom,
    var(--tertiary) 0%,
    var(--secondary) 100%
  );
  border-radius: 5px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.5), 0 10px 10px rgba(0, 0, 0, 0.4);
  overflow: visible;
  perspective: 1000px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.vinyl-box::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px 0 0 3px;
}

.vinyl-box:hover {
  transform: translateY(-15px) rotateY(-5deg);
  box-shadow: 15px 25px 30px rgba(0, 0, 0, 0.6),
    5px 15px 15px rgba(0, 0, 0, 0.5);
}

/* Vinyl Record Sleeve */
.vinyl-sleeve {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, #222 0%, #111 100%);
  border-radius: 3px;
  transform: translateX(-20px) rotateY(-5deg) translateZ(20px);
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.vinyl-box:hover .vinyl-sleeve {
  transform: translateX(10px) rotateY(-15deg) translateZ(40px);
}

/* Vinyl Cover (Project Image) */
.vinyl-cover {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.vinyl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.vinyl-box:hover .vinyl-cover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Vinyl Record */
.vinyl-record {
  position: absolute;
  top: 2%;
  right: 150px;
  width: 260px;
  height: 260px;
  background: #0a0a0a;
  border-radius: 50%;
  transform: translateY(-50%) rotate(15deg);
  transition: all 0.5s ease;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  transform-origin: center center;
}

/* Vinyl Record Center and Grooves */
.vinyl-record::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    var(--primary) 0%,
    var(--primary) 30%,
    #0a0a0a 31%,
    #0a0a0a 100%
  );
  border-radius: 50%;
}

.vinyl-record::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  background: repeating-radial-gradient(
    circle,
    transparent 0px,
    transparent 4px,
    rgba(255, 255, 255, 0.03) 5px,
    rgba(255, 255, 255, 0.03) 6px
  );
  border-radius: 50%;
}

/* Project Info */
.vinyl-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: var(--primary);
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vinyl-info h3 {
  font-family: "Space Mono", monospace;
  font-size: 1.5rem;
  margin-bottom: 10px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.vinyl-project-description {
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: rgba(217, 165, 102, 0.8);
  height: 80px;
  overflow: hidden;
}

.vinyl-box:hover .vinyl-info h3 {
  color: #fff;
}

/* Project Tags */
.vinyl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.vinyl-tags span {
  background: rgba(217, 165, 102, 0.2);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: "Space Mono", monospace;
  transition: all 0.3s ease;
}

.vinyl-box:hover .vinyl-tags span {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.05);
}

/* View Button */
.vinyl-button {
  display: inline-block;
  padding: 8px 15px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.vinyl-box:hover .vinyl-button {
  background: var(--primary);
  color: var(--secondary);
}

/* View All Button */
.vinyl-view-all {
  text-align: center;
  margin-top: 60px;
}

.vinyl-view-all-button {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: "Alfa Slab One", cursive;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 30px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
}

.vinyl-view-all-button:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1400px) {
  .vinyl-sleeve {
    width: 230px;
    height: 230px;
    right: -15px;
  }

  .vinyl-record {
    width: 220px;
    height: 220px;
    right: 100px;
  }

  .vinyl-record::after {
    width: 210px;
    height: 210px;
  }

  .vinyl-project-description {
    height: 90px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1200px) {
  .vinyl-box {
    height: 550px;
  }

  .vinyl-sleeve {
    width: 200px;
    height: 200px;
    right: -15px;
    top: 15px;
  }

  .vinyl-record {
    width: 190px;
    height: 190px;
    right: 80px;
    top: 0;
  }

  .vinyl-record::after {
    width: 180px;
    height: 180px;
  }

  .vinyl-project-description {
    height: 100px;
  }
}

@media (max-width: 992px) {
  .vinyl-box {
    height: 500px;
  }

  .vinyl-sleeve {
    width: 180px;
    height: 180px;
    right: -10px;
  }

  .vinyl-record {
    width: 170px;
    height: 170px;
    right: 70px;
  }

  .vinyl-record::after {
    width: 160px;
    height: 160px;
  }

  .vinyl-project-description {
    font-size: 0.8rem;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .vinyl-collection {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }

  .vinyl-box {
    width: 85%;
    max-width: 500px;
    height: auto;
    min-height: 450px;
    padding-bottom: 20px;
  }

  .vinyl-sleeve {
    width: 220px;
    height: 220px;
    right: -15px;
    top: 15px;
  }

  .vinyl-record {
    width: 200px;
    height: 200px;
    right: 90px;
    top: 0;
  }

  .vinyl-record::after {
    width: 190px;
    height: 190px;
  }

  .vinyl-info {
    position: relative;
    margin-top: 250px;
    bottom: auto;
    left: 20px;
    right: 20px;
    height: auto;
  }

  .vinyl-project-description {
    height: auto;
    max-height: none;
    overflow: visible;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .vinyl-projects {
    padding: 60px 0;
  }

  .vinyl-box {
    width: 95%;
    height: auto;
    min-height: 400px; /* Aumentado para evitar corte de texto */
    padding-bottom: 25px;
    margin-bottom: 40px;
  }

  .vinyl-sleeve {
    width: 180px;
    height: 180px;
    right: -10px;
  }

  .vinyl-record {
    width: 170px;
    height: 170px;
    right: 70px;
  }

  .vinyl-record::after {
    width: 160px;
    height: 160px;
  }

  .vinyl-info {
    margin-top: 200px;
    padding-bottom: 10px;
  }

  .vinyl-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .vinyl-tags {
    margin-bottom: 10px;
  }

  .vinyl-tags span {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .vinyl-project-description {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .vinyl-button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}
