/* ==========================================================================
   GRADUATION LANDING PAGE - DESIGN SYSTEM & STYLES
   Theme Colors: Electric Sapphire Blue (#0543D1), Vibrant Gold (#FFD200), Crimson Red (#D32F2F)
   ========================================================================== */

/* --- Custom Local Fonts (@font-face) --- */
@font-face {
  font-family: 'Fz Photograph';
  src: url('Fz-Photograph.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-blue: #0543d1;
  --primary-dark-blue: #021c74;
  --bg-gradient: radial-gradient(circle at 50% 20%, #0855ff 0%, #032d9d 50%, #011352 100%);
  --accent-gold: #ffd200;
  --accent-gold-gradient: linear-gradient(135deg, #fff275 0%, #ffd200 50%, #ffa800 100%);
  --accent-red: #d32f2f;
  --text-white: #ffffff;
  --text-dim: #b8ccf4;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-hover: rgba(255, 255, 255, 0.14);
  --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  --gold-shadow: 0 0 25px rgba(255, 210, 0, 0.4);
  
  /* --- Premium Typography System --- */
  --font-body: 'Be Vietnam Pro', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-display: 'Cinzel', serif;
  --font-script: 'Fz Photograph', 'Charm', cursive;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: #011352;
  color: var(--text-white);
  overflow-x: hidden;
  width: 100%;
}

/* --- Dynamic & Texture Background Enhancements --- */
body {
  background-color: #011244;
  background-image: 
    /* Subversive Halftone Dot Matrix Pattern like banner */
    radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px),
    /* Deep Glowing Ambient Radial Orbs */
    radial-gradient(circle at 20% 20%, rgba(8, 85, 255, 0.55) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255, 210, 0, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(2, 28, 116, 0.9) 0%, transparent 60%);
  background-size: 28px 28px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 0 0;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

img, iframe, video, canvas, svg {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, span, a, label {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Floating Ambient Glow Orbs */
.bg-ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  animation: floatOrb 12s infinite alternate ease-in-out;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: #0543d1;
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(255, 210, 0, 0.25);
  bottom: 10%;
  right: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: #0855ff;
  top: 45%;
  left: 20%;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Decorative Geometric Elements matching the banner (Triangles & Arrows) */
.geo-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.25;
  color: var(--accent-gold);
}

/* Background Canvas for Particles */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --- Container & Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  font-family: var(--font-script);
  font-size: 3.8rem;
  font-weight: 400;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 210, 0, 0.5);
  display: block;
  margin-bottom: -15px;
  letter-spacing: 1px;
}

.section-main-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  background: linear-gradient(180deg, #ffffff 0%, #a4c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Glassmorphism Card Utility --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(255, 210, 0, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 210, 0, 0.15);
}

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(2, 28, 116, 0.85);
  backdrop-filter: blur(15px);
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark-blue);
  font-size: 1.4rem;
  box-shadow: var(--gold-shadow);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.music-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.music-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-dark-blue);
  box-shadow: var(--gold-shadow);
}

.music-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-btn.is-playing {
  background: rgba(255, 210, 0, 0.18);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  animation: musicPulse 1.8s infinite ease-in-out;
}

/* --- Mobile Hamburger Menu Toggle Button --- */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu-btn .bar {
  width: 22px;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-btn:hover {
  background: rgba(255, 210, 0, 0.2);
  border-color: var(--accent-gold);
  box-shadow: var(--gold-shadow);
}

.mobile-menu-btn.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Backdrop Blur Overlay */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 12, 45, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-menu-lock {
  overflow: hidden !important;
}

@keyframes musicPulse {
  50% { box-shadow: 0 0 22px rgba(255, 210, 0, 0.55); }
}

.btn-primary {
  background: var(--accent-gold-gradient);
  color: var(--primary-dark-blue);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: var(--gold-shadow);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(255, 210, 0, 0.6);
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 150px;
  padding-bottom: 80px;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 210, 0, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1.5px;
}

.hero-subtitle-script {
  font-family: var(--font-script);
  font-size: 4.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 45px rgba(8, 85, 255, 0.5);
  letter-spacing: 1.5px;
}

.hero-title-main {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #fff275 0%, #ffd200 45%, #ffa800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.6));
}

.hero-desc {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 35px;
  max-width: 500px;
}

/* Countdown Timer */
.countdown-box {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
}

.time-unit {
  background: rgba(2, 28, 116, 0.6);
  border: 1px solid rgba(255, 210, 0, 0.3);
  padding: 15px 18px;
  border-radius: 12px;
  text-align: center;
  min-width: 80px;
  backdrop-filter: blur(5px);
}

.time-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  display: block;
  line-height: 1;
}

