/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c2c2c; /* Charcoal Grey for body text */
    overflow-x: hidden;
    background-color: #ffffff; /* Clean White background */
    margin: 0;
    padding: 0;
}

/* Top Header Styles */
.top-header {
    background: #ffffff;
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 3px solid #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1001;
}

.top-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clinic-name {
    color: #000000;
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

.clinic-name-subtitle {
    color: #000000;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(230, 215, 255, 0.9) 100%);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(74, 44, 90, 0.15);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(230, 215, 255, 0.3);
}

.navbar {
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 64px;
    width: auto;
    display: inline-block;
    margin-right: 12px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.clinic-name-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo h2 {
    color: #4a2c5a; /* Deep Plum Purple for main heading */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.nav-logo h3 {
    color: #4a2c5a; /* Deep Plum Purple for second line */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

.nav-logo p {
    color: #4a2c5a; /* Deep Plum Purple for doctor name */
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 215, 255, 0.2);
}

.nav-link {
    text-decoration: none;
    color: #4a2c5a; /* Deep Plum Purple for navigation links */
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: hidden;
    background: transparent;
}

.nav-link i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link span {
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    transition: all 0.4s ease;
    z-index: -1;
    border-radius: 25px;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: #4a2c5a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(74, 44, 90, 0.3);
}

.nav-link:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #4a2c5a;
}

.nav-link:hover span {
    transform: translateX(2px);
}

.nav-link.active {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    color: #4a2c5a;
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.2);
}

.nav-link.active i {
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border: 2px solid rgba(74, 44, 90, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 44, 90, 0.15);
    z-index: 1001;
}

.hamburger:hover {
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 44, 90, 0.25);
}

.hamburger:hover .bar {
    background: #ffffff;
}

.bar {
    width: 24px;
    height: 2.5px;
    background: linear-gradient(90deg, #4a2c5a, #8b5a9f, #ffb3d1);
    margin: 2.5px 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(74, 44, 90, 0.2);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: linear-gradient(90deg, #ffb3d1, #4a2c5a);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: linear-gradient(90deg, #ffb3d1, #4a2c5a);
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #2c2c2c; /* Charcoal Grey text */
    position: relative;
    overflow: hidden;
    padding-top: 100px; /* Add padding to account for fixed navbar */
}

/* Image Background */
.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(230, 215, 255, 0.3) 0%, rgba(240, 200, 232, 0.2) 50%, rgba(255, 179, 209, 0.2) 100%);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(230, 215, 255, 0.1) 50%, rgba(240, 200, 232, 0.1) 100%);
    z-index: 3;
}


/* Fallback background for when image doesn't load */
.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 215, 255, 0.4) 0%, rgba(240, 200, 232, 0.3) 25%, rgba(255, 179, 209, 0.35) 50%, rgba(220, 180, 255, 0.3) 75%, rgba(255, 200, 220, 0.4) 100%);
    z-index: 0;
}

.home-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
    gap: 3rem;
}

.home-content {
    text-align: left;
    flex: 1;
    max-width: 50%;
    padding-right: 2rem;
}

.home-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    color: #4a2c5a; /* Deep Plum Purple - same as navbar */
}

