/* ==========================================================================
   26th Birthday Celebration - Luxury Warm Aesthetic Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #0a0e17;
  --bg-card: rgba(18, 25, 42, 0.75);
  --bg-card-hover: rgba(26, 36, 61, 0.85);
  --accent-gold: #e5b95f;
  --accent-gold-light: #f7df94;
  --accent-gold-dark: #b8860b;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-gold: rgba(229, 185, 95, 0.28);
  --border-gold-bright: rgba(247, 223, 148, 0.6);
  --shadow-warm: 0 10px 30px -10px rgba(229, 185, 95, 0.25);
  --glass-blur: blur(16px);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-script: "Great Vibes", cursive, "Brush Script MT", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 15%, #182238 0%, #0a0e17 65%, #05070c 100%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background ambient glow */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(229, 185, 95, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 12s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(-5%, -5%); opacity: 0.6; }
  100% { transform: scale(1.15) translate(5%, 5%); opacity: 1; }
}

/* Canvas for Confetti */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   Password Lock Screen
   ========================================================================== */
#lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #162035 0%, #080c14 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#lock-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-card {
  background: rgba(18, 25, 42, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(229, 185, 95, 0.15);
  backdrop-filter: var(--glass-blur);
  animation: cardFadeUp 0.8s ease-out;
}

@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.lock-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: floatIcon 3s ease-in-out infinite alternate;
}

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

.lock-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.lock-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.password-input-group {
  position: relative;
  margin-bottom: 16px;
}

.password-input {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(229, 185, 95, 0.35);
  background: rgba(10, 14, 23, 0.7);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.25s ease;
}

.password-input:focus {
  border-color: var(--accent-gold-light);
  box-shadow: 0 0 15px rgba(229, 185, 95, 0.3);
}

.toggle-eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.15rem;
  padding: 4px;
}

.btn-gold {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f7df94 0%, #e5b95f 50%, #b8860b 100%);
  border: none;
  border-radius: 12px;
  color: #0c1017;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(229, 185, 95, 0.3);
  transition: all 0.25s ease;
  display: inline-block;
  text-align: center;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 185, 95, 0.45);
  background: linear-gradient(135deg, #fff 0%, #f7df94 40%, #e5b95f 100%);
}

.btn-gold:active {
  transform: translateY(1px);
}

.lock-error {
  color: #f87171;
  font-size: 0.88rem;
  margin-top: 10px;
  min-height: 20px;
}

.shake {
  animation: shakeAnim 0.45s ease-in-out;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* ==========================================================================
   Header & Floating Music Bar
   ========================================================================== */
.music-bar {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: rgba(18, 25, 42, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.music-btn {
  background: none;
  border: none;
  color: var(--accent-gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.music-disc {
  display: inline-block;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.music-disc.playing {
  animation: spinDisc 4s linear infinite;
}

@keyframes spinDisc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 100px 20px;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(229, 185, 95, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-light);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, #f7df94 70%, #e5b95f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent-gold-light);
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-style: italic;
}

.hero-quote {
  max-width: 720px;
  margin: 0 auto 30px auto;
  color: var(--text-main);
  font-size: 1.15rem;
  line-height: 1.8;
  font-family: var(--font-serif);
  font-style: italic;
  padding: 16px 24px;
  border-left: 3px solid var(--accent-gold);
  background: rgba(229, 185, 95, 0.05);
  border-radius: 0 12px 12px 0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(229, 185, 95, 0.15);
  border-color: var(--accent-gold-light);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   A Heartfelt Letter from Dad (The Centerpiece)
   ========================================================================== */
.letter-section {
  margin-bottom: 70px;
}

.letter-card {
  background: linear-gradient(135deg, rgba(22, 31, 52, 0.92) 0%, rgba(15, 21, 36, 0.95) 100%);
  border: 1px solid var(--border-gold-bright);
  border-radius: 24px;
  padding: 50px 45px;
  box-shadow: var(--shadow-warm), 0 25px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
}

.letter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #f7df94 50%, transparent 100%);
}

.letter-seal {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.letter-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(229, 185, 95, 0.2);
  padding-bottom: 16px;
}

.letter-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.letter-p {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #e5e7eb;
}

.letter-p strong {
  color: var(--accent-gold-light);
  font-size: 1.25rem;
  font-family: var(--font-serif);
}

.letter-highlight {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-gold-light);
  padding: 18px 24px;
  background: rgba(229, 185, 95, 0.08);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 12px 12px 0;
  margin-top: 10px;
}

.letter-signature {
  margin-top: 36px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sig-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.sig-name {
  font-family: var(--font-script);
  font-size: 3.5rem;
  color: var(--accent-gold-light);
  line-height: 1.2;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--accent-gold-light);
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
  font-style: italic;
}

/* ==========================================================================
   Milestone Spotlight: 18th Birthday (Dad & Son)
   ========================================================================== */
.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold-bright);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 70px;
  box-shadow: var(--shadow-warm), 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--glass-blur);
}

.spotlight-badge {
  display: inline-block;
  background: rgba(229, 185, 95, 0.18);
  color: var(--accent-gold-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 850px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.spotlight-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-gold);
}

.spotlight-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease, transform 0.5s ease;
}



.spotlight-info h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--accent-gold-light);
  margin-bottom: 12px;
}

.spotlight-info p {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.spotlight-highlight-box {
  background: rgba(229, 185, 95, 0.08);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: var(--accent-gold-light);
  font-size: 0.95rem;
  font-style: italic;
}

/* ==========================================================================
   Memory Timeline Cards
   ========================================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  margin-bottom: 70px;
}

.memory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
}

.memory-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold-light);
  box-shadow: 0 16px 35px -8px rgba(229, 185, 95, 0.25);
  background: var(--bg-card-hover);
}

.memory-card-img-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #0d121c;
}

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

.memory-card:hover .memory-card-img {
  transform: scale(1.04);
}

.memory-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.memory-tag {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.memory-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 10px;
}

.memory-card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Featured Video Section (Sabah Boat Trip)
   ========================================================================== */
.video-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 34px;
  margin-bottom: 50px;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.video-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.birthday-video {
  width: 100%;
  max-height: 520px;
  display: block;
  outline: none;
}

.video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
}

.video-mode-info {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.video-mode-info strong {
  color: var(--accent-gold-light);
}

.video-btn-group {
  display: flex;
  gap: 10px;
}

.btn-video {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: rgba(229, 185, 95, 0.12);
  color: var(--accent-gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-video:hover {
  background: var(--accent-gold);
  color: #0c1017;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-gold {
  color: var(--accent-gold-light);
  font-weight: 600;
}

/* Responsive tweaks */
@media (max-width: 650px) {
  .hero-title {
    font-size: 2.35rem;
  }
  .letter-card {
    padding: 30px 20px;
  }
  .letter-heading {
    font-size: 1.7rem;
  }
  .letter-p {
    font-size: 1rem;
  }
  .sig-name {
    font-size: 2.8rem;
  }
  .spotlight-card, .video-section-card {
    padding: 20px;
  }
  .music-bar {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
  }
}
