/* ============================================
   ONLINE DÜĞÜN DAVETİYESİ - GLOBAL STYLES
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-color: #fcf3ec;
  --accent: #c92121;
  --accent-light: #e84343;
  --accent-dark: #9e1a1a;
  --text-dark: #2d2d2d;
  --text-medium: #555;
  --text-light: #888;
  --white: #fff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --border-radius: 16px;
  --font-handwritten: 'Caveat', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  outline: none;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.nav a {
  background: var(--white);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- Floating Decorations ---- */
.floating-hearts {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  top: 0;
  left: 0;
}

.heart {
  position: absolute;
  opacity: 0.15;
  animation: floatHeart linear infinite;
}

@keyframes floatHeart {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.5);
    opacity: 0;
  }

  10% {
    opacity: 0.15;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-20vh) rotate(720deg) scale(1);
    opacity: 0;
  }
}

/* ---- Section Base ---- */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 40px auto;
  border-radius: 3px;
}

/* ---- Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}

.hero-illustration {
  margin-bottom: 30px;
  position: relative;
}

.hero-illustration svg {
  width: 280px;
  height: auto;
}

.hero-title {
  font-family: var(--font-handwritten);
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 10px;
  animation: bounceIn 1s ease;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-medium);
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-date {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--accent);
  animation: fadeInUp 1s ease 0.5s both;
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  fill: var(--accent);
  opacity: 0.6;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-15px);
  }

  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* ============================================
   COUPLE SECTION
   ============================================ */
.couple {
  padding: 40px 20px 20px;
}

.couple-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.couple-person {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.couple-person .name {
  font-family: var(--font-handwritten);
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.couple-person .parents {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.8;
}

.couple-ampersand {
  font-family: var(--font-handwritten);
  font-size: 4rem;
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ============================================
   EVET IMAGES (Nikah Section)
   ============================================ */
.evet-images {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: -35px;
  position: relative;
  z-index: 2;
}

.evet-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(201, 33, 33, 0.15));
}

.evet-merve {
  transform: rotate(-3deg);
  animation: gentleSway 4s ease-in-out infinite;
}

.evet-furkan {
  transform: rotate(3deg);
  animation: gentleSway 4s ease-in-out infinite 0.5s;
}

@keyframes gentleSway {

  0%,
  100% {
    transform: rotate(-3deg);
  }

  50% {
    transform: rotate(0deg);
  }
}

/* ============================================
   PASTA IMAGE (Düğün Section)
   ============================================ */
.pasta-image {
  display: flex;
  justify-content: center;
  margin-bottom: -35px;
  position: relative;
  z-index: 2;
}

.pasta-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(201, 33, 33, 0.15));
}

/* ============================================
   EVENT CARDS (Nikah & Düğün)
   ============================================ */
.event-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 50px 40px;
  box-shadow: var(--shadow-md);
  margin: 30px auto;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.event-card .event-icon {
  margin-bottom: 20px;
}

.event-card .event-icon svg {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.event-card .event-label {
  font-family: var(--font-handwritten);
  font-size: 2.8rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.event-card .event-type {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.event-card .event-details {
  margin-bottom: 25px;
}

.event-card .event-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-medium);
}

.event-card .event-detail svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

.event-card .event-detail strong {
  color: var(--text-dark);
}

.event-card .event-address {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 5px;
  line-height: 1.5;
}

/* ---- Map Button ---- */
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(201, 33, 33, 0.3);
}

.btn-map:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(201, 33, 33, 0.4);
}

.btn-map svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

/* ============================================
   RSVP SECTION
   ============================================ */
.rsvp {
  padding: 80px 20px;
}

.rsvp-title {
  font-family: var(--font-handwritten);
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.rsvp-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-medium);
  font-style: italic;
  margin-bottom: 40px;
}

.rsvp-form {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8e0d8;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--bg-color);
  transition: var(--transition);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 33, 33, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
}

