/* Custom Styles for Farris Bruce M DDS */

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

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

::-webkit-scrollbar-track {
    background: #0a192f;
}

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

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

/* Selection Color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Delays */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Hover Effects */
.group:hover .group-hover\:translate-x-2 {
    transform: translateX(0.5rem);
}

/* Image Hover */
.group:hover img {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

/* Button Focus States */
button:focus,
a:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Mobile Menu Animation */
#mobile-menu {
    animation: fadeIn 0.3s ease forwards;
}

/* Service Card Hover */
.group:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

/* Print Styles */
@media print {
    nav,
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: #333;
    }
    
    .bg-navy-900,
    .bg-navy-800 {
        background: white !important;
    }
    
    .text-white,
    .text-gray-300,
    .text-gray-400 {
        color: #333 !important;
    }
    
    .text-gold-400 {
        color: #b08d1e !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