.time-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 5px;
}

/* Hero Portrait Canvas / Image Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-circle-bg {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--accent-gold-gradient);
  position: absolute;
  box-shadow: 0 0 60px rgba(255, 210, 0, 0.5);
  animation: pulse-ring 4s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); box-shadow: 0 0 50px rgba(255, 210, 0, 0.4); }
  50% { transform: scale(1.03); box-shadow: 0 0 80px rgba(255, 210, 0, 0.7); }
}

.portrait-img {
  width: 410px;
  height: 410px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 6px solid #ffffff;
  box-shadow: var(--card-shadow);
}

.hero-badge-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-float i {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

/* --- Quick Info Banner Bar --- */
.quick-info-bar {
  margin-top: 40px;
  margin-bottom: 80px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 25px;
  gap: 20px;
  text-align: center;
}

.info-item {
  border-right: 1px solid var(--glass-border);
}

.info-item:last-child {
  border-right: none;
}

.info-item i {
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.info-item h4 {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.info-item p {
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- Event Timeline Section --- */
.timeline-section {
  padding: 80px 0;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--primary-blue) 100%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
  position: relative;
  margin-bottom: 40px;
  width: 50%;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 40px;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 4px solid var(--primary-dark-blue);
  box-shadow: 0 0 10px var(--accent-gold);
  z-index: 5;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -12px;
}

.timeline-content {
  padding: 25px;
  width: 100%;
}

.timeline-time {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* --- Gallery & Concepts Section --- */
.concepts-section {
  padding: 80px 0;
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.concept-card {
  overflow: hidden;
  position: relative;
}

.concept-img-wrapper {
  height: 320px;
  overflow: hidden;
  position: relative;
}

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

.concept-card:hover .concept-img-wrapper img {
  transform: scale(1.08);
}

.concept-info {
  padding: 25px;
}

.concept-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

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

/* --- RSVP Form Section --- */
.rsvp-section {
  padding: 80px 0;
}

.rsvp-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
}

.rsvp-form .form-group {
  margin-bottom: 22px;
}

.rsvp-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #dce7ff;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(2, 28, 116, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 210, 0, 0.25);
}

.rsvp-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  min-height: 24px;
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.form-message.success {
  color: #9fffb4;
}

.form-message.error {
  color: #ffb4b4;
}

.rsvp-form button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

/* --- Wishes Wall Section --- */
.wishes-section {
  padding: 80px 0 120px;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.wishes-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
}

.wish-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wish-text {
  font-style: italic;
  color: #e2ecff;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.wish-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wish-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--primary-dark-blue);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wish-author-info h4 {
  font-size: 0.95rem;
}

.wish-author-info span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Footer --- */
.footer {
  background: rgba(1, 19, 82, 0.95);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: 5;
}

.footer p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--accent-gold);
  color: var(--primary-dark-blue);
}

/* --- Scroll Reveal Animations CSS --- */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Custom Glowing Golden Pointer Follower --- */
.glow-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 0, 0.8) 0%, rgba(255, 210, 0, 0) 70%);
  border: 1.5px solid rgba(255, 210, 0, 0.6);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 210, 0, 0.5);
}

.glow-cursor-follower.cursor-hover {
  width: 45px;
  height: 45px;
  background: radial-gradient(circle, rgba(255, 210, 0, 0.4) 0%, rgba(255, 210, 0, 0.1) 70%);
  border-color: rgba(255, 210, 0, 0.9);
  box-shadow: 0 0 25px rgba(255, 210, 0, 0.8);
}

