:root {
  --bg-color: #fffafb;
  --accent: #d4af37;
  --heart-red: #a64444;
  --text-main: #2d3436;
  --perfect-heart: shape( from 50% 91%, line to 90% 50%, arc to 50% 9% of 1%, arc to 10% 50% of 1% );
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-color);
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Giriş ve Dil Switcher */
#login-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  text-align: center;
  padding: 2rem;
}

.login-box h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 10px 0;
  outline: none;
}

button {
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

button:hover { opacity: 0.8; }

.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
}

.lang-switcher button {
  background: white;
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-left: 5px;
  padding: 5px 10px;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('img/main.webp') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 20px;
  overflow: hidden;
  z-index: 1;

  /* FOTOĞRAF BOYUTU İLE AYNI YAP */
  height: auto;
  aspect-ratio: 16 / 9; /* Fotoğrafın oranına göre */
  max-width: 100%;
}
.hero-content {
  position: relative;
  z-index: 10; /* resmin önünde */
}

.hero h1,
.hero p {
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.hero.show h1 {
  opacity: 1;
  transform: translateY(0);
}

.hero.show p {
  opacity: 1;
  transform: translateY(0);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1; /* overlay */
}

.hero.parallax-hero {
  background-position: center;
  will-change: background-position;
}


@keyframes heroTitle {
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 2px;
  }
}

@keyframes heroSubtitle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 100px auto;
  padding: 20px;
}

.timeline-line {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  width: 100%;
  margin-bottom: 100px;
  display: flex;
  position: relative;
}

.timeline-card {
  width: 42%;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.6s;
  opacity: 0;
  transform: translateY(30px);
}

.timeline-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.left { margin-right: auto; }
.right { margin-left: auto; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 3px solid white;
}

.timeline-date {
  position: absolute;
  left: 50%;
  top: -25px;
  transform: translateX(-50%);
  font-weight: bold;
  color: var(--accent);
}

/* Görsel kutular */
.photo-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
}

.timeline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Heart & Coupon */
.coupon-section {
  padding: 100px 0;
  text-align: center;
}

.heart-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 50px auto;
  cursor: pointer;
  perspective: 1000px;
}

.heart-side {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  z-index: 2;
}

.left-side {
  clip-path: inset(0 50% 0 0);
  transform-origin: left;
}

.right-side {
  clip-path: inset(0 0 0 50%);
  transform-origin: right;
}

.heart-shape {
  width: 100%;
  height: 100%;
  background: var(--heart-red);
  clip-path: var(--perfect-heart);
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-shape span {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  position: absolute;
  top: 40%;
}

.left-side span { left: 18%; }
.right-side span { right: 18%; }

.coupon-card {
  position: absolute;
  inset: 50px 25px auto 25px;
  height: 160px;
  background: white;
  border: 2px solid var(--accent);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: 0.4s ease-in;
}

.heart-wrapper.open .left-side { transform: rotateY(-150deg); }
.heart-wrapper.open .right-side { transform: rotateY(150deg); }

.heart-wrapper.open .coupon-card {
  opacity: 1;
  visibility: visible;
  transform: scale(1.1);
  transition: opacity 0.6s ease-out 0.3s,
              transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
}

.hidden { display: none; }

/* --- RESPONSIVE TABLET & MOBILE --- */
@media (max-width: 768px) {
  .hero { background-attachment: scroll; }
  .timeline-line { left: 20px; }
  .timeline-item { justify-content: flex-start; padding-left: 45px; margin-bottom: 60px; }
  .timeline-card { width: calc(100% - 20px); margin: 0 !important; }
  .timeline-dot { left: 20px; }
  .timeline-date { left: 45px; transform: none; top: -25px; }
  .heart-wrapper { transform: scale(0.85); }
  .coupon-card { width: 240px; left: 50%; transform: translateX(-50%) scale(0.8); }
  .heart-wrapper.open .coupon-card { transform: translateX(-50%) scale(1); }
  .parallax-hero { background-size: 120%; }
}

@media (max-width: 480px) {
  .photo-box { aspect-ratio: 4 / 3; }
  .timeline-card { padding: 15px; }
}

/* ❤️ HEART BEAT EFFECT */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

.heartbeat { animation: heartbeat 1.2s ease-in-out infinite; }

/* 💕 FLOATING HEARTS */
.floating-heart {
  position: fixed;
  bottom: -20px;
  font-size: 20px;
  color: #d65a5a;
  animation: floatUp 4s linear forwards;
  opacity: 0.8;
  pointer-events: none;
  z-index: 9999;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1.4); opacity: 0; }
}
.counter-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.counter-container h2 {
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

#love-counter {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.count-item {
    background: #fff;
    border: 1px solid #f0e0d0;
    padding: 15px;
    min-width: 80px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.count-item span {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}

.count-item p {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobil için sayaç küçültmesi */
@media (max-width: 480px) {
    #love-counter { gap: 10px; }
    .count-item { min-width: 70px; padding: 10px; }
    .count-item span { font-size: 1.5rem; }
}