/* Custom styles for Creamwiched Kie Sandwi */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050d17;
}
::-webkit-scrollbar-thumb {
  background: #243b53;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334e68;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #f0f4f8;
}

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(5, 13, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #c9a84c, #eac56a);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
.mobile-link {
  position: relative;
}
.mobile-link::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: #c9a84c;
  transition: width 0.3s ease;
}
.mobile-link:hover::before {
  width: 12px;
}

/* Scroll reveal base - content is VISIBLE by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Progressive enhancement: hide then reveal with JS */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
  }
  .scroll-reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(135deg, #c9a84c, #eac56a, #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle card hover lift */
.rounded-xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus visible styles */
:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
