/* Custom Styles for Maxillofacial Dentistry */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #1a3460;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c9a84c;
}

/* Selection */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* Body */
body {
  background-color: #0a1628;
  color: #fff;
}

/* Navbar */
#navbar {
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, box-shadow 0.5s ease;
}
#navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}
#mobileMenu .mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu Button Animation */
.menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .menu-line:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Service Cards */
.service-card {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 168, 76, 0.1);
}

/* Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.3s; }

/* Gold Gradient Text */
.gold-gradient {
  background: linear-gradient(135deg, #c9a84c 0%, #e0c970 50%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 5s ease-in-out infinite 0.5s; }
.float-3 { animation: float 7s ease-in-out infinite 1s; }
.float-4 { animation: float 5.5s ease-in-out infinite 1.5s; }

/* Input Focus Styles */
input:focus, select:focus, textarea:focus {
  border-color: rgba(201, 168, 76, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1) !important;
}

/* Select Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  appearance: none;
}

/* Hero Card Floats */
.hero-card-1 { animation: float 6s ease-in-out infinite; }
.hero-card-2 { animation: float 5s ease-in-out infinite 0.8s; }
.hero-card-3 { animation: float 7s ease-in-out infinite 1.6s; }
.hero-card-4 { animation: float 5.5s ease-in-out infinite 2.4s; }

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.2); }
  50% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.4); }
}
.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

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