/* ========================================
   JAGDISH BIRTHDAY WEBSITE — STYLE.CSS
   Indian Meme Vibes 🔥🎉
   ======================================== */

:root {
  --saffron: #FF6B00;
  --deep-saffron: #e85d00;
  --india-green: #138808;
  --gold: #FFD700;
  --hot-pink: #FF1493;
  --electric-blue: #0080FF;
  --purple: #8B5CF6;
  --cream: #FFF8E7;
  --dark: #1a0a00;
  --card-shadow: 0 10px 40px rgba(255, 107, 0, 0.2);
  --font-main: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
  --font-handwrite: 'Caveat', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===== FLOATING BACKGROUND MEMES ===== */
.floating-memes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-meme {
  position: absolute;
  font-size: clamp(1.5rem, 4vw, 3rem);
  opacity: 0.07;
  animation: floatAround linear infinite;
  user-select: none;
}

@keyframes floatAround {
  0% {
    transform: translateY(110vh) rotate(0deg);
  }

  100% {
    transform: translateY(-10vh) rotate(360deg);
  }
}

/* ===== CONFETTI ===== */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--saffron), #e85d00);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-brand {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  padding: 4px 10px;
  border-radius: 20px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.05);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C00 30%, #FFD700 60%, #FFAA00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 100, 0, 0.3) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
}

.meme-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.hero-title {
  font-family: var(--font-main);
  line-height: 1.1;
  margin-bottom: 16px;
}

