/* ===== General Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #f9f9fb;
  color: #333;
}

/* ===== Container ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== Navbar ===== */
.navbar {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

.logo i {
  margin-right: 0.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: #ffd700;
}

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary {
  background: #ffd700;
  color: #333;
}

.btn-primary:hover {
  background: #ffce00;
}

.btn-secondary {
  background: #fff;
  color: #4e73df;
  border: 2px solid #4e73df;
}

.btn-secondary:hover {
  background: #4e73df;
  color: #fff;
}

/* Hamburger Menu (mobile) */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

/* ===== Hero Section (Home Page) ===== */
.hero {
  display: flex;
  align-items: center;
  padding: 4rem 0;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #2d2d2d;
}

.hero-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #555;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ===== Features Section ===== */
.features {
  padding: 3rem 0;
  background: #fff;
  text-align: center;
}

.features h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

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

.feature-card {
  background: #f1f4fa;
  padding: 2rem;
  border-radius: 15px;
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: #e8ecf7;
}

.feature-card i {
  font-size: 2rem;
  color: #4e73df;
  margin-bottom: 1rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
  padding: 3rem 0;
  background: #f9f9fb;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 2rem;
}

.testimonial {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  max-width: 700px;
  margin: auto;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* ===== Footer ===== */
footer {
  background: #2d2d2d;
  color: #fff;
  padding: 2rem 0;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  color: #ffd700;
}

.footer-section a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: 0.3s;
}

.footer-section a:hover {
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* ===== Auth Page (Sign Up / Login) ===== */
body.auth-page {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 3rem auto;
}

.auth-card h1 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #2d2d2d;
}

.auth-card p.text-center {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.5rem;
}

/* ===== Auth Form ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #4e73df;
  outline: none;
  box-shadow: 0 0 5px rgba(78, 115, 223, 0.3);
}

.password-requirements p {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.3rem;
}

/* Checkbox group */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkbox-group label a {
  color: #ffd700;
  text-decoration: underline;
}

/* Auth Buttons */
.auth-btn {
  margin-top: 1rem;
  padding: 0.8rem 0;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 0.8rem 1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 1rem 0;
  transition: 0.3s;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-google:hover {
  background: #f1f1f1;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}

.auth-divider span {
  padding: 0 0.5rem;
  color: #888;
  font-size: 0.85rem;
}

/* Redirect Text */
.auth-redirect {
  font-size: 0.9rem;
  color: #555;
}

.auth-redirect a {
  color: #ffd700;
  font-weight: 500;
  text-decoration: none;
}

.auth-redirect a:hover {
  text-decoration: underline;
}

/* ===== Chatbot Styles ===== */
.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.chatbot-container.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bot-message {
  background: #f1f4fa;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.user-message {
  background: #4e73df;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chatbot-input {
  display: flex;
  padding: 10px 15px;
  border-top: 1px solid #eee;
  background: #f9f9fb;
}

.chatbot-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  font-size: 0.9rem;
}

.chatbot-input input:focus {
  border-color: #4e73df;
}

.chatbot-send {
  background: #4e73df;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.chatbot-send:hover {
  background: #3a5ecc;
}

.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  color: white;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  transition: transform 0.3s;
}

.chatbot-button:hover {
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #4e73df;
    padding: 1rem;
    position: absolute;
    top: 70px;
    right: 10px;
    border-radius: 10px;
  }

  .hamburger {
    display: flex;
  }

  .container {
    padding: 2rem 1rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .chatbot-container {
    width: 90%;
    right: 5%;
    bottom: 80px;
    height: 350px;
  }
}