@font-face {
  font-family: FadedPencil;
  src: url("../assets/fonts/fadedpencil-webfont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Monogramica Script";
  src: url("../assets/fonts/Monogramica-Script.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

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

:root {
  --script: "Allura", "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: FadedPencil, "Allura", cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f3ee;
  color: #5b4a3b;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  text-align: center;
  overflow-x: hidden;
}

/* ── INTRO: şeffaf perde + kurdele (tek bütün) ── */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  perspective: 1800px;
  perspective-origin: center center;
  pointer-events: none;
}

#intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

#curtain-left,
#curtain-right {
  position: absolute;
  top: 0;
  width: 48vw;
  height: 100%;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: rgba(91, 74, 59, 0.14) 0 12px 28px;
  will-change: transform;
}

#curtain-left {
  left: 0;
  transform-origin: 0% 50%;
  transform: translateX(0) rotateY(0deg);
  background: rgba(247, 243, 238, 0.58);
  z-index: 2;
  border-right: 1px solid rgba(91, 74, 59, 0.12);
}

#curtain-right {
  right: 0;
  transform-origin: 100% 50%;
  transform: translateX(0) rotateY(0deg);
  background: rgba(247, 243, 238, 0.52);
  z-index: 1;
  border-left: 1px solid rgba(91, 74, 59, 0.1);
}

#intro-overlay.opening #curtain-left {
  transform: translateX(-100%) rotateY(-18deg);
}

#intro-overlay.opening #curtain-right {
  transform: translateX(100%) rotateY(18deg);
}

#ribbon-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

#ribbon-wrap.is-done {
  visibility: hidden;
}

#ribbon-video {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  background: transparent;
}

/* ── MÜZİK TOGGLE ── */
.music-toggle {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 8000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(91, 74, 59, 0.22);
  background: rgba(247, 243, 238, 0.82);
  backdrop-filter: blur(6px);
  color: #5b4a3b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 16px rgba(91, 74, 59, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.music-toggle:hover {
  background: rgba(247, 243, 238, 0.95);
  transform: scale(1.05);
}

.music-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.music-toggle .icon-muted {
  display: block;
}

.music-toggle .icon-playing {
  display: none;
}

.music-toggle.is-playing .icon-muted {
  display: none;
}

.music-toggle.is-playing .icon-playing {
  display: block;
}

/* ── HERO ── */
#hero {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  user-select: none;
}

#hero.has-video .hero-poster-fallback {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #5b4a3b;
  pointer-events: none;
  padding: clamp(24px, 6vw, 48px);
  gap: clamp(10px, 2vw, 18px);
  width: 100%;
  min-height: 100vh;
}

.hero-monogram {
  position: relative;
  display: inline-block;
  font-family: "Monogramica Script", cursive;
  font-feature-settings: "clig", "liga";
  font-variant-ligatures: common-ligatures contextual;
  line-height: 1;
  color: #828270;
  font-size: clamp(52px, 10vw, 88px);
  margin-bottom: clamp(4px, 1vw, 10px);
}

.hero-monogram .glyph {
  display: block;
}

.hero-monogram .initials {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  white-space: nowrap;
  font-size: 0.42em;
}

.hero-invite {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 2.6vw, 24px);
  letter-spacing: 0.32em;
  opacity: 0.8;
  font-weight: 400;
  text-transform: uppercase;
}

.hero-names {
  margin: 0;
  line-height: 1.05;
  font-family: var(--script);
  font-size: clamp(56px, 11vw, 96px);
  color: #5b4a3b;
}

.hero-parents {
  display: flex;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  opacity: 0.9;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.4;
  width: 100%;
  max-width: 640px;
  gap: clamp(16px, 4vw, 48px);
  font-size: clamp(13px, 2vw, 18px);
  letter-spacing: 0.06em;
}

.hero-parents span {
  display: block;
  white-space: pre-line;
  flex: 0 1 auto;
  min-width: 0;
}

.hero-date {
  margin: 0;
  letter-spacing: 0.05em;
  line-height: 1.2;
  font-family: var(--script);
  font-size: clamp(24px, 3.6vw, 34px);
}

.hero-date .dot {
  opacity: 0.55;
  margin: 0 0.5em;
}

.hero-date .dash {
  opacity: 0.5;
  margin: 0 0.4em;
  font-weight: 300;
}

/* ── CONTENT WRAPPER ── */
.content-wrap {
  position: relative;
  background-color: #f7f3ee;
}

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

.content-bg img {
  display: block;
  width: 200%;
  height: auto;
  margin-left: -50%;
  user-select: none;
}

.content-bg img.flip {
  transform: scaleY(-1);
  margin-top: -1px;
}

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

/* ── SECTIONS ── */
.section {
  position: relative;
  padding: clamp(56px, 10vw, 88px) 24px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 40px);
  margin: 0;
  line-height: 1.1;
}