.title-line1 {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.title-name {
  display: block;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: white;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
  animation: wobble 3s ease-in-out infinite;
}

.title-emoji {
  display: block;
  font-size: clamp(3rem, 7vw, 5rem);
  animation: spin 5s linear infinite;
}

@keyframes wobble {

  0%,
  100% {
    transform: rotate(-1deg);
  }

  50% {
    transform: rotate(1deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-meme-text {
  font-family: var(--font-handwrite);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: white;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px 20px;
  display: inline-block;
  margin-bottom: 12px;
  border-left: 4px solid white;
}

.hero-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 28px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: white;
  color: var(--saffron);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.scroll-indicator {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 700;
  animation: bounce 1.5s ease infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ===== ANIMATED BIRTHDAY CAKE ===== */
.hero-cake {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.cake-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake-tier {
  border-radius: 8px;
  position: relative;
  border-bottom: 4px solid rgba(0, 0, 0, 0.1);
}

.tier1 {
  width: 120px;
  height: 60px;
  background: linear-gradient(135deg, #ff85c2, #ff4da6);
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  border-radius: 8px 8px 0 0;
  padding-top: 5px;
}

.tier2 {
  width: 160px;
  height: 70px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.tier3 {
  width: 200px;
  height: 80px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.cake-base {
  width: 220px;
  height: 20px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 0 0 10px 10px;
}

.candle {
  width: 10px;
  height: 30px;
  background: linear-gradient(to bottom, #fbbf24, #f59e0b);
  border-radius: 3px 3px 0 0;
  position: relative;
  margin-top: -30px;
}

.flame {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 18px;
  background: radial-gradient(ellipse, #fff 0%, #ffea00 30%, #ff6b00 70%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.5s ease-in-out infinite alternate;
}

@keyframes flicker {
  0% {
    transform: translateX(-50%) scaleY(1) scaleX(1);
  }

  100% {
    transform: translateX(-50%) scaleY(1.2) scaleX(0.9);
  }
}

/* ===== SECTION COMMON ===== */
section {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 10px;
}

.section-subtitle {
  margin-top: 20px;
  color: #666;
  font-size: 1rem;
  font-family: var(--font-handwrite);
  font-size: 1.3rem;
}

.meme-sticker {
  position: absolute;
  top: 0;
  font-size: 0.85rem;
  font-family: var(--font-handwrite);
  background: #FFD700;
  padding: 6px 14px;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.meme-sticker.left {
  left: 0;
  top: 10px;
  transform: rotate(-3deg);
}

.meme-sticker.right {
  right: 0;
  top: 10px;
  transform: rotate(3deg);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: linear-gradient(180deg, #fff8e7 0%, #fff 100%);
}

.about-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.about-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.photo-frame {
  width: 280px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 5px solid var(--saffron);
  box-shadow: 0 15px 50px rgba(255, 107, 0, 0.3), 8px 8px 0 var(--gold);
  cursor: pointer;
  transition: transform 0.3s;
}

.photo-frame:hover {
  transform: scale(1.02) rotate(1deg);
}

.photo-upload-area {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.photo-placeholder {
  text-align: center;
  color: #888;
}

.photo-placeholder .photo-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}

.photo-placeholder p {
  font-weight: 700;
  color: var(--saffron);
}

.photo-placeholder small {
  color: #aaa;
  font-size: 0.8rem;
}

#mainPhotoImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-meme-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: white;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-main);
  font-size: 0.9rem;
  box-shadow: 0 5px 20px rgba(255, 107, 0, 0.4);
  animation: pulse 2s infinite;
  text-align: center;
  line-height: 1.1;
}

.about-meme-badge small {
  font-size: 0.55rem;
  font-weight: 600;
}

.about-info {
  flex: 1;
  min-width: 280px;
}

.about-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  margin-bottom: 28px;
  border-left: 5px solid var(--saffron);
  position: relative;
}

.about-card-meme {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--saffron);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.about-card h3 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  margin-bottom: 10px;
  margin-top: 8px;
  color: var(--dark);
}

.about-card p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.facts-title {
  font-family: var(--font-main);
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fact-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  transition: all 0.2s;
  border-bottom: 3px solid var(--gold);
}

.fact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.fact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ===== GALLERY ===== */
.gallery-section {
  background: linear-gradient(135deg, #1a0a00 0%, #2d1200 100%);
  color: white;
}

.gallery-section .section-title {
  color: white;
}

.gallery-section .section-subtitle {
  color: #ccc;
}

.gallery-upload-bar {
  max-width: 1100px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-upload {
  background: linear-gradient(135deg, var(--saffron), var(--gold));
  color: var(--dark);
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-main);
}

.btn-upload:hover {
  transform: scale(1.05);
}

.gallery-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-card {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.gallery-card:hover {
  transform: scale(1.07) rotate(1deg);
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.35);
  border-color: var(--gold);
  z-index: 2;
}

@keyframes photoReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gallery-card.new-card {
  animation: photoReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-card {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 215, 0, 0.2));
  border: 2px dashed rgba(255, 107, 0, 0.4);
}

.placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 2.5rem;
}

.placeholder-inner p {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== LIFE SECTION ===== */
.life-section {
  background: #fff8e7;
}

.life-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.life-card {
  background: white;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}

.life-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.life-card[data-color="orange"]::before {
  background: linear-gradient(90deg, var(--saffron), #FFAA00);
}

.life-card[data-color="green"]::before {
  background: linear-gradient(90deg, var(--india-green), #66ff66);
}

.life-card[data-color="blue"]::before {
  background: linear-gradient(90deg, #0080FF, #00bfff);
}

.life-card[data-color="pink"]::before {
  background: linear-gradient(90deg, var(--hot-pink), #ff69b4);
}

.life-card[data-color="purple"]::before {
  background: linear-gradient(90deg, var(--purple), #a855f7);
}

.life-card[data-color="yellow"]::before {
  background: linear-gradient(90deg, var(--gold), #ffec6e);
}

.life-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.life-card-meme {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.life-card h3 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 800;
}

.life-card p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
}

.life-card-tag {
  display: inline-block;
  background: #fff3e0;
  color: var(--saffron);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--saffron);
}

/* ===== THOUGHTS SECTION ===== */
.thoughts-section {
  background: linear-gradient(135deg, #0080FF 0%, #004d99 100%);
  color: white;
}

.thoughts-section .section-title {
  color: white;
}

.thoughts-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.thoughts-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.thought-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.thought-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  line-height: 1;
}

.thought-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.thought-avatar {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.thought-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.thought-name {
  font-weight: 800;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: var(--font-main);
}

.thought-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ===== WISHES / STICKY WALL ===== */
.wishes-section {
  background: linear-gradient(180deg, #fff8e7 0%, #fff3d0 100%);
}

.wish-form-container {
  max-width: 600px;
  margin: 0 auto 50px;
}

.wish-form-card {
  background: white;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 15px 50px rgba(255, 107, 0, 0.15);
  border-top: 6px solid var(--saffron);
}

.form-meme-header {
  font-family: var(--font-handwrite);
  font-size: 1.6rem;
  color: var(--saffron);
  margin-bottom: 24px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border 0.2s;
  resize: none;
  color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.color-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-option:hover {
  transform: scale(1.2);
}

.color-option.active {
  border-color: #333;
  transform: scale(1.25);
}

.emoji-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.emoji-opt {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.emoji-opt:hover {
  transform: scale(1.3);
  background: #f5f5f5;
}

.emoji-opt.active {
  border-color: var(--saffron);
  background: #fff3e0;
  transform: scale(1.2);
}

.btn-post {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--saffron), var(--deep-saffron));
  color: white;
  font-size: 1.1rem;
  font-family: var(--font-main);
  font-weight: 800;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.5);
}

.btn-post:active {
  transform: translateY(0);
}

/* ===== STICKY NOTES WALL ===== */
.sticky-wall {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  border: 2px dashed rgba(255, 107, 0, 0.3);
}

.sticky-note {
  width: 200px;
  min-height: 180px;
  padding: 20px;
  border-radius: 4px 4px 4px 4px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(0, 0, 0, 0.1) inset;
  transform: rotate(var(--rot, -2deg));
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: default;
  animation: stickyDrop 0.5s ease-out;
}

.sticky-note:hover {
  transform: rotate(0deg) scale(1.05) !important;
  z-index: 10;
  box-shadow: 8px 8px 30px rgba(0, 0, 0, 0.25);
}

@keyframes stickyDrop {
  from {
    opacity: 0;
    transform: translateY(-30px) rotate(var(--rot, 0deg));
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg));
  }
}

.sticky-note.yellow {
  background: linear-gradient(135deg, #fff9a3, #ffe600);
}

.sticky-note.pink {
  background: linear-gradient(135deg, #ffb3d9, #ff69b4);
}

.sticky-note.mint {
  background: linear-gradient(135deg, #b3ffcc, #7fff99);
}

.sticky-note.sky {
  background: linear-gradient(135deg, #b3e0ff, #66c2ff);
}

.sticky-note.lavender {
  background: linear-gradient(135deg, #e6b3ff, #cc66ff);
}

.sticky-note.orange {
  background: linear-gradient(135deg, #ffd9a0, #ffa500);
}

.sticky-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #ff4444, #cc0000);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.sticky-pin::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 10px solid #cc0000;
}

.sticky-emoji {
  font-size: 1.8rem;
}

.sticky-message {
  font-family: var(--font-handwrite);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.5;
  flex: 1;
}

.sticky-name {
  font-family: var(--font-handwrite);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
  text-align: right;
  border-top: 1px dashed rgba(0, 0, 0, 0.2);
  padding-top: 6px;
}

/* ===== SCHOOL SECTION ===== */
.school-section {
  background: linear-gradient(135deg, var(--india-green) 0%, #0d6b06 100%);
  color: white;
}

.school-section .section-title {
  color: white;
}

.school-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.school-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.school-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  margin-bottom: 40px;
  position: relative;
}

.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 300px;
  transition: all 0.3s;
}

.timeline-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.03);
}

.timeline-card h3 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--gold);
}

.timeline-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.timeline-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 50px 40px 30px;
}

.footer-meme {
  font-family: var(--font-handwrite);
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-emojis {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 8px;
}

.footer-credits {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.share-btn {
  background: var(--saffron);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--deep-saffron);
  transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 120px 24px 60px;
    gap: 30px;
  }

  .hero-cake {
    transform: scale(0.8);
  }

  section {
    padding: 60px 24px;
  }

  .navbar {
    padding: 10px 20px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .school-timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item.right {
    padding: 0 0 0 70px;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
  }

  .meme-sticker {
    display: none;
  }

  .sticky-wall {
    justify-content: center;
  }
}

/* =========================================
   🪄 THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 7px 18px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* =========================================
   🏰 HARRY POTTER / HOGWARTS THEME
   body.hp-theme overrides everything
   ========================================= */
body.hp-theme {
  background: #0d0d1a;
  color: #e8d5a3;
}

/* HP Navbar */
body.hp-theme .navbar {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-bottom: 2px solid #c9a84c;
  box-shadow: 0 4px 30px rgba(201, 168, 76, 0.2);
}

body.hp-theme .theme-toggle {
  background: rgba(201, 168, 76, 0.15);
  border-color: #c9a84c;
  color: #c9a84c;
}

/* HP Hero */
body.hp-theme .hero {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 40%, #16213e 70%, #0f3460 100%);
}

body.hp-theme .hero-bg-pattern {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(103, 65, 217, 0.15) 0%, transparent 50%);
}

body.hp-theme .meme-badge {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.6);
  color: #c9a84c;
}

body.hp-theme .title-name {
  color: #c9a84c;
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.6), 4px 4px 0px rgba(0, 0, 0, 0.4);
}

body.hp-theme .title-line1 {
  color: rgba(232, 213, 163, 0.9);
}

body.hp-theme .hero-subtitle {
  color: rgba(232, 213, 163, 0.85);
}

body.hp-theme .hero-date {
  color: rgba(201, 168, 76, 0.7);
}

/* HP Buttons */
body.hp-theme .btn-primary {
  background: #c9a84c;
  color: #0d0d1a;
}

body.hp-theme .btn-secondary {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.5);
  color: #c9a84c;
}

/* HP Cake tiers */
body.hp-theme .tier1 {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

body.hp-theme .tier2 {
  background: linear-gradient(135deg, #4b0082, #6b0dad);
}

body.hp-theme .tier3 {
  background: linear-gradient(135deg, #7b2d8b, #9b3dab);
}

body.hp-theme .cake-base {
  background: linear-gradient(135deg, #c9a84c, #a0832e);
}

/* HP Section underline */
body.hp-theme .section-title::after {
  background: linear-gradient(90deg, #c9a84c, #8b6914);
}

body.hp-theme .section-title {
  color: #e8d5a3;
}

body.hp-theme .section-subtitle {
  color: #a89060;
}

/* HP About */
body.hp-theme .about-section {
  background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
}

body.hp-theme .photo-frame {
  border-color: #c9a84c;
  box-shadow: 0 15px 50px rgba(201, 168, 76, 0.2), 0 0 40px rgba(201, 168, 76, 0.1), 8px 8px 0 #4b0082;
}

body.hp-theme .about-card {
  background: #16213e;
  border-left-color: #c9a84c;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.hp-theme .about-card h3 {
  color: #c9a84c;
}

body.hp-theme .about-card p {
  color: #c8b99a;
}

body.hp-theme .about-card-meme {
  background: #4b0082;
  color: #c9a84c;
}

/* HP Gallery */
body.hp-theme .gallery-section {
  background: linear-gradient(135deg, #0a0a14 0%, #1a0a2e 100%);
}

body.hp-theme .btn-upload {
  background: linear-gradient(135deg, #c9a84c, #8b6914);
  color: #0d0d1a;
}

body.hp-theme .gallery-card:hover {
  box-shadow: 0 15px 40px rgba(201, 168, 76, 0.3), 0 0 25px rgba(103, 65, 217, 0.3);
  border-color: #c9a84c;
}

body.hp-theme .placeholder-card {
  background: rgba(201, 168, 76, 0.05);
  border-color: rgba(201, 168, 76, 0.2);
}

/* HP Wishes */
body.hp-theme .wishes-section {
  background: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
}

body.hp-theme .wish-form-card {
  background: #16213e;
  border-top-color: #c9a84c;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

body.hp-theme .form-meme-header {
  color: #c9a84c;
}

body.hp-theme .form-group label {
  color: #c8b99a;
}

body.hp-theme .form-group input,
body.hp-theme .form-group textarea {
  background: #0d0d1a;
  border-color: #2a2a4a;
  color: #e8d5a3;
}

body.hp-theme .form-group input:focus,
body.hp-theme .form-group textarea:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

body.hp-theme .btn-post {
  background: linear-gradient(135deg, #4b0082, #7b2d8b);
  box-shadow: 0 6px 20px rgba(75, 0, 130, 0.5);
}

body.hp-theme .btn-post:hover {
  box-shadow: 0 12px 30px rgba(75, 0, 130, 0.6);
}

body.hp-theme .sticky-wall {
  background: rgba(201, 168, 76, 0.03);
  border-color: rgba(201, 168, 76, 0.15);
}

/* HP Footer */
body.hp-theme .footer {
  background: #06060f;
}

body.hp-theme .footer-meme {
  color: #c9a84c;
}

body.hp-theme .share-btn {
  background: #4b0082;
}

body.hp-theme .share-btn:hover {
  background: #6b0dad;
}

/* ✨ HP Star Particles (floating) */
body.hp-theme .float-meme {
  opacity: 0.12;
}

/* HP Scrollbar */
body.hp-theme::-webkit-scrollbar {
  width: 8px;
}

body.hp-theme::-webkit-scrollbar-track {
  background: #0d0d1a;
}

body.hp-theme::-webkit-scrollbar-thumb {
  background: #c9a84c;
  border-radius: 4px;
}

/* Magical sparkle animation for HP mode */
@keyframes hpSparkle {

  0%,
  100% {
    opacity: 0.05;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.3) rotate(20deg);
  }
}

body.hp-theme .float-meme {
  animation: floatAround linear infinite, hpSparkle 3s ease-in-out infinite;
}