/* ===============================
   ANIMATION
================================ */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeZoom {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===============================
   GLOBAL SAFETY
================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ===============================
   ROOT THEME
================================ */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #555555;
  --card: #fdfdfd;
  --border: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* ===============================
   LAYOUT
================================ */
.container {
  max-width: 860px;
  margin: auto;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ===============================
   HERO
================================ */
.hero {
  text-align: center;
  padding: 2.5rem 1rem;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.8s ease-out forwards;
}

.profile-img {
  width: 120px;
  margin: 1rem auto;
  display: block;
  animation: fadeZoom 1s ease-out forwards;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0.5rem 0;
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
}

.card p,
.card li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  font-weight: 400;
}

.card ul {
  margin-top: 0.4rem;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.4rem;
}

/* bullet lebih soft */
.card li::marker {
  color: #9ca3af;
}


/* ===============================
   SECTION TITLE
================================ */
h2.section-title {
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.3rem;
}

/* ===============================
   CARD
================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.8s ease-out forwards;
}

.card h3 {
  margin: 0;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.card:hover {
  background-color: #f0f0f0;
}

/* ===============================
   TECH ICONS
================================ */
.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.tech-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.tech-icons img:hover {
  transform: scale(1.1);
}

/* ===============================
   SONG GRID
================================ */
.songs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 1rem;
}

/* Desktop */
@media (min-width: 900px) {
  .songs-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}


/* ===============================
   SONG CARD UTAMA
================================ */
.song-card {
  display: flex;
  flex-direction: column;
  align-items: center;

  min-height: 360px;
  padding: 14px;
  border-radius: 10px;

  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.song-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  text-align: center;
}


.song-card:hover {
  background-color: var(--card);
}

/* ===============================
   IFRAME
================================ */
.song-card iframe {
  width: 100% !important;
  max-width: 100% !important;

  height: 280px;
  display: block;

  border-radius: 10px;

  overflow-y: hidden !important;
  overflow-x: hidden !important;

  margin: 10px auto 16px auto;
  vertical-align: middle;
}

/* paksa hilangkan scrollbar chrome */
.song-card iframe::-webkit-scrollbar {
  display: none;
}

/* firefox */
.song-card iframe {
  scrollbar-width: none;
}

/* ===============================
   LYRICS
================================ */
.lyrics {
  display: none;

  /* jarak aman dari iframe */
  margin: 6px 0 10px 0;

  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;

  width: 100%;
}

/* ===============================
   RESPONSIVE
================================ */

@media (min-width: 900px) {
  .song-card iframe {
    height: 240px;
  }
}


@media (min-width: 768px) {
  .songs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .container {
    padding: 1.2rem;
  }

  .card {
    padding: 1rem;
  }

  .song-card iframe {
    height: 220px;
  }
}

/* ===============================
   LINKS & FOOTER
================================ */
.links {
  text-align: center;
  margin: 3rem 0 2rem;
}

.links a {
  margin: 0.4rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--text);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 3rem;
}

.song-card {
  min-height: 320px;
  padding: 12px;
}
