:root {
  --pastel-pink: #ffe5ec;
  --pastel-peach: #fff0e4;
  --pastel-lavender: #e8d5f2;
  --pastel-mint: #d5f5e3;
  --pastel-blue: #d5e8f5;
  --pastel-yellow: #fff9d0;
  --text-primary: #6b5b73;
  --text-accent: #d97398;
  --blush: #fce8ee;
  --rose: #f2a7b7;
  --rose-dark: #d97b94;
  --gold: #d4a95a;
  --text-light: #8a6070;
  --text: #5a3a44;
  --charcoal: #2e2a28;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --gold: #c8a97e;
  --goldLight: #e8d9bc;
}

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

body {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.6;
  background: linear-gradient(135deg,
      var(--pastel-pink) 0%,
      var(--pastel-lavender) 50%,
      var(--pastel-blue) 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ── Loader ───────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity .8s ease, visibility .8s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--goldLight);
  letter-spacing: .3em;
  animation: pulse 2s ease-in-out infinite;
}

.loader-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  animation: expand 2.2s ease forwards;
}

@keyframes expand {
  to {
    width: 200px;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: 1
  }
}

/* Confetti Animation */
/* .confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--pastel-pink);
  position: fixed;
  top: -10px;
  z-index: 1;
  animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
} */

/* Floating shapes */
.floating-shape {
  position: fixed;
  border-radius: 50%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--pastel-peach);
  top: 10%;
  left: -150px;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--pastel-mint);
  top: 60%;
  right: -100px;
  animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--pastel-yellow);
  bottom: 10%;
  left: 20%;
  animation: float 18s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

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

/* Header */
header {
  text-align: center;
  padding: 1.5rem 0;
  animation: fadeInDown 1s ease-out;
}

h1 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 400;
  color: var(--text-accent);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(217, 115, 152, 0.2);
  animation: scaleIn 1s ease-out 0.3s both;
}

.subtitle {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
}

/* Birthday Cake Animation */
.cake-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0 2rem;
  min-height: 250px;
  animation: fadeIn 1s ease-out 0.9s both;
}

.birthday-cake {
  position: relative;
  width: 200px;
  height: 180px;
  animation: float-cake 3s ease-in-out infinite;
}

@keyframes float-cake {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.cake-layer {
  position: absolute;
  border-radius: 10px 10px 0 0;
}

.cake-bottom {
  width: 200px;
  height: 60px;
  background: var(--rose);
  bottom: 0;
  left: 0;
  box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cake-middle {
  width: 150px;
  height: 50px;
  background: var(--pastel-pink);
  bottom: 60px;
  left: 25px;
  box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cake-top {
  width: 100px;
  height: 45px;
  background: white;
  bottom: 110px;
  left: 50px;
  box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.icing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 25px;
  border-radius: 10px 10px 0 0;
}

.icing-bottom {
  background: var(--blush);
}

.icing-middle {
  background: white;
}

.icing-top {
  background: var(--pastel-mint);
}

.drip {
  position: absolute;
  top: 20px;
  background: inherit;
  border-radius: 0 0 20px 20px;
}

/* Bottom layer drips */
.cake-bottom .drip:nth-child(1) {
  width: 30px;
  height: 25px;
  left: 10px;
}

.cake-bottom .drip:nth-child(2) {
  width: 40px;
  height: 40px;
  left: 50px;
}

.cake-bottom .drip:nth-child(3) {
  width: 30px;
  height: 20px;
  left: 100px;
}

.cake-bottom .drip:nth-child(4) {
  width: 45px;
  height: 35px;
  left: 140px;
}

/* Middle layer drips */
.cake-middle .drip:nth-child(1) {
  width: 25px;
  height: 30px;
  left: 15px;
}

.cake-middle .drip:nth-child(2) {
  width: 35px;
  height: 20px;
  left: 50px;
}

.cake-middle .drip:nth-child(3) {
  width: 30px;
  height: 35px;
  left: 95px;
}

/* Top layer drips */
.cake-top .drip:nth-child(1) {
  width: 25px;
  height: 25px;
  left: 10px;
}

.cake-top .drip:nth-child(2) {
  width: 20px;
  height: 15px;
  left: 45px;
}

.cake-top .drip:nth-child(3) {
  width: 20px;
  height: 30px;
  left: 70px;
}

.candle {
  position: absolute;
  width: 14px;
  height: 45px;
  background: repeating-linear-gradient(45deg, white, white 5px, var(--rose-dark) 5px, var(--rose-dark) 10px);
  bottom: 155px;
  left: 93px;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.candle::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 6px;
  width: 2px;
  height: 8px;
  background: #333;
}

.flame {
  position: absolute;
  width: 16px;
  height: 26px;
  background: #feca57;
  border-radius: 50% 50% 20% 20%;
  top: -30px;
  left: -1px;
  box-shadow: 0 0 15px #feca57, 0 0 30px #ff9f43;
  animation: flicker 0.6s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes flicker {
  0% {
    transform: scale(1) rotate(-2deg);
    background: #ff9f43;
    box-shadow: 0 0 10px #ff9f43, 0 0 20px #ff9f43;
  }

  100% {
    transform: scale(1.1) rotate(2deg);
    background: #feca57;
    box-shadow: 0 0 20px #feca57, 0 0 40px #ff9f43;
  }
}

.plate {
  position: absolute;
  width: 260px;
  height: 12px;
  background: #f1f2f6;
  border-radius: 10px;
  bottom: -10px;
  left: -30px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.cake-sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.c-star {
  position: absolute;
  color: #feca57;
  font-size: 1.5rem;
  animation: pop-star 2s infinite ease-in-out alternate;
}

.cs1 {
  top: -20px;
  left: -20px;
  animation-delay: 0s;
}

.cs2 {
  top: 20px;
  right: -30px;
  animation-delay: 0.5s;
  font-size: 1.2rem;
}

.cs3 {
  top: -40px;
  right: 10px;
  animation-delay: 1s;
  font-size: 1rem;
}

@keyframes pop-star {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 5px #feca57);
  }
}

/* Photo Grid */
.photo-section {
  margin: 4rem 0;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-accent);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.photo-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0.8rem;
  box-shadow: 0 8px 32px rgba(107, 91, 115, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: slideInUp 0.6s ease-out both;
}

.photo-card:nth-child(1) {
  animation-delay: 0.2s;
}

.photo-card:nth-child(2) {
  animation-delay: 0.4s;
}

.photo-card:nth-child(3) {
  animation-delay: 0.6s;
}

.photo-card:nth-child(4) {
  animation-delay: 0.8s;
}

.photo-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 12px 48px rgba(107, 91, 115, 0.2);
  cursor: pointer;
}

.photo-placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg,
      var(--pastel-peach),
      var(--pastel-lavender));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  font-family: "Cormorant Garamond", serif;
  text-align: center;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.25rem;
}

/* Messages Section */
.messages-section {
  margin: 4rem 0;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.message-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: 0 8px 32px rgba(107, 91, 115, 0.1);
  border-left: 5px solid var(--text-accent);
  animation: slideInLeft 0.8s ease-out both;
  transition: transform 0.3s ease;
}

.message-card:hover {
  transform: translateX(10px);
}

.message-card:nth-child(even) {
  border-left: none;
  border-right: 5px solid var(--pastel-mint);
  animation: slideInRight 0.8s ease-out both;
}

.message-card:nth-child(even):hover {
  transform: translateX(-10px);
}

.message-text {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.message-author {
  text-align: right;
  font-style: italic;
  color: var(--text-accent);
  font-size: 1.1rem;
}

/* Wishes Section */
.wishes-section {
  text-align: center;
  padding: 4rem 0;
  animation: fadeIn 1s ease-out 1.8s both;
}

.wish-item {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 50px;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
}

.wish-item:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.9);
}

