/* =========================================================
   Mwerezi International Global Styles
   ========================================================= */
body {
  overflow: hidden;
}
:root {
  --gold: #d4af37; /* Classic Gold */
  --gold-hover: #f1d17a; /* Lighter Gold on hover */
  --dark-green: #013220; /* Deep Forest Green */
  --dark-blue: #0a192f; /* Very Dark Blue/Teal base */
  --teal: #008080; /* Strong Teal */
  --white: #ffffff;
  --light-grey: #f8f9fa;
  --text-muted: #6c757d;
  --primary-font: "Poppins", sans-serif;
}

body {
  font-family: var(--primary-font);
  background-color: var(--white);
  color: var(--dark-blue);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-blue);
}

.text-gold {
  color: var(--gold) !important;
}
.text-teal {
  color: var(--teal) !important;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

/* =========================================================
   Buttons Customization
   ========================================================= */
.btn-gold {
  background-color: var(--gold);
  color: var(--dark-blue);
  border-color: var(--gold);
}
.btn-gold:hover {
  background-color: var(--gold-hover);
  color: var(--dark-blue);
  border-color: var(--gold-hover);
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover {
  background-color: #006666; /* Slightly darker teal */
  color: var(--white);
}

.btn-dark-blue {
  background-color: var(--dark-blue);
  color: var(--white);
  border-color: var(--dark-blue);
}
.btn-dark-blue:hover {
  background-color: #112240; /* Slightly lighter blue */
  color: var(--white);
}

/* =========================================================
   Header (Navbar) Styles
   ========================================================= */
.navbar {
  background-color: var(--white);
  padding: 0.8rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  cursor: pointer;
}

.logo-img {
  height: 70px; /* Adjust based on logo shape */
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--dark-blue);
  font-weight: 400;
  font-size: 0.95rem;
  margin: 0 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--gold) !important;
}

.navbar-nav .nav-link.active {
  color: var(--gold) !important;
  font-weight: 600;
}

.navbar-nav .nav-link.active:focus {
  color: var(--gold) !important;
}

/* Underline animation for hover */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--gold);
  transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
  background-color: var(--gold);
}

.header-right .login-btn {
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  background-color: var(--dark-blue);
  color: var(--gold);
  border-color: var(--dark-blue);
  transition: all 0.3s ease;
}
.header-right .login-btn:hover,
.header-right .login-btn:active {
  background-color: #1a2a4a;
  color: var(--gold-hover);
  border-color: #1a2a4a;
}

.header-right .request-demo-btn {
  font-size: 0.9rem;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  background-color: var(--dark-blue);
  color: var(--gold);
  border-color: var(--dark-blue);
  transition: all 0.3s ease;
}
.header-right .request-demo-btn:hover,
.header-right .request-demo-btn:active {
  background-color: #1a2a4a;
  color: var(--gold-hover);
  border-color: #1a2a4a;
}

/* =========================================================
   Hero Section (Carousel)
   ========================================================= */
.hero-section {
  position: relative;
  height: 90vh; /* Takes most of the viewport height */
}

.carousel-item img {
  object-fit: cover;
  height: 90vh;
}

/* Dark overlay on hero images for text readability */
.carousel-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
}

.carousel-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  left: 10%; /* Move text left */
  z-index: 10;
  max-width: 600px;
}