.home-subtitle {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4a2c5a; /* Deep Plum Purple for subtitle */
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.home-qualifications {
    font-weight: 400;
    color: #4a2c5a;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.home-description {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.home-description-line1,
.home-description-line2 {
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 0.5rem;
}

.home-description-line2 {
    margin-bottom: 0;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: #4a2c5a; /* Deep Plum Purple for primary button */
    color: #ffffff; /* Clean White text */
    box-shadow: 0 4px 15px rgba(74, 44, 90, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 44, 90, 0.4);
    background: #3a2245; /* Darker plum on hover */
}

.btn-secondary {
    background: transparent;
    color: #4a2c5a; /* Deep Plum Purple text */
    border: 2px solid #4a2c5a; /* Deep Plum Purple border */
}

.btn-secondary:hover {
    background: #4a2c5a; /* Deep Plum Purple background */
    color: #ffffff; /* Clean White text */
    transform: translateY(-2px);
}


.home-stats {
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.5s forwards;
    position: relative;
    z-index: 5;
}

.stat-item {
    text-align: left;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Image Carousel Card */
.image-carousel-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(74, 44, 90, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}

.image-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(74, 44, 90, 0.15);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    transform: scale(1.02);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: #4a2c5a;
    transform: scale(1.2);
}

.indicator.active {
    background: #4a2c5a;
    border-color: #4a2c5a;
    transform: scale(1.1);
}

/* Certificate Gallery */
.certificate-gallery {
    margin-top: 3rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificate-gallery h3 {
    color: #4a2c5a;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.certificate-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.certificate-image-item {
    text-align: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.certificate-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.certificate-image-item p {
    color: #4a2c5a;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a2c5a; /* Deep Plum Purple for section headers */
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666666; /* Light Grey for section descriptions */
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f5f5f5; /* Light Grey background */
    position: relative;
    overflow: hidden;
}

.about-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(230, 215, 255, 0.1) 0%, rgba(240, 200, 232, 0.1) 50%, rgba(255, 179, 209, 0.1) 100%);
    min-height: 600px;
}

.about-video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    display: block;
    visibility: visible;
    opacity: 0.6;
    animation: videoFloat 25s ease-in-out infinite;
    transform-origin: center center;
}

.about-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(230, 215, 255, 0.1) 50%, rgba(255, 179, 209, 0.1) 100%);
    z-index: 3;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 5;
}

.doctor-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(74, 44, 90, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 44, 90, 0.15);
}

.doctor-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e6d7ff;
}

.doctor-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e6d7ff;
    box-shadow: 0 10px 30px rgba(74, 44, 90, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(74, 44, 90, 0.2);
}

.doctor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.doctor-header h3 {
    color: #4a2c5a;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.doctor-title {
    color: #666666;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.doctor-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.doctor-text h4 {
    color: #4a2c5a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.doctor-text h4:first-child {
    margin-top: 0;
}

.doctor-text p {
    color: #666666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.doctor-qualifications {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(74, 44, 90, 0.1);
}

.doctor-qualifications h4 {
    color: #4a2c5a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.doctor-qualifications .qualification-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.doctor-qualifications .qualification-item:hover {
    transform: translateX(5px);
}

.doctor-qualifications .qualification-item i {
    font-size: 1.5rem;
    color: #4a2c5a;
    margin-right: 1rem;
    min-width: 25px;
}

.doctor-qualifications .qualification-item h5 {
    color: #4a2c5a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.doctor-qualifications .qualification-item p {
    color: #666666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.about .container {
    position: relative;
    z-index: 5;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #4a2c5a; /* Deep Plum Purple for headings */
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666666; /* Light Grey for text */
    line-height: 1.8;
}

.expertise-list {
    list-style: none;
    margin-top: 1rem;
}

.expertise-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #666666; /* Light Grey for list items */
}

.expertise-list i {
    color: #4a2c5a; /* Deep Plum Purple for icons */
    margin-right: 1rem;
    font-size: 1.1rem;
}

.about-qualifications {
    background: #ffffff; /* Clean White background */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-qualifications h3 {
    font-size: 1.5rem;
    color: #4a2c5a; /* Deep Plum Purple for headings */
    margin-bottom: 1.5rem;
    text-align: center;
}

.qualification-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f5f5f5; /* Light Grey background */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.qualification-item:hover {
    transform: translateX(5px);
}

.qualification-item i {
    font-size: 2rem;
    color: #4a2c5a; /* Deep Plum Purple for icons */
    margin-right: 1rem;
}

.qualification-item h4 {
    font-size: 1.1rem;
    color: #2c2c2c; /* Charcoal Grey for headings */
    margin-bottom: 0.3rem;
}

.qualification-item p {
    color: #666666; /* Light Grey for text */
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #ffffff; /* Clean White background */
}

