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

body {
  background: #ead8c5;
  overflow: hidden;
  font-family: "Italianno", cursive;
  font-weight: 400;
}

.stage {
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
}

.cover-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.monogram {
  position: absolute;
  top: 24%;
  left: 53%;
  transform: translateX(-50%);
  font-size: 40px;
  color: #b58a4b;
  font-weight: 400;
  z-index: 9;
  width: 85px;
}

.names {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  color: #9a713d;
  font-size: 24px;
  letter-spacing: 5px;
  white-space: nowrap;
  z-index: 9;
}

.message {
  position: absolute;
  bottom: 25%;
  left: 52%;
  transform: translateX(-50%);
  color: #9a713d;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
  width: 90%;
  z-index: 9;
}

/* MÜHÜR */
.seal {
  position: absolute;
  left: 50%;
  bottom: 14.5%;
  width: 85px;
  height: 85px;
  transform: translateX(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 20;
  filter: drop-shadow(0 10px 14px rgba(70, 40, 10, 0.35));
  animation: sealBreath 2s ease-in-out infinite;
}

.seal-half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.seal-half img {
  position: absolute;
  top: 0;
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.seal-left {
  left: 0;
}

.seal-left img {
  left: 0;
}

.seal-right {
  right: 0;
}

.seal-right img {
  right: 0;
}

.seal-crack {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 2px;
  height: 56px;
  background: rgba(70, 35, 5, 0.9);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  z-index: 30;
  clip-path: polygon(
    40% 0,
    100% 18%,
    45% 35%,
    95% 55%,
    35% 75%,
    70% 100%,
    20% 100%,
    55% 75%,
    5% 55%,
    55% 35%,
    0 18%
  );
}

@keyframes sealBreath {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.06);
  }
}

/* AÇILAN SCROLL SAYFASI */
.clean-card {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  transform: translateX(-50%) translateY(100%);
  background: #f7ead8;
  opacity: 0;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y:contain;
}

