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

:root {
  --bg: #0b0d1a;
  --card: #151829;
  --text: #f4ecef;
  --muted: #b9aeb8;
  --accent: #ff7a9c;
  --gold: #f3d9a4;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* ===== Giriş (Hero) ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background: url("fotolar/kapak.jpg") center 35% / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
  filter: saturate(1.1);
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(11, 13, 26, 0.15) 0%, rgba(11, 13, 26, 0.75) 75%),
    linear-gradient(180deg, rgba(11, 13, 26, 0.35) 0%, rgba(11, 13, 26, 0.2) 50%, var(--bg) 100%);
}

#hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 3rem;
  border-radius: 28px;
  background: rgba(15, 17, 35, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: rise 1.6s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.hero-small {
  font-size: .85rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}

.hero-title {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(255, 122, 156, .55);
}

.hero-dates {
  margin-top: 1rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 3.6vw, 2.4rem);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.hero-dates .heart {
  color: var(--accent);
  animation: beat 1.3s ease-in-out infinite;
  display: inline-block;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
}

.hero-counter {
  margin-top: 1.2rem;
  font-size: .95rem;
  color: var(--muted);
  letter-spacing: .05em;
}

.hero-counter strong { color: var(--text); font-weight: 600; }

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  opacity: .85;
}

.scroll-down span {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text);
  border-radius: 14px;
  position: relative;
}

.scroll-down span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--text);
  border-radius: 2px;
  animation: wheel 1.8s infinite;
}

@keyframes wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===== Anılar ===== */
.memories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--accent);
}

.section-head p { color: var(--muted); margin-top: .3rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.memory {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .06);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1), box-shadow .3s;
}

.memory.show { opacity: 1; transform: none; }

.memory:hover { box-shadow: 0 16px 40px rgba(255, 122, 156, .18); }

.memory .photo {
  aspect-ratio: 1 / 1;   /* kare */
  overflow: hidden;
  cursor: zoom-in;
}

.memory img,
.memory video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.memory:hover img,
.memory:hover video { transform: scale(1.06); }

.memory figcaption {
  padding: 1rem 1.2rem 1.3rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
  min-height: 3.6rem;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 14, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img,
.lightbox video {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.lightbox p { color: var(--text); text-align: center; max-width: 700px; }

.lightbox .close {
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.4rem;
  cursor: pointer;
}

/* ===== Alt ===== */
footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  color: var(--muted);
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
}

/* ===== Mobil ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero-content { padding: 1.8rem 1.4rem; margin: 0 1rem; }
}