/* Experience Statistics */
.experience-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(74, 44, 90, 0.15);
    border: 2px solid rgba(74, 44, 90, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 44, 90, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #4a2c5a;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a2c5a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Doctor Availability Section */
.availability {
    padding: 4rem 0 2rem 0;
    background: #f5f5f5; /* Light Grey background */
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.availability-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(74, 44, 90, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.availability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 44, 90, 0.15);
}

.availability-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e6d7ff;
}

.availability-header h3 {
    color: #4a2c5a;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.availability-subtitle {
    color: #666666;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.availability-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.availability-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.availability-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.availability-item:hover {
    transform: translateX(5px);
}

.availability-item i {
    font-size: 1.5rem;
    color: #4a2c5a;
    margin-top: 0.2rem;
    min-width: 25px;
}

.availability-item h4 {
    color: #4a2c5a;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.availability-item p {
    color: #666666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.availability-slots {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #e6d7ff;
}

.availability-slots h4 {
    color: #4a2c5a;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.time-slots-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.8rem;
}

.time-slot-display {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    color: #4a2c5a;
    padding: 0.8rem 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(74, 44, 90, 0.2);
    transition: transform 0.3s ease;
}

.time-slot-display:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(74, 44, 90, 0.2);
}

.doctor-slot-header {
    grid-column: 1 / -1;
    margin: 1rem 0 0.5rem 0;
    padding: 0.8rem;
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    border-radius: 10px;
    text-align: center;
}

.doctor-slot-header h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff; /* Clean White background */
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e6d7ff; /* Soft Lavender border */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%); /* Soft Lavender to Blush Pink gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 44, 90, 0.15);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(74, 44, 90, 0.25);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #4a2c5a; /* Deep Plum Purple for headings */
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    text-align: left;
}

.service-list li {
    padding: 0.5rem 0;
    color: #666666; /* Light Grey for list items */
    border-bottom: 1px solid #e6d7ff; /* Soft Lavender border */
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a2c5a; /* Deep Plum Purple for checkmarks */
    font-weight: bold;
}

/* Gallery Section */
.gallery {
    padding: 3rem 0;
    background: #f5f5f5; /* Light Grey background */
}

.gallery-container {
    overflow: hidden;
    position: relative;
    margin: 2rem 0;
}

.gallery-scroll {
    display: flex;
    animation: scrollLeft 30s linear infinite;
    gap: 2rem;
    width: max-content;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    position: relative;
    height: 400px;
    width: 350px;
    flex-shrink: 0;
}

.gallery-item:hover {
    transform: scale(1.08);
    z-index: 10;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    background: #f0f0f0;
}

.gallery-image:not([src]),
.gallery-image[src=""] {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image:not([src])::after,
.gallery-image[src=""]::after {
    content: "Image Loading...";
    color: #4a2c5a;
    font-weight: 500;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-scroll:hover {
    animation-play-state: paused;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: #ffffff; /* Clean White background */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #ffffff; /* Clean White background */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid #4a2c5a; /* Deep Plum Purple border */
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #666666; /* Light Grey for testimonial text */
    line-height: 1.8;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info h4 {
    color: #4a2c5a; /* Deep Plum Purple for author names */
    margin-bottom: 0.3rem;
}

.author-info p {
    color: #666666; /* Light Grey for author details */
    font-size: 0.9rem;
}

.rating {
    color: #ffc107;
}

.rating i {
    margin-right: 0.2rem;
}

/* Certificate Section */
.certificate-section {
    padding: 6rem 0;
    background: #f5f5f5; /* Light Grey background */
}

.certificate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.certificate-card {
    background: #ffffff; /* Clean White background */
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid rgba(74, 44, 90, 0.1); /* Subtle Deep Plum Purple border */
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 44, 90, 0.15);
}

.certificate-image {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.certificate-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.certificate-img:hover {
    transform: scale(1.05);
}


.certificate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid #4a2c5a; /* Deep Plum Purple border */
}

.certificate-icon i {
    font-size: 2.5rem;
    color: #4a2c5a; /* Deep Plum Purple for icon */
}

.certificate-info h3 {
    color: #4a2c5a; /* Deep Plum Purple for heading */
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.certificate-info p {
    color: #666666; /* Light Grey for description */
    margin-bottom: 2rem;
    line-height: 1.6;
}

.certificate-info .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.3);
}

.certificate-info .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 44, 90, 0.4);
    background: linear-gradient(135deg, #6b3d7a 0%, #4a2c5a 100%);
}

