/**
 * Custom Styles for Ruffday Services
 * Teal & Brand color palette
 */

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

/* Testimonial card styling */
.testimonial-card {
    animation: fadeIn 0.5s ease-in;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #C4F3EF;
}

.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Partner logo hover effect */
.partner-logo {
    transition: all 0.3s ease;
    opacity: 0.7;
    filter: grayscale(100%);
}

.partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
}

/* Carousel dots */
.dot {
    transition: all 0.2s ease;
}

.dot.active {
    background-color: #03bb8c;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button hover effects */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Card hover effects */
.feature-card {
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

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

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

::-webkit-scrollbar-thumb {
    background: #03bb8c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1B7F79;
}

/* Navigation scroll effect */
#main-nav {
    background-color: transparent;
}

#main-nav.scrolled {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Navigation link underline effect */
nav a:not(.bg-brand) {
    position: relative;
}

nav a:not(.bg-brand)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #03bb8c;
    transition: width 0.3s ease;
}

nav a:not(.bg-brand):hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }

    nav a:not(.bg-brand)::after {
        display: none;
    }
}

/* Quote styling for testimonials */
.testimonial-quote {
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: #03bb8c;
    font-family: 'League Spartan', sans-serif;
    line-height: 1;
    opacity: 0.5;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #03bb8c;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #03bb8c;
    color: white;
}