.btn-attend {
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(201, 33, 33, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-attend::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-attend:hover::after {
  width: 300px;
  height: 300px;
}

.btn-attend:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(201, 33, 33, 0.4);
}

.btn-decline {
  background: transparent;
  color: var(--text-medium);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid #e8e0d8;
}

.btn-decline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   MODAL / NOTIFICATION
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 50px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.4s ease;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }

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

.modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal h3 {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.modal p {
  color: var(--text-medium);
  margin-bottom: 30px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-modal-yes {
  background: var(--accent);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-modal-yes:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-modal-no {
  background: #f0e8e0;
  color: var(--text-dark);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-modal-no:hover {
  background: #e5dcd3;
  transform: translateY(-2px);
}

/* ============================================
   SUCCESS TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown-section {
  text-align: center;
  padding: 30px 20px 40px;
}

.countdown-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.countdown-item {
  background: white;
  border-radius: 12px;
  padding: 14px 8px;
  min-width: 65px;
  flex: 1;
  max-width: 85px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(201, 33, 33, 0.1);
}

.countdown-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* ============================================
   PASSWORD GATE
   ============================================ */
.password-gate {
  text-align: center;
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.password-gate .gate-message {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 25px;
}

.password-gate .gate-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.password-gate .gate-input {
  padding: 14px 20px;
  font-size: 16px;
  border: 2px solid rgba(201, 33, 33, 0.2);
  border-radius: 50px;
  background: white;
  font-family: var(--font-body);
  width: 100%;
  max-width: 320px;
  text-align: center;
  transition: var(--transition);
}

.password-gate .gate-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 33, 33, 0.1);
}

.password-gate .gate-btn {
  padding: 14px 50px;
  background: white;
  color: #c92121 !important;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(201, 33, 33, 0.15);
}

.password-gate .gate-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 33, 33, 0.4);
}

.password-gate .gate-error {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

.upload-area.hidden {
  display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.footer .heart-icon {
  color: var(--accent);
  display: inline;
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   PAGE 2 - DESTEK (SUPPORT / DONATE)
   ============================================ */
.destek-header {
  padding: 120px 20px 40px;
  text-align: center;
}

.destek-header h1 {
  font-family: var(--font-handwritten);
  font-size: 3.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.destek-header p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-medium);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.destek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.destek-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.destek-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.destek-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.destek-card .card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.destek-card .card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--accent);
}

.destek-card h3 {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.destek-card .card-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.destek-card .card-price-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.destek-card input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e0d8;
  border-radius: 12px;
  font-size: 1.1rem;
  text-align: center;
  background: var(--bg-color);
  margin-bottom: 15px;
  transition: var(--transition);
}

.destek-card input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 33, 33, 0.1);
}

.btn-donate {
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  width: 100%;
  box-shadow: 0 4px 15px rgba(201, 33, 33, 0.2);
}

.btn-donate:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 33, 33, 0.35);
}

/* ============================================
   PAGE 3 - ANI PAYLAŞ (MEMORY SHARING)
   ============================================ */
.ani-header {
  padding: 120px 20px 40px;
  text-align: center;
}

.ani-header h1 {
  font-family: var(--font-handwritten);
  font-size: 3.5rem;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.ani-header p {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-medium);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.upload-area {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.drop-zone {
  border: 3px dashed #d4c8bc;
  border-radius: var(--border-radius);
  padding: 60px 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.5);
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(201, 33, 33, 0.03);
  transform: scale(1.01);
}

.drop-zone .drop-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
}

.drop-zone .drop-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent);
  opacity: 0.6;
}

