/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
:root {
    /* Refined Medical Color Palette - Calming Teal/Sage */
    --primary-color: #5A9A9A;
    --primary-light: #8FBFBF;
    --primary-dark: #467878;
    --secondary-color: #7EB5A8;
    --secondary-light: #B8D8CF;
    --accent-color: #D4A59A;
    --text-dark: #3D4A4A;
    --text-light: #6B7878;
    --white: #FFFFFF;
    --light-bg: #FAFCFC;
    --alt-bg: #F5F8F8;
    --cream-bg: #FBF9F7;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(61, 74, 74, 0.08);
    --shadow-md: 0 4px 16px rgba(61, 74, 74, 0.12);
    --shadow-lg: 0 8px 32px rgba(61, 74, 74, 0.16);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--light-bg);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.brand-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.brand-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Navbar brand responsive */
@media (max-width: 991.98px) {
    .brand-name {
        font-size: 1.1rem;
    }

    .brand-title,
    .brand-subtitle {
        display: 14px;
    }
}

@media (max-width: 575.98px) {
    .brand-name {
        font-size: 1rem;
    }
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(90, 154, 154, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(90, 154, 154, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('../images/banner-new.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(58, 124, 165, 0.8) 50%, rgba(74, 127, 160, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text-wrapper {
    padding: 3rem 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 600px;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(107, 165, 207, 0.4);
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(107, 165, 207, 0.5);
}

.hero-cta-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.5;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 650px;
}

/* Hero Responsive Styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta-text {
        font-size: 1.25rem;
    }

    .hero-text-wrapper {
        padding: 2rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-section .row {
        min-height: auto !important;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-text-wrapper {
        padding: 1.5rem 0;
        text-align: center;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.65rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta-text {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.about-section,
.services-section,
.contact-section {
    padding: 5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    background: var(--cream-bg);
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-card {
    width: 100%;
    max-width: 450px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.doctor-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.doctor-badge {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 1.5rem 2rem;
    text-align: center;
}

.doctor-badge h3 {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.doctor-credentials {
    background: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
}

.doctor-credentials p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.doctor-credentials p:first-child {
    font-weight: 600;
    border-bottom: 2px dotted #ddd;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-content .lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
}

.credentials h4,
.affiliations h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.credential-list {
    list-style: none;
    padding: 0;
}

.credential-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credential-list i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.affiliation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.affiliation-badges .badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.affiliation-badges .badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    background: var(--white);
}

.service-card {
    padding: 2rem;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid rgba(90, 154, 154, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: rotate(5deg) scale(1.1);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin: 0;
}

.approach-section .glass-card {
    background: rgba(107, 165, 207, 0.1);
    backdrop-filter: blur(10px);
}

.approach-section h3 {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 5rem 0;
    background: var(--alt-bg);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 154, 154, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(126, 181, 168, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(61, 74, 74, 0.08);
    transition: var(--transition-smooth);
    border: 1px solid rgba(90, 154, 154, 0.1);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(90, 154, 154, 0.15);
    border-color: var(--primary-light);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.quote-icon i {
    font-size: 1.5rem;
    color: var(--white);
    transform: rotate(180deg);
}

.stars {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #FFD700;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(107, 165, 207, 0.15);
    margin-top: auto;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 1.75rem;
    color: var(--white);
}

.author-info h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Swiper Slider Custom Styles */
.testimonials-swiper {
    padding: 20px 10px 60px;
    position: relative;
}

.testimonials-swiper .swiper-slide {
    height: auto;
}

.testimonials-swiper .swiper-slide .testimonial-card {
    height: 100%;
}

/* Swiper Navigation Arrows */
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.testimonials-swiper .swiper-button-prev:hover,
.testimonials-swiper .swiper-button-next:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-lg);
}

.testimonials-swiper .swiper-button-prev::after,
.testimonials-swiper .swiper-button-next::after {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.testimonials-swiper .swiper-button-prev:hover::after,
.testimonials-swiper .swiper-button-next:hover::after {
    color: var(--white);
}

/* Swiper Pagination */
.testimonials-swiper .swiper-pagination {
    bottom: 10px;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

/* Hide navigation on mobile */
@media (max-width: 767.98px) {

    .testimonials-swiper .swiper-button-prev,
    .testimonials-swiper .swiper-button-next {
        display: none;
    }

    .testimonials-swiper {
        padding: 10px 5px 50px;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: var(--white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.contact-details a:hover {
    color: var(--primary-dark);
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1A252F 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer h4 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-light);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 1.5rem;
}

.footer-map-container {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .glass-card {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .about-section,
    .services-section,
    .contact-section {
        padding: 3rem 0;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* whatsapp button css start phone button css */
.btn-floating:hover img {
    margin-bottom: -3px
}

.btn-floating {
    position: fixed;
    right: 25px;
    overflow: hidden;
    width: 50px;
    height: 50px;
    border-radius: 100px;
    border: 0;
    z-index: 9999;
    color: white;
    transition: .2s;
}

.btn-floating:hover {
    width: auto;
    padding: 0 20px;
    cursor: pointer;
}

.btn-floating span {
    font-size: 16px;
    margin-left: 5px;
    transition: .2s;
    line-height: 0px;
    display: none;
}

.btn-floating:hover span {
    display: inline-block;
}

/* Phone */
.btn-floating.phone {
    bottom: 190px;
    background-color: #c03421;
}

.btn-floating.phone:hover {
    background-color: #c03421;
}

/* WhatsApp */
.btn-floating.whatsapp {
    background-color: #34af23;
    bottom: 111px;
}

.btn-floating.whatsapp:hover {
    background-color: #1f7a12
}

/* end whatsapp button css */

.footer-contact li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
}