/* 3D CARTOON PIXAR MEMORY WORLD STYLE */

:root {
  --c3d-pink: #ff6b81;
  --c3d-yellow: #ffeaa7;
  --c3d-blue: #74b9ff;
  --c3d-purple: #a29bfe;
  --c3d-clay-bg: radial-gradient(circle at center, #fff0f5 0%, #ffd3e2 50%, #f7a8c4 100%);
  --c3d-card-bg: rgba(255, 255, 255, 0.9);
  --c3d-shadow: 0 15px 35px rgba(255, 107, 129, 0.25);
  --c3d-border: 4px solid #ffffff;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Mali', 'Itim', 'Prompt', sans-serif;
  background: var(--c3d-clay-bg);
  color: #2d3436;
  min-height: 100vh;
  overflow-x: hidden;
}

.c3d-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  text-align: center;
  position: relative;
}

/* 3D STAGE & FLOATING BALLOONS */
.c3d-stage {
  background: var(--c3d-card-bg);
  border-radius: 36px;
  border: var(--c3d-border);
  box-shadow: var(--c3d-shadow), inset 0 6px 12px rgba(255,255,255,0.8);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
}

.c3d-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ff477e;
  text-shadow: 2px 2px 0px #ffffff, 4px 4px 10px rgba(255, 71, 126, 0.3);
  margin-bottom: 10px;
}

.c3d-subtitle {
  font-size: 1.25rem;
  color: #636e72;
  margin-bottom: 30px;
}

/* 3D CHARACTER AVATAR DISPLAY */
.c3d-avatar-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 25px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c3d-yellow), var(--c3d-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  box-shadow: 0 12px 30px rgba(255, 107, 129, 0.3);
  animation: float3D 3s infinite alternate ease-in-out;
  border: 4px solid #ffffff;
}

@keyframes float3D {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-15px) rotate(3deg); }
}

/* 3D PHOTO FRAME */
.c3d-photo-frame {
  width: 260px;
  height: 260px;
  margin: 0 auto 35px;
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(135deg, #ffffff, #ffeaa7);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12), inset 0 4px 8px rgba(255,255,255,0.9);
  position: relative;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}

.c3d-photo-frame:hover {
  transform: rotate(0deg) scale(1.04);
}

.c3d-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* 3D FLOATING MEMORY BUBBLES */
.c3d-bubble-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.c3d-bubble-item {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  padding: 5px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.c3d-bubble-item:hover {
  transform: scale(1.2) translateY(-8px);
  box-shadow: 0 15px 30px rgba(255, 107, 129, 0.4);
}

.c3d-bubble-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* 3D GIFT BOX UNBOXING */
.c3d-gift-wrap {
  margin: 40px auto 20px;
  cursor: pointer;
}

.c3d-gift-box-icon {
  font-size: 5rem;
  color: var(--c3d-pink);
  filter: drop-shadow(0 10px 15px rgba(255, 107, 129, 0.3));
  transition: transform 0.3s ease;
  animation: giftBounce 2s infinite ease-in-out;
}

@keyframes giftBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-10px); }
}

.c3d-secret-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 25px;
  margin-top: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  display: none;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

.c3d-secret-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2d3436;
  white-space: pre-line;
}

/* DOWNLOAD ACTION BAR (NEW FEATURE) */
.c3d-download-bar {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 35px;
}

.c3d-btn-download {
  background: linear-gradient(135deg, #2ed573, #1e90ff);
  color: #ffffff;
  font-family: 'Mali', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 10px 25px rgba(46, 213, 115, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.c3d-btn-download:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(46, 213, 115, 0.6);
}

.c3d-btn-video {
  background: linear-gradient(135deg, #ff477e, #ff6b81);
  box-shadow: 0 10px 25px rgba(255, 71, 126, 0.4);
}

.c3d-btn-video:hover {
  box-shadow: 0 15px 35px rgba(255, 71, 126, 0.6);
}

/* MUSIC FLOATING BUTTON */
.c3d-music-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c3d-pink), var(--c3d-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(255, 107, 129, 0.4);
  cursor: pointer;
  z-index: 999;
  border: 3px solid #fff;
}

.c3d-music-btn.playing i {
  animation: spin 3s linear infinite;
}

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

/* RESPONSIVE */
@media (max-width: 576px) {
  .c3d-title { font-size: 2.2rem; }
  .c3d-photo-frame { width: 210px; height: 210px; }
  .c3d-stage { padding: 25px 18px; }
}
