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

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

/* Selection color */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #f5f0f7;
}

/* ===== NAVBAR SCROLL STATE ===== */
.navbar-scrolled {
  background: rgba(26, 8, 25, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(74, 25, 66, 0.5) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ===== REVEAL ANIMATIONS ===== */
/* Default: visible (progressive enhancement — content always renders) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays for grid items */
.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }

/* ===== CARD FLOAT ANIMATION ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-card-1 { animation: float 6s ease-in-out infinite; }
.floating-card-2 { animation: float 6s ease-in-out 1s infinite; }
.floating-card-3 { animation: float 6s ease-in-out 2s infinite; }

/* ===== IMAGE HOVER ZOOM ===== */
img {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 2px solid rgba(212, 160, 23, 0.7);
  outline-offset: 2px;
}

/* ===== MOBILE MENU TRANSITION ===== */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

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

/* ===== BUTTON RIPPLE ===== */
button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a0819;
}
::-webkit-scrollbar-thumb {
  background: #4A1942;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6b3562;
}