.certificate-qualifications {
    background: #ffffff; /* Clean White background */
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(74, 44, 90, 0.1); /* Subtle Deep Plum Purple border */
}

.certificate-qualifications h3 {
    color: #4a2c5a; /* Deep Plum Purple for heading */
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
}

.qualification-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qualification-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border-radius: 15px;
    transition: transform 0.3s ease;
    border-left: 4px solid #4a2c5a; /* Deep Plum Purple accent */
}

.qualification-item:hover {
    transform: translateX(5px);
}

.qualification-item i {
    font-size: 1.8rem;
    color: #4a2c5a; /* Deep Plum Purple for icons */
    margin-right: 1rem;
    min-width: 30px;
}

.qualification-item h4 {
    color: #4a2c5a; /* Deep Plum Purple for qualification titles */
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.qualification-item p {
    color: #666666; /* Light Grey for descriptions */
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Rating Section */
.rating-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%); /* Soft Lavender to Blush Pink gradient */
    color: #2c2c2c; /* Charcoal Grey text */
}

.rating-content {
    text-align: center;
}

.rating-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.overall-rating {
    margin-bottom: 3rem;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stars {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rating-breakdown {
    max-width: 600px;
    margin: 0 auto;
}

.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.rating-item span:first-child {
    min-width: 120px;
    text-align: left;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: rgba(74, 44, 90, 0.2); /* Semi-transparent Deep Plum Purple */
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: #4a2c5a; /* Deep Plum Purple for rating bars */
    border-radius: 4px;
    transition: width 1s ease;
}

.rating-item span:last-child {
    min-width: 40px;
    text-align: right;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f5f5f5; /* Light Grey background */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff; /* Clean White background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #4a2c5a; /* Deep Plum Purple for icons */
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h3 {
    color: #4a2c5a; /* Deep Plum Purple for headings */
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666666; /* Light Grey for text */
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: #4a2c5a; /* Deep Plum Purple for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #3a2245; /* Darker plum on hover */
}

.contact-item small {
    color: #999;
    font-style: italic;
}

.contact-form {
    background: #ffffff; /* Clean White background */
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #4a2c5a; /* Deep Plum Purple for headings */
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a2c5a; /* Deep Plum Purple for focus */
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Footer */
.footer {
    background: #4a2c5a; /* Deep Plum Purple background */
    color: #ffffff; /* Clean White text */
    padding: 3rem 0 2rem;
    margin-bottom: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #e6d7ff; /* Soft Lavender for footer headings */
    margin-bottom: 1rem;
}

.footer-section p {
    color: #f0c8e8; /* Light pink for footer text */
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #f0c8e8; /* Light pink for footer links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #e6d7ff; /* Soft Lavender on hover */
}

.footer-section i {
    margin-right: 0.5rem;
    color: #e6d7ff; /* Soft Lavender for icons */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid #3a2245; /* Darker plum border */
    color: #f0c8e8; /* Light pink for footer bottom text */
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(230, 215, 255, 0.95) 100%);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 20px 40px rgba(74, 44, 90, 0.15);
        padding: 1.5rem 0;
        border-radius: 0 0 25px 25px;
        border: 1px solid rgba(230, 215, 255, 0.3);
        border-top: none;
        gap: 0.5rem;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        margin: 0 1rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(230, 215, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        font-size: 1rem;
        font-weight: 600;
    }

    .nav-link:hover {
        background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 25px rgba(74, 44, 90, 0.2);
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .home-container {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
    }

    .home-content {
        text-align: left;
        max-width: 100%;
        padding-right: 0;
    }

    .image-carousel-card {
        max-width: 100%;
        order: -1;
        padding: 1rem;
    }
    
    .carousel-container {
        height: 250px;
    }

    .certificate-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificate-gallery {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .home-title {
        font-size: 2.5rem;
    }

    .home-subtitle {
        font-size: 1.8rem;
    }
    
    .home-qualifications {
        font-size: 1rem;
    }

    .home-description-line1,
    .home-description-line2 {
        font-size: 1rem;
    }

    .home-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .home-stats {
        gap: 2rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    /* Image background adjustments for mobile */
    .background-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .doctor-card {
        padding: 2rem;
    }

    .doctor-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doctor-header h3 {
        font-size: 1.5rem;
    }

    .doctor-text h4 {
        font-size: 1.2rem;
    }

    .doctor-image {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }

    .availability-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .availability-card {
        padding: 1.5rem;
    }

    .availability-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .availability-header h3 {
        font-size: 1.4rem;
    }

    .time-slots-display {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 0.6rem;
    }

    .time-slot-display {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-icon {
        width: 100px;
        height: 100px;
    }

    /* Experience Statistics Mobile */
    .experience-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin: 2rem 0;
        padding: 1rem 0;
    }

    .stat-card {
        padding: 1.5rem;
        min-width: auto;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .gallery-item {
        height: 300px;
        width: 280px;
    }

    .gallery-scroll {
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certificate-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certificate-card,
    .certificate-qualifications {
        padding: 2rem;
    }

    .certificate-qualifications h3 {
        font-size: 1.5rem;
    }

    .qualification-item {
        padding: 1rem;
    }

    .qualification-item h4 {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .nav-logo {
        flex: 1;
        min-width: 0;
        margin-right: 1rem;
        max-width: calc(100% - 80px);
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

    .logo-img {
        height: 48px;
        margin-right: 8px;
    }

    .nav-logo h2 {
        font-size: 1.3rem;
        line-height: 1.1;
        margin: 0;
    }
    
    .nav-logo h3 {
        font-size: 1.3rem;
        line-height: 1.1;
        margin: 0;
    }

    .nav-logo p {
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin: 0;
    }

    .rating-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .rating-item span:first-child {
        min-width: auto;
    }

    .rating-bar {
        width: 100%;
    }

    /* Top Header Tablet Styles */
    .clinic-name {
        font-size: 2.2rem;
        letter-spacing: 0.8px;
    }

    .clinic-name-subtitle {
        font-size: 1.8rem;
        letter-spacing: 0.4px;
    }

    .top-header {
        padding: 1.2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .home-title {
        font-size: 2rem;
    }

    .home-subtitle {
        font-size: 1.4rem;
    }
    
    .home-qualifications {
        font-size: 0.9rem;
    }

    .btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .doctor-image {
        width: 120px;
        height: 120px;
    }

    .doctor-image i {
        font-size: 5rem;
    }

    .home-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    /* Experience Statistics Small Mobile */
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 1rem;
    }
}

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

/* Loading animation for rating bars */
.rating-fill {
    animation: fillBar 2s ease-in-out;
}

@keyframes fillBar {
    from {
        width: 0%;
    }
}

/* Hover effects for interactive elements */
.service-card,
.testimonial-card,
.contact-item,
.gallery-item {
    cursor: pointer;
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #4a2c5a; /* Deep Plum Purple for focus outline */
    outline-offset: 2px;
}

/* Appointment Booking Modal Styles */
.appointment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.appointment-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e6d7ff;
}

.modal-header h2 {
    color: #4a2c5a;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    font-size: 2rem;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.close-modal:hover {
    color: #4a2c5a;
    background: #e6d7ff;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

/* Calendar Styles */
.calendar-section {
    text-align: center;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h3 {
    color: #4a2c5a;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.calendar-nav-btn {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a2c5a;
    font-size: 1rem;
}

.calendar-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.3);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.calendar-day-header {
    padding: 1rem 0.5rem;
    font-weight: 600;
    color: #4a2c5a;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border-radius: 8px;
    font-size: 0.9rem;
}

.calendar-day {
    padding: 1rem 0.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
    color: #666666;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: #e6d7ff;
    color: #4a2c5a;
    transform: scale(1.05);
}

.calendar-day.available {
    background: #ffffff;
    color: #4a2c5a;
    border-color: #e6d7ff;
}

.calendar-day.available:hover {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    color: #4a2c5a;
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.2);
}

.calendar-day.selected {
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.3);
}

.calendar-day.past {
    background: #f0f0f0;
    color: #cccccc;
    cursor: not-allowed;
}

.calendar-day.past:hover {
    background: #f0f0f0;
    color: #cccccc;
    transform: none;
}

.calendar-day.today {
    background: linear-gradient(135deg, #ffb3d1 0%, #f0c8e8 50%, #e6d7ff 100%);
    color: #4a2c5a;
    font-weight: 600;
    border: 2px solid #4a2c5a;
}

.calendar-day.today:hover {
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    color: #ffffff;
}

/* Time Slots Styling */
.time-slots-section {
    text-align: center;
}

.selected-date {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    color: #4a2c5a;
    font-weight: 600;
}

.selected-doctor {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #4a2c5a;
    font-weight: 500;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-slot {
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e6d7ff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #4a2c5a;
    text-align: center;
}

.time-slot:hover {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    color: #4a2c5a;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.2);
}

.time-slot.selected {
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.3);
}

/* Booking Form Styling */
.booking-form-section {
    text-align: left;
}

.booking-summary {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a2c5a;
    font-weight: 500;
}

.summary-item i {
    font-size: 1.2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Time Slots Styles */
.time-slots-section {
    text-align: center;
}

.time-slots-section h3 {
    color: #4a2c5a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.selected-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border-radius: 10px;
    color: #4a2c5a;
    font-weight: 600;
}

.selected-doctor {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.time-slot {
    padding: 1rem;
    border: 2px solid #e6d7ff;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a2c5a;
    font-weight: 500;
    text-align: center;
}

.time-slot:hover {
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.2);
}

.time-slot.selected {
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%);
    color: #ffffff;
    border-color: #4a2c5a;
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.3);
}

.time-slot.booked {
    background: #f0f0f0;
    color: #cccccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.time-slot.booked:hover {
    background: #f0f0f0;
    color: #cccccc;
    transform: none;
    box-shadow: none;
}

/* Booking Form Styles */
.booking-form-section {
    text-align: center;
}

.booking-form-section h3 {
    color: #4a2c5a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.booking-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e6d7ff 0%, #f0c8e8 50%, #ffb3d1 100%);
    border-radius: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a2c5a;
    font-weight: 600;
}

.summary-item i {
    font-size: 1.2rem;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* WhatsApp Fallback Styles */
.whatsapp-fallback {
    text-align: center;
    padding: 2rem;
}

.whatsapp-content {
    max-width: 500px;
    margin: 0 auto;
}

.whatsapp-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse 2s infinite;
}

.whatsapp-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.whatsapp-fallback h3 {
    color: #4a2c5a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.whatsapp-fallback p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.whatsapp-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 0.8rem 0.3rem;
        min-height: 40px;
        font-size: 0.9rem;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .time-slot {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .booking-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .calendar-day {
        padding: 0.6rem 0.2rem;
        min-height: 35px;
        font-size: 0.8rem;
    }
    
    .time-slot {
        padding: 0.6rem 0.3rem;
        font-size: 0.8rem;
    }
    
    .whatsapp-icon {
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-icon i {
        font-size: 2rem;
    }

    .nav-logo {
        flex: 1;
        min-width: 0;
        margin-right: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
        line-height: 1.1;
        margin: 0;
    }
    
    .nav-logo h3 {
        font-size: 1.2rem;
        line-height: 1.1;
        margin: 0;
    }

    .nav-logo p {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .hamburger {
        padding: 0.6rem;
    }

    .bar {
        width: 24px;
        height: 2.5px;
    }

    /* Top Header Mobile Styles */
    .clinic-name {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }

    .clinic-name-subtitle {
        font-size: 1.4rem;
        letter-spacing: 0.3px;
    }

    .top-header {
        padding: 1rem 0;
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .home {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-header h2 {
        color: #4a2c5a; /* Deep Plum Purple for print */
    }
    
    .appointment-modal {
        display: none !important;
    }
}
