/* ═══════════════════════════════════════════════════
   style.css  —  Sakura Moonlit Portfolio
   Labib Ehetesum — cinematic Japanese aesthetic
═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   FONTS
───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Zen+Kaku+Gothic+New:wght@300;400&family=DM+Mono:wght@300;400&display=swap');

/* ─────────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────────── */
:root {
  --sakura-pink:    #ffb7d9;
  --sakura-light:   #ffe3ee;
  --sakura-pale:    #fff0f3;
  --rose-mist:      #f2a8c6;
  --lavender:       #c8b8e8;
  --moonlight:      #fff8f2;
  --mist-blue:      #93a7d8;
  --deep-night:     #0c0818;
  --night-mid:      #160d24;
  --night-light:    #1e1030;
  --glass-bg:       rgba(255, 200, 215, 0.06);
  --glass-border:   rgba(255, 183, 197, 0.18);
  --glass-blur:     blur(18px);
  --glow-pink:      0 0 30px rgba(255,183,197,0.25), 0 0 60px rgba(255,183,197,0.1);
  --glow-soft:      0 8px 40px rgba(200,140,160,0.25);
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Zen Kaku Gothic New', sans-serif;
  --font-mono:      'DM Mono', monospace;
  --transition:     all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--deep-night);
  color: var(--moonlight);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

button {
  cursor: pointer;
}

/* ─────────────────────────────────────────────
   CANVAS LAYERS
───────────────────────────────────────────── */
#moon-bg,
#sakura-canvas,
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#moon-bg {
  z-index: 0;
}

#sakura-canvas {
  z-index: 1;
  opacity: 0.92;
}

#particles-canvas {
  z-index: 2;
  opacity: 0.7;
}

#sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* ─────────────────────────────────────────────
   BACKGROUND GRADIENT
───────────────────────────────────────────── */
.bg-scene {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 58% at 74% 18%, rgba(255,196,216,0.20) 0%, transparent 58%),
    radial-gradient(ellipse 48% 42% at 18% 78%, rgba(255,166,204,0.12) 0%, transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(255,236,205,0.14) 0%, transparent 28%),
    linear-gradient(160deg, #120915 0%, #1b0d1d 40%, #1a1228 100%);
  z-index: 0;
}

/* ─────────────────────────────────────────────
   LOADER
───────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #160d24 0%, #080412 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 1.2s ease;
}

#loader .loader-moon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#moon-canvas {
  width: 220px;
  height: 220px;
  filter: drop-shadow(0 0 40px rgba(255,210,180,0.35));
}

.loader-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(255, 230, 215, 0.75);
  letter-spacing: 0.12em;
  text-align: center;
  animation: loaderTextPulse 2.5s ease-in-out infinite;
}

@keyframes loaderTextPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ─────────────────────────────────────────────
   MAIN CONTENT — FADE IN
───────────────────────────────────────────── */
#main-content {
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 1.4s ease;
}

body.loaded #main-content {
  opacity: 1;
}

/* ─────────────────────────────────────────────
   TOP NAV
───────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 8, 24, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,183,197,0.1);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sakura-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span {
  opacity: 0.5;
  font-size: 0.85em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#live-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,183,197,0.6);
  letter-spacing: 0.1em;
}

#menu-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  color: var(--sakura-pink);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#menu-btn:hover {
  background: rgba(255,183,197,0.1);
  border-color: rgba(255,183,197,0.4);
  box-shadow: var(--glow-pink);
}

/* ─────────────────────────────────────────────
   SIDE DRAWER
───────────────────────────────────────────── */
#drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,4,18,0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  width: min(340px, 88vw);
  background: rgba(18, 10, 30, 0.88);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-left: 1px solid rgba(255,183,197,0.15);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

#side-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,183,197,0.12);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--sakura-light);
  letter-spacing: 0.06em;
}

#drawer-close {
  background: rgba(255,183,197,0.08);
  border: 1px solid rgba(255,183,197,0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--sakura-pink);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#drawer-close:hover {
  background: rgba(255,183,197,0.18);
  transform: rotate(90deg);
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  background: rgba(255,183,197,0.04);
  border: 1px solid rgba(255,183,197,0.1);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.4rem;
}

.drawer-item:hover {
  background: rgba(255,183,197,0.1);
  border-color: rgba(255,183,197,0.3);
  transform: translateX(-4px);
  box-shadow: inset 0 0 20px rgba(255,183,197,0.05);
}

.drawer-item-icon {
  font-size: 1.4rem;
  min-width: 2rem;
  text-align: center;
}

.drawer-item-text h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--sakura-light);
  letter-spacing: 0.04em;
}

.drawer-item-text p {
  font-size: 0.72rem;
  color: rgba(255,183,197,0.45);
  margin-top: 0.1rem;
}

