/* ============================================================
   WEDDING INVITATION – STYLE.CSS
   Theme: Garden / Watercolor / Romantic – Davetiyeyle Uyumlu
   ============================================================ */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --crimson: #9b2335;
  --crimson-dark: #7a1b28;
  --crimson-light: #c74a5a;
  --cream: #fdf8f0;
  --cream-dark: #f5ede0;
  --sky: #cfe5f0;
  --sky-light: #e8f3f9;
  --green-deep: #2d5a27;
  --green-mid: #4a7c43;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --text-dark: #2c2c2c;
  --text-mid: #5a4a3a;
  --font-script: 'Pinyon Script', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Lato', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ---------- FLOATING PETALS ---------- */
.petals-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -60px;
  border-radius: 150% 0 150% 0;
  opacity: 0;
  animation: petalFall linear infinite;
}

@keyframes petalFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.0);
  }

  to {
    transform: scale(1.06);
  }
}

/* ---------- HERO: FULL SEAMLESS SECTION ---------- */
.hero-sky {
  position: relative;
  width: 100%;
  /* Image is square (1:1), pad 100% = full width height. At mobile keep minimum. */
  padding-bottom: min(145vw, 1400px);
  display: block;
  overflow: hidden;
  background-color: #cfe6f2;
}

/* Text is pinned to upper area via absolute */
.hero-sky>.hero-sky-bg,
.hero-sky>.hero-sky-overlay,
.hero-sky>.hero-content {
  position: absolute;
  left: 0;
  right: 0;
}

.hero-sky-bg {
  top: 0;
  bottom: 0;
  background-image: url('hero_extended_final4.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  animation: heroZoom 28s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-sky-overlay {
  top: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(220, 238, 250, 0.25) 0%,
      rgba(220, 238, 250, 0.05) 30%,
      rgba(0, 0, 0, 0.00) 55%,
      rgba(0, 0, 0, 0.00) 100%);
  z-index: 1;
}

.hero-content {
  top: 0;
  z-index: 2;
  text-align: center;
  padding: 26px 24px 32px;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 24px;
  animation: fadeDown 1s ease 0.2s both;
}

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  animation: fadeDown 1s ease 0.4s both;
}

@media (max-width: 600px) {
  .couple-names {
    flex-direction: column;
    gap: 6px;
    white-space: normal;
  }

  .heart-divider {
    width: 30px;
  }
}

.name-script {
  font-family: var(--font-script);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--crimson);
  text-shadow: 0 2px 12px rgba(155, 35, 53, 0.18);
  line-height: 1.1;
}

.heart-divider {
  width: clamp(34px, 5vw, 50px);
  flex-shrink: 0;
  animation: heartBeat 2s ease-in-out infinite;
}

.heart-divider svg {
  width: 100%;
  height: auto;
}

@keyframes heartBeat {

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

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

.families {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  margin-top: 18px;
  animation: fadeDown 1s ease 0.6s both;
}

.family-name {
  text-align: center;
}

.family-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  line-height: 1.4;
}

.family-sep {
  display: flex;
  align-items: center;
  width: 60px;
  margin-top: 4px;
}


.scroll-hint {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  animation: fadeDown 1s ease 1.0s both;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid var(--crimson);
  border-bottom: 2px solid var(--crimson);
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
  opacity: 0.65;
}

@keyframes bounce {

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

  50% {
    transform: rotate(45deg) translateY(8px);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

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

/* ---------- COUNTDOWN SECTION ---------- */
.countdown-section {
  background: linear-gradient(160deg, #8b1a28 0%, #9b2335 40%, #7a1b28 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Deep emboss background texture */
.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle top/bottom border lines */
.countdown-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.countdown-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.countdown-eyebrow {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.countdown-middle-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35) 20%, rgba(255, 255, 255, 0.35) 80%, transparent);
  margin: 56px auto 56px;
}

/* Ornament row */
.countdown-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.35);
}

.ornament-line {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
}

.ornament-line:last-child {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), transparent);
}

