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

:root {
  --bg: #f0f7ff;
  --bg-soft: #e8f2fc;
  --text: #1e3a5f;
  --text-muted: #5a7a9a;
  --accent: #5b9bd5;
  --accent-soft: rgba(91, 155, 213, 0.12);
  --accent-light: #a8d4f0;
  --pink-soft: #f8c8dc;
  --border: rgba(91, 155, 213, 0.18);
  --card: #ffffff;
  --card-shadow: 0 8px 30px rgba(91, 155, 213, 0.1);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Soft gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 10%, rgba(168, 212, 240, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(248, 200, 220, 0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(240, 247, 255, 1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* Sparkles */
.sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(91, 155, 213, 0.55), 0 0 4px 1px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 1;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.3); }
}


/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content {
  max-width: 680px;
  text-align: center;
}

/* Profile photo */
.profile-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(91, 155, 213, 0.4);
  box-shadow: 0 8px 32px rgba(91, 155, 213, 0.25);
}

.profile-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 155, 213, 0.3);
  z-index: 1;
  animation: pulse-ring 3.5s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.eyebrow {
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 4.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.name-tag {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(91, 155, 213, 0.2);
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #5b9bd5, #7eb8e8);
  color: white;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(91, 155, 213, 0.35);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(91, 155, 213, 0.45);
}

/* ===== Sections ===== */
.section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Food & favorites always visible */
.food-grid,
.food-card,
.fav-block,
.music-grid {
  opacity: 1 !important;
  visibility: visible !important;
  display: grid;
}

.fav-block {
  display: block !important;
}

.food-card {
  display: block !important;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--card-shadow);
}

.card-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card-item .value {
  font-size: 0.98rem;
  color: var(--text);
}

/* Dreams / Universities */
/* Why University */
.why-content {
  max-width: 720px;
  margin-top: 2rem;
}

.why-content p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.why-content .emphasis {
  color: var(--text);
  font-size: 1.12rem;
  border-left: 3px solid var(--accent);
  margin-top: 2rem;
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
}

/* Contact */
.contact {
  text-align: center;
  padding-bottom: 5rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.3s ease;
  background: white;
}

.social-link:hover {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(91, 155, 213, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .profile-wrapper {
    width: 130px;
    height: 130px;
  }

  .section {
    padding: 4.5rem 1.5rem;
  }

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

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
}

/* ===== University cards with images ===== */
.uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.uni-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
}

.uni-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(91, 155, 213, 0.2);
  border-color: rgba(91, 155, 213, 0.4);
}

.uni-card.highlight {
  border-color: rgba(91, 155, 213, 0.35);
}

.uni-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.uni-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.uni-card:hover .uni-img {
  transform: scale(1.06);
}

.uni-body {
  padding: 1.25rem 1.35rem 1.4rem;
  position: relative;
}

.uni-logo-text {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, #5b9bd5, #7eb8e8);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 0.6rem;
}

.uni-logo-text.sg {
  background: linear-gradient(135deg, #e85a71, #f08a9a);
}

.uni-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.uni-card .major {
  color: var(--accent);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.uni-card .major span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.uni-card .location {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Food section ===== */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}

.food-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91, 155, 213, 0.15);
}

.food-emoji {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.food-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.food-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.food-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Instagram button highlight */
.social-link.ig {
  background: linear-gradient(135deg, #5b9bd5, #7eb8e8);
  color: white;
  border-color: transparent;
}

.social-link.ig:hover {
  background: linear-gradient(135deg, #4a8bc4, #6aa8d8);
  color: white;
}

/* ===== Character Slider ===== */
.characters {
  text-align: center;
}

.char-slider {
  position: relative;
  max-width: 420px;
  margin: 2rem auto 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.char-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 520px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(91, 155, 213, 0.15);
}

.char-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.45s ease;
  pointer-events: none;
}

.char-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.char-img {
  height: 380px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(91, 155, 213, 0.25));
}

.char-info {
  margin-top: 0.75rem;
}

.char-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: white;
  background: linear-gradient(135deg, #5b9bd5, #7eb8e8);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.char-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.char-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.char-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--accent);
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: var(--card-shadow);
}

.char-nav:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.char-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(91, 155, 213, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 480px) {
  .char-track {
    height: 420px;
  }
  .char-img {
    height: 320px;
  }
}

/* Character background (campus photo) */
.char-slide {
  border-radius: 20px;
  overflow: hidden;
}

.char-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.85) saturate(1.05);
}

.char-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(240, 247, 255, 0.92) 0%, rgba(240, 247, 255, 0.4) 40%, transparent 70%);
}

.char-img {
  position: relative;
  z-index: 2;
}

