/* LIGHT & DARK MODE VARIABLES */
:root {
  /* Light Mode Colors */
  --bg-color: #b8deff;
  --text-color: #1a1a1a;
  --heading-color: #333333;
  --navbar-bg: rgba(82, 54, 194, 0.76);
  --navbar-scrolled-bg: rgba(24, 40, 72, 0.95);
  --navbar-link-color: rgba(255, 255, 255, 0.9);
  --navbar-link-hover-bg: rgba(255, 255, 255, 0.15);
  --scrollbar-track-color: #f1f1f1;
  --scrollbar-thumb-color: #888;
  --scrollbar-thumb-hover-color: #555;
  --footer-bg: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --container-bg: linear-gradient(135deg, #598ef0, #a2bef2, #80c0ed);
  --copyright-bg: rgba(0, 0, 0, 0.2);
  --copyright-text-color: rgba(255, 255, 255, 0.7);
  --special-link-color: #ffde59;
  --special-icon-hover-color: #ffde59;
}

body.dark-mode {
  /* Dark Mode Colors */
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
  --navbar-bg: rgba(18, 18, 18, 0.8);
  --navbar-scrolled-bg: rgba(18, 18, 18, 0.98);
  --navbar-link-color: rgba(255, 255, 255, 0.9);
  --navbar-link-hover-bg: rgba(255, 255, 255, 0.1);
  --scrollbar-track-color: #2c2c2c;
  --scrollbar-thumb-color: #666;
  --scrollbar-thumb-hover-color: #999;
  --footer-bg: linear-gradient(135deg, #0d121c, #161c28, #1a222e);
  --container-bg: linear-gradient(135deg, #2c3e50, #4a6c89, #4c647c);
  --copyright-bg: rgba(0, 0, 0, 0.4);
  --copyright-text-color: rgba(255, 255, 255, 0.6);
  --special-link-color: #ffde59;
  --special-icon-hover-color: #ffde59;
}

/* Width of the entire scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

/* Background of the scrollbar track */
::-webkit-scrollbar-track {
  background: var(--scrollbar-track-color);
}

/* Scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-color);
  border-radius: 6px;
}

/* On hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover-color);
}

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding-top: 70px;
  transition: background-color 0.5s ease;
}

/* TOPBAR */
.topbar {
  border-radius: 10px 10px 0 0;
}

/* NAVBAR - Enhanced with glass morphism effect */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  border-radius: 0 0 20px 20px;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--navbar-scrolled-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link {
  color: var(--navbar-link-color) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: white !important;
  background: var(--navbar-link-hover-bg);
  transform: translateY(-2px);
}

.nav-item.active .nav-link {
  color: #ffde59 !important;
  font-weight: 600;
}

/* DROPDOWN MENUS - More vibrant */
.dropdown-menu {
  border: none;
  border-radius: 12px !important;
  padding: 0.5rem 0;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin-top: 8px !important;
}

.dropdown-item {
  color: white !important;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #ffde59 !important;
  padding-left: 1.8rem;
}

.dropdown-item:active {
  background: rgba(255, 255, 255, 0.25);
}

/* DROPDOWN SUBMENU - Enhanced */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -8px;
  margin-left: 0;
  border-radius: 12px !important;
  display: none;
  min-width: 200px;
  height: 300px;
  overflow-y: auto;
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dropdown-submenu:hover> .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/*.dropdown-submenu:focus  > .dropdown-menu {*/
/*  display: block;*/
/*  opacity: 1;*/
/*  transform: translateY(0);*/
/*}*/

/* NAVBAR LOGO */
.nav-logo {
  height: 40px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 991.98px) {
  body {
    padding-top: 60px;
  }

  .navbar {
    backdrop-filter: blur(8px);
  }

  .navbar-collapse {
    background: var(--navbar-scrolled-bg);
    border-radius: 0 0 15px 15px;
    padding: 1rem;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .dropdown-submenu > .dropdown-menu {
    position: static;
    margin-left: 1rem;
    border-left: 3px solid rgba(255, 222, 89, 0.5);
    transform: none;
    opacity: 1;
    display: none;
  }

  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* SOCIAL ICONS */
.social-icon {
  transition: all 0.3s ease;
  color: var(--text-color);
}

.social-icon:hover {
  transform: scale(1.3) translateY(-3px);
  color: var(--special-icon-hover-color);
  text-shadow: 0 4px 8px rgba(255, 222, 89, 0.4);
}

/* HERO CAROUSEL */
#heroCarousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  margin-top: 1rem;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: center;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
}

/* CONTAINER - Glass morphism effect */
.container-fluid {
  background: var(--container-bg);
  color: var(--text-color);
  backdrop-filter: blur(8px);
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(36, 16, 68, 0.884);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
  transform: scale(1);
}

/* Footer Styles - More vibrant */
.footer {
  background: var(--footer-bg);
  color: #ffffff;
  position: relative;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--special-link-color);
  text-decoration: none;
  transform: translateX(5px);
}

.footer h4 {
  color: var(--special-link-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #72d1db;
  border-radius: 3px;
}

.footer .footer-item a {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  padding: 0.3rem 0;
}

.footer .footer-btn .btn,
.footer .btn-md-square {
  background: linear-gradient(45deg, #72d1db, #6a11cb);
  color: white;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 12px !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(114, 209, 219, 0.3);
  border: none;
}

.footer .footer-btn .btn:hover,
.footer .btn-md-square:hover {
  background: linear-gradient(45deg, #ffde59, #f093fb);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 222, 89, 0.4);
}

.footer .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
}

.footer .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0.25rem rgba(114, 209, 219, 0.25);
  border-color: #72d1db;
  color: white;
}

.footer .btn-primary {
  background: linear-gradient(45deg, #ffde59, #f093fb);
  border: none;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.footer .btn-primary:hover {
  background: linear-gradient(45deg, #f093fb, #72d1db);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(114, 209, 219, 0.4);
}

/* Copyright section */
.copyright {
  background: var(--copyright-bg);
  color: var(--copyright-text-color);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.copyright a {
  color: #72d1db;
  font-weight: 600;
}

.copyright a:hover {
  color: var(--special-link-color);
  text-decoration: underline;
}

/* Scroll behavior */
html {
  scroll-behavior: smooth;
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.floating-buttons a {
  display: inline-block;
  background-color: #25d366; /* WhatsApp green */
  color: white;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  border-radius: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}
.floating-buttons a.call-btn {
  background-color: #007bff; /* Blue for Call */
}
.floating-buttons a:hover {
  opacity: 0.9;
}

/* Mobile view */
@media (max-width: 768px) {
  .floating-buttons {
    right: 0;
    left: 0;
    bottom: 0;
    flex-direction: row;
    justify-content: space-around;
    background: transparent;
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
  .floating-buttons a {
    flex: 1;
    margin: 0 15px;
    border-radius: 10px;
    font-size: 16px;
  }
}