/* ==========================================
   Unique Tax Service — Custom Styles
   ========================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFCF8;
}
::-webkit-scrollbar-thumb {
  background: #B8F0DD;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8DE3C4;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(253, 252, 248, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(40, 150, 116, 0.08), 0 4px 20px rgba(10, 35, 68, 0.06);
}

/* Floating card animations */
.floating-card {
  animation: float 6s ease-in-out infinite;
}
.floating-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.floating-card:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 5s;
}

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

/* Service card hover */
.service-card {
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
}

/* Testimonial card */
.testimonial-card {
  transform: translateY(0);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.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; }

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav links underline animation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #289674, #A8E6CF);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Hero gradient text animation */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Selection color */
::selection {
  background: #B8F0DD;
  color: #0A2344;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid #5AC9A3;
  outline-offset: 2px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .floating-card {
    display: none;
  }
  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

/* Print styles */
@media print {
  #navbar, #mobile-menu-btn, .floating-card {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
}