.char-info {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

/* Uni card as link */
a.uni-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

/* Food images */
.food-img-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.food-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.food-card:hover .food-img {
  transform: scale(1.05);
}

.food-card {
  padding: 1rem 1.2rem 1.5rem;
}

/* ===== Cute bow cursor ===== */
body {
  cursor: url('cursor-bow.png') 18 18, auto;
}

a, button, .uni-card, .char-nav, .dot, .btn, .social-link, .music-toggle {
  cursor: url('cursor-bow.png') 18 18, pointer;
}

/* ===== Hero wallpaper (subtle) ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-wallpaper {
  position: absolute;
  inset: 0;
  background-image: url('wallpaper-study.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.9) brightness(1.05);
}

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

/* ===== Music player (side) ===== */
.music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(91, 155, 213, 0.3);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 28px rgba(91, 155, 213, 0.25);
  max-width: 280px;
}

.music-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.music-player audio {
  width: 240px;
  height: 36px;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .music-player {
    bottom: 1rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
    align-items: center;
  }
  .music-player audio {
    width: 100%;
  }
}


/* ===== Hero side decorations ===== */
.hero-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  pointer-events: none;
  opacity: 0.85;
}

.hero-deco-left {
  left: 3%;
}

.hero-deco-right {
  right: 3%;
}

.deco-img {
  width: auto;
  height: auto;
  max-width: 100px;
  filter: drop-shadow(0 4px 12px rgba(91, 155, 213, 0.15));
  animation: float-deco 4s ease-in-out infinite;
}

.hero-deco-right .deco-img:nth-child(2) {
  animation-delay: 1s;
}

.hero-deco-left .deco-img:nth-child(2) {
  animation-delay: 0.5s;
}

.deco-stars {
  max-width: 70px;
}

.deco-btn {
  max-width: 55px;
}

@keyframes float-deco {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero-deco {
    display: none;
  }
}

/* ===== Language toggle ===== */
.lang-toggle {
  border: 1px solid rgba(91, 155, 213, 0.35);
  background: rgba(91, 155, 213, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  margin-left: 0.5rem;
}

.lang-toggle:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.lang-other {
  opacity: 0.5;
}

.uni-card .degree {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  margin: 0.25rem 0 0.35rem;
  letter-spacing: 0.02em;
}

/* ===== New Favorites layout ===== */
.fav-block {
  margin-top: 2.5rem;
}

.fav-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

.fav-note {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 560px;
  line-height: 1.7;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
}

.music-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91, 155, 213, 0.15);
}

.music-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.65rem;
}

.music-song {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.music-artist {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tools-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: var(--card-shadow);
  min-width: 100px;
}

.tool-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tool-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* Music card as link */
a.music-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border: none;
  padding: 0;
  background: none;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 36px rgba(91, 155, 213, 0.2);
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 25, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

/* Gallery decorative icons */
.gallery-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.gallery-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.9;
  animation: float-deco 3.5s ease-in-out infinite;
}

.gallery-icon:nth-child(2) {
  animation-delay: 0.6s;
  width: 42px;
  height: 42px;
}

.gallery-icon:nth-child(3) {
  animation-delay: 1.2s;
  width: 44px;
  height: 44px;
}

/* ===== Looks section decorations ===== */
.looks-deco-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 560px;
  width: 100%;
}

.looks-deco-wrap .char-slider {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
}

.looks-deco-wrap .char-dots {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
}

.looks-deco {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.looks-deco-left {
  left: 2%;
}

.looks-deco-right {
  right: 2%;
}

.deco-gapernah {
  width: 200px;
  height: auto;
  opacity: 0.95;
  animation: float-deco 4s ease-in-out infinite;
}

.deco-spark {
  width: 52px;
  height: 52px;
  animation: sparkle-twinkle 2s ease-in-out infinite;
}

.spark-1 { animation-delay: 0s; }
.spark-2 { animation-delay: 0.7s; width: 44px; height: 44px; }
.spark-3 { animation-delay: 1.2s; width: 48px; height: 48px; }

@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(15deg); }
}

@media (max-width: 900px) {
  .looks-deco {
    display: none;
  }
}

/* Click sparkles on gallery */
.click-sparkle {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 10000;
  animation: spark-burst 0.7s ease-out forwards;
}

@keyframes spark-burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.2);
  }
}

.deco-utbk {
  width: 180px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(91, 155, 213, 0.25);
  animation: float-deco 4.5s ease-in-out infinite;
  margin-top: 0.5rem;
}

/* Ensure gallery always visible */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  min-height: 200px;
}