.carousel-caption h1 {
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   About Us Section
   ========================================================= */
.about-section {
  background-color: var(--white);
}

.about-card {
  border: none;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.card-mission {
  background: linear-gradient(135deg, var(--dark-blue), #112240);
}

.card-vision {
  background: linear-gradient(135deg, var(--dark-green), #0a442b);
}

/* =========================================================
   Products Section
   ========================================================= */
.products-section {
  background-color: var(--light-grey);
}

.product-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.product-card .card-title {
  color: var(--dark-blue);
}

.product-features {
  list-style: none;
  padding-left: 0;
  color: var(--text-muted);
}
.product-features li::before {
  content: "\f058"; /* Check-circle from FontAwesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--teal);
  margin-right: 10px;
}

/* =========================================================
   Testimonials (Ticker)
   ========================================================= */
.testimonials-section {
  background: linear-gradient(135deg, var(--dark-blue), var(--dark-green));
  overflow: hidden; /* Hide overflow from moving items */
}

.testimonial-ticker-container {
  width: 100%;
  position: relative;
  padding: 30px 0;
}

.testimonial-ticker {
  display: flex;
  white-space: nowrap; /* Keep items in one line */
  animation: tickerAnimation 60s linear infinite; /* Smooth left to right animation */
}

.testimonial-ticker:hover {
  animation-play-state: paused; /* Pause on hover */
}

.testimonial-item {
  display: inline-block;
  width: 350px; /* Width of each testimonial card */
  height: 300px; /* Fixed height */
  margin: 0 20px; /* Space between cards */
  flex-shrink: 0; /* Prevent shrinking */
}

.testimonial-card {
  border-radius: 15px;
  background-color: var(--white);
  white-space: normal; /* Allow text wrapping within card */
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.client-info {
  margin-top: auto !important;
  flex-shrink: 0;
}

.client-avatar {
  display: none;
}

/* Left to Right Ticker Keyframes */
@keyframes tickerAnimation {
  0% {
    transform: translateX(-100%);
  } /* Start off-screen left */
  100% {
    transform: translateX(100%);
  } /* End off-screen right */
}

/* =========================================================
   Contact Section
   ========================================================= */
.contact-section {
  background-color: var(--white);
}

.row {
  display: flex;
  align-items: stretch;
}

.contact-info-panel {
  background: linear-gradient(135deg, var(--dark-blue), #112240);
  height: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.contact-detail i {
  width: 25px; /* Fixed width for alignment */
  text-align: center;
}

.contact-form .form-control-lg {
  font-size: 1rem;
  background-color: var(--light-grey);
}
.contact-form .form-control-lg:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.15); /* Teal shadow */
  background-color: var(--white);
}

.contact-form textarea {
  resize: none;
  overflow-y: auto;
}

.contact-form .btn-send-message {
  background-color: var(--teal);
  color: var(--gold);
  border-color: var(--teal);
  font-weight: 600;
  transition: all 0.3s ease;
}
.contact-form .btn-send-message:hover {
  background-color: #006666;
  color: var(--gold-hover);
  border-color: #006666;
}

/* =========================================================
   Footer Section
   ========================================================= */
.footer-section {
  background-color: var(--dark-blue);
  color: var(--white-50);
}

.footer-logo {
  height: 35px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
  display: inline-block;
  padding: 5px 0;
}
.footer-links li a:hover {
  color: var(--gold);
}

.social-icons a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: var(--gold) !important;
}

/* =========================================================
   Floating Chat Button & Popup
   ========================================================= */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050; /* Ensure it stays on top */
}

.chat-toggle-btn {
  border: none;
  background-color: var(--teal);
  width: 60px;
  height: 60px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.chat-toggle-btn:hover {
  background-color: #006666; /* Darker teal */
}

/* Floating Label next to button */
.chat-label {
  position: absolute;
  left: -130px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.chat-toggle-btn:hover .chat-label {
  opacity: 1;
}

/* Chat Popup Window */
.chat-popup {
  position: absolute;
  bottom: 80px; /* Above the button */
  right: 0;
  width: 300px;
  height: 400px;
  background-color: #fff;
  overflow: hidden; /* Prevent popup overflow */
  transition: all 0.3s ease-in-out;
}

.chat-popup.d-none {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.chat-header {
  background-color: var(--dark-blue);
}

.chat-body {
  height: 290px; /* Vertical scrolling space */
  overflow-y: auto; /* Vertically scrolable */
  background-color: var(--light-grey);
  font-size: 0.85rem;
}

.assistant-msg {
  background-color: #e2e6ea;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: var(--dark-blue);
  width: 80%;
}

.user-msg {
  background-color: var(--teal);
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #fff;
  display: inline-block;
}

.chat-input-container {
  background-color: #fff;
  display: flex;
  align-items: center;
}
.chat-input-container input:focus {
  box-shadow: none;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--dark-blue);
    padding: 1rem;
    margin-top: 10px;
  }
  .carousel-caption h1 {
    font-size: 2.2rem;
  }
}
