/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom right, #e3f2fd, #f3e5f5); /* Soft color gradient */
    line-height: 1.6;
    color: #333;
    min-height: 100vh; /* Ensures it covers the full height of the viewport */
    padding: 20px; /* Adds breathing space around the content */
}

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 94, 77, 1), rgba(255, 226, 84, 1)); /* Bold gradient */
    padding: 5px 20px; /* Adjusted padding for height */
    height: 60px; /* Set a fixed height */
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease-in-out;
    transform: translateY(0);
}


  
  /* Hamburger Icon */
  .menu-icon {
    font-size: 40px;
    cursor: pointer;
    color: white;
    transition: transform 0.4s ease-in-out, color 0.4s ease-in-out, background-color 0.4s ease-in-out;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.4s ease;
  }
  
  /* Menu Icon Hover - Transform and Color */
  .menu-icon:hover {
    transform: rotate(180deg) scale(1.2);

  }
  
  .navbar .logo {
    display: flex;
    align-items: center; /* Center the logo vertically */
  }
  
  .navbar .logo img {
    width: 80px; /* Adjust the width to a smaller size */
    height: auto; /* Maintain aspect ratio */
    transition: all 0.4s ease;
    cursor: pointer;
    margin-left: 10px; /* Slightly move the image to the left */
  }
  
  .navbar .logo img:hover {
   /* Full rotation on hover */
    box-shadow: 0 0 10px #ff9f00, 0 0 20px #ff9f00, 0 0 30px #40ff00; /* Neon glow */
  }
  
  .menu-icon {
    font-size: 37px;
    cursor: pointer;
    padding-right: 20px; /* Adjust padding if needed */
  }
  
  
  /* Menu Items (Initially Hidden) */
  .menu-items {
    position: fixed;
    top: 0;
    left: -300px; /* Initially hidden offscreen */
    width: 240px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 5px 0px 20px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transition: left 0.5s ease, background-color 0.3s ease-in-out;
    z-index: 100;
  }
  
  .menu-items.open {
    left: 0; /* Slide in when the menu is open */
  }
  
  /* Menu Item Styling */
  .menu-items a {
    color: white;
    font-size: 22px;
    padding: 20px;
    text-align: left;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, transform 0.3s ease, padding-left 0.3s ease;
  }
  
  /* Menu Item Hover Effects */
  .menu-items a:hover {
    background-color: rgba(214, 212, 209, 0.8);
    transform: translateX(15px);
    padding-left: 30px;
    color: black;
    box-shadow: 0 0 20px rgba(255, 159, 0, 0.6); /* Glowing effect */
  }
  
  /* Menu Text Animation */
  .menu-items a::before {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #ff9f00;
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
  }
  
  .menu-items a:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
  }

/* Banner */
.banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px;
    margin-top: 50px;
}

.banner .slide {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 60px;

    display: none;
    text-align: center;
    color: rgb(64, 255, 0);
    opacity: 0;
}

.banner .slide.active {
    display: block; /* Show active slide */
    animation: fadeInDown 1.5s ease-in-out forwards; /* Smooth fade-in and downwards slide effect */
}

.banner img {
    width: 100%;
    height: 100%;
    margin-bottom: 20px;
    object-fit: fill; /* Ensures the image fits properly */
}

/* Banner Text */
.banner .text {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); /* Center the text horizontally */
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    animation: slideUp 1s ease-out forwards; /* Apply the sliding animation */
    width: 90%; /* Make text container responsive */
    max-width: 600px; /* Limit the max width of the text */
}

/* Animation for sliding up from the bottom */
@keyframes slideUp {
    from {
        transform: translate(-50%, 50%); /* Start from bottom */
        opacity: 0; /* Start with opacity 0 */
    }
    to {
        transform: translate(-50%, 0); /* End at the center */
        opacity: 1; /* Fade in to full opacity */
    }
}

/* Animation for sliding down */
@keyframes fadeInDown {
    from {
        transform: translateY(-30px); /* Start slightly above */
        opacity: 0;
    }
    to {
        transform: translateY(0); /* End at the original position */
        opacity: 1; /* Fade in to full opacity */
    }
}

.banner .text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.banner .text p {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner {
        height: 300px;
        margin-top: 55px; /* Reduced margin for a higher position */
    }
  
    .banner .text {
        bottom: 40px; /* Slightly adjusted text position */
    }
  }
  
  @media (max-width: 480px) {
    .banner {
        height: 250px;
        margin-top: 45px; /* Further reduced margin for smaller screens */
    }
  
    .banner .text {
        bottom: 50px; /* Adjusted text position for better visibility */
    }
  }
  









/* General Styles */
.content {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 40px; /* Add gap between sections */
}

