/* ============================================== */
/* RESET & BASE DESIGN TOKENS                    */
/* ============================================== */
:root {
  --bg-dark: #0a0d14;
  --bg-card: rgba(18, 24, 38, 0.75);
  --border-dark: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-gold: #f59e0b;
  --accent-rose: #f43f5e;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-hindi: 'Noto Serif Devanagari', 'Playfair Display', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-hand: 'Caveat', cursive;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* ============================================== */
/* PHASE 1: PROFESSIONAL PORTFOLIO STYLES         */
/* ============================================== */
.portfolio-screen {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0a0d14 75%);
  display: flex;
  flex-direction: column;
}

.portfolio-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.logo-text {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-main);
}

.vault-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vault-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  color: white;
}

.pulse-glow {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
  animation: pulseAnimation 2.5s infinite;
}

@keyframes pulseAnimation {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.portfolio-hero {
  max-width: 900px;
  margin: 4.5rem auto 2.5rem;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1.1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

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

.btn-primary {
  background: #6366f1;
  color: white;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 700px;
  margin-top: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 1.5rem 1rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #c084fc;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.portfolio-section {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  color: #a855f7;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 2.2rem 2rem;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

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

.vault-banner {
  max-width: 1000px;
  margin: 2rem auto 5rem;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.8), rgba(88, 28, 135, 0.4));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.vault-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vault-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-banner-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.vault-banner-content p {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.btn-vault-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.btn-vault-action:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.5);
}

.portfolio-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================== */
/* MODAL STYLES (PASSCODE POPUP)                  */
/* ============================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

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

.modal-card {
  background: #141822;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 26px;
  padding: 2.75rem 2.25rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(139, 92, 246, 0.25);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: white;
}

.modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-header h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.input-wrapper {
  margin-bottom: 1rem;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #090c12;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-wrapper input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.error-text {
  color: #f87171;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.shake-animation {
  animation: shake 0.4s ease-in-out;
  border-color: #f87171 !important;
}

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

.hint-text {
  color: #fbbf24;
}

.btn-decrypt {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-decrypt:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5);
}

.subtle-hint {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================== */
/* CINEMATIC TRANSITION OVERLAY                   */
/* ============================================== */
.cinematic-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #2e0854, #05010a);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.cinematic-content {
  text-align: center;
  z-index: 10;
}

.magic-portal {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
}

.ring-1 {
  border-top-color: #f43f5e;
  border-bottom-color: #ec4899;
  animation: spin 1s linear infinite;
}

.ring-2 {
  inset: 10px;
  border-left-color: #fbbf24;
  border-right-color: #a855f7;
  animation: spinReverse 1.4s linear infinite;
}

.portal-core {
  font-size: 2.2rem;
  animation: pulseScale 1s infinite alternate;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes pulseScale {
  from { transform: scale(0.9); }
  to { transform: scale(1.15); }
}

.glitch-text {
  font-size: 1.9rem;
  letter-spacing: 5px;
  font-weight: 800;
  color: #f472b6;
  margin-bottom: 1rem;
}

.fade-quote {
  font-size: 1.15rem;
  color: #fce7f3;
  opacity: 0.9;
}

/* ============================================== */
/* PHASE 2: MAGICAL BIRTHDAY WONDERLAND           */
/* ============================================== */
.birthday-screen {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #36075c 0%, #160624 45%, #08020d 100%);
  position: relative;
  overflow: hidden;
  padding-bottom: 6rem;
  color: #fff;
}

.stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: 2;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: rgba(244, 63, 94, 0.22);
  top: 5%;
  left: -10%;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(168, 85, 247, 0.25);
  top: 35%;
  right: -10%;
}

.glow-3 {
  width: 550px;
  height: 550px;
  background: rgba(251, 146, 60, 0.18);
  bottom: 5%;
  left: 20%;
}

/* Floating Aesthetic Music Player */
.floating-music-player {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(26, 8, 48, 0.88);
  border: 1px solid rgba(244, 114, 182, 0.45);
  backdrop-filter: blur(18px);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 90;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 25px rgba(236, 72, 153, 0.35);
  animation: floatWidget 4s ease-in-out infinite;
}

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

.vinyl-disc {
  width: 44px;
  height: 44px;
  background: #111;
  border: 2px solid #333;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-disc.spinning {
  animation: spin 3s linear infinite;
}

.vinyl-center {
  width: 15px;
  height: 15px;
  background: #ec4899;
  border: 2px solid #fff;
  border-radius: 50%;
}

