/* Custom styles for Distinguished Dental Support */

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

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Mobile menu animations */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    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);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero parallax effect */
#hero {
    perspective: 1000px;
}

#hero .absolute.inset-0 img {
    transition: transform 0.3s ease-out;
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(212, 154, 42, 0.3);
    color: #102a43;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 154, 42, 0.15);
}

/* Service card hover image effect */
.reveal .group:hover svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

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

/* Pulse animation for CTA */
@keyframes soft-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(233, 180, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(233, 180, 60, 0);
    }
}

.animate-soft-pulse {
    animation: soft-pulse 2.5s ease-in-out infinite;
}

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}