.features {
    display: flex; /* Use flexbox for side-by-side alignment */
    justify-content: center; /* Center align the feature boxes */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Add spacing between feature boxes */
    width: 100%;
    margin-bottom: 40px; /* Add gap below the section */
}

.feature-box {
    background-color: #3498db;
    border-radius: 50%; /* Make it round */
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px; /* Space around each feature box */
}


.feature-box i.icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.feature-box h3 {
    font-size: 1.1em;
    font-weight: bold;
}

.feature-box:hover {
    transform: translateY(-10px) scale(1.1);
    background-color: #2980b9;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-box-container {
        display: flex;
        justify-content: center; /* Horizontally center the feature boxes */
        align-items: center; /* Vertically center the feature boxes */
        flex-wrap: wrap; /* Ensure the boxes wrap on smaller screens */
    }

    .feature-box {
        width: 120px;
        height: 120px;
        margin: 20px; /* Add spacing between the boxes */
    }

    .feature-box i.icon {
        font-size: 2em;
    }

    .feature-box h3 {
        font-size: 1em;
        text-align: center; /* Center the text inside the box */
    }
}

@media (max-width: 480px) {
    .feature-box-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap; /* Wrap feature boxes for small screens */
    }

    .feature-box {
        width: 100px;
        height: 100px;
        margin: 20px; /* Maintain spacing */
    }

    .feature-box i.icon {
        font-size: 1.8em;
    }

    .feature-box h3 {
        font-size: 0.9em;
        text-align: center; /* Center the text inside the box */
    }
}




/* Doctor Section */
.doctors {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #e3f2fd, #f3e5f5); /* Soft gradient background */
    border-radius: 15px; /* Smooth edges */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.doctors h2 {
    font-size: 2.5rem;
    color: #1abc9c; /* Soft teal color */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px; /* Adds spacing for a stylish effect */
    animation: fadeIn 1s ease-in-out; /* Heading animation */
}

/* Doctor Card */
.doctor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Smoother hover effect */
}

.doctor img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease; /* Animation for hover */
    border: 3px solid #3498db; /* Adds a stylish border */
}

.doctor div h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    transition: color 0.3s ease; /* Hover effect for text */
}

.doctor div p {
    font-size: 1rem;
    color: #7f8c8d;
    transition: color 0.3s ease; /* Hover effect for text */
}

/* Hover Effects */
.doctor:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
    background: linear-gradient(to right, #e3f2fd, #f3e5f5); /* Light gradient on hover */
}

.doctor img:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.doctor div h3:hover,
.doctor div p:hover {
    color: #3498db; /* Changes text color on hover */
}

/* View More Button */
.view-more-container {
    margin-top: 30px;
}

