/* Cassette Player Styling for Contact Section */

.cassette-player {
  max-width: 800px;
  margin: 0 auto 60px;
  background: var(--secondary);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.cassette-player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.2)
  );
  pointer-events: none;
  z-index: 1;
}

.cassette-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.cassette {
  width: 80%;
  height: 140px;
  background: #333;
  border-radius: 8px;
  border: 1px solid #111;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.cassette-label {
  width: 90%;
  height: 80%;
  background: linear-gradient(to right, var(--wood-light), var(--tertiary));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
}

.cassette-label h3 {
  font-family: "Space Mono", monospace;
  color: #111;
  margin-bottom: 5px;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.cassette-label .side {
  font-size: 0.8rem;
  font-weight: bold;
  color: #111;
  position: absolute;
  top: 10px;
  right: 10px;
}

.tape-reels {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin-top: 15px;
}

.reel {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #222;
  border: 6px solid #444;
  position: relative;
}

.reel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #777;
  border-radius: 50%;
}

.reel.left-reel {
  animation: spin 8s linear infinite;
}

.reel.right-reel {
  animation: spin 8s linear infinite reverse;
}

.cassette-buttons {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.button:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.button i {
  font-size: 1.2rem;
}

.player-display {
  width: 100%;
  background: #111;
  border-radius: 10px;
  padding: 15px;
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-top: 20px;
}

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.track-info {
  flex: 1;
}

.track-info p {
  margin: 0 0 10px;
  font-family: "Space Mono", monospace;
  letter-spacing: 1px;
}

.track-email {
  font-size: 1.1rem;
  font-family: "Space Mono", monospace;
}

.email-link {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.email-link:hover {
  color: #fff;
  text-shadow: 0 0 5px var(--primary);
}

.track-time {
  font-family: "Space Mono", monospace;
  font-size: 1.2rem;
  color: var(--accent);
}

.equalizer {
  display: flex;
  justify-content: space-between;
  height: 40px;
  align-items: flex-end;
}

.eq-bar {
  width: 18%;
  background: var(--primary);
  height: 10%;
  border-radius: 2px 2px 0 0;
}

.eq-bar:nth-child(1) {
  animation: equalize 1.2s ease-in-out infinite;
  animation-delay: 0.1s;
}

.eq-bar:nth-child(2) {
  animation: equalize 1.8s ease-in-out infinite;
  animation-delay: 0.3s;
}

.eq-bar:nth-child(3) {
  animation: equalize 1.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.eq-bar:nth-child(4) {
  animation: equalize 1.7s ease-in-out infinite;
  animation-delay: 0.2s;
}

.eq-bar:nth-child(5) {
  animation: equalize 1.4s ease-in-out infinite;
  animation-delay: 0.4s;
}

.contact .social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.contact .social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--tertiary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.contact .social-link:hover {
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes equalize {
  0%,
  100% {
    height: 10%;
  }
  50% {
    height: 80%;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .cassette {
    width: 100%;
    height: 120px;
  }

  .cassette-buttons {
    gap: 10px;
  }

  .button {
    width: 40px;
    height: 40px;
  }

  .track-email {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .cassette-player {
    padding: 15px;
  }

  .cassette-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .player-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}
