/* General Styles */
body {
    font-family: 'Garamond', serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
}


/* Hero Section */
.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('hero-background.jpg') no-repeat center center/cover;
    color: white;
    padding: 40px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    animation: fadeIn 1.5s ease-in-out;
    max-width: 700px;
    margin-top: 85px;
}

.hero-title {
  font-size: 2.5rem;
  max-width: 700px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-family: 'Garamond', serif;
}

.logo-in-title {
  height: 4.5rem; /* Match the h1 font-size */
  width: auto;
  vertical-align: text-bottom;
  margin-right: 0px;
}

.hero h1 {
    font-size: 2.5rem; /* Slightly smaller */
    max-width: 700px;
}

.hero p {
    font-size: 1.2rem; /* Reduce slightly */
    max-width: 600px;
    margin-top: 3px auto; /* Reduce spacing */
}

/* Button */
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #eef5ff;
  color: #4E6271;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn:hover {
  color: black;
  background: linear-gradient(270deg, #A3C8E6, #D1ECF9, #89CFF0, #A3C8E6);
  background-size: 600% 600%;
  animation: gradientShift 4s ease infinite;
  transition: color 0.3s ease;
  z-index: 1;
}


/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    padding: 15px 40px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures logo is on the left, nav items are on the right */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


/* Remove margin-left: auto and center align */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px; /* Increase spacing for better alignment */
    padding: 0;
    margin: 0 40px 0 auto; /* Pushes the nav to the right */
    transform: translateX(-48px); /* Shift items 48px to the left */
}

.navbar ul li {
    display: inline-block;
    white-space: nowrap; /* Prevents line breaks */
}

.navbar ul li a:hover {
    color: black; /* Change the color to blue upon hover */
    transform: translateY(-3px);
}

.navbar ul li a {
    text-decoration: none;
    color: #4E6271;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Style for the dropdown container */
.navbar .dropdown {
    position: relative;
    display: inline-block;
}

/* Style for the dropdown button (Services) */
.navbar .dropbtn {
    font-size: 16px;
    background-color: transparent;
    color: #4E6271; /* Adjust this based on your site's color scheme */
    padding: 14px 16px;
    border: none;
    cursor: pointer;
}

/* Dropdown content (hidden by default) */
.navbar .dropdown-content {
    display: none;
    position: absolute;
    background-color: #A3C8E6; /* Adjust this for your theme */
    min-width: 160px;
    z-index: 1;
    border-radius: 10px; /* Adjust radius for more or less roundness */
}

.navbar .dropdown-content a {
  color: whitesmoke;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.navbar .dropdown-content a:hover {
  background: linear-gradient(90deg, #A3C8E6, #D1ECF9);
  color: black; /* Darker text for contrast */
  transform: translateY(-3px);
  border-radius: 10px; /* Adjust radius for more or less roundness */
}

/* Show the dropdown content when hovering */
.navbar .dropdown:hover .dropdown-content {
    display: block;
}

/* Responsive Fix for Small Screens */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }
}

.navbar-logo img {
    height: 50px; /* Adjust as needed */
    width: auto;
    margin-right: 20px; /* Space between logo and navigation links */
    border-radius: 15px;
}


/* Call to Action */
.cta {
    padding: 40px;
    background: #eef5ff;
    color: #4E6271;
}

.cta h2 {
    font-size: 2rem;
}

.cta p {
    font-size: 1.2rem;
    color: #4E6271;
}

.cta .btn {
  background: white;
  color: #4E6271;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease;
}

/* Reuse the gradientShift keyframes from before */

.cta .btn:hover {
  color: black;
  background: linear-gradient(270deg, #A3C8E6, #D1ECF9, #89CFF0, #A3C8E6);
  background-size: 600% 600%;
  animation: gradientShift 4s ease infinite;
  z-index: 1;
  transition: color 0.3s ease;
}


/* Footer */
footer {
    background: white;
    color: #4E6271;
    padding: 15px;
    margin-top: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

 /* Overview Section */
 .overview {
    padding: 50px 20px;
    background: #eef5ff;
    text-align: center;
}

.overview h2 {
    font-size: 2rem;
    color: #4E6271;
    margin-bottom: 20px;
}

.overview p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #4E6271;
}

.overview-container, .value-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
}

.overview-box, .value-box {
    width: 30%;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.overview-box i, .value-box i {
    font-size: 40px;
    color: #4E6271;
    margin-bottom: 15px;
}

.overview-box h3, .value-box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #4E6271
}

.overview-box p {
    font-size: 1rem;
    color: #4E6271;
}

.overview-box:hover {
    transform: translateY(-5px);
}

/* Make anchor behave like a block without interfering with box layout */
.overview-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 30%;
    border-radius: 10px; /* match box */
}

.overview-logo {
  width: 40px;      /* adjust size */
  height: auto;
  vertical-align: middle;
  margin-right: 10px; /* spacing between logo and heading */
}