/* ─────────────────────────────────────────────
   ACCESS DENIED MODAL
───────────────────────────────────────────── */
#access-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  background: rgba(8,4,18,0.6);
  backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

#access-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: rgba(20, 12, 35, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,183,197,0.25);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  box-shadow: 0 25px 80px rgba(0,0,0,0.6), var(--glow-pink);
}

#access-modal.active .modal-card {
  transform: scale(1) translateY(0);
}

#modal-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.modal-petal {
  position: absolute;
  top: -20px;
  animation: modalPetalFall linear infinite;
}

@keyframes modalPetalFall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 0.8; }
  to { transform: translateY(120%) rotate(360deg); opacity: 0; }
}

.modal-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: modalEmojiPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes modalEmojiPop {
  from { transform: scale(0) rotate(-20deg); }
  to { transform: scale(1) rotate(0deg); }
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sakura-light);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.modal-sub {
  font-size: 0.85rem;
  color: rgba(255,183,197,0.55);
  margin-bottom: 2rem;
  line-height: 1.6;
}

#modal-close {
  background: linear-gradient(135deg, rgba(255,183,197,0.15), rgba(200,140,170,0.1));
  border: 1px solid rgba(255,183,197,0.3);
  border-radius: 100px;
  padding: 0.75rem 2.5rem;
  color: var(--sakura-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: var(--transition);
}

#modal-close:hover {
  background: rgba(255,183,197,0.2);
  box-shadow: var(--glow-pink);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 4rem;
  position: relative;
}

.hero-parallax {
  transition: none;
  will-change: auto;
  transform: none !important;
  transform-style: flat;
  touch-action: pan-y;
  contain: paint;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  max-width: 700px;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  flex-shrink: 0;
}

.avatar-aura {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,210,230,0.26) 0%,
    rgba(255,183,217,0.18) 45%,
    rgba(255,183,217,0.04) 72%,
    transparent 100%
  );
  animation: auraGlow 6s ease-in-out infinite;
  filter: blur(10px);
  will-change: opacity;
  isolation: isolate;
}

@keyframes auraGlow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,201,225,0.45);
  animation: avatarBreathe 6s ease-in-out infinite;
}

@keyframes avatarBreathe {
  0%, 100% {
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(255,183,197,0.15);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 28px rgba(255,183,197,0.55);
  }
}

.avatar-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,183,197,0.4);
  box-shadow: 0 0 40px rgba(255,183,197,0.25), 0 0 80px rgba(255,150,180,0.1);
  position: relative;
  z-index: 1;
}

.verified-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-radius: 50%;
  border: 2px solid var(--deep-night);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  z-index: 2;
  box-shadow: 0 0 12px rgba(59,130,246,0.45);
}

.avatar-petals {
  position: absolute;
  inset: -30px;
  pointer-events: none;
}

.avatar-petal {
  position: absolute;
  font-size: 1rem;
  animation: floatPetal 7s ease-in-out infinite;
  opacity: 0.62;
  will-change: transform, opacity;
}

@keyframes floatPetal {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.58;
  }
  50% {
    transform: translateY(-4px) rotate(10deg);
    opacity: 0.82;
  }
}

/* Hero text */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff8f2 0%, #ffb7c5 50%, #c88898 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: rgba(255,183,197,0.65);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: -0.8rem;
}

.hero-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,220,230,0.7);
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-sakura {
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  transition: var(--transition);
  border: 1px solid rgba(255,183,197,0.35);
  background: rgba(255,183,197,0.08);
  color: var(--sakura-light);
}

.btn-sakura:hover {
  background: rgba(255,183,197,0.18);
  box-shadow: var(--glow-pink);
  transform: translateY(-3px);
}

.btn-sakura.solid {
  background: linear-gradient(135deg, rgba(255,183,197,0.3), rgba(200,140,170,0.2));
}

/* ─────────────────────────────────────────────
   SECTIONS & CONTAINERS
───────────────────────────────────────────── */
.site-section {
  position: relative;
  z-index: 10;
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 780px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,183,197,0.45);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 40px;
  background: rgba(255,183,197,0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--moonlight);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────
   GLASS CARD
───────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,183,197,0.05) 0%,
    transparent 60%
  );
  border-radius: inherit;
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(255,183,197,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--glow-soft);
  transform: translateY(-4px);
}

/* ─────────────────────────────────────────────
   ABOUT CARD
───────────────────────────────────────────── */
.about-text {
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(255, 240, 245, 0.78);
}

.about-text strong {
  color: var(--sakura-light);
  font-weight: 400;
}

.about-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.stack-tag {
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: rgba(255,183,197,0.08);
  border: 1px solid rgba(255,183,197,0.2);
  color: rgba(255,183,197,0.75);
  transition: var(--transition);
}

.stack-tag:hover {
  background: rgba(255,183,197,0.15);
  color: var(--sakura-light);
}

