/* Custom styles for Redi-Care Inc PC */

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

/* Navbar scroll effect */
.nav-link {
    position: relative;
}

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

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

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #5eead4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Scroll reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #14b8a6 !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15) !important;
}

/* Button hover lift effect */
button, a {
    transition: all 0.2s ease;
}

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

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

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .reveal {
        transition: none;
        animation: none;
    }
    
    .service-card::before {
        display: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Mobile adjustments */
@media (max-width: 640px) {
    #hero {
        padding-top: 5rem;
    }
    
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .bg-gradient-to-br {
        padding: 1.5rem !important;
    }
}
