/* ============================================================
   UX UPGRADE — hero, animation, masonry gallery, mascot, footer
   ============================================================ */

:root {
  --pastel-pink: #FFF6FB;
  --pastel-rose: #FFDDEE;
  --pastel-purple: #F3EFFF;
  --pastel-blue: #EAF8FF;
}

/* ---------- Scroll progress bar ---------- */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  z-index: 2000; transition: width .1s linear;
}

/* ---------- Navbar glass khi cuộn ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 4px 20px rgba(4,45,101,.08);
  border-bottom-color: transparent;
}

/* ---------- Hero fullscreen + parallax ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.hero .bubble { transition: transform .15s ease-out; }
.hero-petal {
  position: absolute; border-radius: 50%; opacity: .5; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #fff, var(--pink));
  animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  100% { transform: translateY(110vh) translateX(30px) rotate(320deg); opacity: 0; }
}
.hero-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,159,199,.35), transparent 70%);
  filter: blur(10px); animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .9; transform: scale(1.15); } }

.hero .btn-primary {
  background: linear-gradient(120deg, var(--pink), #ff7fb3, var(--pink));
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  box-shadow: 0 8px 24px rgba(255,159,199,.45);
  position: relative; overflow: hidden;
}

/* ---------- Khung kính (glassmorphism) cho tiêu đề Hero ---------- */
.hero-glass {
  position: relative; z-index: 2; max-width: 620px; text-align: center;
  padding: 36px 40px; border-radius: 32px;
  background: rgba(255,255,255,.5);
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow:
    0 20px 50px rgba(4,45,101,.18),
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 0 0 24px rgba(255,255,255,.15);
}
.hero-glass * { opacity: 1; }
.hero-glass h1 { margin-top: 0; text-shadow: 0 2px 12px rgba(255,255,255,.6); }
.hero-glass p { color: #2a3a52; }
@media (max-width: 640px) {
  .hero-glass { padding: 26px 22px; border-radius: 24px; }
}
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.scroll-down {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 44px; border: 2px solid var(--navy); border-radius: 20px;
  opacity: .5; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-down::before {
  content: ''; width: 4px; height: 8px; border-radius: 2px; background: var(--navy);
  animation: scroll-dot 1.6s ease infinite;
}
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Section alternating background + soft divider ---------- */
.section { position: relative; padding: 56px 20px; }
.section-pastel { background: linear-gradient(180deg, var(--pastel-blue), var(--pastel-purple)); }
.section-white { background: #fff; }
.section-divider {
  position: absolute; top: -1px; left: 0; width: 100%; height: 48px; overflow: hidden; line-height: 0;
}
.section-divider svg { width: 100%; height: 100%; }

/* ---------- Scroll reveal animation ---------- */
.reveal { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
.reveal-up { transform: translateY(32px); }
.reveal-zoom { transform: scale(.92); }
.reveal-left { transform: translateX(-32px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.service-card {
  background: #fff; border-radius: 20px; padding: 22px 18px; text-align: center;
  box-shadow: 0 4px 16px rgba(4,45,101,.06); border: 1px solid rgba(4,45,101,.05);
  transition: transform .25s ease, box-shadow .25s ease; will-change: transform;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(255,159,199,.28);
}
.service-card .icon {
  width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%;
  background: rgba(255,159,199,.15); display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: transform .3s ease;
}
.service-card:hover .icon { transform: rotate(14deg) scale(1.1); }
.service-card .price { color: var(--pink-dark); font-weight: 700; font-size: 17px; margin: 6px 0 12px; }

/* ---------- Album Grid Card (Desktop 3 cột / Mobile 1 cột) ---------- */
.album-grid-v2 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
@media (max-width: 900px) { .album-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .album-grid-v2 { grid-template-columns: 1fr; } }

.album-card {
  background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; display: block;
  box-shadow: 0 6px 20px rgba(4,45,101,.08); border: 1px solid rgba(4,45,101,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.album-card:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(4,45,101,.16); }

.album-card .cover { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.album-card .cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease, filter .4s ease;
}
.album-card:hover .cover img { transform: scale(1.1); filter: brightness(.85); }
.album-card .cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,45,101,.65), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.album-card:hover .cover::after { opacity: 1; }
.album-card .cover-icon {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--pink-dark); display: flex; align-items: center; justify-content: center;
  font-size: 16px; opacity: 0; transform: translateY(-6px); transition: all .3s ease;
}
.album-card:hover .cover-icon { opacity: 1; transform: none; }

.album-card .info { padding: 16px; }
.album-card .info .title { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.album-card .info .category { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 10px; }
.album-card .info .explore {
  font-size: 13px; font-weight: 700; color: var(--pink-dark);
  opacity: 0; transform: translateX(-6px); transition: all .3s ease;
}
.album-card:hover .info .explore { opacity: 1; transform: none; }

/* ---------- Mood quick-pick (AI Khảo sát gu ảnh) ---------- */
.mood-pick-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mood-pick-btn {
  background: #fff; border: 2px solid rgba(255,159,199,.4); border-radius: 999px;
  padding: 10px 20px; font-weight: 700; font-size: 14px; color: var(--navy);
  transition: all .2s ease; display: inline-flex; align-items: center; gap: 6px;
}
.mood-pick-btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); transform: translateY(-2px); }

/* ---------- Timeline ---------- */
.timeline { display: flex; justify-content: space-between; gap: 8px; position: relative; margin-top: 32px; }
.timeline::before {
  content: ''; position: absolute; top: 26px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 8px, transparent 8px 16px);
}
.timeline-step { flex: 1; text-align: center; position: relative; }
.timeline-step .dot {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 2px solid var(--pink);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 20px;
  position: relative; z-index: 1;
}
.timeline-step p { font-size: 13px; font-weight: 700; margin: 0; }
@media (max-width: 700px) {
  .timeline { flex-direction: column; align-items: flex-start; padding-left: 30px; }
  .timeline::before { top: 0; bottom: 0; left: 25px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--pink) 0 8px, transparent 8px 16px); }
  .timeline-step { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 22px; }
  .timeline-step .dot { margin: 0; flex-shrink: 0; }
}

/* ---------- Mascot ---------- */
.mascot-wrap { position: fixed; bottom: 18px; right: 18px; z-index: 1500; cursor: pointer; }
.mascot-img {
  width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 8px 20px rgba(4,45,101,.25);
  animation: mascot-float 3s ease-in-out infinite;
}
@keyframes mascot-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mascot-wrap.meow .mascot-img { animation: mascot-bounce .4s ease; }
@keyframes mascot-bounce { 0% { transform: scale(1); } 40% { transform: scale(.85) rotate(-8deg); } 100% { transform: scale(1); } }
.mascot-bubble {
  position: absolute; bottom: 76px; right: 0; background: #fff; border-radius: 16px 16px 4px 16px;
  padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap;
  box-shadow: 0 6px 16px rgba(4,45,101,.15); opacity: 0; transform: translateY(6px); transition: all .25s ease; pointer-events: none;
}
.mascot-bubble.show { opacity: 1; transform: translateY(0); }

/* ---------- Ripple ---------- */
.btn { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); animation: ripple-anim .6s ease-out; pointer-events: none; }
@keyframes ripple-anim { to { transform: scale(3); opacity: 0; } }

