/* ===================================================
   MEET THE BRIDE & GROOM SECTION
   South Indian Wedding Website — Romantic Anime Style
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Great+Vibes&family=Cinzel:wght@400;700&family=Noto+Serif+Tamil&family=Dancing+Script:wght@700&display=swap');

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

/* ---- CSS Variables ---- */
:root {
  --green-bg: #eef7ef;
  --green-mid: #d4e8d5;
  --green-dark: #a7c4a0;
  --green-accent: #355e3b;
  --green-light: #6b9b78;
  --gold: #c8960a;
  --gold-light: #f0c040;
  --white: #ffffff;
  --text-dark: #1a3c22;
  --text-mid: #2d4a36;
  --bride-ring: #b8d8be;
  --groom-ring: #aac4e0;
  --shadow-soft: 0 8px 32px rgba(53, 94, 59, 0.15);
  --shadow-deep: 0 16px 56px rgba(30, 80, 40, 0.2);
  --font-display: 'Playfair Display', 'Noto Serif Tamil', serif;
  --font-script: 'Dancing Script', 'Great Vibes', cursive;
  --font-title: 'Cinzel', serif;
  --transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Section Base ---- */
.meet-section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  overflow: hidden;

  /* Soft green gradient background */
  background: radial-gradient(ellipse at 30% 20%, #f8faf6 0%, #eef7ef 30%, #d4e8d5 65%, #a7c4a0 100%);
}

/* ---- Animated background texture ---- */
.meet-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(100,200,120,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 15%, rgba(200,255,220,0.12) 0%, transparent 45%),
    radial-gradient(circle at 55% 50%, rgba(130,180,140,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Floating petals container ---- */
.petal-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  font-size: 18px;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0%   { transform: translateY(-30px) rotate(0deg) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  50%  { transform: translateY(50vh) rotate(180deg) translateX(30px); opacity: 0.5; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(-20px); opacity: 0; }
}

/* ---- Section Header ---- */
.section-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(-30px);
  animation: fadeSlideDown 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

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

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow:
    0 2px 12px rgba(53, 94, 59, 0.15),
    0 1px 3px rgba(0,0,0,0.08);
}

.subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--green-accent);
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(60, 140, 80, 0.15);
}

/* ---- Couple Wrapper ---- */
.couple-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
  flex-wrap: wrap;
}

/* ---- Person Card ---- */
.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: cardReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bride-card  { animation-delay: 0.6s; transform: translateX(-50px); }
.groom-card  { animation-delay: 0.85s; transform: translateX(50px); }

@keyframes cardReveal {
  to { opacity: 1; transform: translate(0, 0); }
}

/* Subtle hover lift */
.person-card:hover {
  transform: translateY(-8px) scale(1.02);
  transition: var(--transition);
}

/* ---- Portrait Ring Wrapper ---- */
.portrait-ring {
  position: relative;
  width: clamp(220px, 28vw, 310px);
  height: clamp(220px, 28vw, 310px);
}

/* ---- Outer glow ---- */
.portrait-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.55;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

.bride-glow  { background: radial-gradient(circle, #d4e8d5 0%, #6b9b78 60%, transparent 100%); }
.groom-glow  { background: radial-gradient(circle, #a8c8f8 0%, #6890d8 60%, transparent 100%); }

@keyframes glowPulse {
  from { opacity: 0.45; transform: scale(0.97); }
  to   { opacity: 0.7;  transform: scale(1.03); }
}

/* ---- Decorative ring border ---- */
.ring-decoration {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: ringRotate 12s linear infinite;
}

.bride-ring {
  border-image: none;
  background: conic-gradient(
    from 0deg,
    #a7c4a0, #d4e8d5, #f8faf6, #a7c4a0, #6b9b78, #d4e8d5, #a7c4a0
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  border: 4px solid transparent;
}

.groom-ring {
  background: conic-gradient(
    from 0deg,
    #88b8e8, #c0d8f8, #f0f8ff, #88b8e8, #5888c8, #c0d8f8, #88b8e8
  ) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  border: 4px solid transparent;
}

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

/* ---- Portrait Circle ---- */
.portrait-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(53, 94, 59, 0.18),
    0 2px 8px rgba(0,0,0,0.15),
    inset 0 0 20px rgba(255,255,255,0.08);
  border: 5px solid rgba(255, 255, 255, 0.75);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- SVG Fallback Portrait ---- */
.portrait-fallback {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.anime-portrait {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* ---- Name Block ---- */
.name-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.name-label {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 1.8vw, 1rem);
  /* letter-spacing: 0.28em; */
  color: var(--text-dark);
  font-weight: 700;
  opacity: 1;
}

.person-name {
  font-family: var(--font-title);
  font-size: clamp(1rem, 3vw, 2.6rem);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.1;
  text-shadow:
    0 2px 10px rgba(53, 94, 59, 0.12),
    0 1px 3px rgba(0,0,0,0.1);
  letter-spacing: 0.01em;
}

.role-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  color: var(--text-mid);
  opacity: 0.75;
  letter-spacing: 0.05em;
}

/* ---- Divider Ornament ---- */
.divider-ornament {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

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

.ornament-line {
  display: block;
  width: clamp(80px, 15vw, 180px);
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--green-accent), transparent);
  border-radius: 2px;
}

.ornament-flower {
  font-size: 2rem;
  color: var(--green-accent);
  text-shadow: 0 0 12px rgba(80, 180, 100, 0.3);
  animation: floatOrn 3s ease-in-out infinite alternate;
}

@keyframes floatOrn {
  from { transform: translateY(-3px); }
  to   { transform: translateY(3px); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .meet-section {
    padding: 60px 12px 50px;
    min-height: auto;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .couple-wrapper {
    gap: 20px;
    justify-content: space-evenly;
  }

  .portrait-ring {
    width: clamp(140px, 40vw, 220px);
    height: clamp(140px, 40vw, 220px);
  }

  .person-name {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }
  
  .name-label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 0.15em;
  }
}

@media (max-width: 480px) {
  .meet-section {
    padding: 40px 8px 40px;
  }

  .couple-wrapper {
    gap: 15px;
    flex-wrap: nowrap; /* Keep side-by-side if possible */
  }

  .portrait-ring {
    width: clamp(120px, 45vw, 160px);
    height: clamp(120px, 45vw, 160px);
  }

  .person-card {
    gap: 12px;
  }

  .name-block {
    gap: 2px;
  }

  .person-name {
    font-size: 1.1rem;
  }

  .name-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
  
  .role-tag {
    font-size: 0.7rem;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  .divider-ornament {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 0px;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
    animation-play-state: running;
}
}

@media (max-width: 360px) {
  .couple-wrapper {
    flex-wrap: wrap; /* Stack on extremely narrow screens */
    gap: 40px;
  }
  
  .portrait-ring {
    width: 180px;
    height: 180px;
  }
  
}
