/* ===================================
   Polishbar — Premium Dark Luxury Styles
   =================================== */

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #F5F0E8;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0D1517;
}
::-webkit-scrollbar-thumb {
  background: #1A2E35;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C9A84C;
}

/* ===================================
   Navbar
   =================================== */
#navbar {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
  background: rgba(13, 21, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A84C;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #C9A84C !important;
}

/* Mobile Menu */
#mobile-menu {
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  position: relative;
}

.menu-line {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 24px;
}

/* ===================================
   Hero
   =================================== */
#hero {
  position: relative;
}

/* Scroll dot animation */
@keyframes scrollDot {
  0% { top: -16px; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 48px; opacity: 0; }
}

.animate-scroll-dot {
  animation: scrollDot 1.8s ease-in-out infinite;
}

/* ===================================
   Service Cards
   =================================== */
.service-card {
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 168, 76, 0.05);
}

/* ===================================
   Gallery
   =================================== */
.gallery-item {
  cursor: pointer;
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.01);
  z-index: 2;
}

/* ===================================
   Scroll Reveal Animations
   (Progressive enhancement — content visible without JS)
   =================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal[data-reveal="left"] {
    transform: translateX(-30px);
  }

  .reveal[data-reveal="right"] {
    transform: translateX(30px);
  }

  .reveal[data-reveal="scale"] {
    transform: scale(0.95);
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ===================================
   Form Styles
   =================================== */
select option {
  background: #1A2E35;
  color: #F5F0E8;
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(201, 168, 76, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1) !important;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 767px) {
  #hero h1 {
    font-size: 2.75rem;
  }

  #hero h1 span {
    display: block;
  }

  .service-card {
    padding: 1.5rem !important;
  }

  .gallery-item {
    aspect-ratio: 4/3 !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #hero h1 {
    font-size: 3.5rem;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  body {
    background: white !important;
    color: black !important;
  }

  #navbar, .animate-scroll-dot {
    display: none;
  }
}
