/* === Base Header === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  font-family: "Mulish", sans-serif;
  z-index: 1000;
}

.logo img {
  height: 45px;
}

/* === Navbar === */
.navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: #d62828;
}

/* === Dropdown Menu === */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 10px !important; 
  border-radius: 10px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* === Dropdown Arrow === */
.dropdown-arrow {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* === Demo Button === */
.demo-btn a {
  background: #d62828;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease;
}

.demo-btn a:hover {
  background: #b61f1f;
}

/* === Mobile Menu === */
.menu-toggle {
  display: none;
  font-size: 26px;
  color: #000;
  cursor: pointer;
}

/* === Mobile View === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .navbar ul.show {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .dropdown-menu.show {
    max-height: 200px; /* enough for single submenu */
    opacity: 1;
  }

  /* Disable hover dropdown for mobile */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .demo-btn {
    display: none;
  }
}



/* === Scroll Animation Base Styles === */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up:nth-child(1) { transition-delay: 0.1s; }
.fade-in-up:nth-child(2) { transition-delay: 0.2s; }
.fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.fade-in-up:nth-child(4) { transition-delay: 0.4s; }

/* Basic Navbar */
/* Basic Navbar */
.navbar {
  padding: 14px 30px;
}

#navList {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

#navList li {
  position: relative;
}

#navList a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

#navList a:hover {
  color: #e40303;
}

/* Mega Dropdown */
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 600px;
  padding: 30px 40px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-menu-services {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 300px;
  padding: 30px 40px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* width: 30%; */
}

.mega-column h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #000;
}

.mega-column a {
  color: #333;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mega-column a:hover {
  color: #ff4b5c;
}

/* Show the mega menu on hover */
.mega-dropdown:hover .mega-menu {
  display: flex;
  visibility: visible;
  opacity: 1;
}

.mega-dropdown:hover .mega-menu-services {
  display: flex;
  visibility: visible;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  #navList {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mega-menu {
    position: relative;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 20px 0;
    flex-direction: column;
    gap: 20px;
    visibility: visible;
    opacity: 1;
    display: none; /* hide until hover */
  }

  .mega-menu-services {
    position: relative;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 20px 0;
    flex-direction: column;
    gap: 20px;
    visibility: visible;
    opacity: 1;
    display: none; /* hide until hover */
  }

  .mega-dropdown:hover .mega-menu {
    display: flex;
  }

  .mega-dropdown:hover .mega-menu-services {
    display: flex;
  }

  .mega-column {
    width: 100%;
  }
}