/* --- Plan 1: Audio Equalizer Visualizer & Toast --- */
.audio-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding: 0 2px;
}

.audio-equalizer .bar {
  width: 3px;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: eqBar 1.2s infinite ease-in-out alternate;
}

.audio-equalizer .bar-1 { height: 40%; animation-delay: 0.1s; }
.audio-equalizer .bar-2 { height: 100%; animation-delay: 0.4s; }
.audio-equalizer .bar-3 { height: 65%; animation-delay: 0.2s; }
.audio-equalizer .bar-4 { height: 85%; animation-delay: 0.5s; }

@keyframes eqBar {
  0% { height: 25%; }
  100% { height: 100%; }
}

.music-info-toast {
  position: fixed;
  top: 85px;
  right: 25px;
  z-index: 1001;
  background: rgba(2, 28, 116, 0.92);
  border: 1px solid var(--accent-gold);
  color: var(--text-white);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 210, 0, 0.3);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-info-toast i {
  color: var(--accent-gold);
}

.music-info-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Plan 2: Add to Calendar Wrapper --- */
.calendar-action-wrapper {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.btn-calendar {
  padding: 12px 28px;
  font-size: 0.92rem;
}

/* --- Plan 7: Location & Map Section --- */
.location-section {
  padding: 80px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding: 35px;
  align-items: center;
}

.location-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-address {
  font-weight: 600;
  color: #e2ecff;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.location-address i {
  color: #ff5252;
}

.location-desc {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 25px;
}

.location-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.map-embed-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--glass-border);
}

/* --- Plan 6: Wish Wall Sort Tabs & Likes --- */
.wishes-sort-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.sort-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-tab.active, .sort-tab:hover {
  background: var(--accent-gold-gradient);
  color: var(--primary-dark-blue);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 210, 0, 0.4);
}

.wish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-like-wish {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.btn-like-wish:hover, .btn-like-wish.liked {
  background: rgba(255, 82, 82, 0.2);
  border-color: #ff5252;
  color: #ff7373;
}

.btn-like-wish.liked i {
  color: #ff5252;
  animation: heartPulse 0.4s ease;
}

@keyframes heartPulse {
  50% { transform: scale(1.4); }
}

.floating-heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  color: #ff5252;
  z-index: 9999;
  animation: floatUpHeart 1s ease-out forwards;
}

@keyframes floatUpHeart {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate((Math.random() - 0.5) * 60px, -80px) scale(1.5); }
}

/* --- Plan 4: Ultra-Luxurious 3D Royal Unboxing Envelope Modal --- */
.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at center, #051a4a 0%, #01081f 75%, #00040f 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Ambient Gold Sunburst Rays Engine */
.env-sunburst-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140vw;
  height: 140vw;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 210, 0, 0.04) 0deg 15deg,
    transparent 15deg 30deg
  );
  border-radius: 50%;
  pointer-events: none;
  animation: rotateSunburst 40s linear infinite;
}

@keyframes rotateSunburst {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating Gold Sparkles Particles */
.env-sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.env-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffe600;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffe600, 0 0 25px #ffa800;
  opacity: 0;
  animation: sparkleFloat 4s ease-in-out infinite;
}

.sp-1 { top: 20%; left: 25%; animation-delay: 0s; transform: scale(0.8); }
.sp-2 { top: 30%; right: 20%; animation-delay: 1.2s; transform: scale(1.2); }
.sp-3 { bottom: 25%; left: 18%; animation-delay: 2.4s; transform: scale(1.5); }
.sp-4 { bottom: 30%; right: 22%; animation-delay: 0.6s; transform: scale(0.9); }
.sp-5 { top: 15%; right: 35%; animation-delay: 1.8s; transform: scale(1.1); }
.sp-6 { bottom: 15%; left: 40%; animation-delay: 3s; transform: scale(1.3); }

@keyframes sparkleFloat {
  0% { opacity: 0; transform: translateY(0px) scale(0.5); }
  50% { opacity: 0.9; transform: translateY(-30px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-60px) scale(0.5); }
}

