/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafafa;
  --bg-alt: #fff5f8;
  --white: #ffffff;
  --black: #1a1a1a;
  --dark: #2d2d2d;
  --gray: #6b6b6b;
  --gray-light: #e0e0e0;
  --pink: #e84393;
  --pink-light: #fd79a8;
  --pink-soft: #ffe6ef;
  --pink-pale: #fff0f5;
  --pink-glow: rgba(232, 67, 147, 0.12);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 40%, #e84393 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,67,147,0.15) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 3%) scale(1.1); }
}

.hero-content { position: relative; z-index: 1; }

.music-icon {
  font-size: 5rem;
  color: var(--pink-light);
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(253,121,168,0.5));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-15px) rotate(5deg); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--pink);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232,67,147,0.4);
}

.btn:hover {
  background: var(--pink-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,67,147,0.5);
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  padding: 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-link {
  padding: 16px 24px;
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

/* ===== SECTIONS ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--black);
}

.section-desc {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(232,67,147,0.08);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pink-soft);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--black);
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== LIFE GRID ===== */
.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

.life-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--pink);
  transition: var(--transition);
}

.life-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.life-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--pink-soft);
  display: block;
  margin-bottom: 0.5rem;
}

.life-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.life-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== DIPLOMA ===== */
.diploma-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.diploma-point {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.diploma-point:hover {
  border-left: 4px solid var(--pink);
  transform: translateX(4px);
}

.diploma-point h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.diploma-point p {
  color: var(--gray);
  font-size: 0.95rem;
}

.diploma-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 2px solid var(--pink-soft);
}

.diploma-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.diploma-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--pink);
}

.diploma-path { text-align: left; }

.path-step {
  background: var(--pink-pale);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--pink-soft);
}

.path-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: var(--pink);
  margin: 4px 0;
}

/* ===== MUSIC TABLES ===== */
.table-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.music-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}

.music-table thead {
  background: var(--black);
  color: var(--white);
}

.music-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.music-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.music-table tbody tr:hover {
  background: var(--pink-pale);
  transition: var(--transition);
}

.music-table tbody tr:last-child td {
  border-bottom: none;
}

.note-cell {
  font-weight: 700;
  color: var(--pink);
  font-size: 1.05rem;
}

/* ===== KEYBOARD ===== */
.keyboard-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.keyboard {
  display: flex;
  position: relative;
  height: 200px;
  user-select: none;
}

.white-key {
  width: 80px;
  height: 200px;
  background: var(--white);
  border: 2px solid #ddd;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.white-key:hover,
.white-key:active {
  background: var(--pink-pale);
  border-color: var(--pink);
}

.white-key .key-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
}

.white-key .key-sub {
  font-size: 0.8rem;
  color: var(--gray);
}

.black-key {
  width: 50px;
  height: 120px;
  background: var(--black);
  border-radius: 0 0 6px 6px;
  position: absolute;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.black-key span {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.black-key:hover,
.black-key:active {
  background: var(--pink);
}

.bk-1 { left: 53px; }
.bk-2 { left: 133px; }
.bk-4 { left: 293px; }
.bk-5 { left: 373px; }
.bk-6 { left: 453px; }

/* ===== TIPS ===== */
.tips-list {
  max-width: 700px;
  margin: 3rem auto 0;
}

.tip {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tip:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-lg);
}

.tip-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.tip h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.tip p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
  text-align: center;
}

.footer-music {
  font-size: 2rem;
  color: var(--pink-light);
  margin-bottom: 1rem;
  letter-spacing: 8px;
  animation: float 4s ease-in-out infinite;
}

.footer-sub {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .diploma-content {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .life-grid {
    grid-template-columns: 1fr;
  }

  .keyboard {
    transform: scale(0.6);
    transform-origin: top center;
  }

  .section { padding: 4rem 0; }
  .section-title { font-size: 1.7rem; }
}

/* ===== SCROLL ANIMATIONS ===== */
.card, .life-item, .diploma-point, .tip, .table-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible, .life-item.visible, .diploma-point.visible, .tip.visible, .table-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYBOARD CLICK FEEDBACK ===== */
.white-key.clicked {
  background: var(--pink-soft);
  transform: scale(0.97);
}

.black-key.clicked {
  background: var(--pink);
  transform: scale(0.95);
}