.drop-zone h3 {
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.drop-zone p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

.drop-zone input[type="file"] {
  display: none;
}

.btn-browse {
  display: inline-block;
  margin-top: 15px;
  background: var(--accent);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-browse:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* Gallery Grid */
.gallery {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-title {
  font-family: var(--font-handwritten);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(201, 33, 33, 0.85);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .remove-btn {
  opacity: 1;
}

.gallery-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   CONFETTI ANIMATION
   ============================================ */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */
@media (max-width: 768px) {

  /* Nav as bottom bar */
  .nav {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(252, 243, 236, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    z-index: 1000;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 8px 16px;
    flex: 1;
    text-align: center;
    max-width: 140px;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
    padding: 40px 20px 60px;
  }

  .hero-illustration img,
  .hero-illustration svg {
    width: 260px !important;
    height: auto !important;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .hero-date {
    font-size: 1.5rem;
  }

  .scroll-indicator {
    bottom: 80px;
  }

  /* Couple */
  .couple {
    padding: 25px 15px 15px;
  }

  .couple-container {
    gap: 15px;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .couple-person {
    min-width: unset;
  }

  .couple-person .name {
    font-size: 2rem;
  }

  .couple-person .parents {
    font-size: 0.85rem;
  }

  .couple-ampersand {
    font-size: 2.5rem;
  }

  /* Section */
  .section {
    padding: 40px 15px;
  }

  .section-divider {
    margin: 25px auto;
  }

  /* Evet Images */
  .evet-images {
    gap: 8px;
    margin-bottom: -20px;
  }

  .evet-img {
    height: 120px;
  }

  /* Pasta Image */
  .pasta-image {
    margin-bottom: -20px;
  }

  .pasta-img {
    height: 150px;
  }

  /* Event Cards */
  .event-card {
    padding: 30px 20px;
    margin: 15px 0;
    border-radius: 12px;
  }

  .event-card .event-icon svg {
    width: 60px;
    height: 60px;
  }

  .event-card .event-label {
    font-size: 2rem;
  }

  .event-card .event-type {
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }

  .event-card .event-detail {
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 10px;
  }

  .event-card .event-address {
    font-size: 0.8rem;
  }

  .btn-map {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  /* RSVP */
  .rsvp {
    padding: 40px 15px 100px;
  }

  .rsvp-title {
    font-size: 2.5rem;
  }

  .rsvp-subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .rsvp-form {
    padding: 25px 18px;
    border-radius: 12px;
  }

  .form-group input,
  .form-group select {
    padding: 12px 14px;
    font-size: 16px;
    /* Prevents iOS zoom */
    border-radius: 10px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .btn-attend {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .btn-decline {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  /* Modal */
  .modal {
    padding: 35px 25px;
    margin: 0 15px;
    border-radius: 14px;
  }

  .modal h3 {
    font-size: 1.5rem;
  }

  .modal p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-modal-no,
  .btn-modal-yes {
    width: 100%;
    padding: 12px;
  }

  /* Toast */
  .toast {
    bottom: 75px;
    white-space: normal;
    max-width: 90%;
    text-align: center;
    font-size: 0.85rem;
    padding: 14px 20px;
  }

  /* Destek */
  .destek-header {
    padding: 80px 20px 30px;
  }

  .destek-header h1,
  .ani-header h1 {
    font-size: 2.5rem;
  }

  .destek-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 15px;
  }

  .destek-card {
    padding: 25px 15px;
  }

  .destek-card h3 {
    font-size: 1.4rem;
  }

  /* Anı Paylaş */
  .ani-header {
    padding: 80px 20px 30px;
  }

  .ani-header p {
    font-size: 0.95rem;
  }

  .drop-zone {
    padding: 40px 20px;
  }

  .drop-zone h3 {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Footer */
  .footer {
    padding: 30px 20px 80px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-illustration img,
  .hero-illustration svg {
    width: 180px !important;
  }

  .couple-person .name {
    font-size: 1.7rem;
  }

  .couple-ampersand {
    font-size: 2rem;
  }

  .event-card .event-label {
    font-size: 1.7rem;
  }

  .rsvp-title {
    font-size: 2rem;
  }

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

  .nav a {
    font-size: 0.75rem;
    padding: 7px 12px;
  }
}

/* ---- Back to Home link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 40px;
  transition: var(--transition);
}

.back-link:hover {
  transform: translateX(-5px);
}

.back-link svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}