/* ============================================
   SUSYEVIS.COM — Salazar Family Website
   Fun, colorful, full of love ❤️
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&family=Caveat:wght@400;700&display=swap');

/* --- Variables --- */
:root {
  --pink: #ff6b9d;
  --pink-light: #ffc4d9;
  --purple: #c084fc;
  --purple-light: #e9d5ff;
  --blue: #60a5fa;
  --blue-light: #bfdbfe;
  --yellow: #fbbf24;
  --yellow-light: #fde68a;
  --green: #34d399;
  --green-light: #a7f3d0;
  --orange: #fb923c;
  --red: #f87171;
  --bg: #fff8f0;
  --text: #1a1a2e;
  --text-light: #555;
  --shadow: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --radius: 20px;
  --radius-lg: 30px;

  --font-display: 'Fredoka One', cursive;
  --font-body: 'Nunito', sans-serif;
  --font-hand: 'Caveat', cursive;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Floating Emojis Background --- */
.floating-emojis {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-emojis span {
  position: absolute;
  font-size: 2rem;
  animation: floatUp 20s infinite linear;
  opacity: 0.3;
}

.floating-emojis span:nth-child(1) { left: 5%; animation-duration: 22s; animation-delay: 0s; }
.floating-emojis span:nth-child(2) { left: 15%; animation-duration: 18s; animation-delay: 2s; }
.floating-emojis span:nth-child(3) { left: 25%; animation-duration: 25s; animation-delay: 4s; }
.floating-emojis span:nth-child(4) { left: 35%; animation-duration: 20s; animation-delay: 1s; }
.floating-emojis span:nth-child(5) { left: 45%; animation-duration: 23s; animation-delay: 3s; }
.floating-emojis span:nth-child(6) { left: 55%; animation-duration: 19s; animation-delay: 5s; }
.floating-emojis span:nth-child(7) { left: 65%; animation-duration: 21s; animation-delay: 2s; }
.floating-emojis span:nth-child(8) { left: 75%; animation-duration: 24s; animation-delay: 0s; }
.floating-emojis span:nth-child(9) { left: 85%; animation-duration: 17s; animation-delay: 4s; }
.floating-emojis span:nth-child(10) { left: 92%; animation-duration: 22s; animation-delay: 1s; }

@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #ff6b9d 0%, #c084fc 30%, #60a5fa 60%, #34d399 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: heroShimmer 10s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-20px, -10px) rotate(3deg); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  line-height: 1.1;
  margin-bottom: 8px;
  animation: titleBounce 2s ease-in-out;
}

@keyframes titleBounce {
  0% { transform: scale(0.3) rotate(-5deg); opacity: 0; }
  50% { transform: scale(1.05) rotate(1deg); }
  70% { transform: scale(0.95) rotate(-1deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.hero__subtitle {
  font-family: var(--font-hand);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

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

.hero__tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  font-weight: 600;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero__emoji-row {
  font-size: 3rem;
  animation: fadeInUp 1s ease-out 1s both;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Section Base --- */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.section--pink { background: linear-gradient(180deg, #fff8f0, #ffc4d9); }
.section--purple { background: linear-gradient(180deg, #e9d5ff, #c084fc); color: #fff; }
.section--blue { background: linear-gradient(180deg, #bfdbfe, #60a5fa); color: #fff; }
.section--yellow { background: linear-gradient(180deg, #fef3c7, #fbbf24); }
.section--green { background: linear-gradient(180deg, #d1fae5, #34d399); }
.section--orange { background: linear-gradient(180deg, #ffedd5, #fb923c); color: #fff; }

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__emoji {
  font-size: 3rem;
  margin-bottom: 8px;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: inherit;
  margin-bottom: 8px;
}

.section__header p {
  font-size: 1.2rem;
  color: inherit;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 600;
}

/* --- Family Profiles --- */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.family-card {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  cursor: default;
}

.family-card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--shadow);
}

.family-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
}

.family-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.family-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 4px;
}

.family-card .role {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--pink);
  font-weight: 700;
}

.family-card .age {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 4px;
}

.family-card .fun-fact {
  font-size: 0.9rem;
  color: var(--purple);
  font-weight: 700;
  margin-top: 8px;
  background: var(--purple-light);
  padding: 6px 12px;
  border-radius: 50px;
  display: inline-block;
}

/* --- Baby Countdown --- */
.baby-countdown {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  max-width: 600px;
  margin: 0 auto;
}

.baby-countdown h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.baby-countdown p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.countdown-number {
  font-family: var(--font-display);
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.countdown-label {
  font-size: 1rem;
  opacity: 0.8;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* --- Photo Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.gallery-item__placeholder {
  font-size: 4rem;
  text-align: center;
  padding: 20px;
}

.gallery-item__placeholder small {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: var(--font-body);
  margin-top: 8px;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Fun Messages --- */
.messages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.message-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
}

.message-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: var(--shadow);
}

.message-card__emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.message-card blockquote {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

.message-card .author {
  font-weight: 700;
  color: var(--pink);
  font-size: 0.95rem;
}

.message-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-hand);
  font-size: 5rem;
  color: var(--pink-light);
  opacity: 0.4;
  line-height: 1;
}

/* --- Videos Section --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-card__preview {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--purple-light), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.video-card__preview .play-btn {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--pink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.2s;
}

.video-card__preview .play-btn:hover {
  transform: scale(1.1);
}

.video-card__body {
  padding: 16px 20px;
}

.video-card__body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.video-card__body p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Timeline --- */
.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pink), var(--purple), var(--blue), var(--green));
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.timeline-item:nth-child(1)::before { background: var(--pink); }
.timeline-item:nth-child(2)::before { background: var(--purple); }
.timeline-item:nth-child(3)::before { background: var(--blue); }
.timeline-item:nth-child(4)::before { background: var(--green); }
.timeline-item:nth-child(5)::before { background: var(--yellow); }
.timeline-item:nth-child(6)::before { background: var(--orange); }

.timeline-item .date {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 4px 0;
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Music Player --- */
.music-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 100;
  font-size: 0.95rem;
}

.music-bar button {
  background: var(--pink);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.music-bar button:hover {
  transform: scale(1.05);
  background: var(--purple);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  background: #1a1a2e;
  color: rgba(255,255,255,0.8);
  padding: 48px 24px;
  text-align: center;
}

.footer h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer p {
  font-size: 1rem;
  opacity: 0.7;
}

.footer .footer__emojis {
  font-size: 2rem;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  
  .timeline { padding-left: 30px; }
  .timeline-item::before { left: -22px; width: 12px; height: 12px; }
  
  .hero { min-height: 80vh; }
  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }
  
  .section { padding: 48px 0; }
  
  .music-bar {
    flex-wrap: wrap;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .family-grid { grid-template-columns: 1fr; }
  .family-card__avatar { width: 100px; height: 100px; font-size: 3rem; }
  .video-grid { grid-template-columns: 1fr; }
}