:root {
  --coffee-dark: #3e2a1f;
  --coffee: #6f4e37;
  --caramel: #c08a5b;
  --gold: #c9a24a;
  --gold-light: #e8cf86;
  --cream: #f5ecdf;
  --paper: #fffaf3;
  --text: #3e2a1f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--cream);
  background:
    linear-gradient(rgba(62, 42, 31, 0.75), rgba(62, 42, 31, 0.85)),
    radial-gradient(circle at top, var(--caramel), var(--coffee-dark));
}

.kicker {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 1rem;
  color: var(--caramel);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 400;
  margin: 0 0 1rem;
}

.date,
.venue {
  margin: 0.2rem 0;
  font-size: 1.05rem;
}

.card {
  max-width: 640px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(62, 42, 31, 0.12);
  text-align: center;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2rem;
  color: var(--coffee);
  margin-top: 0;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown div {
  min-width: 90px;
  padding: 0.8rem 0.5rem;
  background: var(--cream);
  border-radius: 8px;
}

.countdown span {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--coffee-dark);
}

.countdown small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--coffee);
}

.program {
  list-style: none;
  padding: 0;
  margin: 0;
}

.program li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cream);
}

.program span {
  font-weight: 400;
  color: var(--caramel);
  margin-right: 0.5rem;
}

.map {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 8px;
  margin: 1rem 0;
}

.invite-card {
  position: relative;
  padding: 2.5rem 1.8rem;
  background: linear-gradient(160deg, #fffaf3, #f6ead4);
  overflow: hidden;
}

.invite-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  pointer-events: none;
}

.invite-title {
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
  color: var(--coffee-dark);
}

.ornament {
  margin: 0.8rem 0;
  font-size: 1.5rem;
  color: var(--gold);
}

.invite-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--coffee-dark);
  margin: 0 0 1.5rem;
}

.details {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
}

.details div {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--coffee-dark);
}

.details span {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
}

.must-confirm {
  margin: 1.5rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--coffee-dark);
}

.must-confirm a {
  color: inherit;
}

.hero .names .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotate(-8deg);
  filter: blur(6px);
}

.site.is-visible .hero .names .char {
  animation: charIn 1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards,
    shimmer 4s linear 1.5s infinite;
  animation-delay: calc(0.3s + var(--i) * 0.06s), calc(1.5s + var(--i) * 0.06s);
}

@keyframes charIn {
  to { opacity: 1; transform: none; filter: none; }
}


form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
}

input,
textarea {
  font: inherit;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--caramel);
  border-radius: 6px;
  background: #fff;
}

.btn {
  display: inline-block;
  align-self: center;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: var(--caramel);
  color: #fff;
  font: inherit;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--coffee);
}

.btn-outline {
  background: transparent;
  color: var(--coffee);
  border: 1px solid var(--coffee);
}

.btn-outline:hover {
  background: var(--coffee);
  color: #fff;
}

.form-status {
  text-align: center;
  color: var(--coffee);
  min-height: 1.5em;
  margin: 0;
}

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--coffee);
}

/* ---------- Hyrja me zarf ---------- */

body.is-locked {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #4a3224 0%, #1d130d 70%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.7, 0, 0.84, 0), filter 0.4s ease;
}

.intro.is-leaving {
  opacity: 0;
  transform: scale(1.6);
  filter: blur(8px);
}

.intro.is-open {
  visibility: hidden;
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6d5, var(--gold));
  box-shadow: 0 0 10px var(--gold-light);
  animation: burst 1.6s ease-out forwards;
}

.sparkle.dust {
  left: 0;
  top: 0;
  animation: dust 9s linear infinite;
  width: 3px;
  height: 3px;
  opacity: 0.6;
}

@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

@keyframes dust {
  0% { transform: translate(var(--x0), 110vh); opacity: 0; }
  15% { opacity: 0.7; }
  100% { transform: translate(var(--x1), -10vh); opacity: 0; }
}

.envelope-wrap {
  position: relative;
  perspective: 1200px;
  animation: float 4s ease-in-out infinite;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s ease-out;
}

.envelope-wrap.is-opening {
  animation: none;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 207, 134, 0.45), transparent 65%);
  filter: blur(20px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.envelope {
  position: relative;
  width: min(440px, 88vw);
  aspect-ratio: 3 / 2;
  cursor: pointer;
  transform-style: preserve-3d;
}

.shadow {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5);
  transform: translateZ(-3px);
}

.pocket {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #f6eedf, #e9dbc0);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  border-radius: 4px;
}

.v-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: translateZ(1px);
}

.v-lines polyline {
  fill: none;
  stroke: #c9a45c;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.notch {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 14%;
  height: 10%;
  transform: translate(-50%, 0) translateZ(0.5px);
  border: 1.5px solid #c9a45c;
  border-top: none;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(170deg, #f6eedf, #e9dbc0);
}

.flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 58%;
  background: linear-gradient(180deg, #f8f1e3, #efe3cc);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateZ(2px);
  transform-origin: top center;
  transition: transform 0.55s cubic-bezier(0.45, 0, 0.2, 1);
}

.envelope.is-open .flap {
  transform: translateZ(2px) rotateX(180deg);
}

.flap-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 17%;
  text-align: center;
  color: #2b1d14;
  transition: opacity 0.2s ease;
}

.envelope.is-open .flap-text {
  opacity: 0;
}

.flap-names {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.5rem, 5.2vw, 2.3rem);
  line-height: 1.1;
}

.flap-date {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  letter-spacing: 0.15em;
  font-size: clamp(0.8rem, 2.6vw, 1rem);
}

.letter {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 6%;
  height: 88%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background: var(--paper);
  color: var(--coffee-dark);
  border: 1px solid var(--gold);
  border-radius: 4px;
  transform: translateZ(-1px);
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s;
}

.envelope.is-open .letter {
  transform: translateZ(3px) translateY(calc(-100% - 24px)) rotateZ(-3deg) scale(1.08);
}

.letter-title {
  margin: 0;
  font-family: var(--script);
  font-size: 1.2rem;
  color: var(--coffee);
}

.letter-names {
  margin: 0.2rem 0;
  font-family: var(--script);
  font-size: 2.2rem;
  line-height: 1.1;
}

.letter-date {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.15em;
  font-size: 1rem;
}

.intro-hint {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}

.intro .btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--coffee-dark);
}

/* ---------- Faqja kryesore ---------- */

.site {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site.is-visible {
  opacity: 1;
}

.hero .names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 6rem);
}

.hero .names .char {
  background: linear-gradient(120deg, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .names .space {
  width: 0.3em;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

.card {
  border: 1px solid var(--gold-light);
}

.confirm-note {
  margin: 0 0 1rem;
  color: var(--coffee);
}

.confirm-note a {
  color: var(--coffee-dark);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero .names .char {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

