/* Custom styles for Drapery World Interiors */

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

/* Base font settings */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar transitions */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 29, 51, 0.08);
}

.nav-text {
  color: #0f1d33;
}

#navbar:not(.scrolled) .nav-text {
  color: #ffffff;
}

#navbar:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
  color: #d49a1f;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.closed {
  opacity: 0;
  pointer-events: none;
}

/* Hamburger animation */
.menu-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1.5px;
  background-color: #0f1d33;
  transition: all 0.3s ease;
}

#navbar:not(.scrolled) .menu-line {
  background-color: #ffffff;
}

#menu-btn.active .menu-line:nth-child(1) {
  transform: translateX(-50%) rotate(45deg);
  top: 50%;
}

#menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
  transform: translateX(-50%) rotate(-45deg);
  top: 50%;
}

/* Reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Mobile link */
.mobile-link {
  opacity: 1;
}

/* Selection color */
::selection {
  background-color: #d49a1f;
  color: #0f1d33;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f4fa;
}

::-webkit-scrollbar-thumb {
  background: #bacfe9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #93b1db;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .group:hover img {
    transform: none;
  }
}

/* Form select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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