/* 
* CareMaid India - Custom Styles
* Theme: Modern, Fresh, Healthcare with Vibrant Teal
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #ccfbf1;
    --primary-lighter: #f0fdfa;
    --secondary: #0ea5e9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --accent: #f59e0b;
    --success: #10b981;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

.text-primary {
    color: var(--primary) !important;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

/* --- Fresh Gradient Backgrounds --- */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gradient-light {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #e0f2fe 100%);
}

/* --- Pastel Backgrounds for Services --- */
.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-pink-100 {
    background-color: #fce7f3;
}

.bg-purple-100 {
    background-color: #f3e8ff;
}

.bg-teal-50 {
    background-color: #f0fdfa;
}

/* --- Buttons with Modern Effects --- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #115e59 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(13, 148, 136, 0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.3);
}

/* --- Header & Navbar with Fresh Look --- */
.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 0.9rem;
    padding: 10px 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(13, 148, 136, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark) !important;
    transition: all 0.3s;
}

.navbar-brand:hover {
    color: var(--primary) !important;
    transform: scale(1.02);
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* --- Hero Section with Fresh Gradient --- */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #f0fdfa 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* --- Cards with Modern Shadow --- */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    overflow: hidden;
    border: 1px solid rgba(13, 148, 136, 0.08);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15);
    border-color: rgba(13, 148, 136, 0.2);
}

.service-card {
    height: 100%;
    padding: 2rem;
    text-align: left;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: height 0.4s;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(13, 148, 136, 0.1) 100%);
    color: var(--primary);
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
    transform: translateX(5px);
}

/* --- Floating Buttons --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
    color: white;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

/* --- Forms with Modern Style --- */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    outline: none;
}

.rounded-start-pill {
    border-top-left-radius: 50rem !important;
    border-bottom-left-radius: 50rem !important;
}

.rounded-end-pill {
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
}

/* --- Footer with Dark Slate & Teal Accents --- */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

footer a {
    color: #94a3b8;
    transition: all 0.3s;
    display: inline-block;
}

footer a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

footer .text-secondary {
    color: #94a3b8 !important;
}

/* Social Icons in Footer */
footer .fs-5 {
    transition: all 0.3s;
    color: #64748b;
}

footer .fs-5:hover {
    transform: scale(1.2);
    color: var(--primary) !important;
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #115e59 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.page-header h1 {
    color: white;
    position: relative;
    z-index: 1;
}

.page-header.header-small {
    padding: 3rem 0;
    min-height: auto;
}

/* --- Testimonials with Fresh Look --- */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid rgba(13, 148, 136, 0.1);
    transition: all 0.3s;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.15);
    transform: translateY(-5px);
}

.stars {
    color: var(--accent);
    margin-bottom: 1rem;
}

/* --- Utility Classes --- */
.shadow-teal {
    box-shadow: 0 4px 14px 0 rgba(13, 148, 136, 0.2) !important;
}

.border-primary-light {
    border-color: var(--primary-light) !important;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    footer {
        padding: 3rem 0 1.5rem 0;
    }
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}