/* ─────────────────────────────────────────────
   QUOTE CARD
───────────────────────────────────────────── */
.quote-card {
  text-align: center;
  padding: 3rem 2.5rem;
  background: rgba(255,183,197,0.04);
}

.quote-icon {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: none;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  line-height: 1.8;
  color: rgba(255, 240, 248, 0.88);
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

#quote-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255,183,197,0.55);
  transition: opacity 0.3s ease;
}

#quote-source {
  font-size: 0.7rem;
  color: rgba(255,183,197,0.35);
  margin-top: 0.2rem;
  font-style: italic;
  transition: opacity 0.3s ease;
}

.quote-refresh {
  margin-top: 1.8rem;
  background: transparent;
  border: 1px solid rgba(255,183,197,0.2);
  border-radius: 100px;
  padding: 0.5rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,183,197,0.5);
  transition: var(--transition);
}

.quote-refresh:hover {
  border-color: rgba(255,183,197,0.4);
  color: var(--sakura-light);
  box-shadow: var(--glow-pink);
}

/* ─────────────────────────────────────────────
   FAQ SECTION
───────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
  border-color: rgba(255,183,197,0.3);
  box-shadow: 0 8px 32px rgba(255,183,197,0.08);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.3rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  color: rgba(255, 240, 245, 0.88);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--sakura-light);
}

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255,183,197,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: transform 0.35s ease;
  color: var(--sakura-pink);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer-inner {
  padding: 0 1.8rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(255,220,230,0.65);
  line-height: 1.85;
}

/* Social link chips */
.social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,183,197,0.25);
  background: rgba(255,183,197,0.07);
  color: var(--sakura-light);
  transition: var(--transition);
}

.social-chip:hover {
  background: rgba(255,183,197,0.16);
  border-color: rgba(255,183,197,0.5);
  box-shadow: var(--glow-pink);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   FLOATING AUDIO BUTTON
───────────────────────────────────────────── */
#audio-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 10, 30, 0.75);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,183,197,0.25);
  color: var(--sakura-pink);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

#audio-toggle:hover {
  border-color: rgba(255,183,197,0.5);
  box-shadow: var(--glow-pink);
  transform: scale(1.08);
}

#audio-toggle.audio-playing {
  animation: audioGlow 2.5s ease-in-out infinite;
}

@keyframes audioGlow {
  0%, 100% { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 4px 24px rgba(0,0,0,0.4), var(--glow-pink); }
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-top: 1px solid rgba(255,183,197,0.08);
}

.footer-moon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  animation: none;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgba(255,183,197,0.6);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.footer-poem {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,183,197,0.35);
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────
   CURSOR PETAL
───────────────────────────────────────────── */
.cursor-petal {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 9998;
  font-size: 10px;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0.8;
  line-height: 1;
}

.cursor-petal::before {
  content: '🌸';
}

/* ─────────────────────────────────────────────
   SPARKLE DOTS
───────────────────────────────────────────── */
.sparkle-dot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,220,0.9) 0%, rgba(255,183,197,0.5) 60%, transparent 100%);
  animation: sparkleFade 1.2s ease-out forwards;
  pointer-events: none;
}

@keyframes sparkleFade {
  0% { opacity: 0.9; transform: scale(0.5); }
  50% { opacity: 0.7; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.2); }
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─────────────────────────────────────────────
   DIVIDER
───────────────────────────────────────────── */
.sakura-divider {
  text-align: center;
  color: rgba(255,183,197,0.25);
  letter-spacing: 1rem;
  font-size: 0.8rem;
  padding: 2rem 0;
}

/* ─────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--deep-night);
}

::-webkit-scrollbar-thumb {
  background: rgba(255,183,197,0.25);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,183,197,0.45);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .top-nav { padding: 0 1.2rem; }
  .hero-section { padding: 90px 1.5rem 3rem; }
  .glass-card { padding: 1.8rem 1.4rem; }
  .site-section { padding: 3.5rem 1.5rem; }
  .faq-question { padding: 1.1rem 1.3rem; }
  .faq-answer-inner { padding: 0 1.3rem 1.2rem; }
  .social-chips { flex-direction: column; }
  .social-chip { justify-content: center; }
  #audio-toggle { bottom: 1.2rem; left: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────
   MIKU FALLBACK
───────────────────────────────────────────── */
.miku-fallback {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 40;
  width: 92px;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(255,183,217,0.25));
  animation: mikuIdle 4.8s ease-in-out infinite;
}

.miku-fallback.is-hidden {
  display: none;
}

.miku-fallback-img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes mikuIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 768px), (pointer: coarse) {
  .avatar-aura,
  .avatar-ring,
  .avatar-petal,
  .miku-fallback {
    animation: none !important;
  }

  #sakura-canvas,
  #particles-canvas {
    opacity: 0.45;
  }
}