/* ===== CUSTOM STYLES ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FBF7F0;
}
::-webkit-scrollbar-thumb {
  background: #D9B06A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C2704E;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(253, 252, 250, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(194, 112, 78, 0.1);
}

.nav-scrolled .nav-logo {
  color: #A85A3C;
}

.nav-scrolled .nav-link {
  color: #6B6258 !important;
}

/* Floating blobs in hero */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: #F7C9A3;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #EDDDBA;
  bottom: -50px;
  left: -50px;
  animation-delay: -3s;
}

.hero-blob-3 {
  width: 250px;
  height: 250px;
  background: #FBE4D1;
  top: 40%;
  left: 45%;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

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

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

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: -2s;
}

/* Scroll line animation */
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
  animation: scrollLine 2s ease-in-out infinite;
}

/* Scroll reveal (progressive enhancement) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered reveal delays */
.js-reveal .reveal:nth-child(2) { transition-delay: 0.1s; }
.js-reveal .reveal:nth-child(3) { transition-delay: 0.2s; }
.js-reveal .reveal:nth-child(4) { transition-delay: 0.3s; }
.js-reveal .reveal:nth-child(5) { transition-delay: 0.4s; }
.js-reveal .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Mobile menu */
.mobile-link {
  display: block;
}

/* Mobile menu open state */
#mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hamburger animation */
#menu-btn[aria-expanded="true"] #bar1 {
  transform: translateY(6px) rotate(45deg);
}

#menu-btn[aria-expanded="true"] #bar2 {
  opacity: 0;
}

#menu-btn[aria-expanded="true"] #bar3 {
  transform: translateY(-6px) rotate(-45deg);
  width: 1.5rem;
}

/* 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; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Nav logo color for light bg */
.nav-logo {
  color: #A85A3C;
}

/* Ensure proper z-index stacking */
nav {
  background: transparent;
}

/* Gallery hover overlay */
.rounded-2xl.overflow-hidden {
  position: relative;
}

.rounded-2xl.overflow-hidden::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(110, 56, 39, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.rounded-2xl.overflow-hidden:hover::after {
  opacity: 1;
}

/* Image loading placeholder */
img {
  background-color: #EDE9E2;
}
