/* ============================================
   DREAMY PASTEL THEME — Wisuda Qur'an 2026
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&family=Great+Vibes&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  --purple-deep: #7c3aed;
  --purple-mid: #a78bfa;
  --purple-light: #c4b5fd;
  --purple-pale: #ede9fe;
  --pink-soft: #f9a8d4;
  --pink-light: #fbcfe8;
  --lavender: #d8b4fe;
  --peach: #fde68a;
  --text-dark: #4c1d95;
  --text-mid: #6d28d9;
  --text-light: #8b5cf6;
  --white-soft: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --gradient-main: linear-gradient(180deg, #e0c3fc 0%, #f5d5f5 25%, #fce4ec 50%, #e8d5f5 75%, #d8b4fe 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 100%);
  --gradient-btn: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #f9a8d4 100%);
  --shadow-soft: 0 8px 32px rgba(124, 58, 237, 0.15);
  --shadow-glow: 0 0 20px rgba(167, 139, 250, 0.3);
}

/* RESET + BODY */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  font-family: "Poppins", sans-serif;
  background: var(--gradient-main);
  background-attachment: fixed;
  overflow: hidden;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--purple-pale);
}

::-webkit-scrollbar-thumb {
  background: var(--purple-mid);
  border-radius: 4px;
}

/* ============================================
   FLOATING PARTICLES / SPARKLES
   ============================================ */

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-10px) translateX(5px); }
  50% { transform: translateY(-5px) translateX(-3px); }
  75% { transform: translateY(-12px) translateX(2px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================
   OVERLAY (Opening Screen)
   ============================================ */

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: linear-gradient(180deg, 
    #e8d5f5 0%, 
    #f0e0f7 20%,
    #f8e8f5 40%, 
    #fce4ec 60%,
    #f5d5f5 80%,
    #d8b4fe 100%);
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 24px;
  transition: opacity 1.5s ease-in-out;
  z-index: 1000;
  overflow: hidden;
}

#overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/bg_dreamy.png') center/cover no-repeat;
  opacity: 0.6;
  z-index: -1;
}

#overlay::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(249,168,212,0.2) 0%, transparent 50%);
  pointer-events: none;
}

#overlay.fade-out {
  opacity: 0;
}

.locked * {
  animation: none !important;
  transition: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ============================================
   CARD (Opening Card)
   ============================================ */

.card {
  position: relative;
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem 1.5rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: var(--text-dark);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,0.5);
  z-index: 1;
}

.invitation {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-mid);
  opacity: 0;
  animation: slideDown 1s 0.3s forwards;
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.15);
}

.logo {
  width: 320px;
  max-width: 90%;
  margin: 0.5rem auto;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.2));
  border-radius: 12px;
}

/* ============================================
   IMAGE LOGO & WRAPPER STYLING
   ============================================ */

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
  position: relative;
  width: 100%;
  max-width: 380px;
}

.main-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: 
    drop-shadow(0 8px 25px rgba(124, 58, 237, 0.25))
    drop-shadow(0 0 15px rgba(251, 168, 212, 0.2));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-wrapper:hover .main-logo-img {
  transform: scale(1.03) translateY(-3px);
}

/* Sparkles on image logo */
.logo-sparkle {
  position: absolute;
  font-size: 1.6rem;
  color: #fbbf24; /* soft yellow gold */
  text-shadow: 
    -1.5px -1.5px 0 #fff,  
     1.5px -1.5px 0 #fff,
    -1.5px  1.5px 0 #fff,
     1.5px  1.5px 0 #fff,
     0 0 10px rgba(251, 191, 36, 0.8);
  animation: floatGentle 3s ease-in-out infinite alternate;
  z-index: 5;
  pointer-events: none;
}

.logo-sparkle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.logo-sparkle-2 { bottom: 15%; right: 5%; animation-delay: 0.7s; color: #fca5a5; }
.logo-sparkle-3 { bottom: 10%; left: 15%; animation-delay: 1.4s; color: #93c5fd; }
.logo-sparkle-4 { top: 5%; right: 15%; animation-delay: 2.1s; }

/* Hero specific logo size styling */
.logo-wrapper-hero {
  max-width: 420px;
  margin: 2rem auto;
}

/* ============================================
   NAVBAR IMAGE LOGO
   ============================================ */

.navbar-logo {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 334;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 6px 12px;
  box-shadow: 
    0 8px 24px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  max-height: 48px;
}

.navbar-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.15));
}

.recipient {
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-mid);
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
  font-weight: 300;
}

.card .student-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--purple-deep);
  opacity: 0;
  animation: textGrow 1.2s 0.7s forwards;
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.btn {
  font-family: "Poppins", sans-serif;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 0.85rem;
  border-radius: 3rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.2s 1.2s forwards;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(167, 139, 250, 0.5);
}

