/* Root Variables & Reset */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.06);
  --accent-color: #e26a92;
  --secondary-text: #777;
  --footer-bg: #f5eedd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --book-bg-left: #f7e9d3;
  --book-bg-right: #f4dfc2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.5s, color 0.5s;
}

/* Header Layout */
.header {
  padding: 20px 40px 10px;
  position: relative;
  text-align: center;
}

/* Kiri: From D */
.left-text {
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 14px;
  font-weight: bold;
  cursor: default;
}

/* Tengah: FOR LOVE */
.center-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: default;
}

/* Navigasi Menu */
.nav-menu {
  margin-top: 10px;
  cursor: default;
}

.nav-menu a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #e26a92;
}

/* Toggle Sun */
.theme-toggle {
  position: absolute;
  top: 18px;
  right: 40px;
}

.theme-toggle button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: default;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.theme-toggle button:hover {
  color: #e26a92;
}

/* Slideshow */
.photo-slideshow {
  width: 600px;
  aspect-ratio: 16 / 9;
  margin: 80px auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.photo-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.photo-slideshow img.active {
  opacity: 1;
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&display=swap');
.book-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background-color: #f3e1c4;
  padding: 60px 0;
}

.book-cover {
  background-color: #6e3e1c;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.book {
  display: flex;
  width: 800px;
  height: 500px;
  border-radius: 12px;
  background: #f7e9d3;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.15),
    inset 0 0 40px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Garis tengah buku */
.book::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(0, 0, 0, 0.05) 70%,
    rgba(0, 0, 0, 0.25) 100%
  );
  transform: translateX(-50%);
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.2),
    inset 0 0 10px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  z-index: 2;
}

.book-page {
  flex: 1;
  padding: 40px;
  position: relative;
}

.left-page {
  background: linear-gradient(90deg, #f7e9d3 80%, #f3dcc1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-page {
  background: linear-gradient(90deg, #f3dcc1, #f7e9d3 80%);
}

/* Foto */
.photo-frame {
  border: 4px solid var(--card-border);
  padding: 10px;
  border-radius: 20px;
  background: var(--card-bg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: rotate(-2deg);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 280px;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.photo-frame img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

/* Handwrite */
.page-content {
  padding: 20px;
}

.handwriting {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  line-height: 1.6;
  color: #2a1b0f;
  text-align: left;
  white-space: pre-wrap;
  cursor: default;
  position: relative;
}

.handwriting .text-top {
  display: block;
  text-align: right;
  margin-bottom: 8px;
}

.handwriting .text-body {
  display: block;
  text-align: left;
  margin-top: 5px;
}

/* Efek halaman */
.book-page::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  background: radial-gradient(rgba(0,0,0,0.08), transparent 70%);
  opacity: 0.3;
}

.left-page::after {
  right: 0;
}

.right-page::after {
  left: 0;
}

/* Notes Section */
.notes-section {
  margin: 80px auto;
  margin-top: 10%;
  max-width: 1000px;
  padding: 0 20px;
  text-align: center;
}

.notes-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color);
  cursor: default;
}

/* Tabs */
.notes-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.notes-tabs .tab {
  background: transparent;
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.25s;
}

.notes-tabs .tab.active {
  background: rgba(226,106,146,0.12);
  border-color: rgba(226,106,146,0.25);
  color: #e26a92;
}

.notes-tabs .tab:hover {
  color: #e26a92;
}

/* Cards */
.notes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.note-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  height: 160px;
  position: relative;
  padding: 18px;
  box-shadow: 0 6px 18px var(--shadow-color);
  cursor: pointer;
  overflow: hidden;
  transform: translateY(40px);
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), 
            transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), 
            filter 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.note-card.show {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.note-date {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-color);
}

.note-footer {
  position: absolute;
  left: 14px;
  bottom: 12px;
}

.note-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #000;
  background: #e26a92;
}

.note-card:hover {
  transform: translateY(0);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.overlay.active {
  display: flex;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s;
}

.overlay.active .overlay-backdrop {
  opacity: 1;
}

.overlay-card {
  position: relative;
  width: min(880px, 92vw);
  max-height: 80vh;
  overflow: auto;
  border-radius: 12px;
  padding: 28px 32px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--card-border);
}

.overlay.active .overlay-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.overlay-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-color);
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.overlay-date {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-color);
}

.overlay-tag {
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  background: #e26a92;
  color: white;
  font-size: 13px;
}

.overlay-content {
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 16px;
  text-align: left;
  background: transparent;
  padding-bottom: 30px;
}

/* warna kategori */
.note-card[data-category="love"] .note-tag,
.overlay-tag[data-cat="love"] { background: #e26a92; }
.note-card[data-category="health"] .note-tag,
.overlay-tag[data-cat="health"] { background: #f4c27a; color: #000; }
.note-card[data-category="career"] .note-tag,
.overlay-tag[data-cat="career"] { background: #c8b3ea; color: #000; }
.note-card[data-category="you"] .note-tag,
.overlay-tag[data-cat="you"] { background: #8fd3d6; color: #000; }
.note-card[data-category="me"] .note-tag,
.overlay-tag[data-cat="me"] { background: #aee1c0; color: #000; }

@media (max-width: 600px) {
  .note-card { height: 140px; padding: 14px; }
  .overlay-card { padding: 20px; width: 96vw; max-height: 86vh; }
}

.music {
  text-align: center;
  padding: 100px 0;
  font-family: 'Poppins', sans-serif;
  background: #f3e1c4;
  color: var(--text-color);
  cursor: default;
}

.music h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.music p {
  color: var(--secondary-text);
  margin-bottom: 40px;
}

.music-card {
  position: relative;
  width: 320px;
  height: 370px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 25px var(--shadow-color);
  overflow: hidden;
}

.music-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 15px;
}

.music-card:hover {
  transform: translateY(-5px);
}

.album-cover {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artist {
  font-size: 0.9rem;
  color: var(--secondary-text);
}

.video-section {
  text-align: center;
  margin: 100px auto;
  max-width: 800px;
  color: var(--text-color);
  cursor: default;
}

.video-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.video-section p {
  font-size: 1rem;
  color: var(--secondary-text);
  margin-bottom: 30px;
}

.video-section video {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* Audio Player */
.audio-icon-wrapper {
  width: 4rem;
  height: 4rem;
  font-size: 2.5rem;
  position: fixed;
  bottom: 2.5rem;
  right: 2rem;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
  backdrop-filter: blur(5px);
  animation: rotating 4s linear infinite;
  transform-origin: center;
  z-index: 999;
}

.audio-icon-wrapper.rotating {
  animation: rotating 4s linear infinite;
}

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

footer.footer {
  background-color: var(--footer-bg);
  color: var(--text-color);
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-photo {
  width: 55px;
  height: 55px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.footer-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--secondary-text);
  font-style: italic;
  margin: 0;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  color: var(--text-color);
  font-size: 0.9rem;
  margin: 0;
}

body, .note-card, .music-card, .overlay-card, footer.footer {
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.book, .photo-frame {
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}