.gallery-item {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.gallery-item img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== UPGRADE: A Little World of Khanza ========== */
:root {
  --cream: #fff8f3;
  --strawberry: #f7b6c8;
  --lavender: #c9b8e8;
  --peach: #ffc9a8;
  --butter: #ffe9a8;
  --mint: #c8e8d4;
  --scrap-pink: #fce4ec;
}

[data-theme="dark"] {
  --bg: #1a1520;
  --text: #f5eef5;
  --text-muted: #b8a8b8;
  --card: #2a2230;
  --border: rgba(247, 182, 200, 0.2);
  --accent: #e8a0b8;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(160deg, #fff8f3, #fce4ec 50%, #e8f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner { text-align: center; color: #5b7a9e; }
.loader-star {
  font-size: 2.5rem;
  animation: spin-soft 2s ease-in-out infinite;
  color: #e8a0b8;
}
@keyframes spin-soft {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
}

/* Progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, #f7b6c8, #c9b8e8, #7eb8e8);
  transition: width 0.1s linear;
}

/* Theme + hamburger */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    background: var(--card, #fff);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
    z-index: 200;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.btn-ghost {
  background: transparent !important;
  border: 1.5px solid var(--accent);
  color: var(--accent) !important;
}
.btn-ghost:hover {
  background: rgba(91, 155, 213, 0.1) !important;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 640px;
  margin: 2rem auto 0;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #f7b6c8, #c9b8e8, #7eb8e8);
  border-radius: 3px;
}
.tl-item {
  position: relative;
  margin-bottom: 1.25rem;
}
.tl-dot {
  position: absolute;
  left: -1.35rem;
  top: 1.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e8a0b8;
  z-index: 1;
}
.tl-card {
  width: 100%;
  text-align: left;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 6px 20px rgba(232, 160, 184, 0.12);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.tl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(232, 160, 184, 0.2);
}
.tl-year {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8a0b8;
}
.tl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 0.25rem 0;
  color: var(--text);
}
.tl-desc { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.tl-detail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.tl-hint { font-size: 0.8rem; opacity: 0.75; margin-top: 0.5rem; }

/* Skills constellation */
.skill-map-wrap {
  position: relative;
  max-width: 700px;
  margin: 2rem auto 0;
}
.skill-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
  background: radial-gradient(ellipse at center, rgba(201, 184, 232, 0.15), transparent 70%);
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.skill-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.skill-lines line {
  stroke: rgba(201, 184, 232, 0.45);
  stroke-width: 0.3;
}
.skill-star {
  position: absolute;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.skill-star-core {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  background: radial-gradient(circle, #fff 20%, #e8a0b8 60%, #c9b8e8);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(232, 160, 184, 0.7);
  animation: twinkle 2.5s ease-in-out infinite;
}
.skill-star:nth-child(odd) .skill-star-core { animation-delay: 0.5s; }
.skill-star-label {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0.85;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.25); opacity: 1; }
}
.skill-panel {
  margin-top: 1rem;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  position: relative;
}
.skill-panel-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}
.skill-related { font-size: 0.9rem; color: var(--text-muted); }

/* Journal */
.journal-form {
  background: var(--card, #fffef8);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.jf-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.journal-form input,
.journal-form textarea,
.journal-form select,
.journal-toolbar input,
.bucket-form input,
.bucket-form select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  background: var(--bg, #fff);
  color: var(--text);
}
.journal-form input[name="title"] { flex: 1; min-width: 140px; }
.journal-form textarea { width: 100%; resize: vertical; margin-bottom: 0.75rem; }
.journal-toolbar { margin-bottom: 1rem; }
.journal-toolbar input { width: 100%; max-width: 320px; }
.journal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.journal-card {
  background: linear-gradient(180deg, #fffef8, #fff8f0);
  border: 1px solid #f0e0d0;
  border-radius: 4px 12px 12px 4px;
  padding: 1.1rem 1.2rem;
  box-shadow: 2px 3px 0 rgba(232, 160, 184, 0.15);
  position: relative;
}
[data-theme="dark"] .journal-card {
  background: var(--card);
  border-color: var(--border);
}
.journal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.journal-cat {
  background: #fce4ec;
  color: #c06080;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}
.journal-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.journal-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
}
.journal-actions { display: flex; gap: 0.5rem; }
.journal-actions button {
  border: none;
  background: rgba(91, 155, 213, 0.12);
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}
.j-del { background: rgba(232, 160, 184, 0.2) !important; color: #c06080 !important; }
.empty-hint { color: var(--text-muted); text-align: center; padding: 1.5rem; }

/* Bucket list */
.bucket-progress-wrap {
  height: 10px;
  background: rgba(232, 160, 184, 0.2);
  border-radius: 10px;
  overflow: hidden;
  max-width: 400px;
  margin: 1rem auto 0.35rem;
}
.bucket-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f7b6c8, #c9b8e8);
  border-radius: 10px;
  transition: width 0.4s ease;
}
.bucket-progress-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.bucket-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.bucket-form input { flex: 1; min-width: 180px; max-width: 320px; }
.bucket-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
}
.bucket-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  transition: 0.25s;
}
.bucket-item.done {
  opacity: 0.65;
  background: rgba(200, 232, 212, 0.25);
}
.bucket-item.done .bucket-text { text-decoration: line-through; }
.bucket-item label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  cursor: pointer;
}
.bucket-cat {
  font-size: 0.7rem;
  background: #f0e8ff;
  color: #7a6a9e;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  margin-left: auto;
}
.bucket-del {
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.3rem;
}

/* Mascot */
.mascot {
  position: fixed;
  bottom: 5.5rem;
  left: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 200px;
}
.mascot.minimized .mascot-bubble,
.mascot.minimized .mascot-close { display: none; }
.mascot-bubble {
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  animation: float-deco 3s ease-in-out infinite;
}
.mascot-face {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #f7b6c8;
  background: linear-gradient(145deg, #fff8f3, #fce4ec);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 160, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.mascot-face:hover { transform: scale(1.08); }
.mascot-emoji { font-size: 1.5rem; }
.mascot-close {
  align-self: flex-end;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f7b6c8, #c9b8e8);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 850;
  box-shadow: 0 4px 16px rgba(232, 160, 184, 0.4);
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover { transform: translateY(-3px); }

/* Footer scrapbook */
.scrapbook-footer {
  background: linear-gradient(180deg, transparent, rgba(252, 228, 236, 0.4));
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-sig {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--accent); }
.btn-njac {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  background: linear-gradient(135deg, #f7b6c8, #c9b8e8) !important;
  color: #fff !important;
  border: none !important;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Polaroid-ish gallery boost (keep existing grid) */
.gallery-item {
  background: #fffef8;
  padding: 0.5rem 0.5rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: rotate(-1deg);
}
.gallery-item:nth-child(even) { transform: rotate(1.2deg); }
.gallery-item:hover { transform: rotate(0) scale(1.03); }

/* Reduced motion */
.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

@media (max-width: 600px) {
  .mascot { bottom: 6.5rem; left: 0.75rem; max-width: 160px; }
  .back-top { left: 0.75rem; }
  .skill-map { aspect-ratio: 1; }
}

/* Floating Instagram */
.float-ig {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(221, 42, 123, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.float-ig:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(221, 42, 123, 0.5);
}
.float-ig-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.float-ig-icon svg { display: block; }
.float-ig-label { letter-spacing: 0.02em; }

/* Keep clear of music player if present */
.music-player {
  right: 1.25rem;
  bottom: 4.5rem;
}

@media (max-width: 600px) {
  .float-ig {
    bottom: 1rem;
    right: 0.85rem;
    padding: 0.6rem;
  }
  .float-ig-label { display: none; }
  .music-player { bottom: 4.2rem; }
}


/* ===== Looks Kanja — profile hover reveal ===== */
.looks-kanja {
  position: relative;
  cursor: none;
  overflow: hidden;
  border-radius: 50%;
}

.looks-kanja .looks-base,
.looks-kanja .looks-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 50%;
  display: block;
  pointer-events: none;
  border: 3px solid rgba(91, 155, 213, 0.4);
}

.looks-kanja .looks-base {
  position: relative; /* keep layout size from .profile-img rules */
  z-index: 1;
}

.looks-kanja .looks-reveal {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.22s ease;
  border-color: transparent;
  mask-image: radial-gradient(
    circle 90px at var(--lk-x, 50%) var(--lk-y, 50%),
    #000 0%,
    #000 52%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    circle 90px at var(--lk-x, 50%) var(--lk-y, 50%),
    #000 0%,
    #000 52%,
    transparent 100%
  );
}

.looks-kanja.is-hovering .looks-reveal {
  opacity: 1;
}

.looks-kanja .profile-ring {
  z-index: 3;
  pointer-events: none;
}

.looks-hint {
  position: absolute;
  bottom: -1.7rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted, #9a8f96);
  opacity: 0.8;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.looks-kanja.is-hovering .looks-hint {
  opacity: 0;
}

@media (max-width: 640px) {
  .looks-kanja .looks-reveal {
    mask-image: radial-gradient(
      circle 65px at var(--lk-x, 50%) var(--lk-y, 50%),
      #000 0%,
      #000 52%,
      transparent 100%
    );
    -webkit-mask-image: radial-gradient(
      circle 65px at var(--lk-x, 50%) var(--lk-y, 50%),
      #000 0%,
      #000 52%,
      transparent 100%
    );
  }
}