.btn:hover::before {
  left: 100%;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

#main-content {
  position: relative;
  width: 100%;
  max-width: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-dark);
  font-size: 24px;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.nav-menu {
  position: fixed;
  bottom: 10px;
  width: 90%;
  display: flex;
  justify-content: center;
  z-index: 333;
}

nav {
  width: 400px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

nav ul {
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  padding: 12px 15px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

nav ul li:hover {
  transform: translateY(-2px);
}

nav ul li a {
  color: var(--purple-deep);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--pink-soft);
}

/* ============================================
   SECTION: HOME
   ============================================ */

#home {
  position: relative;
  background: linear-gradient(180deg, 
    #e8d5f5 0%, 
    #f0e0f7 30%,
    #fce4ec 60%, 
    #f5d5f5 100%);
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 2s ease-in-out;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/bg_dreamy.png') center/cover no-repeat;
  opacity: 0.5;
}

#home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(232, 213, 245, 0.8), transparent);
  pointer-events: none;
}

.inner-home {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  margin-bottom: 115px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.home-logo {
  width: 360px;
  max-width: 95%;
  margin: 1rem auto;
}

.home-logo img {
  filter: drop-shadow(0 8px 20px rgba(124, 58, 237, 0.25));
}

.sparkle {
  position: absolute;
  top: 50%;
  left: -100px;
  width: 600px;
  opacity: 0;
  animation: fadeIn 2s 1s forwards;
  filter: hue-rotate(270deg) brightness(1.3) saturate(0.7);
}

.sparkle-2 {
  position: absolute;
  top: 0%;
  left: -100px;
  width: 600px !important;
  opacity: 0;
  transform: scaleY(-1);
  animation: fadeIn 2s 1s forwards;
  filter: hue-rotate(270deg) brightness(1.3) saturate(0.7);
}

.sparkle img,
.sparkle-2 img {
  width: 100%;
  height: auto;
}

.home-subtitle-banner {
  background: linear-gradient(135deg, #fbcfe8 0%, #fde68a 50%, #c4b5fd 100%);
  border: 2px solid #ffffff;
  padding: 8px 24px;
  border-radius: 50px;
  box-shadow: 
    0 8px 25px rgba(124, 58, 237, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 15px;
  animation: fadeUp 1s 1s forwards;
  opacity: 0;
  display: inline-block;
  max-width: 90%;
}

.home-subtitle-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1.5px 3px rgba(124, 58, 237, 0.25);
}

/* ============================================
   DECORATIVE 3D OBJECTS
   ============================================ */

.decor {
  position: absolute;
  z-index: 2;
  pointer-events: auto; /* Enable hover effects */
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.decor-svg,
.decor-img {
  width: 75px;
  height: 75px;
  display: block;
  object-fit: contain;
  filter: 
    drop-shadow(0 10px 20px rgba(124, 58, 237, 0.22))
    drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.decor-glow {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.16;
  z-index: -1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover effects */
.decor:hover .decor-svg,
.decor:hover .decor-img {
  transform: scale(1.18) rotate(8deg);
}

.decor:hover .decor-glow {
  opacity: 0.3;
  transform: scale(1.2);
}

/* Individual Icon Styles & Gradients */
.decor-trophy .decor-glow {
  background: #f5a623;
}

.decor-palette .decor-glow {
  background: #b18eff;
}

.decor-plane .decor-glow {
  background: #a8c0ff;
}

.decor-quran .decor-glow {
  background: #c4b5fd;
}

/* Positions & Floats */
.decor-trophy {
  bottom: 15%;
  left: 20px;
  animation: floatDecorLeft 5s ease-in-out infinite;
}

.decor-palette {
  top: 15%;
  right: 20px;
  animation: floatDecorRight 6s ease-in-out infinite;
}

.decor-plane {
  top: 10%;
  left: 25px;
  animation: floatDecorPlane 4.5s ease-in-out infinite;
}

.decor-quran {
  bottom: 18%;
  right: 25px;
  animation: floatDecorRight 5.5s ease-in-out infinite;
}

/* Glowing Halos & Stars Background */
.glowing-halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.halo-1 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #fbcfe8 0%, transparent 70%);
  top: 8%;
  left: -80px;
  animation: orbit1 25s infinite linear;
}

.halo-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #c4b5fd 0%, transparent 70%);
  bottom: 12%;
  right: -90px;
  animation: orbit2 30s infinite linear;
}

.starfield-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.css-star {
  position: absolute;
  color: #ffffff;
  font-size: 1.1rem;
  opacity: 0.3;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: twinkleStar 4s infinite ease-in-out;
}

.star-1 { top: 18%; left: 15%; animation-delay: 0s; }
.star-2 { top: 25%; right: 25%; animation-delay: 0.8s; }
.star-3 { top: 55%; left: 8%; animation-delay: 1.6s; font-size: 0.9rem; }
.star-4 { bottom: 25%; right: 12%; animation-delay: 2.4s; }
.star-5 { top: 5%; left: 45%; animation-delay: 3.2s; font-size: 0.9rem; }

@keyframes twinkleStar {
  0%, 100% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes orbit1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 20px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes orbit2 {
  0% { transform: translate(0, 0) rotate(360deg); }
  50% { transform: translate(-20px, 30px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes floatDecorLeft {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

@keyframes floatDecorRight {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-12px) rotate(-3deg); }
}

@keyframes floatDecorPlane {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(6px, -14px) rotate(-2deg); }
}

/* ============================================
   SECTION: DATE
   ============================================ */

#date {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 60px 20px 90px;
  color: var(--text-dark);
  background: linear-gradient(180deg, 
    #f5d5f5 0%,
    #ede9fe 30%,
    #f0e0f7 60%,
    #fce4ec 100%);
  overflow: hidden;
}

#date::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/bg_dreamy.png') center/cover no-repeat;
  opacity: 0.3;
}

#date > * {
  position: relative;
  z-index: 1;
}

.inner-date {
  position: relative;
  z-index: 1;
}

.greeting {
  font-family: "Great Vibes", cursive;
  font-size: 30px;
  margin: 0;
  text-align: center;
  color: var(--purple-deep);
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.desc {
  text-align: center;
  margin: 15px 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-mid);
  font-weight: 300;
}

.event-title {
  text-align: center;
  margin-top: 15px;
  position: relative;
}

.event-title h1 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-mid);
}

.event-title h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 5px 0;
  color: var(--purple-deep);
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.line-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--purple-mid);
  font-size: 11px;
  margin: 18px auto;
  text-shadow: 0 0 5px rgba(167, 139, 250, 0.4);
}

