/* Custom styles for OCD Quality Services */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Navigation transitions */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d9488;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Service card stagger animation */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero text animation */
#hero h1,
#hero p,
#hero .flex-col,
#hero .grid {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#hero.loaded h1 { opacity: 1; transition-delay: 0.2s; }
#hero.loaded p { opacity: 1; transition-delay: 0.4s; }
#hero.loaded .flex-col { opacity: 1; transition-delay: 0.6s; }
#hero.loaded .grid { opacity: 1; transition-delay: 0.8s; }

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu animations */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Pulse animation for hero dot */
@keyframes pulse-custom {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.animate-pulse {
  animation: pulse-custom 2s ease-in-out infinite;
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out infinite reverse; }
.float-3 { animation: float 7s ease-in-out infinite; animation-delay: 1s; }

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.nav-scrolled .nav-link {
  color: #334155;
}
.nav-scrolled .nav-link:hover {
  color: #0d9488;
}
.nav-scrolled #nav-logo-text {
  color: #0f172a;
}

/* Form input focus styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Gallery hover overlay */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
  .font-serif {
    line-height: 1.1;
  }
}

/* Print styles */
@media print {
  nav, #contact, footer {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
