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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f1115;
  font-family: 'Inter', Arial, sans-serif;
}

.page {
  width: 100vw;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.15)
    ),
    url('/assets/images/davetiye.png') no-repeat center center;
  background-size: cover;

}

.hero-content {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  width: 90%;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.08;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .38);
}

.hero-content h1 span {
  font-size: 44px;
  opacity: .86;
}

.hero-content p {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, .9);
}

.upload-wrapper {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  z-index: 20;
}

.progress-ring {
  position: absolute;
  inset: 0;
  transform: none;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, .18));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.upload-wrapper.uploading .progress-ring {
  opacity: 1;
}

.progress-ring rect {
  fill: none;
  stroke-width: 4;
}

.progress-bg {
  stroke: rgba(255, 255, 255, .16);
}

.progress-fill {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 896;
  stroke-dashoffset: 896;
  transition: stroke-dashoffset .3s ease;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, .85));
}

.upload-btn {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #7b714f;
  border-radius: 34px;
  cursor: pointer;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .4px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .22s ease, opacity .22s ease, background .22s ease;
}

.upload-btn:active {
  transform: scale(.97);
}

.upload-btn:disabled {
  opacity: .7;
}

#fileInput {
  display: none;
}

.photo-counter {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 30;
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  background: #7b714f;
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 22px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 8, 8, .78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: none;
  flex-direction: column;
  padding: 18px;
  color: #fff;
  height: 100dvh;
  overflow: hidden;
}

.preview-modal.active {
  display: flex;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', Arial, sans-serif;
  margin-bottom: 14px;
}

.preview-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.preview-close {
  border: none;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.preview-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 10px;
  padding-bottom: 18px;

}

.preview-item {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  border-radius: 16px;
  background: #222;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.preview-item.removing {
  opacity: 0;
  transform: scale(.75);
  transition: opacity .18s ease, transform .18s ease;
}

.preview-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 20, .72);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 32px;
  text-align: center;
  z-index: 10;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.preview-actions {
  flex: 0 0 auto;
  position: static;
  padding-top: 14px;
}

.confirm-upload {
  width: 100%;
  border: none;
  background: #fff;
  color: #111;
  padding: 16px;
  border-radius: 999px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

.confirm-upload:disabled {
  opacity: .5;
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, .78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.thanks-modal.active {
  display: flex;
}

.thanks-box {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, .92);
  color: #111;
  border-radius: 30px;
  padding: 34px 24px;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.thanks-icon {
  font-size: 46px;
  margin-bottom: 12px;
}

.thanks-box h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

.thanks-box p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.thanks-box button {
  width: 100%;
  border: none;
  padding: 15px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

#uploadMoreBtn {
  background: #111;
  color: #fff;
}

#closeThanksBtn {
  background: #eee;
  color: #111;
}

@media (max-width: 768px) {

  .hero-content {
    top: 60px;
  }

  .hero-content h1 {
    font-size: 50px;
    color: #7B714F;
  }

  .hero-content h1 span {
    font-size: 38px;
    font-family: 'Display', serif;
  }

  .hero-content p {
    font-size: 16px;
    color: #7B714F;
  }

  .upload-wrapper {
    top: 65%;
    width: 200px;
    height: 200px;
  }

  .photo-counter {
    bottom: 28px;
    font-size: 13px;
    padding: 12px 18px;
  }
}

.camera-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  opacity: .95;
}

.upload-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  animation: uploadFloat .8s ease-in-out infinite alternate;
}

@keyframes uploadFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}