/* 3D Stage Container */
.envelope-3d-scene {
  position: relative;
  perspective: 1500px;
  width: 100%;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 3D Envelope Body */
.envelope-3d-card {
  position: relative;
  width: 100%;
  height: 335px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  cursor: pointer;
  animation: floatEnvelope 5s ease-in-out infinite alternate;
}

@keyframes floatEnvelope {
  0% { transform: translateY(0px) rotateX(7deg) rotateY(-5deg); }
  50% { transform: translateY(-14px) rotateX(11deg) rotateY(5deg); }
  100% { transform: translateY(0px) rotateX(7deg) rotateY(-5deg); }
}

.envelope-3d-card:hover {
  transform: translateY(-8px) rotateX(0deg) rotateY(0deg) scale(1.03) !important;
}

/* Back Lining with Royal Silk Texture */
.env-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #021a63 0%, #010c33 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 60px rgba(255, 210, 0, 0.35);
  z-index: 1;
  overflow: hidden;
}

.env-inner-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 210, 0, 0.15) 1px, transparent 0);
  background-size: 16px 16px;
  opacity: 0.7;
}

/* Front Envelope Pocket (V-Shape Geometry with Gold Trim) */
.env-pocket {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(165deg, rgba(9, 72, 215, 0.98) 0%, rgba(2, 26, 105, 0.99) 100%);
  clip-path: polygon(0% 0%, 50% 52%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 20px;
  box-shadow: inset 0 2px 20px rgba(255, 210, 0, 0.4);
}

.env-pocket-gold-trim {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255, 210, 0, 0.5);
}

.env-emboss-logo {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: rgba(255, 210, 0, 0.4);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Top 3D Flap with Satin Ribbon & Metallic Foil Border */
.env-flap-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 185px;
  z-index: 4;
  background: linear-gradient(180deg, #0b54f0 0%, #032899 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease 0.2s, z-index 0.1s step-end;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.env-satin-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 100%;
  background: linear-gradient(90deg, #c79200 0%, #ffe866 50%, #9e7100 100%);
  box-shadow: 0 0 15px rgba(255, 210, 0, 0.5);
  opacity: 0.85;
}

/* Gold Wax Seal Stamp with Rotating Halo */
.wax-seal {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 35% 35%, #fff176 0%, #ffd200 45%, #b38200 85%, #664600 100%);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 210, 0, 0.8), inset 0 2px 8px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.4s ease;
  z-index: 5;
}

.wax-seal-ring {
  position: absolute;
  inset: -6px;
  border: 1.5px dashed rgba(255, 210, 0, 0.8);
  border-radius: 50%;
  animation: rotateRing 12s linear infinite;
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.15) rotate(8deg);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 45px rgba(255, 210, 0, 1), inset 0 3px 10px rgba(255, 255, 255, 0.9);
}

.wax-seal-inner {
  width: 58px;
  height: 58px;
  border: 1.5px dashed rgba(2, 26, 105, 0.9);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #021a63;
  background: rgba(255, 230, 0, 0.25);
}

.wax-seal-inner i {
  font-size: 1.35rem;
  margin-bottom: 1px;
}

.wax-seal-inner span {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1.5px;
}

/* Invitation Letter Card tucked inside envelope */
.env-letter {
  position: absolute;
  top: 15px;
  left: 18px;
  right: 18px;
  height: 300px;
  z-index: 2;
  background: linear-gradient(135deg, rgba(2, 25, 90, 0.98) 0%, rgba(1, 14, 55, 1) 100%);
  border: 2px solid var(--accent-gold);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(255, 210, 0, 0.2);
  transition: transform 0.95s cubic-bezier(0.34, 1.35, 0.64, 1), opacity 0.85s ease, z-index 0.1s ease;
  overflow: hidden;
}

.letter-gold-frame {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 210, 0, 0.35);
  border-radius: 10px;
  pointer-events: none;
}

.env-letter .stamp {
  width: 56px;
  height: 56px;
  background: var(--accent-gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--primary-dark-blue);
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(255, 210, 0, 0.6);
}

.letter-tag {
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(255, 210, 0, 0.5);
}

