/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #eef2f7, #f0f4f8);
  color: #2c3e50;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Particle Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  z-index: 1;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  color: #004aad;
}

.hero p {
  font-size: 1.3rem;
  margin-top: 15px;
  color: #556677;
}

.cta {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(90deg, #004aad, #00d4ff);
  padding: 12px 30px;
  color: white;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.4s;
}

.cta:hover {
  transform: scale(1.1);
  background: linear-gradient(90deg, #00d4ff, #004aad);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  text-decoration: none;
  color: #004aad;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 60px 20px;
  margin-top: 50px;
  border-radius: 15px;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  padding: 30px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card h3 {
  color: #004aad;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: #eef2f7;
  margin-top: 50px;
}


/* Stats Section */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat .count {
  font-size: 2.5rem;
  font-weight: bold;
  color: #004aad;
}

/* Testimonials Section */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
}

.testimonial {
  display: none;
  text-align: center;
}

.testimonial.active {
  display: block;
}

.testimonial p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.testimonial h4 {
  color: #004aad;
}

/* Floating CTA Button */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(90deg, #004aad, #00d4ff);
  padding: 15px 25px;
  border-radius: 30px;
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.floating-cta:hover {
  transform: scale(1.1);
}

/* Loader Styles */
.loader {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: #eef2f7;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader.hidden {
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Chat Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 320px;
  height: 450px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  z-index: 999;
  display: none;
  overflow: hidden;
}

.chat-header {
  background: #004aad;
  color: white;
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f6f9fc;
}

.msg {
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 85%;
  line-height: 1.4;
  word-wrap: break-word;
  font-size: 1rem;
  color: #333;
}

.msg.bot {
  background: #e0f0ff;
  align-self: flex-start;
  text-align: left;
  color: #003366;
}

.msg.user {
  background: #dcf8c6;
  align-self: flex-end;
  text-align: right;
  color: #222;
}

.faq-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.faq-options button {
  background: #fff;
  border: 1px solid #cce0f5;
  padding: 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #222;
}

.faq-options button:hover {
  background: #ebf5ff;
}

#chatForm {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
  background: #fff;
  gap: 10px;
}

#chatForm input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

#chatForm button {
  padding: 10px 15px;
  background: #004aad;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.support-form input,
.support-form textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  width: 100%;
}

.support-form textarea {
  min-height: 60px;
  resize: vertical;
}

.support-form button {
  background: #004aad;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.chat-header {
  background: #004aad;
  color: white;
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
.navbar {
  display: flex;
  justify-content: space-between;
  background: #004aad;
  padding: 10px 20px;
  align-items: center;
  color: white;
}

.navbar a, .navbar button {
  color: white;
  text-decoration: none;
  padding: 10px;
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  color: black;
  min-width: 160px;
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 10px;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: #f1f1f1;
}

.dropbtn:hover + .dropdown-content,
.dropdown-content:hover {
  display: block;
}

.dashboard-container {
  padding: 40px;
  background: #f4f8fc;
  min-height: 80vh;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  text-align: center;
  font-weight: bold;
  border-left: 8px solid transparent;
}

.product-card.active {
  border-left-color: #28a745;
}

.product-card.inactive {
  border-left-color: #dc3545;
  opacity: 0.6;
}