.track-info {
  display: flex;
  flex-direction: column;
}

.track-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbcfe8;
}

.track-artist {
  font-size: 0.75rem;
  color: #f472b6;
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 10px;
  margin-top: 3px;
}

.sound-wave .bar {
  width: 3px;
  height: 100%;
  background: #ec4899;
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.sound-wave .bar:nth-child(1) { animation-delay: 0.1s; height: 60%; }
.sound-wave .bar:nth-child(2) { animation-delay: 0.3s; height: 100%; }
.sound-wave .bar:nth-child(3) { animation-delay: 0.2s; height: 80%; }
.sound-wave .bar:nth-child(4) { animation-delay: 0.4s; height: 40%; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-btn {
  background: #f43f5e;
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-btn:hover {
  transform: scale(1.1);
  background: #e11d48;
}

/* Birthday Hero */
.birthday-hero {
  position: relative;
  z-index: 10;
  max-width: 920px;
  margin: 3.5rem auto 2rem;
  text-align: center;
  padding: 0 1.5rem;
}

.magic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(244, 63, 94, 0.22);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fecdd3;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.grand-birthday-title {
  font-family: var(--font-hindi);
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 35px rgba(244, 63, 94, 0.45);
}

.highlight-name {
  font-family: var(--font-script);
  font-size: 1.25em;
  background: linear-gradient(135deg, #fbcfe8, #f43f5e, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-top: 0.2rem;
}

.birthday-tagline {
  font-size: 1.25rem;
  color: #fce7f3;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-family: var(--font-hindi);
}

.birthday-tagline strong {
  color: #fde047;
  display: block;
  margin-top: 0.5rem;
  font-size: 1.35rem;
}

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

.btn-magic {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
  border: none;
  padding: 0.95rem 2.2rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.45);
  transition: var(--transition-smooth);
}

.btn-magic:hover {
  transform: translateY(-3px) scale(1.03);
}

.pulse-btn {
  animation: heartPulse 2.2s infinite;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  padding: 0.95rem 2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

/* ============================================== */
/* INTERACTIVE 3D BIRTHDAY CAKE                   */
/* ============================================== */
.cake-section {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 4.5rem auto;
  padding: 0 1.5rem;
}

.cake-card {
  background: rgba(35, 12, 58, 0.75);
  border: 1px solid rgba(244, 114, 182, 0.35);
  backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 2.75rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

.card-sparkle-tag {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  color: #fde047;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cake-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
  color: #fbcfe8;
}

.cake-instruction {
  font-size: 0.95rem;
  color: #f472b6;
  margin-bottom: 2.5rem;
}

.cake-wrapper {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.cake {
  position: relative;
  width: 220px;
  height: 140px;
}

.plate {
  position: absolute;
  bottom: -15px;
  left: -20px;
  width: 260px;
  height: 20px;
  background: #f1f5f9;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.layer {
  position: absolute;
  width: 200px;
  height: 55px;
  background: linear-gradient(to right, #fb7185, #f43f5e);
  border-radius: 50% / 15px;
  box-shadow: inset 0 -4px 10px rgba(0,0,0,0.3);
  left: 10px;
}

.layer-bottom {
  bottom: 0px;
}

.layer-middle {
  bottom: 35px;
  background: linear-gradient(to right, #fda4af, #f43f5e);
}

.layer-top {
  bottom: 70px;
  background: linear-gradient(to right, #fff1f2, #fecdd3);
}

.icing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  background: #ffffff;
  border-radius: 50% / 15px;
}

.candle {
  position: absolute;
  top: 30px;
  left: 100px;
  width: 14px;
  height: 45px;
  background: repeating-linear-gradient(
    45deg,
    #ffffff,
    #ffffff 5px,
    #ec4899 5px,
    #ec4899 10px
  );
  border-radius: 4px;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s;
}

.candle:hover {
  transform: scale(1.15);
}

.flame {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 24px;
  background: linear-gradient(to top, #ff7b00, #ffea00, #ffffff);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  box-shadow: 0 0 20px #ffea00, 0 0 45px #ff7b00;
  animation: flicker 1s infinite alternate;
}

@keyframes flicker {
  0% { transform: translateX(-50%) rotate(-2deg) scale(1); }
  50% { transform: translateX(-50%) rotate(3deg) scale(1.1); }
  100% { transform: translateX(-50%) rotate(-1deg) scale(0.95); }
}

.flame.blown-out {
  display: none;
}

.wish-message {
  font-size: 0.95rem;
  color: #fde047;
  font-weight: 500;
  min-height: 26px;
}

/* ============================================== */
/* SHAYARI & ALFAAZ PAVILION (NEW MASTER SECTION) */
/* ============================================== */
.shayari-section {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 6rem auto 5rem;
  padding: 0 1.5rem;
}

.section-desc-hindi {
  font-family: var(--font-hindi);
  font-style: italic;
  font-size: 1.15rem;
  color: #fbcfe8;
  margin-top: 0.5rem;
}

.master-shayari-card {
  background: linear-gradient(135deg, rgba(67, 10, 80, 0.75), rgba(30, 8, 50, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.2);
  position: relative;
}

.feather-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.master-sher {
  font-family: var(--font-hindi);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.9;
  color: #fffdfa;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.master-sher .highlight-line {
  color: #fde047;
  font-weight: 700;
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  padding: 0 0.5rem;
  border-radius: 6px;
}

.sher-context {
  display: block;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-style: italic;
}

.shayari-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.shayari-card {
  background: rgba(28, 10, 44, 0.7);
  border: 1px solid rgba(244, 114, 182, 0.3);
  backdrop-filter: blur(14px);
  padding: 2.25rem 2rem;
  border-radius: 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.shayari-card:hover {
  transform: translateY(-8px);
  border-color: rgba(244, 114, 182, 0.6);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(236, 72, 153, 0.25);
}

.card-corner-ribbon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #f472b6;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ribbon-classic {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.shayari-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.shayari-card h4 {
  font-size: 1.2rem;
  color: #fbcfe8;
  margin-bottom: 1rem;
  font-family: var(--font-hindi);
}

.shayari-text {
  font-family: var(--font-hindi);
  font-size: 1.12rem;
  line-height: 1.85;
  color: #f8fafc;
  margin-bottom: 1.25rem;
}

.shayari-author {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 700;
  display: block;
  text-align: right;
  letter-spacing: 0.5px;
}

/* ============================================== */
/* SOUL NOTES / POLAROID WALL                     */
/* ============================================== */
.soul-notes-section {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.polaroids-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.polaroid-card {
  background: #ffffff;
  color: #1e293b;
  padding: 1rem 1rem 1.75rem;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.polaroid-card:hover {
  transform: translateY(-10px) scale(1.05) rotate(0deg) !important;
  z-index: 25;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(244, 114, 182, 0.4);
}

.polaroid-1 { transform: rotate(-3deg); }
.polaroid-2 { transform: rotate(2deg); }
.polaroid-3 { transform: rotate(-2deg); }
.polaroid-4 { transform: rotate(3deg); }

.polaroid-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  z-index: 5;
}

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bg-gradient-pink { background: linear-gradient(135deg, #fbcfe8, #f43f5e); }
.bg-gradient-purple { background: linear-gradient(135deg, #e9d5ff, #8b5cf6); }
.bg-gradient-gold { background: linear-gradient(135deg, #fef08a, #f59e0b); }
.bg-gradient-rose { background: linear-gradient(135deg, #ffe4e6, #e11d48); }

.polaroid-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.polaroid-caption h5 {
  font-family: var(--font-hindi);
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.polaroid-caption p {
  font-family: var(--font-hindi);
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

/* ============================================== */
/* PRATHA'S SPECIAL-O-METER                       */
/* ============================================== */
.meter-section {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.meter-card {
  background: rgba(30, 10, 52, 0.7);
  border: 1px solid rgba(244, 114, 182, 0.35);
  backdrop-filter: blur(14px);
  padding: 2.5rem 2rem;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.meter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.meter-header h3 {
  font-size: 1.65rem;
  margin-top: 0.3rem;
  color: #fff;
  font-family: var(--font-hindi);
}

.meter-header p {
  color: #fbcfe8;
  font-size: 0.95rem;
  font-family: var(--font-hindi);
}

.meter-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.meter-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-hindi);
}

.meter-info strong {
  color: #fbbf24;
}

.meter-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 50px;
  animation: meterGrow 2s ease forwards;
}

.fill-100 {
  width: 100%;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
}

.fill-99 {
  width: 99.9%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
}

.fill-zero {
  width: 0%;
  background: #94a3b8;
}

.fill-infinite {
  width: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #ec4899);
}

@keyframes meterGrow {
  from { width: 0; }
}

/* ============================================== */
/* "OPEN WHEN..." VIRTUAL ENVELOPES               */
/* ============================================== */
.envelopes-section {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 5.5rem auto;
  padding: 0 1.5rem;
}

.envelope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.envelope-item {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.envelope-item:hover {
  transform: translateY(-8px) scale(1.02);
}

.envelope-box {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.45), rgba(157, 23, 77, 0.45));
  border: 1px dashed rgba(244, 114, 182, 0.6);
  border-radius: 24px;
  padding: 2.5rem 1.75rem;
  text-align: center;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.env-seal {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.envelope-box h4 {
  font-size: 1.2rem;
  color: #fff;
  font-family: var(--font-hindi);
}

.env-desc {
  font-size: 0.88rem;
  color: #fce7f3;
  opacity: 0.85;
  font-family: var(--font-hindi);
}

.env-action {
  font-size: 0.85rem;
  color: #fde047;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-top: 0.5rem;
}

/* ============================================== */
/* HEARTFELT LETTER SECTION                       */
/* ============================================== */
.letter-section {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 6rem auto 4rem;
  padding: 0 1.5rem;
}

.parchment-card {
  background: #fffefb;
  color: #2c1810;
  border-radius: 26px;
  padding: 4.5rem 3.5rem 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(251, 191, 36, 0.25);
  position: relative;
  background-image: radial-gradient(#ece4d8 1px, transparent 0);
  background-size: 24px 24px;
}

.wax-seal {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: #991b1b;
  border: 3px solid #7f1d1d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fef2f2;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-hindi);
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.letter-header {
  border-bottom: 1px solid #e7ded0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.letter-date {
  font-size: 0.85rem;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-hindi);
}

.letter-header h3 {
  font-family: var(--font-hindi);
  font-size: 2.1rem;
  color: #1c1917;
  margin-top: 0.25rem;
}

.letter-body p {
  font-size: 1.15rem;
  line-height: 1.95;
  margin-bottom: 1.5rem;
  color: #44403c;
  font-family: var(--font-hindi);
}

.letter-body strong {
  color: #1c1917;
}

.letter-sign {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  color: #1c1917;
  font-family: var(--font-hindi);
}

/* ============================================== */
/* POSITIVITY BOOSTER SECTION                     */
/* ============================================== */
.boost-section {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.boost-card {
  background: rgba(35, 12, 58, 0.6);
  border: 1px solid rgba(244, 114, 182, 0.35);
  backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  border-radius: 26px;
  text-align: center;
}

.boost-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.boost-card h3 {
  font-size: 1.4rem;
  color: #fbcfe8;
  margin-bottom: 0.5rem;
  font-family: var(--font-hindi);
}

.boost-card p {
  color: #fce7f3;
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-hindi);
}

.btn-boost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-boost:hover {
  transform: scale(1.05);
}

.boost-text {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-size: 1.1rem;
  color: #fde047;
  font-weight: 600;
  font-family: var(--font-hindi);
  line-height: 1.7;
  animation: fadeIn 0.4s ease;
}

/* Birthday Footer */
.birthday-footer {
  text-align: center;
  margin-top: 4.5rem;
  position: relative;
  z-index: 10;
  color: #fbcfe8;
  font-size: 0.95rem;
  font-family: var(--font-hindi);
}

.btn-discreet {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.btn-discreet:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================== */
/* ENVELOPE MODAL POPUP                           */
/* ============================================== */
.envelope-read-card {
  background: #170724;
  border: 1px solid rgba(244, 114, 182, 0.45);
  border-radius: 26px;
  padding: 2.75rem 2.25rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.badge-tag {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.envelope-read-header h3 {
  font-size: 1.45rem;
  color: #fbcfe8;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-hindi);
}

.env-text-body {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #fce7f3;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 18px;
  border-left: 4px solid #f43f5e;
  font-family: var(--font-hindi);
}

.btn-primary-close {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: white;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-hindi);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-primary-close:hover {
  transform: translateY(-2px);
}

/* ============================================== */
/* RESPONSIVE DESIGN                              */
/* ============================================== */
@media (max-width: 768px) {
  .portfolio-nav {
    padding: 1rem;
  }
  
  .nav-links a {
    display: none;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .vault-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }

  .vault-banner-content {
    flex-direction: column;
  }

  .master-shayari-card {
    padding: 2rem 1.5rem;
  }

  .parchment-card {
    padding: 3rem 1.5rem 2rem;
  }

  .floating-music-player {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: space-between;
  }

  .polaroids-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .polaroids-grid {
    grid-template-columns: 1fr;
  }
  
  .shayari-grid {
    grid-template-columns: 1fr;
  }
}
