/* ══════════════════════════════════════════════
   DEĞİŞKENLER & RESET
══════════════════════════════════════════════ */
[hidden] { display: none !important; }
:root {
  --bg:       #0b0608;
  --bg2:      #120a0d;
  --bg3:      #190d11;
  --glass:    rgba(255,255,255,0.045);
  --glass-b:  rgba(255,255,255,0.08);
  --gold:     #d4a04a;
  --gold-l:   #e8c070;
  --gold-d:   #a07830;
  --rose:     #e8a8b2;
  --rose-d:   #c47880;
  --text:     #f2eaeb;
  --dim:      rgba(242,234,235,0.5);
  --serif:    'Playfair Display', Georgia, serif;
  --sans:     'Jost', system-ui, sans-serif;
  --ease:     0.3s ease;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  font-weight: 300;
}

a { color:inherit; }
svg { display:block; flex-shrink:0; }


/* ══════════════════════════════════════════════
   YILDIZ KATMANI
══════════════════════════════════════════════ */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--d,3s) ease-in-out infinite var(--dl,0s);
}

@keyframes twinkle {
  0%,100% { opacity: var(--lo,.15); transform:scale(1);   }
  50%      { opacity: var(--hi,.7);  transform:scale(1.4); }
}


/* ══════════════════════════════════════════════
   YAPRAK KATMANI
══════════════════════════════════════════════ */
.petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  border-radius: 50% 0 50% 0;
  animation: petalUp linear infinite;
}

@keyframes petalUp {
  0%   { transform: translateY(110vh) rotate(0deg)   translateX(0);   opacity:0; }
  8%   { opacity: 1; }
  92%  { opacity: .4; }
  100% { transform: translateY(-8vh)  rotate(600deg) translateX(70px); opacity:0; }
}


/* ══════════════════════════════════════════════
   PORTAL EKRANI
══════════════════════════════════════════════ */
.portal-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity .55s ease .3s, visibility .55s ease .3s;
}

.portal-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portal-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* ── Burst overlay ── */
#portalBurst {
  position: fixed;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 102;
  opacity: 0;
  background: radial-gradient(circle,
    rgba(212,160,74,.65) 0%,
    rgba(212,160,74,.2)  35%,
    transparent 68%);
}

#portalBurst.active {
  animation: burstOut .9s cubic-bezier(.15,.6,.35,1) forwards;
}

@keyframes burstOut {
  0%   { transform: scale(1);   opacity: .9; }
  55%  {                         opacity: .4; }
  100% { transform: scale(260); opacity: 0;  }
}

.portal {
  position: relative;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 0 1.5px rgba(212,160,74,.75),
    0 0 0  8px  rgba(212,160,74,.06),
    0 0 0  10px rgba(212,160,74,.55),
    0 0 0  18px rgba(212,160,74,.05),
    0 0 0  20px rgba(212,160,74,.35),
    0 0  50px   rgba(212,160,74,.28),
    0 0 100px   rgba(212,160,74,.12);
  background: var(--bg);
  animation: portalGlow 4s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Tıklandığında portal kısaca büyür ve parlar */
.portal--hit {
  animation: none !important;
  transform: scale(1.06);
  box-shadow:
    0 0 0 2px  rgba(212,160,74,1),
    0 0 0 10px rgba(212,160,74,.15),
    0 0 0 12px rgba(212,160,74,.85),
    0 0 80px   rgba(212,160,74,.65),
    0 0 160px  rgba(212,160,74,.3);
}

@keyframes portalGlow {
  0%,100% {
    box-shadow:
      0 0 0 1.5px rgba(212,160,74,.75), 0 0 0 8px rgba(212,160,74,.06),
      0 0 0 10px rgba(212,160,74,.55),  0 0 0 18px rgba(212,160,74,.05),
      0 0 0 20px rgba(212,160,74,.35),  0 0 50px rgba(212,160,74,.28),
      0 0 100px rgba(212,160,74,.12);
  }
  50% {
    box-shadow:
      0 0 0 1.5px rgba(212,160,74,.95), 0 0 0 8px rgba(212,160,74,.1),
      0 0 0 10px rgba(212,160,74,.75),  0 0 0 18px rgba(212,160,74,.08),
      0 0 0 20px rgba(212,160,74,.5),   0 0 70px rgba(212,160,74,.45),
      0 0 130px rgba(212,160,74,.22);
  }
}

/* İki dönen çember */
.portal__ring {
  position: absolute;
  border-radius: 50%;
  border-style: dashed;
  border-color: rgba(212,160,74,.22);
}

.portal__ring--1 {
  inset: -24px;
  border-width: 1px;
  animation: spinCW  28s linear infinite;
}

.portal__ring--2 {
  inset: -44px;
  border-width: 1px;
  border-color: rgba(212,160,74,.1);
  animation: spinCCW 42s linear infinite;
}

@keyframes spinCW  { to { transform: rotate(360deg);  } }
@keyframes spinCCW { to { transform: rotate(-360deg); } }

.portal__core { text-align: center; position: relative; z-index:1; }

.portal__monogram {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .1em;
  line-height: 1;
  text-shadow: 0 0 40px rgba(212,160,74,.5);
}

.portal__label {
  font-size: .58rem;
  font-weight: 200;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(212,160,74,.5);
  margin-top: .5rem;
}

.portal__hint {
  font-size: .75rem;
  font-weight: 200;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(212,160,74,.4);
  animation: hintBreath 3s ease-in-out infinite;
  transition: opacity .3s ease;
  user-select: none;
}

.portal__hint.hidden { opacity: 0; }

@keyframes hintBreath {
  0%,100% { opacity: .35; }
  50%     { opacity: .8;  }
}


/* ══════════════════════════════════════════════
   DAVET — GENEL
══════════════════════════════════════════════ */
.inv {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity .8s ease;
}

.inv.visible { opacity: 1; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible { opacity:1; transform:translateY(0); }

/* Bölüm başlığı */
.sec-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.8rem;
  letter-spacing: .02em;
}

.sec-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: .7rem auto 0;
}