.line-decor::before,
.line-decor::after {
  content: '';
  height: 1.5px;
  width: 90px;
  background: linear-gradient(90deg, transparent, var(--purple-mid), transparent);
  display: inline-block;
}

.subtext {
  font-size: 12px;
  margin-top: 15px;
  text-align: center;
  color: var(--text-mid);
  font-weight: 300;
}

/* Info Cards — Date / Time / Location */

.info-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 20px 0 5px;
  padding: 22px 16px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  box-shadow: 
    0 8px 32px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.info-cards::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(196, 181, 253, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(249, 168, 212, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.info-card {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  position: relative;
  z-index: 1;
}

.info-card-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c084fc 0%, #a78bfa 50%, #f9a8d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35);
  position: relative;
}

.info-card-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.4), rgba(249, 168, 212, 0.4));
  z-index: -1;
  filter: blur(4px);
}

.info-card-icon i {
  font-size: 16px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.info-card-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-mid);
  margin-bottom: 5px;
}

.info-card-main {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-deep);
  line-height: 1.2;
  margin-bottom: 2px;
}

.info-card-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.4;
  opacity: 0.85;
}

.info-card-divider {
  width: 1px;
  align-self: stretch;
  margin: 8px 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(167, 139, 250, 0.3) 20%,
    rgba(167, 139, 250, 0.5) 50%,
    rgba(167, 139, 250, 0.3) 80%,
    transparent 100%
  );
  position: relative;
}

.info-card-divider::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: var(--purple-mid);
  background: rgba(255, 255, 255, 0.6);
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-save {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.simply-countdown {
  margin: 25px 0 15px;
}

#save-btn {
  background: var(--gradient-btn);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 28px;
  font-size: 0.85rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
}

#save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
}

/* ============================================
   SECTION: LOCATION
   ============================================ */

#location {
  position: relative;
  background: linear-gradient(180deg, 
    #fce4ec 0%,
    #f0e0f7 30%,
    #ede9fe 60%,
    #e8d5f5 100%);
  width: 100%;
  min-height: 100vh;
  padding: 80px 20px 100px;
  overflow: hidden;
}

#location::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/bg_dreamy.png') center/cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.inner-location {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.location-header {
  text-align: center;
  margin-bottom: 20px;
}

.location-accent {
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  color: var(--purple-deep);
  font-weight: 700;
  display: block;
  margin-bottom: -5px;
}

.location-title {
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

/* Address Card & Button */
.address-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 
    0 8px 32px rgba(124, 58, 237, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.address-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 15px rgba(167, 139, 250, 0.3);
}

.address-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.address-details h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
  color: var(--purple-deep);
  margin-bottom: 6px;
  font-weight: 700;
}

.address-details p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 16px;
  font-weight: 400;
  padding: 0 10px;
}

.btn-navigate {
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 10px 24px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.35);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-navigate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(167, 139, 250, 0.5);
}