.invitation-section {
  padding: 56px 34px;
  text-align: center;
  color: #8f6839;
  background: linear-gradient(#fff7ea, #f5dfc3);
}

.invitation-section h2 {
  font-size: 38px;
  font-style: italic;
  margin-bottom: 20px;
}

.invitation-section h3 {
  font-size: 38px;
  font-style: italic;
  margin-bottom: 14px;
}

.invitation-section p {
  font-size: 17px;
  line-height: 1.7;
}

.invitation-hero {
  position: relative;
}

.invitation-hero img {
  width: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 3rem;
  height: 80%;
  padding: 40px;
  color: #8f6839;
}

.hero-overlay h2 {
  font-size: 44px;
}

.hero-text {
  max-width: 280px;
  line-height: 1.2;
  font-size: 26px;
  letter-spacing: 0.5px;
}

.section-small {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 13px;
}

.family-name {
  display: flex;
  gap: 5rem;
}

.family-name p {
  font-weight: 700;
  font-size: 18px;
}

.time {
  font-size: 30px;
  letter-spacing: 0.9px;
}

.countdown-section {
  padding: 80px 24px;
}

.flip-countdown {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.flip-box {
  text-align: center;
}

.flip-number {
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(181, 138, 75, 0.28);
  background: rgba(255, 248, 235, 0.72);
  box-shadow: 0 12px 26px rgba(80, 45, 15, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f6839;
  font-size: 34px;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}

.flip-number.changing {
  animation: numberSlide 0.38s ease;
}

@keyframes numberSlide {
  0% {
    transform: translateY(-10px);
    opacity: 0.35;
    filter: blur(3px);
  }

  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.flip-box span {
  display: block;
  margin-top: 10px;
  color: #9a713d;
  font-size: 13px;
  letter-spacing: 1px;
}

.wedding-place {
  width: 100%;
}

.invitation-section-wedding {
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.wedding-place-name {
  font-size: 34px !important;
  margin: 12px 0px;
}

.invitation-section-wedding h3 {
  background: linear-gradient(#fff7ea, #f5dfc3);
  padding-bottom: 14px;
  margin-bottom: 0px !important;
}

.direction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* margin-top: 24px; */
  padding: 12px 34px;
  color: #8f6839;
  text-decoration: none;
  font-size: 24px;
  letter-spacing: 0.5px;
  background: rgba(255, 248, 235, 0.78);
  border: 1px solid rgba(181, 138, 75, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(80, 45, 15, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.direction-btn::before {
  content: "⌖";
  margin-right: 8px;
  font-size: 20px;
}

.direction-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(80, 45, 15, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.direction-btn:active {
  transform: scale(0.97);
}

.program-section h3 {
  font-size: 38px;
  margin-bottom: 42px;
}

.program-flow {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr;
  align-items: start;
  justify-content: center;
}

.program-step {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  text-align: center;
  color: #8f6839;
  transition: 0.9s ease;
}

.program-step.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.program-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(181, 138, 75, 0.32);
  background: rgba(255, 248, 235, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 20px rgba(80, 45, 15, 0.08);
}

.program-step span {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.program-step small {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: #9a713d;
}

.program-line {
  height: 1px;
  background: rgba(143, 104, 57, 0.38);
  margin-top: 27px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.8s ease;
}

.program-line.show {
  opacity: 1;
  transform: scaleX(1);
}

.cheers {
  padding-right: 0px !important;
  padding-left: 0px !important;
  width: 100%;
}

.program-section {
  padding-right: 0px !important;
  padding-left: 0px !important;
  padding-bottom: 0px !important;
}

.cheers-area {
  width: 310px;
  height: 240px;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  /* margin:60px auto; */
}

.glass {
  width: 135px;
}

/* SOL */

.left-glass {
  left: 0;
  bottom: 0;
  animation: leftCheers 2.6s ease-in-out infinite;
}

/* SAĞ */

.right-glass {
  right: 0;
  bottom: 0;
  animation: rightCheers 2.6s ease-in-out infinite;
}

.cheers-effects {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 120px;
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
}

.cheers-effects span {
  position: absolute;
  left: 50%;
  bottom: 0;

  opacity: 0;

  color: #c59b62;

  animation: loveFloat 2.6s ease-in-out infinite;
}

/* farklı boyutlar */

.cheers-effects span:nth-child(1) {
  font-size: 18px;
  animation-delay: 1.12s;
}

.cheers-effects span:nth-child(2) {
  font-size: 16px;
  animation-delay: 1.18s;
}

.cheers-effects span:nth-child(3) {
  font-size: 13px;
  animation-delay: 1.24s;
}

.cheers-effects span:nth-child(4) {
  font-size: 15px;
  animation-delay: 1.3s;
}

.cheers-effects span:nth-child(5) {
  font-size: 11px;
  animation-delay: 1.36s;
}

.cheers-effects span:nth-child(6) {
  font-size: 17px;
  animation-delay: 1.42s;
}

@keyframes loveFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-35px + 70px * var(--x)), -70px) scale(1.3)
      rotate(20deg);
  }
}

.cheers-area {
  position: relative;
  width: 310px;
  height: 240px;
  margin: 60px auto;
}

.glass {
  position: absolute;
  width: 135px;
  bottom: 0;
  user-select: none;
  pointer-events: none;
  transform-origin: bottom center;
}

.left-glass {
  left: 0;
  animation: leftCheers 2.6s ease-in-out infinite;
}

.right-glass {
  right: 0;
  animation: rightCheers 2.6s ease-in-out infinite;
}

@keyframes leftCheers {
  0%,
  25%,
  100% {
    transform: translateX(0) rotate(-8deg);
  }

  42% {
    transform: translateX(48px) rotate(9deg);
  }

  48% {
    transform: translateX(52px) rotate(12deg) scale(1.04);
  }

  56% {
    transform: translateX(48px) rotate(8deg);
  }

  72% {
    transform: translateX(0) rotate(-8deg);
  }
}

@keyframes rightCheers {
  0%,
  25%,
  100% {
    transform: translateX(0) rotate(8deg);
  }

  42% {
    transform: translateX(-48px) rotate(-9deg);
  }

  48% {
    transform: translateX(-52px) rotate(-12deg) scale(1.04);
  }

  56% {
    transform: translateX(-48px) rotate(-8deg);
  }

  72% {
    transform: translateX(0) rotate(8deg);
  }
}

/* TOK ANINDA PREMIUM IŞILTILAR */
.cheers-effects {
  position: absolute;
  left: 50%;
  top: 38px;
  width: 150px;
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}

.cheers-effects span {
  position: absolute;
  left: 50%;
  bottom: 18px;
  opacity: 0;
}

/* minik kalpler */
.heart {
  width: 10px;
  height: 10px;
  background: #c99a55;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(201, 154, 85, 0.45);
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #c99a55;
  border-radius: 50%;
}

.heart::before {
  left: -5px;
  top: 0;
}

.heart::after {
  left: 0;
  top: -5px;
}

/* yıldızlar */
.star {
  width: 16px;
  height: 16px;
  background: #d9ad65;
  clip-path: polygon(
    50% 0%,
    60% 38%,
    100% 50%,
    60% 62%,
    50% 100%,
    40% 62%,
    0% 50%,
    40% 38%
  );
  filter: drop-shadow(0 0 8px rgba(217, 173, 101, 0.7));
}

/* altın tozu */
.dot {
  width: 6px;
  height: 6px;
  background: #e3bd75;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(227, 189, 117, 0.9);
}

/* çarpışma parıltısı */
.flare {
  width: 42px;
  height: 42px;
  left: 50%;
  bottom: 32px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 239, 180, 0.95) 0%,
    rgba(225, 170, 82, 0.6) 35%,
    rgba(225, 170, 82, 0) 70%
  );
  animation: flarePop 2.6s ease-in-out infinite;
}

/* tek tek uçuş yönleri */
.h1 {
  animation: floatUpLeft 2.6s ease-in-out infinite;
}

.h2 {
  animation: floatUpRight 2.6s ease-in-out infinite;
}

.st1 {
  animation: starUpLeft 2.6s ease-in-out infinite;
}

.st2 {
  animation: starUpRight 2.6s ease-in-out infinite;
}

.d1 {
  animation: dustLeft 2.6s ease-in-out infinite;
}

.d2 {
  animation: dustRight 2.6s ease-in-out infinite;
}

@keyframes flarePop {
  0%,
  42%,
  58%,
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.2);
  }

  48% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes floatUpLeft {
  0%,
  43%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(45deg) scale(0.3);
  }

  50% {
    opacity: 1;
  }

  70% {
    opacity: 0;
    transform: translate(-34px, -72px) rotate(65deg) scale(1);
  }
}

@keyframes floatUpRight {
  0%,
  43%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(45deg) scale(0.3);
  }

  50% {
    opacity: 1;
  }

  70% {
    opacity: 0;
    transform: translate(34px, -78px) rotate(20deg) scale(0.9);
  }
}

@keyframes starUpLeft {
  0%,
  44%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.3);
  }

  50% {
    opacity: 1;
  }

  68% {
    opacity: 0;
    transform: translate(-52px, -48px) rotate(120deg) scale(1);
  }
}