/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,160,74,.04) 0%, transparent 65%),
              var(--bg);
  position: relative;
  overflow: hidden;
}

.hero__watermark {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(9rem, 35vw, 22rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(212,160,74,.028);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -.05em;
}

.hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}

.hero__eyebrow {
  font-size: .72rem;
  font-weight: 300;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
  gap: .15rem;
}

.hero__names span {
  font-size: clamp(4rem, 15vw, 8.5rem);
  color: var(--text);
  letter-spacing: .04em;
  line-height: 1.05;
}

.hero__names em {
  font-size: clamp(2rem, 7vw, 4rem);
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
  line-height: 1;
  margin: .15rem 0;
}

.hero__tagline {
  font-size: .85rem;
  font-weight: 200;
  letter-spacing: .18em;
  color: var(--dim);
  max-width: 320px;
  line-height: 1.8;
}

.hero__arrow,
.sec-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212,160,74,.2);
  border-radius: 50%;
  color: var(--gold);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease);
  animation: arrowBob 2.2s ease-in-out infinite;
}

.hero__arrow { margin-top: .75rem; }

.sec-arrow {
  position: relative;
  z-index: 2;
  margin: 3rem auto 0;
}

.hero__arrow:hover,
.sec-arrow:hover {
  border-color: var(--gold);
  background: rgba(212,160,74,.08);
}

@keyframes arrowBob {
  0%,100% { transform:translateY(0);   }
  50%      { transform:translateY(5px); }
}


/* ══════════════════════════════════════════════
   AYET
══════════════════════════════════════════════ */
.verse {
  padding: 7rem 2rem;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.verse__halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,168,178,.05) 0%, transparent 65%);
  pointer-events: none;
}

.verse__body {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.verse__arabic {
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  color: var(--rose);
  line-height: 1.9;
  direction: rtl;
  text-shadow: 0 0 70px rgba(232,168,178,.3);
  font-family: 'Scheherazade New','Traditional Arabic','Times New Roman',serif;
}

.verse__gem {
  font-size: .8rem;
  color: var(--gold);
  opacity: .4;
  letter-spacing: .5em;
}

.verse__tr {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.5vw, 1.75rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  font-weight: 400;
}

.verse__ref {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .5;
  font-style: normal;
}


/* ══════════════════════════════════════════════
   GERİ SAYIM
══════════════════════════════════════════════ */
.countdown {
  padding: 4.5rem 2rem;
  text-align: center;
  background: var(--bg2);
}

.countdown__label {
  font-size: .68rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2rem;
}

.countdown__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.cd-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 35px rgba(212,160,74,.35);
}

.cd-name {
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: .4rem;
}

.cd-colon {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  opacity: .25;
  line-height: 1;
  padding-top: .1rem;
}

.countdown__done {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
}


/* ══════════════════════════════════════════════
   PROGRAM
══════════════════════════════════════════════ */
.program {
  padding: 5.5rem 2rem;
  background: var(--bg3);
}

.program__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--ease), border-color var(--ease);
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,160,74,.2);
}

