/* Custom styles for Comprehensive Breast Care Center */

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

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

.nav-scrolled .nav-text {
    color: #1e293b;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu link underline */
.mobile-link {
    position: relative;
    padding-left: 0;
}

/* Hero animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-slower {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-8px) translateX(5px); }
}

.hero-decoration {
    animation: float 8s ease-in-out infinite;
}

.hero-circle {
    animation: float-slow 6s ease-in-out infinite;
}

.hero-circle:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 7s;
}

.hero-circle:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.hero-circle:nth-child(4) {
    animation-delay: -3s;
    animation-duration: 5s;
}

.hero-circle:nth-child(5) {
    animation-delay: -4s;
    animation-duration: 9s;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-decoration,
    .hero-circle {
        animation: none;
    }
    
    .reveal {
        transition: none;
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.2);
    color: #1e293b;
}
