/* Chatbot Toggle Button */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e0e0e0; /* metallic purple */
    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 Hover - Spinning Effect */
#chatbot-toggle img.chatbot-logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chatbot-toggle img.chatbot-logo:hover {
    transform: scale(1.1);
}

/* Chatbot Frame */
#chatbot-frame {
    position: fixed;
    bottom: 105px;
    right: 20px;
    width: 300px;
    height: 400px;
    border: none;
    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;
    font-family: Arial, sans-serif;
}

.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: 'Exo 2', sans-serif;
    background: linear-gradient(270deg, #8e2de2, #4a00e0);
    background-size: 600% 600%;
    animation: icyFlow 8s ease infinite;
    color: white;
    padding: 3px 10px;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
  }
  
  /* Keyframes for icy blue animation */
  @keyframes icyFlow {
    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-color: #6E33A4; /* metallic purple */
    color: white;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 8px;
    max-width: 60%;
    font-size: 14px;
}

.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;
}

.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(to right, #002f6c, #add8e6);
    color: white; /* dark sea blue text for contrast */
    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;
}

/* On hover, animate the gradient */
.chatbot-btn:hover {
    background: linear-gradient(270deg, #002f6c, #add8e6);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
  }
  
  /* Keyframes to animate the gradient flow */
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

.button-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
    justify-items: stretch;
}

/* HOMEPAGE*/

  /* Hero Section */
  .hero {
    background: linear-gradient(270deg, #4b0082, #dda0dd, #4b0082);
    background-size: 400% 400%; /* slightly less aggressive movement */
    animation: gradientMove 20s linear infinite; /* slower and smoother */
    color: white;
    text-align: center;
    padding: 80px 20px;
  }
  
  @keyframes gradientMove {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  
  
  .hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'Exo 2', sans-serif;
  }
  
  .hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-family: 'Exo 2', sans-serif;
  }
  
  .cta-button {
    background-color: #fff;
    color: #4b0082;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .cta-button:hover {
    background-color: #e6e6e6;
  }
  
  /* Features Section */
  .features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 60px 20px;
    background-color: #ffffff;
  }

  .features p{
    font-family: 'Exo 2', sans-serif;
  }
  
  .feature-box {
    position: relative;
    background-color: #f1f4f9;
    border-radius: 12px;
    border: 2px solid transparent; /* Needed to show the border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 30px;
    margin: 15px;
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease;
    z-index: 0;
  }
  
  /* Create gradient border with pseudo-element */
  .feature-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #4b0082, #dda0dd);
    -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
  }
  
  .feature-box:hover::before {
    opacity: 1;
  }
  
  .feature-box:hover {
    transform: translateY(-5px);
  }
  
  
  .feature-box h2 {
    color: #4b0082;
    margin-bottom: 10px;
    font-family: 'Exo 2', sans-serif;
  }