/* Map Container */
.map-container {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.75);
  box-shadow: 
    0 12px 35px rgba(124, 58, 237, 0.15),
    0 0 0 1px rgba(167, 139, 250, 0.1);
  margin-bottom: 25px;
}

.maps {
  width: 100%;
  height: 280px;
  display: block;
  filter: contrast(1.05) saturate(1.05);
}

/* Notes Card (NB New) */
.nb-new {
  width: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.06);
}

.nb-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.25);
}

.nb-header i {
  color: var(--purple-deep);
  font-size: 1.1rem;
}

.nb-header h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: 1.5px;
}

.nb-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.nb-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.nb-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(167, 139, 250, 0.15);
}

.nb-item-icon i {
  font-size: 0.95rem;
  color: #fff;
}

.icon-users {
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
}

.icon-ban {
  background: linear-gradient(135deg, #f472b6 0%, #fb7185 100%);
}

.nb-item-text strong {
  font-family: "Fredoka", sans-serif;
  font-size: 12.5px;
  color: var(--purple-deep);
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

.nb-item-text p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-mid);
  margin: 0;
}

/* ============================================
   SECTION: QR CODE
   ============================================ */

#code {
  position: relative;
  background: linear-gradient(180deg, 
    #e8d5f5 0%,
    #ede9fe 30%,
    #f0e0f7 60%,
    #f5d5f5 100%);
  width: 100%;
  height: 100vh;
  transition: opacity 2s ease-in-out;
  overflow: hidden;
  color: var(--text-dark);
}

#code::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/bg_dreamy.png') center/cover no-repeat;
  opacity: 0.3;
}

.inner-qrcode {
  padding: 60px 30px;
  position: relative;
  z-index: 1;
}

.inner-qrcode h1 {
  font-size: 22px;
  text-align: center;
  color: var(--purple-deep);
  text-shadow: 0 2px 4px rgba(124, 58, 237, 0.1);
}

.img-qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.img-qrcode img {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

.student-name-qrcode {
  text-align: center;
  font-size: 15px !important;
}

.student-name-qrcode h3 {
  margin-bottom: 8px;
  color: var(--text-mid);
  font-weight: 400;
}

.student-name {
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  color: var(--purple-deep);
}

.text-qrcode {
  text-align: center;
  margin: 15px 0;
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 300;
}

.btn-qrcode {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
}

.qr-download {
  padding: 12px 24px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
  transition: all 0.3s ease;
}

.qr-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 139, 250, 0.5);
}

.salam {
  margin-top: 10px;
}

.salam .greeting {
  font-size: 24px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    transform: translateY(-60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes textGrow {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 481px) {
  .invitation {
    margin-bottom: 1rem;
  }

  .card {
    padding: 2rem 1rem;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
  }

  .sparkle {
    width: 500px;
  }

  .sparkle-2 {
    width: 500px !important;
  }

  .info-img {
    width: 380px;
  }

  nav {
    width: 90%;
    border-radius: 15px;
  }
}

@media (max-width: 391px) {
  .sparkle {
    width: 450px;
  }

  .sparkle-2 {
    width: 450px !important;
  }

  .info-img {
    width: 350px;
  }

  .maps {
    width: 280px;
    height: 250px;
  }
}

/* ============================================
   CUSTOM SECTION DIVIDERS & TRANSITIONS
   ============================================ */

.custom-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(0deg);
  z-index: 10;
  pointer-events: none;
}

.custom-divider svg {
  position: relative;
  display: block;
  width: 100%;
  height: 60px;
}

/* Wavy animations to make page transitions dynamic and interesting */
.custom-divider svg path {
  animation: waveAnimation 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  transform-origin: center;
}

.custom-divider svg path:nth-child(2) {
  animation-duration: 8s;
  animation-delay: -3s;
}

@keyframes waveAnimation {
  0% {
    transform: translateX(0) scaleY(1);
  }
  100% {
    transform: translateX(-40px) scaleY(1.08);
  }
}

/* Ensure absolute positioning parents */
#home, #date, #location, #code {
  position: relative;
}

/* Transition sparkles at section cuts */
.transition-sparkle {
  position: absolute;
  bottom: 35px;
  font-size: 1.2rem;
  color: #fbbf24;
  text-shadow: 
    -1.5px -1.5px 0 #fff,  
     1.5px -1.5px 0 #fff,
    -1.5px  1.5px 0 #fff,
     1.5px  1.5px 0 #fff,
     0 0 10px rgba(251, 191, 36, 0.8);
  pointer-events: none;
  z-index: 12;
}

.sparkle-left {
  left: 15%;
  animation: floatGentle 4s ease-in-out infinite alternate;
}

.sparkle-right {
  right: 15%;
  animation: floatGentle 4.5s ease-in-out infinite alternate-reverse;
}