.wish-item:nth-child(odd) {
  animation-delay: 0.5s;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 1.2rem;
  animation: fadeIn 1s ease-out 2s both;
}

.heart {
  color: var(--text-accent);
  animation: heartbeat 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  50% {
    transform: scale(1);
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .message-card {
    padding: 1.5rem;
  }

  .wish-item {
    display: block;
    margin: 1rem auto;
    max-width: 90%;
  }
}

/* Sparkles */
.sparkle {
  position: fixed;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 1s ease-out forwards;
  z-index: 1000;
}

@keyframes sparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(180deg);
    opacity: 0;
  }
}

/* Hero/Featured Section */
.hero-section {
  margin: 2rem 0;
  padding: 1rem 0;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(107, 91, 115, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 229, 236, 0.3) 0%,
      rgba(232, 213, 242, 0.3) 100%);
  z-index: 0;
}

.hero-image-container {
  position: relative;
  z-index: 2;
  animation: slideInLeft 1s ease-out both;
}

.hero-image {
  width: 100%;
  max-width: 450px;
  height: 450px;
  background: linear-gradient(135deg,
      var(--pastel-pink),
      var(--pastel-lavender));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: 0 15px 50px rgba(217, 115, 152, 0.3);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
  /* animation: float 6s ease-in-out infinite; */
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.4) 0%,
      transparent 70%);
  animation: rotate 15s linear infinite;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.deco-star {
  position: absolute;
  font-size: 2.5rem;
  animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.star-2 {
  top: 20%;
  right: 10%;
  animation-delay: 0.5s;
}

.star-3 {
  bottom: 20%;
  left: 10%;
  animation-delay: 1s;
}

.star-4 {
  bottom: 15%;
  right: 5%;
  animation-delay: 1.5s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

.hero-message {
  position: relative;
  z-index: 2;
  animation: slideInRight 1s ease-out both;
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--text-accent);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: fadeIn 1.5s ease-out;
}

.hero-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 2;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: justify;
}

.hero-signature {
  font-family: "Great Vibes", cursive;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--text-accent);
  text-align: right;
  animation: fadeIn 2s ease-out 0.5s both;
}

/* Responsive design for hero section */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .hero-image {
    max-width: 350px;
    height: 350px;
    font-size: 6rem;
  }

  .hero-text {
    text-align: justify;
  }
}

@media (max-width: 480px) {
  .hero-image {
    max-width: 280px;
    height: 280px;
    font-size: 5rem;
  }

  .deco-star {
    font-size: 1.5rem;
  }
}

#deseos {
  padding: 7rem 5%;
  background: rgba(255, 255, 255, 0.7);
}

.deseos-header {
  text-align: center;
  margin-bottom: 4rem;
}

.deseos-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.deseo {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  box-shadow: 0 4px 20px rgba(201, 132, 154, 0.12);
  opacity: 1;
  transform: translateX(-30px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}

.deseo.visible {
  opacity: 1;
  transform: translateX(0);
}

.deseo-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
  flex-shrink: 0;
}

.deseo-text {
  font-family: "Cormorant Garamond", serif;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  padding-top: 0.4rem;
}

.section-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  /* font-weight: 700; */
  color: var(--text);
  line-height: 1.15;
}

.section-title em {
  color: var(--rose-dark);
  font-style: italic;
}