/* Custom styles for Tennessee Oncology - Centennial Rad Onc */

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

/* Navbar transition states */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

.nav-text {
    color: #A03040;
}

#navbar:not(.scrolled) .nav-text {
    color: white;
}

.nav-link {
    position: relative;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: white;
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Mobile menu animation */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.mobile-link:hover {
    border-bottom-color: rgba(160, 48, 64, 0.2);
}

/* Input focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(160, 48, 64, 0.1);
}

/* Button hover lift effect */
button[type="submit"],
a[href="#contact"] {
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover,
a[href="#contact"]:hover {
    transform: translateY(-1px);
}

/* Card hover effects */
.rounded-3xl {
    will-change: transform;
}

.rounded-3xl:hover {
    transform: translateY(-4px);
}

/* Hero scroll indicator */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.animate-bounce {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Subtle pattern overlay for dark sections */
.bg-burgundy-950::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