.ornament-ring {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Card grid */
.countdown {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 32px 20px 28px;
  border-radius: 16px;
  background: linear-gradient(145deg, #a8263a, #8b1a28);
  /* Emboss: light top-left, dark bottom-right */
  box-shadow:
    4px 4px 12px rgba(0, 0, 0, 0.45),
    -2px -2px 8px rgba(255, 255, 255, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.10),
    inset -1px -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
  transform: translateY(-4px);
  box-shadow:
    6px 10px 20px rgba(0, 0, 0, 0.5),
    -2px -2px 8px rgba(255, 255, 255, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.12),
    inset -1px -1px 0 rgba(0, 0, 0, 0.30);
}

/* Inner top shine line */
.countdown-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  border-radius: 1px;
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15),
    0 -1px 0 rgba(0, 0, 0, 0.3),
    0 3px 12px rgba(0, 0, 0, 0.25);
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
}

/* Keep old .countdown-sep & .countdown-item for safety but hidden */
.countdown-sep,
.countdown-item {
  display: none;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}


/* ---------- SHARED CONTAINER ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SECTION HEADERS ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--crimson);
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--crimson);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ---------- EVENTS SECTION ---------- */
.events-section {
  padding: 100px 24px;
  background-color: var(--cream);
  position: relative;
}

.events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  perspective: 1000px;
  animation: revealUp 0.8s ease both;
}

.event-card:nth-child(1) {
  animation-delay: 0.1s;
}

.event-card:nth-child(2) {
  animation-delay: 0.25s;
}

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

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

.event-card-inner {
  background: #ffffff;
  border: 1px solid rgba(155, 35, 53, 0.12);
  border-radius: 20px;
  padding: 48px 36px 40px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(155, 35, 53, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.event-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  border-radius: 20px 20px 0 0;
}

.event-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(155, 35, 53, 0.14), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.event-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  opacity: 0.6;
}

.event-icon svg {
  width: 100%;
  height: 100%;
}

.event-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--crimson);
  border: 1.5px solid var(--crimson);
  border-radius: 100px;
  padding: 5px 18px;
  margin-bottom: 28px;
}

.event-date {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  line-height: 1;
}

.event-day {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--crimson);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 6px;
  margin-bottom: 4px;
}

.event-time {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--crimson);
  line-height: 1.2;
}

.event-divider {
  width: 40px;
  height: 1px;
  background: rgba(155, 35, 53, 0.25);
  margin: 22px auto;
}

.event-venue {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.event-address {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  font-style: italic;
}

.event-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 12px 28px;
  background: var(--crimson);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 100px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(155, 35, 53, 0.3);
}

.event-map-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.event-map-btn:hover {
  background: var(--crimson-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 35, 53, 0.4);
}

.event-map-btn:hover svg {
  transform: translateX(3px);
}

/* ---------- SCENE / QUOTE SECTION ---------- */
.scene-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url('couple.png');
  background-size: cover;
  background-position: center center;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(45, 90, 39, 0.65),
      rgba(20, 50, 15, 0.8));
}

.scene-content {
  position: relative;
  z-index: 1;
  padding: 60px 32px;
  max-width: 700px;
}

.scene-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.9;
  margin-bottom: 24px;
}

.scene-names {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-light);
}

/* ---------- INFO SECTION ---------- */
.info-section {
  padding: 100px 24px;
  background-color: var(--cream-dark);
  position: relative;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.info-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(155, 35, 53, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 35, 53, 0.1);
}

.info-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--crimson);
  margin-bottom: 12px;
}

.info-card p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ---------- FOOTER ---------- */
.footer {
  background: linear-gradient(135deg, var(--crimson-dark) 0%, #5a0f1a 100%);
  padding: 72px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '❧';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.1);
}

.footer-content {
  position: relative;
  z-index: 1;
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 24px;
}

.footer-msg {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .couple-names {
    gap: 8px;
  }

  .families {
    gap: 40px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 4px;
  }

  .countdown-item {
    min-width: 60px;
  }

  .scene-section {
    background-attachment: scroll;
  }
}

/* Scroll-triggered reveal (added via JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}