/* ===== Custom Styles for University Neurological Associates ===== */

/* --- Gold Button --- */
.gold-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #D4A843 0%, #B8860B 50%, #D4A843 100%);
    background-size: 200% 200%;
    color: #060E1A;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.25);
    text-decoration: none;
}

.gold-button:hover {
    background-position: 100% 100%;
    box-shadow: 0 8px 32px rgba(212, 168, 67, 0.4);
    transform: translateY(-2px);
    color: #060E1A;
}

.gold-button:active {
    transform: translateY(0);
}

/* --- Service Cards --- */
.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, #D4A843, 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(212, 168, 67, 0.05);
}

/* --- Condition Tags --- */
.condition-tag {
    transition: all 0.3s ease;
}

.condition-tag:hover {
    transform: translateX(4px);
    background: rgba(212, 168, 67, 0.05);
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
    transition: color 0.3s ease;
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* --- Navbar Scrolled State --- */
.navbar-scrolled {
    background: rgba(3, 7, 16, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 67, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4A843, #B8860B);
    border-radius: 4px;
}

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

/* --- Selection --- */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #F0D68A;
}

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid #D4A843;
    outline-offset: 2px;
}

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
    .gold-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.8125rem;
    }
}

/* --- 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
