/* ========================================
   Lily Pearl Bubble Tea & Cafe
   Custom Styles
======================================== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ========================================
   Geometric Background Shapes
======================================== */
.geo-shape {
  position: absolute;
  opacity: 0.15;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

.shape-circle-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(253, 243, 224, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
}

.shape-circle-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  top: 40%;
  right: 15%;
}

.shape-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(52, 211, 153, 0.2);
  top: 20%;
  left: 8%;
  transform: rotate(45deg);
  border-radius: 16px;
}

.shape-square-2 {
  width: 80px;
  height: 80px;
  background: rgba(253, 243, 224, 0.15);
  bottom: 25%;
  right: 10%;
  transform: rotate(20deg);
  border-radius: 12px;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(52, 211, 153, 0.15);
  top: 60%;
  left: 3%;
  transform: rotate(-15deg);
}

.shape-circle-4 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 243, 224, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  left: -150px;
}

.shape-square-3 {
  width: 100px;
  height: 100px;
  background: rgba(253, 243, 224, 0.06);
  bottom: -30px;
  right: 10%;
  transform: rotate(30deg);
  border-radius: 16px;
}

/* ========================================
   Floating Card Animations
======================================== */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

.card-top-right {
  animation-delay: 0s;
}

.card-bottom-left {
  animation-delay: 1.5s;
}

.card-mid-right {
  animation-delay: 0.8s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ========================================
   Menu Card Hover
======================================== */
.menu-card {
  will-change: transform;
}

/* ========================================
   Gallery Item Hover
======================================== */
.gallery-item {
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 150, 105, 0);
  transition: background 0.3s ease;
  border-radius: inherit;
}

.gallery-item:hover::after {
  background: rgba(5, 150, 105, 0.1);
}

.gallery-item {
  position: relative;
}

/* ========================================
   Marquee Animation
======================================== */
.marquee-track {
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========================================
   Navbar Scroll State
======================================== */
.nav-scrolled {
  background: rgba(255, 253, 247, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* ========================================
   Scroll Reveal (Progressive Enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .shape-circle-1,
  .shape-circle-2,
  .shape-circle-3,
  .shape-square-1,
  .shape-square-2,
  .shape-triangle-1,
  .shape-circle-4,
  .shape-square-3 {
    display: none;
  }
}

/* ========================================
   Focus Styles
======================================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   Selection Color
======================================== */
::selection {
  background: rgba(5, 150, 105, 0.2);
  color: #064e3b;
}