.glass-card__dot {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: .45em;
  margin-bottom: 1rem;
  opacity: .7;
}

.glass-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: .01em;
}

.glass-card__time {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: .6rem;
}

.glass-card__venue {
  color: var(--dim);
  font-size: .84rem;
  line-height: 1.7;
  margin-bottom: .7rem;
}

.glass-card__date {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: .65;
}


/* ══════════════════════════════════════════════
   KONUM
══════════════════════════════════════════════ */
.location {
  padding: 5.5rem 2rem;
  background: var(--bg);
}

.location__frame {
  max-width: 840px;
  margin: 0 auto 2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-b);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.location__frame iframe {
  display: block;
  filter: grayscale(15%) contrast(1.1) brightness(.95);
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0 auto;
  width: fit-content;
  padding: .82rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background var(--ease), color var(--ease);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
}


/* ══════════════════════════════════════════════
   İLETİŞİM
══════════════════════════════════════════════ */
.contact {
  padding: 5rem 2rem;
  background: var(--bg2);
  text-align: center;
}

.contact__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.contact__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.contact__badge {
  font-size: .62rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: .7;
}

.contact__name {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: .01em;
}

.contact__tel {
  color: var(--dim);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 300;
  transition: color var(--ease);
}

.contact__tel:hover { color: var(--gold); }

.contact__sep {
  color: var(--gold);
  opacity: .18;
  font-size: .9rem;
}


/* ══════════════════════════════════════════════
   NOT BIRAKMA
══════════════════════════════════════════════ */
.notes {
  padding: 5.5rem 2rem;
  background: var(--bg3);
  text-align: center;
}

.notes__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--dim);
  font-size: 1rem;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.note-form {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.note-form input,
.note-form textarea {
  width: 100%;
  padding: .95rem 1.2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  color: var(--text);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 300;
  outline: none;
  resize: vertical;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.note-form input::placeholder,
.note-form textarea::placeholder {
  color: rgba(242,234,235,.2);
}

.note-form input:focus,
.note-form textarea:focus {
  border-color: rgba(212,160,74,.4);
  box-shadow: 0 0 0 3px rgba(212,160,74,.07);
}

.note-form textarea {
  min-height: 120px;
  padding-bottom: 2rem;
}

.note-form__area { position: relative; }

.note-form__counter {
  position: absolute;
  bottom: .55rem;
  right: .9rem;
  font-size: .68rem;
  color: var(--dim);
  opacity: .4;
  pointer-events: none;
}

.btn-rose {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .88rem 2.4rem;
  background: transparent;
  border: 1px solid var(--rose);
  color: var(--rose);
  border-radius: 50px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  align-self: center;
  min-width: 140px;
}

.btn-rose:hover {
  background: var(--rose);
  color: var(--bg);
}

.btn-rose.success {
  background: rgba(80,180,120,.12);
  border-color: #5ab47a;
  color: #5ab47a;
}

/* Notlar listesi */
.notes__list {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.note-item {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: 11px;
  padding: 1.2rem 1.4rem;
  animation: noteSlide .45s ease both;
}

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

.note-item__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: .3rem;
}

.note-item__msg {
  color: var(--dim);
  font-size: .84rem;
  font-weight: 300;
  line-height: 1.65;
}

.note-item__time {
  font-size: .68rem;
  color: var(--rose);
  opacity: .5;
  margin-top: .5rem;
}


/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,.04);
}

.footer__dots {
  font-size: .68rem;
  color: var(--gold);
  letter-spacing: .5em;
  opacity: .25;
  margin-bottom: 1.2rem;
}

.footer__names {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: .05em;
  margin-bottom: .35rem;
}

.footer__date {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}

.footer__wish {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose);
  opacity: .4;
  font-size: .9rem;
}


/* ══════════════════════════════════════════════
   MOBİL
══════════════════════════════════════════════ */
@media (max-width: 500px) {
  .portal { width: 195px; height: 195px; }
  .portal__monogram { font-size: 2.1rem; }
  .portal__ring--1 { inset: -18px; }
  .portal__ring--2 { inset: -34px; }

  .hero__names span { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero__names em   { font-size: clamp(1.6rem, 9vw, 2.8rem); }

  .contact__row  { flex-direction: column; gap: 2rem; }
  .contact__sep  { display: none; }

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

  .cd-num { font-size: 2rem; }
}

@media (min-width: 760px) {
  .hero__names {
    flex-direction: row;
    align-items: baseline;
    gap: 1.5rem;
  }
  .hero__names em { margin: 0; }
}
