/* =========================================================
   CYPRESS LINEN THEME - SMOOTH HYBRID SNAP-SCROLL & REVEAL
   ========================================================= */

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #ECE7DC;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #2C2A26;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* Scroll lock when initial Cover overlay is active */
body.locked {
  overflow: hidden !important;
  height: 100vh;
}

/* Main Mobile Viewport Frame */
.app-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: #F8F5EE;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Fullscreen Section Screen (1 Section = 1 Screen Focus) */
.section-screen {
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.8rem 1.25rem 2rem;
  box-sizing: border-box;
  position: relative;
  width: 100%;
}

/* Keep supporting text readable on small invitation screens. */
.section-screen .text-xs,
#invitation-cover .text-xs {
  font-size: 0.875rem;
}

.section-screen .text-sm,
#invitation-cover .text-sm {
  font-size: 1rem;
}

.section-screen [class~="text-[8px]"],
#invitation-cover [class~="text-[8px]"] {
  font-size: 0.6875rem;
}

.section-screen [class~="text-[9px]"],
#invitation-cover [class~="text-[9px]"] {
  font-size: 0.75rem;
}

.section-screen [class~="text-[10px]"],
#invitation-cover [class~="text-[10px]"] {
  font-size: 0.8125rem;
}

.section-screen [class~="text-[11px]"],
#invitation-cover [class~="text-[11px]"] {
  font-size: 0.875rem;
}

.section-screen input,
.section-screen select,
.section-screen textarea {
  font-size: 16px;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* High-Performance Luxury Cards (Solid Alpha - 60-120 FPS, Zero GPU Lag) */
.luxury-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #E2DACB;
  box-shadow: 0 6px 20px rgba(36, 51, 44, 0.05);
  border-radius: 1.5rem;
}

/* Decorative Hairlines */
.inner-border-gold {
  position: relative;
}
.inner-border-gold::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(168, 144, 93, 0.45);
  border-radius: inherit;
  pointer-events: none;
}

.inner-border-cypress {
  position: relative;
}
.inner-border-cypress::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(119, 142, 130, 0.3);
  border-radius: inherit;
  pointer-events: none;
}

/* Arch Utilities */
.arch-top {
  border-radius: 120px 120px 16px 16px;
}

/* Floating Music Vinyl Button */
@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning-disc {
  animation: spinVinyl 4.5s linear infinite;
}

/* Subtle Floating Animations */
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.animate-float {
  animation: floatSubtle 3.5s ease-in-out infinite;
}

/* Smooth Cover Slide-Up */
#invitation-cover {
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.7s ease;
  will-change: transform, opacity;
}

#invitation-cover.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Lightbox Modal Animation */
#gallery-lightbox {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#gallery-lightbox img {
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#gallery-lightbox.active img {
  transform: scale(1);
}

/* Toast Notification Animation */
#toast-notification {
  transform: translateX(-50%) translateY(70px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Scroll Indicators */
.scroll-indicator {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.65;
  pointer-events: none;
  animation: bounceSlow 2.5s infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* =========================================================
   SMOOTH SCROLL REVEAL ENTRANCE ANIMATIONS
   ========================================================= */
.reveal-box {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-box.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #F8F5EE;
}
::-webkit-scrollbar-thumb {
  background: #E2DACB;
  border-radius: 4px;
}
