/* === Royal Car Wash — Custom Styles === */

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Selection color */
::selection {
  background: rgba(255, 90, 58, 0.3);
  color: #f6f6f7;
}

/* === Navigation === */
#nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#nav.scrolled {
  background: rgba(13, 14, 16, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* === Service Cards === */
.service-card {
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 58, 0), transparent);
  transition: background 0.5s ease;
}

.service-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(255, 90, 58, 0.5), transparent);
}

.service-card:hover svg {
  transform: scale(1.1);
  transition: transform 0.4s ease;
}

/* === Gallery Items === */
.gallery-item {
  position: relative;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 14, 16, 0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* === Buttons === */
a {
  text-decoration: none;
}

/* === Mobile Menu === */
#mobile-menu {
  animation: menuSlide 0.3s ease forwards;
}

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  .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; }
}

/* === Form Styles === */
input, textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f6f7;
  transition: border-color 0.3s ease, background 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(255, 90, 58, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* === Success Message === */
.success-msg {
  animation: fadeIn 0.5s ease forwards;
}

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

/* === Custom Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0e10;
}

::-webkit-scrollbar-thumb {
  background: #33363b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5c606a;
}

/* === Responsive === */
@media (max-width: 768px) {
  .font-serif {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}
