/* ============================================
   Quality Time LLC — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Smooth scroll for Safari */
@supports (scroll-behavior: smooth) {
  html {
    scroll-behavior: smooth;
  }
}

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

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 20px rgba(110, 23, 71, 0.08);
  backdrop-filter: blur(10px);
}

.nav-brand {
  transition: color 0.3s ease;
}

#navbar.scrolled .nav-brand {
  color: #6e1747;
}

.nav-link {
  position: relative;
}

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

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

#navbar.scrolled .nav-link {
  color: #6e1747;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
  border-bottom: 1px solid #fce7f3;
  padding-bottom: 12px;
}

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

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

/* Floating stat cards animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

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

.floating-card-2 {
  animation: float 4s ease-in-out infinite;
  animation-delay: 2s;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(110, 23, 71, 0.2);
}

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

/* ============================================
   Form Styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  outline: 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; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@media (min-width: 768px) and (max-width: 1023px) {
  .font-serif {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: #fbcfe8;
  color: #6e1747;
}

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

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

::-webkit-scrollbar-thumb {
  background: #d946a8;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a21d6e;
}