/* ---------- Cursor glow (desktop only) ---------- */
#cursorGlow {
  position: fixed; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(114,204,228,.18), transparent 70%);
  transform: translate(-50%, -50%); transition: opacity .3s ease; opacity: 0;
}
@media (hover: hover) and (pointer: fine) { #cursorGlow.active { opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 44px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.footer-col h6 { color: #fff; font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,.7); font-size: 13px; display: block; margin-bottom: 6px; }
.footer-col a:hover { color: var(--pink); }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.footer-social a:hover { background: var(--pink); }
.footer-bottom { text-align: center; font-size: 12px; color: rgba(255,255,255,.5); margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Rules Modal (Quy định chụp ảnh) ---------- */
.rules-modal-overlay {
  position: fixed; inset: 0; background: rgba(4,45,101,.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.rules-modal-overlay.show { opacity: 1; pointer-events: auto; }
.rules-modal-box {
  background: #fff; border-radius: 22px; max-width: 560px; width: 100%; max-height: 84vh;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(4,45,101,.3);
  transform: translateY(16px) scale(.97); transition: transform .25s ease;
}
.rules-modal-overlay.show .rules-modal-box { transform: none; }
.rules-modal-header {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 22px;
  border-bottom: 1px solid #f0f0f0;
}
.rules-modal-header h5 { margin: 0; color: var(--navy); font-weight: 700; }
.rules-modal-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--text-secondary); cursor: pointer; }
.rules-modal-body { padding: 18px 22px; overflow-y: auto; font-size: 14px; line-height: 1.7; color: #333; }
.rules-modal-footer { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid #f0f0f0; flex-wrap: wrap; }
.rules-modal-footer .btn { width: auto; flex: 1; min-width: 160px; }
@media (max-width: 480px) { .rules-modal-footer { flex-direction: column; } }
.hero h1 { font-size: 40px; }
.section h2 { font-size: 26px; font-weight: 700; }
.section .section-title { font-weight: 700; letter-spacing: .04em; }
body { font-size: 15px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 28px; }
  .masonry { column-count: 2; }
}

/* ---------- Navbar Drawer (mobile) ---------- */
.hamburger-btn { display: none; background: none; border: none; font-size: 24px; color: var(--navy); padding: 4px 8px; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(4,45,101,.4); z-index: 1400;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 240px; background: #fff; z-index: 1500;
  padding: 24px 20px; display: flex; flex-direction: column; gap: 16px;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: -8px 0 24px rgba(4,45,101,.15);
}
.drawer-menu.open { transform: translateX(0); }
.drawer-menu a { font-weight: 700; color: var(--navy); font-size: 15px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .btn.d-none-mobile { display: none; }
  .hamburger-btn { display: block; }
}
