:root {
    --primary-color: #006a9c;
    /* Your main blue color */
    --primary-light: #4a8fb8;
    /* Lighter variation (good for hover states) */
    --primary-lighter: #e6f2f9;
    /* Very light for subtle backgrounds */
    --primary-dark: #00507a;
    /* Darker variation (good for active states) */
    --primary-darker: #003653;
    /* Very dark for text or accents */

    --secondary-color: #6c757d;
    /* Kept neutral gray (can change if needed) */
    --secondary-light: #8a939b;
    --secondary-dark: #565e64;

    --dark-color: #212529;
    /* Kept for consistency */
    --light-color: #f8f9fa;
    /* Kept for consistency */

    /* Status colors - adjusted to complement blue */
    --success-color: #28a745;
    /* Slightly cooler green */
    --danger-color: #e63946;
    /* Cooler red that works with blue */
    --warning-color: #ffc107;
    /* Kept as is (works well) */
    --info-color: #17a2b8;
    /* Adjusted to blend better */

    /* Additional blues for gradients or accents */
    --blue-light: #d4e6f1;
    --blue-medium: #7fb3d5;
    --blue-deep: #1a5276;
}

/* For specific Gujarati text elements (optional) */
.gujarati-text {
    font-family: 'Anek Gujarati', sans-serif;
}

body {
    font-family: 'Anek Gujarati', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

.dark-mode .navbar,
.dark-mode footer {
    background-color: var(--dark-color) !important;
}

.dark-mode .card,
.dark-mode .form-control,
.dark-mode .accordion-button,
.dark-mode .accordion-body {
    background-color: #1e1e1e;
    color: #f1f1f1;
    border-color: #333;
}

.dark-mode .accordion-button:not(.collapsed) {
    background-color: #2a2a2a;
}

.dark-mode .form-control::placeholder {
    color: #aaa;
}

header {
    background: linear-gradient(rgba(0, 106, 156, 0.85), rgba(0, 80, 122, 0.85)),
        url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Optional for parallax effect */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    /* clip-path: polygon(0 70%, 100% 0, 100% 100%, 0% 100%); */
    z-index: 1;
}

.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    background-color: white;
    transform: scale(1.05);
    padding: 3px;
    border-radius: 4px;
    box-shadow: 0 0 15px white;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Anek Gujarati', sans-serif;
    font-weight: 600;
    /* Adjust weight as needed (400-800) */
}

.nav-link {
    color: white !important;
    margin: 0 10px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0px 10px 0px 10px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
}

section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}



.section-title p {
    color: var(--secondary-color);
    max-width: 700px;
    margin: 15px auto 0;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 30px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.doctor-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: -80px auto 20px;
    display: block;
    transition: all 0.3s ease;
}

.card:hover .doctor-img {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card:hover .service-icon {
    transform: rotateY(180deg);
}

.testimonial-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid var(--primary-color);
}

.testimonial-card {
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 80px;
    color: rgba(128, 0, 0, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: serif;
    line-height: 1;
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    transition: all 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.form-control {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
}

textarea.form-control {
    height: 150px;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0% 100%);
    z-index: 1;
}

.footer-links a {
    color: #ddd;
    display: block;
    margin-bottom: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 5px;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.mode-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mode-toggle:hover {
    transform: translateY(-5px);
}

.live-chat {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.live-chat:hover {
    transform: translateY(-5px);
}

.chat-box {
    position: fixed;
    bottom: 240px;
    right: 30px;
    width: 350px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    transform-origin: bottom right;
}

.dark-mode .chat-box {
    background-color: #1e1e1e;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.dark-mode .chat-body {
    background-color: #1e1e1e;
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 80%;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.received {
    background-color: white;
    margin-right: auto;
    border-top-left-radius: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.dark-mode .received {
    background-color: #2a2a2a;
    color: white;
}

.sent {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
    border-top-right-radius: 0;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    background-color: white;
}

.dark-mode .chat-footer {
    background-color: #1e1e1e;
    border-top: 1px solid #333;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.1);
}

.chat-send {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send:hover {
    background-color: var(--primary-dark);
}

.floating-shape {
    position: absolute;
    background-color: rgba(128, 0, 0, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

.emergency-banner {
    background-color: var(--danger-color);
    color: white;
    padding: 15px 0;
    text-align: center;
    font-weight: 600;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.emergency-banner.hide {
    transform: translateY(100%);
}

.emergency-banner a {
    color: white;
    text-decoration: underline;
    margin-left: 10px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .emergency-banner {
        padding: 10px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .emergency-banner {
        font-size: 12px;
    }

    .emergency-banner a {
        display: block;
        margin: 5px 0 0;
    }
}

@media (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    header {
        padding: 100px 0 80px;
    }

    header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    header {
        padding: 80px 0 60px;
    }

    header h1 {
        font-size: 2rem;
    }

    .chat-box {
        width: 300px;
        right: 15px;
    }

    .floating-shape {
        display: none;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }

    header {
        padding: 70px 0 50px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .chat-box {
        width: 280px;
        right: 10px;
        bottom: 80px;
    }

    .live-chat {
        bottom: 140px;
        right: 15px;
    }

    .mode-toggle {
        bottom: 80px;
        right: 15px;
    }
}