body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
}

.logo-container {
    flex-shrink: 0;
    margin-left: 0px;
    padding-left: 0px;
}

.logo {
    max-width: 400px;
    height: 75px;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

header nav ul li a {
    color: #004aad;
    text-decoration: none;
    padding: 10px 15px;
    font-size: 1rem;
}

.hero {
    background: url('clinic-bg.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    margin-top: 60px;
    overflow: hidden;
}

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

.hero-content {
    flex-basis: 50%;
    margin-right: 20px;
}

.hero-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    color: #090808;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.hero .button {
    background-color: #004aad;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.hero .button:hover {
    background-color: #ff9202;
    transform: translateY(-3px);
}

/* Animation keyframes */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mockup and Graphic Animation */
.hero-image {
    flex-basis: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: slideInRight 1.2s ease-out forwards; 
}

.mockup {
    max-width: 100%;
    height: auto;
    opacity: 1;
    animation: floatUp 1.5s ease-out forwards; 
}

/* Mockup and Graphic Animation */
.hero-image {
    flex-basis: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: slideInRight 1.2s ease-out forwards; 
}

.mockup {
    max-width: 100%;
    height: auto;
    opacity: 1;
    animation: floatUp 1.5s ease-out forwards; 
}

/* Add the new CSS here */
.feature-one, .feature-two {
    background-color: #fff;
    padding: 100px 0;
    overflow: hidden;
}

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

/* Initial state for feature-one section */
.feature-one .feature-image,
.feature-one .feature-content {
    opacity: 0;
    transform: translateX(-50px); /* Start slightly off-screen */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Active state: triggers when .active class is added */
.feature-one.active .feature-image,
.feature-one.active .feature-content {
    opacity: 1;
    transform: translateX(0); 
}



.feature-image {
    flex-basis: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out forwards;
}

.feature-mockup {
    max-width: 100%;
    height: auto;
}

.feature-content {
    flex-basis: 50%;
    padding-left: 40px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out forwards;
}

.feature-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #090808;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-content p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

/* Style for the button in the feature-one section */
.feature-one .button {
    background-color: #004aad; 
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

/* Hover effect for the button */
.feature-one .button:hover {
    background-color: #ff9202; 
    transform: translateY(-3px); 
}


/* Animation keyframes */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Feature-Two Section */
.feature-two {
    background-color: #f4f4f4; 
    padding: 60px 20px;
    overflow: hidden;
}

.feature-two .feature-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-two .feature-image,
.feature-two .feature-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.feature-two.active .feature-image,
.feature-two.active .feature-content {
    opacity: 1;
    transform: translateX(0);
}

.feature-two .feature-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #090808;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-two .feature-content p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
}

.feature-two .button {
    background-color: #004aad;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.feature-two .button:hover {
    background-color: #ff9202;
    transform: translateY(-3px);
}


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



#contact {
    padding: 50px 0;
}

#contact h2 {
    text-align: center;
    margin-bottom: 40px;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

#contact-form label {
    display: block;
    margin-bottom: 10px;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact-form button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact-form button:hover {
    background-color: #555;
}

/* Chat Button */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #004aad;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


#chat-container {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 450px;
    height: 400px;
    z-index: 1000;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#chat-container.hidden {
    display: none;
}
/* Chat Header */
#chat-header {
    position: relative;
    height: 30px; 
    padding: 10px; 
    background-color: #fff; 
}

/* Close Chat Button */
#close-chat {
    position: absolute;
    top: 10px;  
    right: 10px;  
    cursor: pointer;
    width: 20px;
    height: 20px;
    z-index: 1001;  
}


#chat-box {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 400px;
    padding-top: 40px; 
    position: relative;
}

/* Messages Container */
.messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Chat Input Container */
#chat-input-container {
    display: flex;
}

#chat-input {
    flex-grow: 1;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#send-button {
    padding: 10px 15px;
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 35px;
}


#send-button:hover {
    background-color: #ff9202;
    transform: translateY(-3px);
}

#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    left: auto;
    top: auto;
}

#chat-container.hidden {
    display: none;
}

#chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #004aad;
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
   
}

#chat-header h3 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
    border-radius: 50;
}

#close-chat {
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: absolute;  
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white; 
    border-radius: 50%;  
    padding: 2px;  
}

#chat-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px); 
    overflow: hidden;
}

#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.messages-container {
    display: flex;
    flex-direction: column;
}

#chat-loader {
    display: none;
    text-align: center;
    padding: 10px;
}

#chat-loader img {
    width: 50px;
}

#chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

#send-button {
    padding: 8px 15px;
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.user-message, .openai-message {
    max-width: 80%;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 18px;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background-color: #e6f2ff;
}

.openai-message {
    align-self: flex-start;
    background-color: #f0f0f0;
}


.user-message::after, .openai-message::after {
    content: "";
    display: table;
    clear: both;
}

/* Loader GIF */
#chat-loader {
    display: none;
    text-align: center;
    padding: 10px;
}

#chat-loader img {
    width: 50px;
}



footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin: 0;
}

/* For tablets */
@media screen and (max-width: 768px) {
    .hero-container, .feature-container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image, .feature-content, .feature-image {
        flex-basis: 100%;
    }
    
    header nav ul {
        gap: 15px;
    }
}

/* For mobile phones */
@media screen and (max-width: 480px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        max-width: 200px;
        height: auto;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    #chat-container {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}


#menu-toggle {
    display: none; 
}

@media screen and (max-width: 768px) {
    #menu-toggle {
        display: block; 
        font-size: 1.5rem;
        background: none;
        border: none;
        color: #004aad;
    }
    
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .logo {
        max-width: 150px;
        height: auto;
    }

    header nav {
        display: none; 
        width: 100%;
    }

    header nav.active {
        display: block; 
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul li {
        width: 100%;
        padding: 10px 0;
    }

    .hero {
        margin-top: 60;
    }

    .hero-container {
        flex-direction: column-reverse;
    }

    .hero-content, .hero-image {
        width: 100%;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .feature-container {
      padding: 20px 0;  
    }
  
    .feature-content {
      padding: 0 20px;  
      margin-bottom: 30px;  
    }
  
    .feature-image {
      padding: 0 20px;  
    }
  
    .feature-image img {
      max-width: 90%;  
      height: auto;
      margin: 0 auto;
      display: block;
    }
  
    /* Specific to the feature with the calendar image */
    .feature-one .feature-image {
      margin-top: 30px;  
    }
  
    /* Ensure consistent button styling */
    .button {
      display: inline-block;
      margin-bottom: 20px;
    }
  }

  @media screen and (max-width: 768px) {
    #chat-container {
      width: 100%;
      height: 100%;
      bottom: 0;
      right: 0;
      left: 0;
      border-radius: 0;
      max-width: none;
    }
  
    #chat-header {
      padding: 10px;
    }
  
    #chat-header h3 {
      font-size: 18px;
    }
  
    #chat-input, #send-button {
      font-size: 16px;
    }
  
    .user-message, .openai-message {
      font-size: 14px;
    }
  }