.section-hr {
  width: 48px;
  height: 1px;
  border: none;
  margin: 20px auto 28px;
}

.section-body {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.6;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

/* ── COUNTDOWN ── */
#countdown {
  background: #828270;
  color: #f7f3ee;
  width: 100%;
}

#countdown .section-title {
  color: #f7f3ee;
}

#countdown .section-hr {
  background: #f7f3ee;
  opacity: 0.45;
}

.cd-sub {
  font-family: var(--display);
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin: 0 0 32px;
  line-height: 1.2;
  font-size: clamp(18px, 2.5vw, 24px);
}

.cd-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  gap: clamp(20px, 5vw, 48px);
}

.cd-item {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cd-num {
  font-family: var(--display);
  line-height: 1;
  color: #f7f3ee;
  font-size: clamp(48px, 10vw, 72px);
}

.cd-label {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  opacity: 0.8;
  font-size: clamp(12px, 1.8vw, 15px);
  letter-spacing: 0.12em;
}

/* ── MEMORIES ── */
#memories .section-title {
  color: #5b4a3b;
}

#memories .section-hr {
  background: #5b4a3b;
  opacity: 0.35;
}

#memories .section-body {
  color: #5b4a3b;
  margin-bottom: 8px;
}

.photos-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(24px, 6vw, 64px);
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

.photos-scroll::-webkit-scrollbar {
  display: none;
}

.photos-track {
  display: flex;
  gap: clamp(18px, 3vw, 30px);
  padding: 36px clamp(24px, 6vw, 64px) 48px;
  width: max-content;
}

.photo-breath {
  flex: 0 0 auto;
  scroll-snap-align: start;
  transform-origin: 50% 0;
  animation: photo-breath-sway 7s ease-in-out infinite;
  animation-delay: var(--breath-delay, 0s);
}

@keyframes photo-breath-sway {

  0%,
  100% {
    transform: rotate(calc(-0.6deg * var(--breath-dir, 1)));
  }

  50% {
    transform: rotate(calc(0.6deg * var(--breath-dir, 1)));
  }
}

.photo-card {
  display: block;
  width: clamp(200px, 32vw, 280px);
  padding: 12px 12px 0;
  background: linear-gradient(180deg, #fdfcf8 0%, #f6f1e6 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 24px rgba(91, 74, 59, 0.18), 0 2px 6px rgba(91, 74, 59, 0.1);
  transform: rotate(var(--rest-tilt, 0deg));
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
  border: none;
  text-align: inherit;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.photo-card:focus-visible {
  outline: 2px solid #828270;
  outline-offset: 4px;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e9e2d4;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(0.96);
}

.photo-caption {
  display: block;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: #5b4a3b;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  padding: 14px 8px 18px;
  opacity: 0.85;
}

/* ── PHOTO LIGHTBOX ── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 24, 18, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 64px);
  animation: lb-fade 300ms ease-out both;
}

@keyframes lb-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.photo-lightbox-card {
  position: relative;
  background: #fff;
  padding: 12px 12px 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  max-width: min(720px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: lb-pop 350ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lb-pop {
  from {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
  }

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

.photo-lightbox-img {
  max-width: 100%;
  max-height: calc(90vh - 120px);
  object-fit: contain;
  display: block;
  background: #f0f0f0;
}

.photo-lightbox-caption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: #5b4a3b;
  font-size: clamp(16px, 2.2vw, 20px);
  padding: 18px 12px 24px;
}

.photo-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.photo-lightbox-close::before,
.photo-lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #fff;
}

.photo-lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.photo-lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.photo-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.photo-lightbox-nav.prev {
  left: clamp(10px, 3vw, 40px);
}

.photo-lightbox-nav.next {
  right: clamp(10px, 3vw, 40px);
}

.photo-lightbox-nav::after {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.photo-lightbox-nav.prev::after {
  transform: rotate(45deg) translateX(2px);
}

.photo-lightbox-nav.next::after {
  transform: rotate(-135deg) translateX(2px);
}

@media (max-width: 768px) {
  .photo-lightbox-nav {
    top: auto;
    bottom: 24px;
    transform: none;
    width: 48px;
    height: 48px;
  }

  .photo-lightbox-nav:hover {
    transform: scale(1.1);
  }

  .photo-lightbox-nav.prev {
    left: calc(50% - 60px);
  }

  .photo-lightbox-nav.next {
    right: calc(50% - 60px);
  }

  .photo-lightbox-card {
    max-height: 80vh;
  }
}



/* ── PROGRAM ── */
#program {
  max-width: 720px;
  margin: 0 auto;
}

#program .section-title {
  color: #5b4a3b;
}

#program .section-hr {
  background: #5b4a3b;
  opacity: 0.35;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  text-align: left;
  max-width: 520px;
}

.program-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(91, 74, 59, 0.25);
  font-size: clamp(20px, 3vw, 24px);
}

.program-list li:last-child {
  border-bottom: none;
}