.letter-salutation {
  font-family: var(--font-script);
  font-size: 2.3rem;
  color: var(--accent-gold);
  font-weight: normal;
  margin-bottom: 4px;
  line-height: 1.1;
}

.letter-name {
  font-size: 2.1rem;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 12px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.letter-desc {
  color: #dce7ff;
  font-size: 0.92rem;
  line-height: 1.6;
}

.letter-accent-bar {
  width: 70px;
  height: 2.5px;
  background: var(--accent-gold-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--accent-gold);
}

/* Light Burst & Shockwave Glow Overlay */
.env-shockwave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  width: 300px;
  height: 300px;
  border: 4px solid var(--accent-gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.env-light-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 230, 0, 0.95) 0%, rgba(255, 168, 0, 0.5) 45%, transparent 75%);
  border-radius: 50%;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.8s ease;
}

/* Envelope Action Bar */
.envelope-action-bar {
  margin-top: 38px;
  text-align: center;
  z-index: 10;
}

.open-letter-btn {
  padding: 17px 46px;
  font-size: 1.08rem;
  letter-spacing: 1.5px;
  box-shadow: 0 10px 35px rgba(255, 210, 0, 0.45);
  animation: pulseGoldBtn 2s infinite alternate;
}

@keyframes pulseGoldBtn {
  0% { box-shadow: 0 10px 35px rgba(255, 210, 0, 0.45); transform: scale(1); }
  100% { box-shadow: 0 16px 50px rgba(255, 210, 0, 0.75); transform: scale(1.04); }
}

.envelope-hint {
  color: rgba(255, 230, 150, 0.85);
  font-size: 0.9rem;
  margin-top: 12px;
  text-shadow: 0 0 10px rgba(255, 210, 0, 0.3);
}

/* --- ANIMATIONS FOR UNBOXING SEQUENCING --- */

/* Phase 1: Flap Opens Upwards 180deg cleanly */
.envelope-3d-card.opening {
  animation: none !important;
  transform: rotateX(0deg) rotateY(0deg) translateY(60px) scale(1.05) !important;
}

.envelope-3d-card.opening .env-flap-3d {
  transform: rotateX(180deg);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease 0.3s, z-index 0.1s step-end;
}

.envelope-3d-card.opening .wax-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.3);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.envelope-3d-card.opening .env-satin-ribbon {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Phase 2: Letter Slides Out Perfectly Balanced (-140px) to Center View */
.envelope-3d-card.opening .env-letter {
  transform: translateY(-145px) scale(1.04);
  z-index: 10;
  background: linear-gradient(135deg, rgba(3, 32, 115, 0.99) 0%, rgba(1, 16, 65, 1) 100%);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 210, 0, 0.6);
  border-color: var(--accent-gold);
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s ease;
}

/* Phase 3: Shockwave & Light Burst Triggers */
.envelope-3d-card.opening .env-shockwave {
  opacity: 1;
  transform: translate(-50%, -50%) scale(2.4);
}

.envelope-3d-card.opening .env-light-burst {
  opacity: 1;
  transform: translate(-50%, -50%) scale(2.2);
}




