/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #0f1117;
  color: white;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #cfcfcf;
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.spotify-btn {
  background: #1db954;
  color: black !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.spotify-btn:hover {
  background: #1ed760;
}

/* HERO SECTION */
.hero-area {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;               /* ✅ make slide a flex container */
  align-items: center;         /* ✅ vertical center */
  justify-content: center;     /* ✅ horizontal center */
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;           /* ✅ center the text horizontally */
  color: white;
  max-width: 800px;
  padding: 20px;
}


.hero-content h6 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cfcfcf;
}

.hero-content h1 {
  font-size: 48px;
  margin: 20px 0;
}

.hero-content h1 span {
  color: #1db954;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  border-radius: 30px;
  background: #1db954;
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

/* FADE-UP ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HOME QUOTE SECTION */
.home-quote {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1117;
  text-align: center;
  padding: 0 20px;

  /* optional fade-in on scroll */
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.home-quote.show {
  opacity: 1;
  transform: translateY(0);
}

.quote-wrapper h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.2;
  max-width: 900px;
  margin-bottom: 20px;
  color: #ffffff;
}

.quote-wrapper p {
  font-size: 18px;
  color: #bdbdbd;
  letter-spacing: 0.5px;
}

/* OTHER SECTIONS PLACEHOLDER */
.section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #11131a;
  margin-top: 20px;
}

/* ======= Detect My Mood Section ======= */
.mood-section {
  padding: 80px 10%;
  text-align: center;
  background: #0f1117;
  color: #fff;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 50px;
}

.mood-actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.detect-box {
  border: 1px solid #222;
  padding: 30px;
  width: 280px;
  border-radius: 12px;
  background: #181a20;
}

.detect-box h4 {
  margin-bottom: 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#startCamBtn,
.upload-btn {
  background: #1db954;
  color: #000;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  display: inline-block;
  font-size: 14px;
  margin-top: 10px;
  transition: 0.3s;
}

#startCamBtn:hover,
.upload-btn:hover {
  background: #1ed760;
}

video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #000;
}

.hint {
  font-size: 12px;
  color: #777;
  margin-top: 8px;
}

/* Result area */
.result-area {
  margin-top: 60px;
}

.emotion-text {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.recommended-text {
  font-size: 12px;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 20px;
}

/* Songs list */
.songs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.song-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #222;
  border-radius: 8px;
  background: #181a20;
}

.song-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.song-left img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.song-info h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.song-info p {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}

.play-btn {
  font-size: 20px;
  color: #1db954;
  cursor: pointer;
  transition: 0.2s;
}

.play-btn:hover {
  color: #1ed760;
}


/* Text-to-Emotion Section Specific */
.text-mood-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

#textMoodInput {
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid #222;
  width: 300px;
  background: #181a20;
  color: #fff;
  font-size: 16px;
  outline: none;
}

#textMoodInput::placeholder {
  color: #888;
}

#textMoodBtn {
  background: #1db954;
  color: #000;
  padding: 12px 25px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

#textMoodBtn:hover {
  background: #1ed760;
}


/* Final Quote */
.final-quote {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #11131a;
  color: #1db954;
  text-align: center;
  padding: 40px 20px;
}

.final-quote h2 {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.3;
}

/* Footer */
.footer {
  background: #0f1117;
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid #222;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #1db954;
}
