/* ===== Custom Styles for Union Park Professional Building ===== */

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

/* ===== Navbar ===== */
.nav-scrolled {
  background: rgba(250, 240, 250, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(107, 58, 107, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-scrolled.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 30px rgba(107, 58, 107, 0.12);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #F5C518;
  border-radius: 1px;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

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

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

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

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

.floating-card-3 {
  animation: float 4.5s ease-in-out infinite 0.5s;
}

/* ===== Service cards ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

/* ===== Testimonial cards ===== */
.testimonial-card {
  position: relative;
}

/* ===== Scroll animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  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; }

/* ===== Mobile menu ===== */
.mobile-nav-link {
  display: block;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
  padding-left: 0.75rem;
}

/* ===== Input focus states ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(107, 58, 107, 0.1);
}

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

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

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

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

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  .floating-card-1 {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 1rem;
    display: inline-flex;
  }

  .floating-card-2 {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 1rem;
    display: inline-flex;
  }

  .floating-card-3 {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 1rem;
    display: inline-flex;
  }
}

/* ===== Print styles ===== */
@media print {
  .nav-scrolled,
  .floating-card-1,
  .floating-card-2,
  .floating-card-3,
  .scroll-indicator {
    display: none !important;
  }
}