/* --- Solution 1: Soft Blend Mask Parallax Vector Background Layer --- */
.school-vector-bg {
  position: fixed;
  bottom: -10px;
  right: -10px;
  width: min(68vw, 825px);
  height: min(50vh, 525px);
  background-image: url('/school-vector.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  mix-blend-mode: lighten;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(255, 210, 0, 0.85)) 
          drop-shadow(0 0 35px rgba(255, 180, 0, 0.6)) 
          drop-shadow(0 0 65px rgba(8, 85, 255, 0.5));
  mask-image: radial-gradient(ellipse at 82% 82%, black 50%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse at 82% 82%, black 50%, transparent 88%);
  transition: transform 0.2s ease-out, opacity 0.4s ease;
  animation: goldNeonPulse 4s infinite alternate ease-in-out;
}

@keyframes goldNeonPulse {
  0% {
    filter: drop-shadow(0 0 12px rgba(255, 210, 0, 0.75)) 
            drop-shadow(0 0 28px rgba(255, 180, 0, 0.5)) 
            drop-shadow(0 0 50px rgba(8, 85, 255, 0.4));
    opacity: 0.5;
  }
  100% {
    filter: drop-shadow(0 0 22px rgba(255, 210, 0, 0.95)) 
            drop-shadow(0 0 45px rgba(255, 210, 0, 0.75)) 
            drop-shadow(0 0 80px rgba(8, 85, 255, 0.75));
    opacity: 0.68;
  }
}

.school-vector-bg .spotlight-beam {
  position: absolute;
  top: -20%;
  left: 30%;
  width: 250px;
  height: 120%;
  background: linear-gradient(180deg, rgba(255, 210, 0, 0.3) 0%, rgba(5, 67, 209, 0) 100%);
  transform: rotate(-25deg);
  filter: blur(35px);
  opacity: 0.7;
  animation: beamGlow 6s infinite alternate ease-in-out;
}

@keyframes beamGlow {
  0% { opacity: 0.3; transform: rotate(-28deg) scale(0.95); }
  50% { opacity: 0.8; transform: rotate(-22deg) scale(1.08); }
  100% { opacity: 0.4; transform: rotate(-25deg) scale(1); }
}


.photo-item span {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background: rgba(1, 15, 50, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-gold);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Idea 3: Location Card with Photo Watermark Background --- */
.location-watermark-card {
  position: relative;
  overflow: hidden;
}

.location-watermark-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(2, 28, 116, 0.92) 0%, rgba(1, 15, 50, 0.96) 100%), url('/khu-A.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.location-watermark-card > * {
  position: relative;
  z-index: 2;
}
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-desc {
    margin: 0 auto 35px;
  }

  .countdown-box {
    justify-content: center;
  }

  .portrait-circle-bg, .portrait-img {
    width: 320px;
    height: 320px;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .info-item {
    border-right: none;
    padding: 15px 10px;
  }

  .concepts-grid, .wishes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .desktop-only-btn {
    display: none !important;
  }

  /* Responsive Glassmorphism Mobile Menu Drawer */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    background: linear-gradient(160deg, rgba(3, 30, 110, 0.97) 0%, rgba(1, 14, 55, 0.99) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 210, 0, 0.35);
    border-radius: 20px;
    padding: 18px 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 210, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  }

  .nav-links.mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #e3eeff;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    text-decoration: none;
  }

  .nav-links a i {
    font-size: 1.15rem;
    color: var(--accent-gold);
    width: 24px;
    text-align: center;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(255, 210, 0, 0.15);
    border-color: rgba(255, 210, 0, 0.3);
    color: var(--accent-gold);
    transform: translateX(4px);
  }

  .section-subtitle {
    font-size: 2.8rem;
  }

  .section-main-title {
    font-size: 1.9rem;
    letter-spacing: 1px;
  }

  .hero-title-main {
    font-size: 3rem;
  }

  .hero-subtitle-script {
    font-size: 2.6rem;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

  .hero-badge-float {
    position: absolute;
    bottom: -20px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    max-width: calc(100vw - 36px) !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    z-index: 5;
  }

  .hero-badge-float div {
    min-width: 0;
    flex: 1;
  }

  .hero-badge-float strong {
    font-size: 0.85rem !important;
    white-space: nowrap;
  }

  .hero-badge-float small {
    font-size: 0.75rem !important;
    display: block;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
  }

  .hero-badge-float.reveal-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.96) !important;
  }

  .hero-badge-float.reveal-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }

  /* Responsive 3D Envelope Unboxing on Mobile - Proportional Royal Geometry */
  .envelope-3d-scene {
    max-width: min(92vw, 400px);
  }

  .envelope-3d-card {
    height: 250px;
  }

  .env-flap-3d {
    height: 142px;
  }

  .env-letter {
    top: 10px;
    left: 12px;
    right: 12px;
    height: 230px;
    padding: 18px 14px;
    transform: translateY(0) scale(1);
  }

  .envelope-3d-card.opening {
    transform: rotateX(0deg) rotateY(0deg) translateY(45px) scale(1) !important;
  }

  .envelope-3d-card.opening .env-letter {
    transform: translateY(-118px) scale(1.03);
    z-index: 10;
  }

  .env-letter .stamp {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    margin: 0 auto 4px;
  }

  .letter-tag {
    font-size: 0.68rem;
    margin-bottom: 2px;
    letter-spacing: 1px;
  }

  .letter-salutation {
    font-size: 1.6rem;
    margin-bottom: 2px;
  }

  .letter-name {
    font-size: 1.35rem;
    margin-bottom: 6px;
    word-break: break-word;
  }

  .letter-desc {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .letter-accent-bar {
    margin: 8px auto 0;
    height: 2px;
  }

  .wax-seal {
    width: 62px;
    height: 62px;
    bottom: -15px;
  }

  .wax-seal-inner {
    width: 48px;
    height: 48px;
  }

  .wax-seal-inner i {
    font-size: 1.1rem;
  }

  .envelope-action-bar {
    margin-top: 24px;
  }

  .open-letter-btn {
    padding: 13px 28px;
    font-size: 0.9rem;
  }

  /* Mobile Countdown Timer Units */
  .countdown-box {
    gap: 8px;
  }

  .time-unit {
    min-width: 65px;
    padding: 10px 8px;
  }

  .time-val {
    font-size: 1.6rem;
  }

  .time-label {
    font-size: 0.68rem;
  }

  /* Timeline Section on Mobile */
  .timeline-container::before {
    left: 18px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 45px !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
  }

  .timeline-dot {
    left: 6px !important;
    width: 24px;
    height: 24px;
  }

  .concepts-grid, .wishes-grid {
    grid-template-columns: 1fr;
  }

  .school-vector-bg {
    width: 90vw;
    height: 35vh;
    opacity: 0.35;
    animation: none !important;
    filter: drop-shadow(0 0 15px rgba(255, 210, 0, 0.5)) !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: 100vw !important;
  }

  .school-vector-bg .spotlight-beam {
    animation: none !important;
  }

  /* Mobile GPU & Compositing Performance Optimizations */
  .bg-ambient-orb {
    animation: none !important;
    filter: blur(40px) !important;
    opacity: 0.35 !important;
    max-width: 100vw !important;
  }

  .orb-1 {
    left: 0 !important;
  }

  .orb-2 {
    right: 0 !important;
  }

  .orb-3 {
    display: none !important;
  }

  .glass-card {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  /* Touch-friendly buttons and inputs */
  .btn-primary, .btn-secondary, .form-control {
    min-height: 48px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-title-main {
    font-size: 2.3rem;
  }

  .hero-subtitle-script {
    font-size: 2rem;
  }

  .portrait-circle-bg, .portrait-img {
    width: 260px;
    height: 260px;
  }

  .hero-badge-float {
    bottom: -22px !important;
    padding: 8px 12px !important;
    max-width: calc(100vw - 24px) !important;
  }

  .hero-badge-float i {
    font-size: 1.3rem !important;
  }

  .hero-badge-float strong {
    font-size: 0.78rem !important;
  }

  .hero-badge-float small {
    font-size: 0.68rem !important;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .envelope-3d-scene {
    max-width: min(94vw, 340px);
  }

  .envelope-3d-card {
    height: 220px;
  }

  .env-flap-3d {
    height: 125px;
  }

  .env-letter {
    height: 205px;
    padding: 14px 10px;
  }

  .envelope-3d-card.opening .env-letter {
    transform: translateY(-105px) scale(1.02);
  }

  .env-letter .stamp {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    margin-bottom: 2px;
  }

  .letter-salutation {
    font-size: 1.35rem;
  }

  .letter-name {
    font-size: 1.2rem;
  }

  .letter-desc {
    font-size: 0.74rem;
    line-height: 1.3;
  }

  .wax-seal {
    width: 56px;
    height: 56px;
    bottom: -14px;
  }

  .wax-seal-inner {
    width: 42px;
    height: 42px;
  }

  .time-unit {
    min-width: 58px;
    padding: 8px 5px;
  }

  .time-val {
    font-size: 1.4rem;
  }

  .wishes-sort-tabs {
    flex-wrap: wrap;
  }
}
