/* 🌌 Neon Techy Background */
* {
  box-sizing: border-box; /* fix layout issues */
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background: url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?auto=format&fit=crop&w=1950&q=80') no-repeat center center fixed; /* music-themed background */
  background-size: cover;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a1d);
  opacity: 0.7;
  z-index: -1;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0%,100% { background-position:0% 50%; }
  50% { background-position:100% 50%; }
}

/* Neon colors */
:root {
  --neon-blue: #00f0ff;
  --neon-purple: #8a2be2;
  --neon-green: #00ff99;
  --neon-red: #ff0057;
  --card-bg: rgba(28,28,30,0.85);
}

/* Hero */
.hero {
  text-align: center;
  padding: 100px 20px;
  color: var(--neon-blue);
  text-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-purple);
}

.hero h1 {
  font-size: 70px; /* increased heading */
  margin: 0;
}

.hero p {
  font-size: 22px;
  margin-top: 15px;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
}

/* Search Box */
.search-box {
  text-align: center;
  margin: 30px 0;
}
.search-box input {
  padding: 14px;
  width: 300px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  box-shadow: 0 0 12px var(--neon-blue);
  font-size: 16px;
}
.button-neon {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  background: var(--neon-blue);
  color: #111;
}
.button-neon:hover {
  background: var(--neon-green);
  box-shadow: 0 0 18px var(--neon-green), 0 0 28px var(--neon-blue);
}

/* Results & Cards */
.results, .section-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 20px;
}

.card, .template-card {
  background: var(--card-bg);
  border-radius: 14px;
  flex: 1 1 220px; /* proper flex basis */
  max-width: 220px;
  min-width: 180px;
  text-align: center;
  padding: 15px;
  color: #fff;
  box-shadow: 0 0 15px var(--neon-blue), 0 0 25px var(--neon-purple);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(5px);
}

.card img, .template-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 2px solid var(--neon-blue);
}

.card h3, .card p, .template-card h3, .template-card p {
  margin: 5px 0;
  font-size: 14px;
  word-wrap: break-word;
}

/* 🔊 Audio inside card */
.card audio {
  width: 100%;
  max-width: 100%;
  margin: 10px 0;
  outline: none;
}

.card:hover, .template-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--neon-green), 0 0 35px var(--neon-blue);
}

/* Section */
.section {
  padding: 50px 20px;
  margin: 30px 0;
  background: rgba(0,0,0,0.5);
  border-radius: 14px;
  position: relative;
}

/* Lyrics Modal */
.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: #111;
  padding: 25px;
  border-radius: 14px;
  width: 85%;
  max-width: 750px;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  color: var(--neon-blue);
  box-shadow: 0 0 25px var(--neon-blue), 0 0 35px var(--neon-purple);
  backdrop-filter: blur(6px);
}
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: var(--neon-red);
}
.close:hover { transform: scale(1.2); }

/* Responsive */
@media (max-width: 768px){
  .results, .section-grid { flex-direction: column; align-items: center; }
  .card, .template-card { max-width: 90%; }
  .search-box input { width: 80%; }
  .hero h1 { font-size: 50px; }
  .hero p { font-size: 18px; }
}



