/* ═══════════════════════════════════════════
   ilovi — Custom Styles
   Letters from the Heart 💌
   ═══════════════════════════════════════════ */

/* --- Smooth Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #1a0a10;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fb7185, #e11d48);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f43f5e, #be123c);
}

/* --- Body --- */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, #4c0519 0%, #1a0a10 30%, #0a0a0a 100%);
  min-height: 100vh;
}

/* --- Selection --- */
::selection {
  background: rgba(244, 63, 94, 0.4);
  color: #fff;
}

/* --- Loading Screen --- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4c0519, #0a0a0a);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-heart {
  animation: heartbeat 1.2s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  56% { transform: scale(1); }
}

/* --- Floating Hearts --- */
.heart-particle {
  position: absolute;
  pointer-events: none;
  animation: heartFloat linear forwards;
  opacity: 0;
}
@keyframes heartFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
    transform: translateY(-10vh) rotate(15deg) scale(1);
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) scale(0.3);
    opacity: 0;
  }
}

/* --- Falling Hearts (hero) --- */
.falling-heart {
  position: absolute;
  pointer-events: none;
  color: rgba(251, 113, 133, 0.35);
  animation: fallDown linear forwards;
  top: -5%;
}
@keyframes fallDown {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* --- Sparkle Shimmer --- */
.sparkle-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fcd34d;
  animation: sparkleShimmer 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sparkleShimmer {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* --- Glass Card Hover --- */
.glass-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(244, 63, 94, 0.25);
}

/* --- Polaroid Hover --- */
.polaroid {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.05) !important;
}

/* --- Glow Text --- */
.glow-text {
  text-shadow:
    0 0 20px rgba(244, 63, 94, 0.4),
    0 0 40px rgba(244, 63, 94, 0.2),
    0 0 80px rgba(244, 63, 94, 0.1);
}

/* --- Navbar scroll state --- */
.nav-scrolled {
  background: rgba(76, 5, 25, 0.85) !important;
  border-bottom-color: rgba(244, 63, 94, 0.2) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Mobile Menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* --- CTA Shimmer --- */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Quote decorative lines --- */
.quote-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 113, 133, 0.5), transparent);
}

/* --- Particles container --- */
#particles-js canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem !important;
    line-height: 1.2;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem !important;
  }
}