@keyframes starUpRight {
  0%,
  44%,
  100% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.3);
  }

  50% {
    opacity: 1;
  }

  68% {
    opacity: 0;
    transform: translate(50px, -50px) rotate(-120deg) scale(1);
  }
}

@keyframes dustLeft {
  0%,
  45%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }

  50% {
    opacity: 1;
  }

  66% {
    opacity: 0;
    transform: translate(-18px, -42px) scale(1);
  }
}

@keyframes dustRight {
  0%,
  45%,
  100% {
    opacity: 0;
    transform: translate(0, 0) scale(0.2);
  }

  50% {
    opacity: 1;
  }

  66% {
    opacity: 0;
    transform: translate(22px, -46px) scale(1);
  }
}

.celebration-card h4 {
  font-size: 24px !important;
}

.celebration-card p {
  font-size: 22px !important;
}

@media (max-width: 390px) {
  .hero-overlay {
    gap: 2.2rem;
    padding: 28px;
  }

  .hero-overlay h2 {
    font-size: 38px;
  }

  .hero-text {
    font-size: 23px;
  }

  .family-name {
    gap: 2.2rem;
  }

  .family-name p {
    font-size: 16px;
  }

  .time {
    font-size: 26px;
  }

  .flip-number {
    font-size: 28px;
    height: 64px;
  }

  .program-step span {
    font-size: 20px;
  }

  .program-step small {
    font-size: 16px;
  }
}




.hero-bg-img {
  opacity:1;
  transform:scale(1.08);
  filter:blur(10px);
}

.hero-animate {
  opacity: 0;
  transform: translateY(18px);
}

.petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 8;
}

.petal {
  position: absolute;
  top: -120px;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 8px rgba(143, 104, 57, 0.22));
  animation: petalFall linear infinite;
}

.p1 { left: 5%;  width: 54px; animation-duration: 18s; animation-delay: 0s; }
.p2 { left: 18%; width: 34px; animation-duration: 23s; animation-delay: 3s; }
.p3 { left: 35%; width: 44px; animation-duration: 20s; animation-delay: 6s; }
.p4 { left: 52%; width: 38px; animation-duration: 25s; animation-delay: 1.5s; }
.p5 { left: 70%; width: 58px; animation-duration: 21s; animation-delay: 7s; }
.p6 { left: 84%; width: 32px; animation-duration: 28s; animation-delay: 10s; }
.p7 { left: 45%; width: 42px; animation-duration: 26s; animation-delay: 12s; }
.p8 { left: 90%; width: 48px; animation-duration: 24s; animation-delay: 5s; }

@keyframes petalFall {
  0% {
    transform: translate3d(0, -120px, 0) rotate(0deg) scale(.65);
    opacity: 0;
  }
  8% { opacity: .92; }
  32% {
    transform: translate3d(34px, 32vh, 0) rotate(135deg) scale(1);
  }
  62% {
    transform: translate3d(-24px, 68vh, 0) rotate(260deg) scale(.92);
  }
  100% {
    transform: translate3d(42px, 122vh, 0) rotate(430deg) scale(.72);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; opacity: 0; }
}