/* ===============================
   FONT
=============================== */

@font-face {
  font-family: "JosephSophia";
  src: url("assets/josephsophia.ttf") format("truetype");
}

/* ===============================
   BASE RESET
=============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
  overflow-x: hidden;
}

/* ===============================
   HERO
=============================== */

.hero {
  position: relative;
  padding: 80px 20px 60px;
  text-align: center;
  overflow: hidden;

  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.45),
      rgba(255,255,255,0.65) 65%,
      #ffffff 100%
    ),
    url("assets/marble.jpg") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

/* Names */

.names {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

.names h1 {
  font-family: "JosephSophia", cursive;
  font-size: 52px;
  font-weight: normal;
  color: #111;
}

.ring-icon img {
  width: 85px;
}

/* Title */

.title {
  font-family: "JosephSophia", cursive;
  font-size: 44px;
  margin-bottom: 18px;
  color: #111;
}

.subtitle {
  max-width: 520px;
  margin: 0 auto 35px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* ===============================
   FLOATING HEARTS (FIXED)
=============================== */

/* Right */
.hero::after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 80px;
  width: 28px;
  height: 28px;
  background: url("assets/heart.svg") center/contain no-repeat;
  opacity: 0.85;
  z-index: 1;
  animation: floatHeart 6s ease-in-out infinite;
}

/* Left */
.hero::before {
  content: "";
  position: absolute;
  left: 40px;
  bottom: 80px;
  width: 28px;
  height: 28px;
  background: url("assets/heart.svg") center/contain no-repeat;
  opacity: 0.85;
  z-index: 1;
  animation: floatHeart 6s ease-in-out infinite reverse;
}

@keyframes floatHeart {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* ===============================
   MOBILE HEART FIX
=============================== */

@media (max-width: 480px) {

  .hero::before {
    left: 20px;
    bottom: 60px;
  }

  .hero::after {
    right: 20px;
    bottom: 60px;
  }

  .names h1 {
    font-size: 40px;
  }

  .title {
    font-size: 34px;
  }

  .hero {
    padding: 60px 20px 40px;
  }
}

/* ===============================
   UPLOAD BUTTON
=============================== */

.upload-button {
  background: #000;
  color: #fff;
  border: none;
  padding: 16px 36px;
  font-size: 17px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.upload-button:hover {
  background: #222;
}

.camera-icon {
  width: 24px;
  filter: invert(1);
}

/* ===============================
   GALLERY
=============================== */

.gallery-section {
  padding: 40px 10px 90px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 25px;
}

.photo-count {
  font-size: 15px;
  color: #555;
  letter-spacing: 1px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.media-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.media-card:nth-child(1) { animation-delay: 0.05s; }
.media-card:nth-child(2) { animation-delay: 0.1s; }
.media-card:nth-child(3) { animation-delay: 0.15s; }
.media-card:nth-child(4) { animation-delay: 0.2s; }
.media-card:nth-child(5) { animation-delay: 0.25s; }
.media-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top: 2px solid white;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: white;
  transition: width 0.2s ease;
}

.success-check {
  font-size: 20px;
  margin-right: 6px;
}

.success-pulse {
  animation: pulse 0.6s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.upload-count {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}
/* ===============================
   MODAL (FIXED SLIDER LAYOUT)
=============================== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.modal-track {
  display: flex;
  height: 100%;
  width: 100%;
}

.modal-slide {
  flex: 0 0 100vw;   /* Each slide = full viewport width */
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-slide img,
.modal-slide video {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

#closeModal {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 36px;
  color: white;
  cursor: pointer;
  z-index: 10;
}