/* ===========================
   RESET & BAZA
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-0: #050505;
  --bg-1: #0c0c0e;
  --bg-2: #15151a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f1ee;
  --muted: #a3a0a0;
  --accent: #ffffff;
  --red: #ef4444;
  --glow: rgba(255, 255, 255, 0.06);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  --radius: 8px;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse at top, #111014 0%, var(--bg-0) 55%) fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: 0;
  position: relative;
}

/* Tekstura e errët e sfondit */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   GRIMCAT NË SFOND
   =========================== */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 14px;
  opacity: 0.08;
  animation: drift linear infinite;
  user-select: none;
}

@keyframes drift {
  0% {
    transform: translateY(110vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===========================
   DIM OVERLAY
   =========================== */
.dim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 3;
  pointer-events: none;
  transition: background 1.6s ease;
}

.dim-overlay.active {
  background: rgba(0, 0, 0, 0.55);
}

/* ===========================
   ZEMRA FLOATING (në klikim)
   =========================== */
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}

.fh {
  position: absolute;
  bottom: -40px;
  font-size: 24px;
  animation: floatUp 5s ease-in forwards;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.fh.red {
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.25));
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% { opacity: 1; }
  100% {
    transform: translateY(-110vh) translateX(var(--drift, 30px)) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 60px;
}

.hero-content {
  max-width: 760px;
  animation: fadeUp 1.2s ease both;
}

.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}

.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 24px;
  color: var(--text);
}

.accent {
  font-style: italic;
  background: linear-gradient(180deg, #ffffff 0%, #c9c5c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  margin-bottom: 48px;
  font-weight: 300;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Butoni i përqafimit */
.hug-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 38px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
  background: linear-gradient(180deg, #1c1c1f 0%, #0e0e10 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
              inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hug-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hug-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hug-btn:hover::before {
  opacity: 1;
}

.hug-btn:active {
  transform: translateY(0);
}

.btn-heart {
  display: inline-block;
  transition: transform 0.5s ease;
}

.hug-btn:hover .btn-heart {
  transform: scale(1.25) rotate(-8deg);
}

.hint {
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

/* ===========================
   HUG REVEAL (mesazhi)
   =========================== */
.hug-reveal {
  display: none;
  text-align: center;
  padding: 40px 0 80px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hug-reveal.active {
  display: block;
}

.hug-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-heart {
  position: relative;
  font-size: 5rem;
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.18em;
  margin-bottom: 28px;
  isolation: isolate;
  transform-origin: center;
  animation: pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.15))
          drop-shadow(0 0 36px rgba(255, 255, 255, 0.06));
  transition: filter 0.35s ease, text-shadow 0.35s ease;
}

.pulse-heart::before,
.pulse-heart::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.pulse-heart::before {
  inset: 4%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 64%);
  opacity: 0.55;
  animation: auraBreath 2.4s ease-in-out infinite;
}

.pulse-heart::after {
  inset: -10%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: scale(0.7);
}

.pulse-heart.heart-red {
  animation: redPulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.35))
          drop-shadow(0 0 44px rgba(239, 68, 68, 0.18));
  text-shadow: 0 0 18px rgba(239, 68, 68, 0.34);
}

.pulse-heart.heart-red::before {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.34), rgba(239, 68, 68, 0.1) 42%, transparent 70%);
}

.pulse-heart.heart-switching {
  animation: heartSwitch 0.72s cubic-bezier(0.2, 0.9, 0.25, 1.25) both;
}

.pulse-heart.heart-switching::after {
  animation: heartRipple 0.72s ease-out both;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.15));
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.25));
  }
}

@keyframes redPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.35));
  }
  50% {
    transform: scale(1.14) rotate(-4deg);
    filter: drop-shadow(0 0 34px rgba(239, 68, 68, 0.45));
  }
}

@keyframes auraBreath {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.86);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.14);
  }
}

@keyframes heartSwitch {
  0% {
    transform: scale(1) rotate(0deg);
  }
  28% {
    transform: scale(0.82) rotate(7deg);
    filter: blur(0.3px) drop-shadow(0 0 12px rgba(255, 255, 255, 0.18));
  }
  55% {
    transform: scale(1.22) rotate(-8deg);
    filter: blur(0) drop-shadow(0 0 28px rgba(239, 68, 68, 0.35));
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes heartRipple {
  0% {
    opacity: 0.7;
    transform: scale(0.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.heart-spark {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  animation: heartSpark 0.95s ease-out forwards;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.24));
}

@keyframes heartSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1.08) rotate(var(--spark-rot));
  }
}

.date-orbit {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 22px;
  opacity: 0;
  transform: translateY(12px);
  max-width: 680px;
}

.hug-reveal.visible .date-orbit {
  animation: revealLine 0.9s ease 0.15s forwards;
}

.date-card {
  width: min(220px, 38vw);
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.date-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.date-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.date-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  color: var(--red);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.22));
}

.age-math {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  opacity: 0;
  transform: translateY(10px);
}

.age-math span {
  color: var(--text);
  font-weight: 600;
}

.hug-reveal.visible .age-math {
  animation: revealLine 0.9s ease 0.55s forwards;
}

.hug-message {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  font-weight: 400;
}

.hug-message p {
  opacity: 0;
  transform: translateY(10px);
  animation: revealLine 0.9s ease forwards;
}

.hug-reveal.visible .hug-message p:nth-child(1) { animation-delay: 0.2s; }
.hug-reveal.visible .hug-message p:nth-child(2) { animation-delay: 0.6s; }
.hug-reveal.visible .hug-message p:nth-child(3) { animation-delay: 1.0s; }
.hug-reveal.visible .hug-message p:nth-child(4) { animation-delay: 1.6s; }

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

.signature {
  margin-top: 18px !important;
  font-style: italic;
  color: var(--muted);
}

.status-chip {
  display: inline-block;
  margin-top: 36px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s ease 2.2s forwards;
}

.status-chip span {
  color: var(--text);
  font-weight: 500;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===========================
   WARNING CARD
   =========================== */
.warning-section {
  padding: 80px 0 40px;
  display: flex;
  justify-content: center;
}

.warning-card {
  max-width: 480px;
  width: 100%;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.5s ease;
}

.warning-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.warn-icon {
  font-size: 1.4rem;
}

.warning-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0;
}

.warning-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.warning-list {
  list-style: none;
  padding-left: 0;
}

.warning-list li {
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
  color: var(--text);
  font-size: 0.98rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.warning-list li:last-child {
  border-bottom: none;
}

.warning-list li::before {
  content: "🖤";
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  text-align: center;
  padding: 50px 24px 60px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  letter-spacing: 0;
}

/* ===========================
   FADE UP (hero animation)
   =========================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 820px) {
  .hero {
    min-height: 90vh;
    padding: 60px 0 40px;
  }

  .warning-card {
    padding: 26px 24px;
  }

  .pulse-heart {
    font-size: 4rem;
  }

  .date-orbit {
    gap: 10px;
  }

  .date-card {
    min-width: 150px;
    padding: 14px 12px;
  }

  .hug-btn {
    padding: 16px 30px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 18px;
  }

  .badge {
    font-size: 10px;
    padding: 6px 14px;
    margin-bottom: 24px;
  }

  .hint {
    font-size: 0.72rem;
  }

  .date-orbit {
    flex-direction: column;
    align-items: center;
  }

  .date-card {
    width: min(100%, 250px);
  }

  .date-arrow {
    transform: rotate(90deg);
  }

  .card,
  .warning-card {
    padding: 24px 22px;
  }
}

/* Respekto preference-n e përdoruesit për animacionet */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