/* Ensure it inherits the original box styling and keeps structure */
.overview-link .overview-box {
    width: 100%;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Smooth hover transition remains intact */
.overview-link:hover .overview-box {
    transform: translateY(-5px);
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.15);
}


/* Value Proposition Section */
.value-proposition {
    padding: 50px 20px;
    background: white;
    text-align: center;
}

.value-proposition h2 {
    font-size: 2rem;
    color: #4E6271;
    margin-bottom: 20px;
}

.value-proposition p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #4E6271;
}

.value-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.value-box {
    background: #eef5ff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.value-box i {
    font-size: 40px;
    color: #4E6271;
    margin-bottom: 15px;
}

.value-box img {
    width: 60px;
    margin-bottom: 15px;
}

.value-box h3 {
    color: #4E6271;
    margin-bottom: 10px;
}

.value-box p {
    font-size: 1rem;
    color: #4E6271;
}

.value-box:hover {
    transform: translateY(-5px);
}

/* CHATBOT */

/* Chatbot Toggle Button */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #A3C8E6, #D1ECF9, #f0faff);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    width: 70px;
    height: 70px;
    text-align: center;
    line-height: 70px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Robot Logo - Static State */
#chatbot-toggle img.chatbot-logo {
    width: 70px;
    height: auto;
    transition: transform 0.6s ease-in-out;
}

/* Robot Logo - Hover Spin Effect */
#chatbot-toggle:hover img.chatbot-logo {
    transform: rotate(360deg);
}

#chatbot-frame {
    position: fixed;
    bottom: 105px;
    right: 20px;
    width: 400px;
    height: 550px;
    border: 3px solid black; /* Brown border */
    border-radius: 15px;
    box-shadow: 
      0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 999;
    background-color: white;
    overflow: hidden;
  
    /* For fade-in/fade-out animation */
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  

/* When chatbot is visible */
#chatbot-frame.show {
    opacity: 1;
}

/* Reset Chat Button */
.reset-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px; /* Smaller font size */
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 5px 10px; /* Reduced padding */
    border-radius: 50%; /* Keeps it circular */
    width: 40px; /* Set width */
    height: 40px; /* Set height */
}

.reset-btn:hover {
    transform: rotate(360deg); /* Spin the button on hover */
}

body {
    margin: 0;
}

.chatbot-box {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-sizing: border-box;
}

.chat-header {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #A3C8E6, #D1ECF9);
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    color: black;
    padding: 3px 10px;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
  }
  
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  

.chat-body {
    flex-grow: 1;
    overflow-y: scroll;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#chatbot-buttons-container {
    padding: 10px;
    background-color: #f4f4f4;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chatbot-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 90%;
    max-width: 260px;
    justify-items: center;
    padding: 5px;
}

.message {
    max-width: 70%;
    margin: 8px 10px;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    display: inline-block;
    clear: both;
}

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #A3C8E6, #D1ECF9);
    color: black;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 8px;
    max-width: 60%;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.bot-message {
    align-self: flex-start;
    background-color: #e5e5ea;
    color: black;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 8px;
    max-width: 60%;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.typing {
    background-color: #e5e5ea;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 8px 10px;
    display: inline-block;
    max-width: 60px;
}

.typing-dots {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 24px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #555;
    border-radius: 50%;
    opacity: 0.4;
    animation: bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

#chatbot-messages::after {
    content: "";
    display: block;
    clear: both;
}

#chatbot-messages {
    display: flex;
    flex-direction: column;
}

.chatbot-btn {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #A3C8E6, #D1ECF9);
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* <-- subtle shadow */
}

.chatbot-btn:hover {
    background: linear-gradient(135deg, #D1ECF9, #A3C8E6);
}

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
    justify-items: stretch;
}

.chatbot-footer {
  text-align: center;
  font-size: 12px;
  color: black;
  padding: 8px 10px;
  border-top: 1px solid #ddd;
  background-color: #f9f9f9;
  font-family: 'Inter', sans-serif;
}

.footer-brand {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
}

#tts-toggle {
  background: none;
  border: none;
  padding: 5px;
  color: #444;
  user-select: none;
  cursor: pointer; /* optional: show pointer on hover */
}

#tts-toggle:hover {
  color: #000;
}

/* Container for input and send button */
.custom-input-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-top: auto;
    background-color: #f4f4f4;
    border-top: 1px solid #ccc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Input field for user to type */
.custom-input {
    flex-grow: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    margin-right: 10px;
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    transition: border 0.3s ease;
}

.custom-input:focus {
    border-color: #A3C8E6;
    box-shadow: 0 0 5px rgba(163, 200, 230, 0.5);
}

/* Send button */
.custom-input-container .chatbot-btn {
    background-color: #A3C8E6;
    color: black;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.custom-input-container .chatbot-btn:hover {
    background-color: #89B9DB;
    transform: scale(1.05);
}



