/* ==========================================================
   GÖKÇE & YALÇIN — MAIN.CSS
   Tüm layout, tipografi, section stilleri
========================================================== */

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
}

/* ========================= VARIABLES ========================= */
:root {
  --gold:        #c9a96e;
  --gold-light:  #e8d5a3;
  --gold-dark:   #8b6914;
  --cream:       #f5efe6;
  --dark:        #0a0806;
  --dark-mid:    #120f0a;
  --text-light:  rgba(245,239,230,0.92);
  --text-dim:    rgba(245,239,230,0.55);
  --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font-body:    'Montserrat', 'Helvetica Neue', sans-serif;
}

/* ========================= BACKGROUND ========================= */
body {
  background: var(--dark);
  color: var(--text-light);
  font-family: var(--font-body);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  filter: brightness(0.32) saturate(1.1);
  z-index: -3;
  animation: bgZoom 28s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.45) 0%,
      rgba(0,0,0,0.25) 40%,
      rgba(0,0,0,0.55) 100%
    ),
    radial-gradient(ellipse at top center,
      rgba(201,169,110,0.08) 0%,
      transparent 55%
    );
  z-index: -2;
  pointer-events: none;
}

@keyframes bgZoom {
  from { transform: scale(1.03); }
  to   { transform: scale(1.09); }
}

/* ========================= TYPOGRAPHY BASE ========================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ========================= ANIMATED SEPARATOR ========================= */
.sep {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  vertical-align: middle;
}

.sep-heart {
  display: inline-block;
  color: var(--gold);
  font-size: 1em;
  line-height: 1;
  animation: heartBeat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(201,169,110,0.7));
  user-select: none;
}

@keyframes heartBeat {
  0%   { transform: scale(1);    opacity: 1; }
  15%  { transform: scale(1.28); opacity: 1; }
  30%  { transform: scale(1);    opacity: 0.85; }
  45%  { transform: scale(1.14); opacity: 1; }
  60%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* ========================= PRELOADER ========================= */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-monogram {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold);
  letter-spacing: 0.12em;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.96); }
  50%       { opacity: 1;   transform: scale(1); }
}

/* ========================= HERO ========================= */
.hero {
  min-height: 85svh;           /* ← 75 → 85, içerik sıkışmasını önler */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(5rem, 10vw, 8rem) 1.5rem clamp(4rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;            /* ← zaten animations.css'de var, buraya da ekle */
}

.hero-tag {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.2vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.4rem;
  opacity: 0;
animation: fadeUp 1s ease both 0.3s;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 0.15em;
  opacity: 0;
animation: fadeUp 1.1s ease both 0.5s;
}

.hero h1 .sep-heart {
  font-size: 0.62em;
  margin: 0 0.18em;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-top: 1.6rem;
  opacity: 0;
animation: fadeUp 1s ease both 0.8s;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto;
  opacity: 0;
animation: fadeIn 1.2s ease both 1s;
}

.hero-sub {
  font-size: clamp(0.78rem, 1.6vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
animation: fadeUp 1s ease both 1.1s;
}

.hero-scroll {
  position: relative;         /* ← absolute'tan relative'e */
  margin-top: 3rem;           /* ← içerikten aşağı iter */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1.2s ease both 2s;  /* ← forwards → both */
   
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(1.3); opacity: 1; }
}

/* ========================= SECTIONS SHARED ========================= */
section {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--cream);
}

.section-title .sep-heart {
  font-size: 0.7em;
  margin: 0 0.2em;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.2rem auto 0;
}

/* ========================= COUNTDOWN ========================= */
.section-countdown {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(201,169,110,0.12);
  border-bottom: 1px solid rgba(201,169,110,0.12);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 70px;
}

.time-box .number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}

.time-box .label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.countdown-dot {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  color: var(--gold);
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.1em;
  opacity: 0.5;
}

/* ========================= INFO CARDS ========================= */
.section-info .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.18);
  border-radius: 2px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  border-color: rgba(201,169,110,0.45);
  background: rgba(255,255,255,0.07);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.8;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* ========================= MAP ========================= */
.luxury-map {
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.2);
  max-width: 900px;
  margin: 0 auto;
}

.luxury-map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 420px);
  filter: grayscale(0.4) brightness(0.85) sepia(0.15);
}

/* ========================= GALLERY ========================= */
.section-gallery {
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.9) saturate(0.85);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1);
}

/* ========================= MEMORY WALL ========================= */
.section-memory {
  background: rgba(0,0,0,0.2);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.memory-note {
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.16);
  border-radius: 2px;
  padding: 1.5rem;
  position: relative;
}

.memory-note::before {
  content: '"';
  position: absolute;
  top: 0.6rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
}

.memory-note p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-dim);
  padding-top: 0.8rem;
}

.memory-note .note-author {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Memory upload btn */
.btn-memory {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.85rem 2.5rem;
  background: transparent;
  border: 1px solid rgba(201,169,110,0.4);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-memory:hover {
  background: rgba(201,169,110,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ========================= RSVP ========================= */
.section-rsvp {
  text-align: center;
}

.rsvp-desc {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 440px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-style: italic;
}

.btn-rsvp {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, rgba(201,169,110,0.15), rgba(201,169,110,0.05));
  border: 1px solid rgba(201,169,110,0.5);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-rsvp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,110,0.2), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-rsvp:hover { border-color: var(--gold); }
.btn-rsvp:hover::before { opacity: 1; }

/* ========================= MODALS ========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(6px);
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.rsvp-box,
.memory-box {
  background: rgba(12,9,7,0.96);
  border: 1px solid rgba(201,169,110,0.25);
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 480px;
  width: 100%;
  position: relative;
  animation: modalIn 0.4s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--cream);
  text-align: center;
  margin-bottom: 1.8rem;
}

.modal-title .sep-heart {
  font-size: 0.75em;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.2);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(201,169,110,0.55);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group select option {
  background: var(--dark-mid);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, rgba(201,169,110,0.2), rgba(201,169,110,0.08));
  border: 1px solid rgba(201,169,110,0.45);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: rgba(201,169,110,0.2);
  border-color: var(--gold);
}

/* ========================= FOOTER ========================= */
footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  border-top: 1px solid rgba(201,169,110,0.1);
}

.footer-monogram {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.footer-monogram .sep-heart {
  font-size: 0.65em;
  margin: 0 0.22em;
}

.footer-date {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.footer-made {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: rgba(245,239,230,0.2);
  margin-top: 2rem;
}

/* ========================= REVEAL ANIMATIONS ========================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================= MOBILE ========================= */
@media (max-width: 768px) {
  body::before {
    animation: none;
    filter: brightness(0.28) saturate(1.1);
  }

  .countdown {
    gap: 0.8rem;
  }

  .time-box .number {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .countdown-dot {
    font-size: clamp(2rem, 10vw, 3rem);
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }
}
