/* Enhanced Modern Header Styles */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(25, 135, 84, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  padding: 0;
  margin: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 80px;
  gap: 120px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.logo-img,
.logo-icon {
  width: 50px;
  height: 50px;
  margin-right: 12px;
  border-radius: 8px;
}

.logo-img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.logo-icon {
  display: grid;
  place-items: center;
  color: #198754;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 76, 50, 0.2);
  font-size: 1.35rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0;
}

.brand-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
   flex: 0 0 auto; /* Don't grow or shrink */
  margin-left: auto; /* Push to the right */
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.dropdown-btn {
  position: relative;
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: #f8f9fa;
  color: #198754;
  text-decoration: none;
  transform: translateX(4px);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
  color: #198754;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: white;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1002;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #198754;
  color: white;
}

.mobile-nav-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.mobile-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.mobile-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-nav-link:hover {
  background: #f8f9fa;
  color: #198754;
  text-decoration: none;
  padding-left: 25px;
}

.mobile-nav-link i {
  width: 20px;
  text-align: center;
  color: #198754;
  font-size: 1.1rem;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.mobile-nav-open {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    height: 70px;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: 0;
  }

  .logo-img,
  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .brand-tagline {
    font-size: 0.7rem;
  }
  .modern-header {
    position: sticky;
    z-index: 1003; 
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
  }

  .mobile-nav {
    width: 280px;
  }

  .logo-text {
    display: none;
  }

  .logo-section {
    flex-shrink: 0;
  }
}

/* Features Section Styles */
.features-section {
  background: #ffffff;
  color: #333;
  padding: 60px 20px;
  text-align: center;
}

.features-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #155724;
  margin-bottom: 3rem;
}

.feature-icon {
  font-size: 3rem;
  color: #ffd700;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #28a745;
  margin-bottom: 10px;
}

.features-section p {
  font-size: 1rem;
  line-height: 1.5;
  color: #666;
}

/* Responsive Design for Features */
@media screen and (max-width: 768px) {
  .features-title {
    font-size: 2rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .features-section p {
    font-size: 0.9rem;
  }

  .reviews-title {
    font-size: 2rem;
  }
}

/* Animation for active states */
@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav.active {
  animation: slideIn 0.3s ease;
}

.mobile-overlay.active {
  animation: fadeIn 0.3s ease;
}
