/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #1e40af;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Scroll Animations */
@keyframes appear {
    0% {
        opacity: 0;
        clip-path: inset(100% 100% 0 0);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    animation: appear 1.5s ease-out forwards;
    animation-timeline: view();
    animation-duration: cover 0% cover 50%;
}

.scroll-animate.delay-100 {
    animation-delay: 150ms;
}

.scroll-animate.delay-200 {
    animation-delay: 300ms;
}

.scroll-animate.delay-300 {
    animation-delay: 450ms;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--bg-light);
}

/* Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Utilities */
.text-primary {
    color: var(--primary);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Scrollable Cards */
.scrollable-card {
    height: 500px; /* Increased height */
    overflow-y: auto;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: white;
}

.scrollable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.scrollable-card h3 {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding-left: 1.5rem;
    z-index: 10;
    border-bottom: 1px solid #e5e7eb;
}

.scrollable-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scrollable-card li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.scrollable-card li:hover {
    background-color: #f1f5f9;
    transform: translateX(5px);
}

.scrollable-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 1rem;
    overflow: hidden;
}

/* Scrollable Card Styles */
.scrollable-card {
    position: relative;
    height: 500px; /* Increased from 300px */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.scrollable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.scrollable-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    position: relative;
}

.scrollable-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: currentColor;
}

.scrollable-card ul {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0.25rem 0.5rem 0 0;
    margin: 0;
    list-style: none;
}

.scrollable-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.scrollable-card li:last-child {
    border-bottom: none;
}

.scrollable-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
}

.scrollable-card h4::before {
    content: '•';
    color: #3b82f6;
    margin-right: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
}

.scrollable-card p {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0 0 0 1.25rem;
}

/* Custom scrollbar */
.scrollable-card::-webkit-scrollbar {
    width: 4px;
}

.scrollable-card::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.scrollable-card::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.scrollable-card::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card specific colors */
.scrollable-card:nth-child(1) h3 { color: #3b82f6; } /* Blue */
.scrollable-card:nth-child(2) h3 { color: #8b5cf6; } /* Purple */
.scrollable-card:nth-child(3) h3 { color: #10b981; } /* Green */
.scrollable-card:nth-child(4) h3 { color: #f59e0b; } /* Yellow */

.scrollable-card:nth-child(1) h4::before { color: #3b82f6; }
.scrollable-card:nth-child(2) h4::before { color: #8b5cf6; }
.scrollable-card:nth-child(3) h4::before { color: #10b981; }
.scrollable-card:nth-child(4) h4::before { color: #f59e0b; }

/* Location Card */
.location-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Card Hover Effects */
.what-we-treat-card {
    transition: all 0.3s ease;
    transform: translateY(0);
    margin-bottom: 1.5rem;
}

.what-we-treat-card:last-child {
    margin-bottom: 0;
}

.what-we-treat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button Hover Effects */
.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animation for cards */
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.what-we-treat-card {
    animation: cardAppear 0.5s ease-out forwards;
    opacity: 0;
}

.what-we-treat-card:nth-child(1) { animation-delay: 0.1s; }
.what-we-treat-card:nth-child(2) { animation-delay: 0.2s; }
.what-we-treat-card:nth-child(3) { animation-delay: 0.3s; }
.what-we-treat-card:nth-child(4) { animation-delay: 0.4s; }

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}


/* --- START: Added Testimonials Section Styles --- */

.testimonials-scroll-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
}

.testimonials-scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.testimonial-card {
    flex: 0 0 90%; /* Each card takes up 90% of the container width */
    max-width: 90%;
    background-color: white;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb; /* gray-200 */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .testimonial-card {
        flex-basis: 45%; /* Show two cards on medium screens */
        max-width: 45%;
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex-basis: 31%; /* Show three cards on large screens */
        max-width: 31%;
    }
}


.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    padding: 1.75rem; /* 28px */
    flex-grow: 1;
}

.testimonial-rating {
    color: #f59e0b; /* amber-500 */
    margin-bottom: 0.75rem; /* 12px */
    font-size: 1.125rem; /* 18px */
}

.testimonial-text {
    color: #4b5563; /* gray-600 */
    line-height: 1.6;
    font-style: italic;
}

.testimonial-footer {
    padding: 1.25rem 1.75rem; /* 20px 28px */
    background-color: #f9fafb; /* gray-50 */
    border-top: 1px solid #e5e7eb; /* gray-200 */
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* --- END: Added Testimonials Section Styles --- */