.view-more-btn {
    background: linear-gradient(to right, #3498db, #1abc9c); /* Gradient button */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 50px; /* Rounded button */
    cursor: pointer;
    transition: all 0.4s ease; /* Smooth hover effect */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.view-more-btn:hover {
    background: linear-gradient(to right, #1abc9c, #3498db); /* Reversed gradient */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .doctor img {
        width: 70px;
        height: 70px;
    }

    .doctor div h3 {
        font-size: 1.1rem;
    }

    .doctor div p {
        font-size: 0.9rem;
    }

    .view-more-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .doctors h2 {
        font-size: 1.8rem;
    }

    .doctor img {
        width: 60px;
        height: 60px;
    }

    .view-more-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}




.availability {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom right, #e3f2fd, #ffffff);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.availability:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.availability table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    display: block;
}

.availability th, .availability td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
    word-wrap: break-word;
    background: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.availability th {
    background: linear-gradient(to bottom right, #2196f3, #6ec6ff);
    color: white;
    font-weight: bold;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.availability td {
    transition: transform 0.3s ease;
}

.availability tr:nth-child(even) {
    background-color: rgba(245, 245, 245, 0.8);
}

.availability tr:hover td {
    background-color: #bbdefb;
    color: #0d47a1;
    transform: scale(1.03);
}

.availability tr:hover th {
    background-color: #1e88e5;
    color: white;
}

.view-more-container {
    text-align: center;
    margin-top: 30px;
    animation: fadeInUp 1s ease;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(to right, #007bff, #0056b3);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.4s ease-in-out;
    transform: skewX(-30deg);
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    background: linear-gradient(to right, #0056b3, #003d80);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .availability th, .availability td {
        padding: 10px;
        font-size: 14px;
    }

    .view-more-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .availability th, .availability td {
        padding: 8px;
        font-size: 12px;
    }

    .view-more-btn {
        font-size: 12px;
        padding: 8px 18px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* WhatsApp Icon */
.whatsapp-icon {
    position: fixed;
    bottom: 70px;
    right: 30px;
    background-color: transparent; /* Transparent background */
    padding: 12px;
    cursor: pointer;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.3s ease;
    z-index: 9999;
}

/* WhatsApp Icon Hover Effect */
.whatsapp-icon:hover {
    transform: scale(1.2); /* Larger size and rotation */
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    filter: brightness(1.2); /* Slightly brighten on hover */
}

/* WhatsApp Icon Image */
.whatsapp-icon img {
    width: 55px; /* Adjust size of the logo */
    height: 55px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Hover Effect for the Image */
.whatsapp-icon:hover img {
 /* 180-degree rotation on hover */
    filter: brightness(1.2); /* Make the image slightly brighter on hover */
}

/* Make it responsive */
@media (max-width: 768px) {
    .whatsapp-icon {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }
    .whatsapp-icon img {
        width: 45px;
        height: 45px;
    }
}


/* WhatsApp Chatbox Popup */
/* Chatbox Styles */
#chatbox {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 480px;
    background: linear-gradient(135deg, #FF5733, #FF8D1A, #FFB400);
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
    transform: translateY(120%);
    animation: slideIn 0.7s cubic-bezier(0.52, 0.01, 0, 1.15) forwards;
    overflow: hidden;
}

/* Header Style */
.chatbox-header {
    background: linear-gradient(135deg, #FF5733, #FF8D1A);
    color: white;
    padding: 20px 25px;
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    animation: headerFlyIn 0.8s ease-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Header Button */
.chatbox-header button {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.chatbox-header button:hover {
    transform: scale(1.2);
    color: #FFEB3B;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Body Styles */
.chatbox-body {
    flex-grow: 1;
    padding: 20px 25px;
    overflow-y: auto;
    background: #f9f9f9;
    border-radius: 20px;
    animation: bodyFadeIn 1s ease-in-out;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.chatbox-footer {
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    background: #FF5733;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    position: relative;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

/* Textarea Styles */
textarea {
    width: 72%;
    padding: 18px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 15px;
    resize: none;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    color: #555;
}

textarea:focus {
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.7);
    border-color: #FF5733;
    outline: none;
}

/* Send Button */
.chatbox-footer button {
    background-color: #FF5733;
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    text-transform: uppercase;
}

.chatbox-footer button:hover {
    background-color: #FF7851;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Chatbox Message Styles */
.message {
    max-width: 75%;
    padding: 18px 25px;
    margin: 12px 0;
    border-radius: 15px;
    font-size: 18px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    animation: messageSlideIn 0.5s ease-out;
}

/* User Message */
.user-message {
    background: #007BFF;
    color: white;
    align-self: flex-end;
    justify-content: flex-end;
    border-radius: 30px 30px 0 30px;
    transform-origin: bottom right;
    animation: userMessagePop 0.5s ease-in-out;
}

.user-message .message-content {
    flex-direction: row-reverse;
}

/* Bot Message */
.bot-message {
    background: #e0e0e0;
    color: #333;
    align-self: flex-start;
    justify-content: flex-start;
    border-radius: 30px 30px 30px 0;
    transform-origin: bottom left;
    animation: botMessagePop 0.5s ease-in-out;
}

.bot-message .message-content {
    flex-direction: row;
}

/* Avatar Style */
.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    margin-left: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid white;
}

.avatar:hover {
    transform: scale(1.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Scrolling for chat messages */
#chatbox-body {
    padding-right: 15px;
    overflow-y: auto;
    height: 100%;
    animation: scrollAnimation 1s ease-in-out;
}

/* Chatbox Appear Animation */
@keyframes slideIn {
    from {
        transform: translateY(120%);
    }
    to {
        transform: translateY(0);
    }
}

/* Header Fly-in Animation */
@keyframes headerFlyIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Body Fade-in Animation */
@keyframes bodyFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Message Slide-in Animation */
@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* User Message Pop Animation */
@keyframes userMessagePop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bot Message Pop Animation */
@keyframes botMessagePop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animation */
@keyframes scrollAnimation {
    0% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    #chatbox {
        width: 90%;
        height: 420px;
    }

    .chatbox-header {
        font-size: 20px;
    }

    .chatbox-footer button {
        padding: 12px 22px;
        font-size: 14px;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    textarea {
        width: 70%;
        font-size: 14px;
    }

    .message {
        max-width: 85%;
    }
}

/* Footer */
footer {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar .menu {
        display: none;
    }

    .navbar .menu.active {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .menu-item {
        font-size: 1.2em;
    }

    .language-switcher {
        font-size: 1em;
    }

    .banner-description {
        font-size: 1em;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}