.program-list .time {
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.program-list .name {
  letter-spacing: 0.05em;
}

/* ── MENU ── */
#menu {
  max-width: 720px;
  margin: 0 auto;
}

.menu-box {
  border: 1px solid #828270;
  background: #828270;
  color: #f7f3ee;
  overflow: hidden;
  padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 36px);
}

#menu .section-title {
  color: #f7f3ee;
}

#menu .section-hr {
  background: #f7f3ee;
  opacity: 0.45;
  margin-bottom: 32px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 40px);
  text-align: center;
}

@media (max-width: 540px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.menu-cat {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #d8ccae;
  margin-bottom: 18px;
  letter-spacing: 0.14em;
  font-size: clamp(13px, 1.8vw, 15px);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-item-name {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: #f7f3ee;
  line-height: 1.25;
  font-size: clamp(17px, 2.2vw, 22px);
}

.menu-item-desc {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #f7f3ee;
  opacity: 0.72;
  margin-top: 4px;
  line-height: 1.35;
  font-size: clamp(14px, 1.8vw, 17px);
}

/* ── EXTRA / RSVP ── */
#extra {
  max-width: 720px;
  margin: 0 auto;
}

#extra .section-title {
  color: #5b4a3b;
}

#extra .section-hr {
  background: #5b4a3b;
  opacity: 0.35;
}

#extra .section-body {
  color: #5b4a3b;
  max-width: 540px;
}

#rsvp {
  max-width: 720px;
  margin: 0 auto;
}

.rsvp-box {
  border: 1px solid #5b4a3b;
  padding: clamp(32px, 6vw, 48px) clamp(20px, 4vw, 32px);
}

#rsvp .section-title {
  color: #5b4a3b;
}

#rsvp .section-hr {
  background: #5b4a3b;
  opacity: 0.35;
}

.rsvp-form {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.rsvp-label {
  display: block;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

.rsvp-label .req {
  color: #b25d5d;
}

.rsvp-label .opt {
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0;
}

.rsvp-input {
  width: 100%;
  padding: 12px 2px;
  border: none;
  border-bottom: 1px solid rgba(91, 74, 59, 0.35);
  background: transparent;
  color: #5b4a3b;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  outline: 0;
  margin-bottom: 24px;
  transition: border-color 0.25s ease;
}

.rsvp-input:hover {
  border-bottom-color: rgba(91, 74, 59, 0.55);
}

.rsvp-input:focus {
  border-bottom-color: #5b4a3b;
}

.rsvp-input::placeholder {
  color: rgba(91, 74, 59, 0.42);
  font-style: italic;
}

textarea.rsvp-input {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.rsvp-status-label {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.rsvp-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.rsvp-btn {
  flex: 1;
  padding: 14px;
  border: 1px solid #c9bda9;
  background: transparent;
  color: #5b4a3b;
  font-family: inherit;
  font-size: 18px;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.rsvp-btn.active {
  background: #828270;
  color: #f7f3ee;
  border-color: #828270;
}

.rsvp-submit {
  width: 100%;
  padding: 16px 20px;
  background: #828270;
  color: #f7f3ee;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 3px;
}

/* ── FOOTER ── */
.footer-heart-row {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 24px;
  color: #828270;
}

.footer-heart-row .line {
  flex: 1;
  max-width: 220px;
  height: 1px;
}

.footer-heart-row .line-left {
  background: linear-gradient(to right, rgba(130, 130, 112, 0.45) 0, rgba(130, 130, 112, 0) 100%);
}

.footer-heart-row .line-right {
  background: linear-gradient(to right, rgba(130, 130, 112, 0) 0, rgba(130, 130, 112, 0.45) 100%);
}

footer {
  padding: 72px 24px 48px;
  text-align: center;
  color: #5b4a3b;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.footer-names {
  margin: 0;
  font-family: var(--script);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  font-size: clamp(40px, 7vw, 56px);
}

.footer-names .amp {
  color: #828270;
}

.footer-date {
  margin: 14px 0 0;
  font-family: var(--script);
  font-style: italic;
  letter-spacing: 0.04em;
  opacity: 0.8;
  font-size: clamp(20px, 2.5vw, 26px);
}

.footer-divider {
  margin: 36px auto 0;
  width: 32px;
  height: 1px;
  background: #5b4a3b;
  opacity: 0.2;
}

.footer-contact {
  margin: 20px 0 0;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 500;
  font-size: 14px;
}

.footer-phone {
  display: inline-block;
  margin: 10px 0 0;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 22px);
}

.footer-made {
  margin: 48px 0 0;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.45;
}

.footer-made strong {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .photo-breath {
    animation: none;
  }

  .photo-card {
    transform: none;
  }

  #curtain-left,
  #curtain-right,
  #ribbon-wrap {
    transition: none;
  }

  .photo-lightbox,
  .photo-lightbox-card {
    animation: none;
  }
}