/* Custom styles for East Garden */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e8655c;
}

/* Selection color */
::selection {
  background: rgba(232, 101, 92, 0.3);
  color: #fff;
}

/* Navbar transition states */
#navbar.scrolled {
  background: rgba(13, 13, 13, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* About section animations */
.about-img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about-img.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Menu animations */
.menu-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.menu-header.visible {
  opacity: 1;
  transform: translateY(0);
}
.menu-items {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.menu-items.visible {
  opacity: 1;
  transform: translateY(0);
}
.menu-note {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.menu-note.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery animations */
.gallery-header {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.gallery-header.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-img {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.gallery-img.visible {
  opacity: 1;
  transform: scale(1);
}

/* Quote animation */
.quote-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.quote-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Contact animations */
.contact-info {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact-info.visible {
  opacity: 1;
  transform: translateY(0);
}
.contact-map {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.contact-map.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CTA animation */
.cta-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold shimmer effect for headings */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* Pulse glow for CTA buttons */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 101, 92, 0.3); }
  50% { box-shadow: 0 0 40px rgba(232, 101, 92, 0.6); }
}

.cta-section a:first-of-type {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Image hover overlay */
.gallery-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.gallery-img:hover::after {
  opacity: 1;
}
.gallery-img {
  position: relative;
}

/* Mobile menu transitions */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .about-img,
  .about-text,
  .menu-header,
  .menu-items,
  .menu-note,
  .gallery-header,
  .gallery-img,
  .quote-section,
  .contact-info,
  .contact-map,
  .cta-section {
    opacity: 1;
    transform: none;
  }
}
