/* Custom styles for Chelyan Dental */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030814;
}
::-webkit-scrollbar-thumb {
    background: #c9a227;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e6b84b;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(3, 8, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 162, 39, 0.1);
}

nav.scrolled .navbar-link {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a227, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 162, 39, 0.05);
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #f0d078, #c9a227, #a88320);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Mobile menu transitions */
#mobile-menu {
    pointer-events: none;
}
#mobile-menu.active {
    pointer-events: all;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3);
}

/* Subtle gold shimmer animation for hero */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Fade-in animation for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure above-the-fold content is always visible */
#hero,
#hero *,
nav,
nav * {
    opacity: 1 !important;
    visibility: visible !important;
}
