/* HEADER STYLES */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: #007b8f; /* ✅ Updated */
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

header .logo img {
  height: 50px;
}

/* Right side (nav + profile + theme + hamburger) */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  padding: 5px;
  transition: color 0.3s;
}
.nav-links .dropdown-menu li a {
  color: #333;
}
.nav-links .dropdown-menu li a:hover {
  color: #007b8f; /* updated */
}
.nav-links a:hover { color: #ffd699; }

/* Dropdown */
.nav-links li { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  display: none;
  list-style: none;
  min-width: 150px;
  
  border-radius: 6px;
  overflow: hidden;
}

body.dark-mode .dropdown-menu {
  background: #1a1a1a;
}
body.dark-mode   .dropdown-menu li a {
  color: #eee;
}
body.dark-mode .dropdown-menu li:hover {
  background: #333;
}
.dropdown:hover .dropdown-menu { display: block; }

/* Profile + Theme */
#toggle-dark {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
}
#profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #17877c; /* ✅ Teal circle */
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}
.profile-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 150px;
  z-index: 1000;
}
.profile-dropdown li { padding: 8px 16px; }
.profile-dropdown li a { text-decoration: none; color: #333; display: block; }
.profile-dropdown li:hover { background: #f5f5f5; }

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: #007b8f; /* ✅ Updated */
    padding: 15px;
    border-radius: 6px;
    z-index: 2000;
  }

  .nav-links.mobile-active { 
    display: flex;
  }

  .nav-links .dropdown-menu {
    position: static;
    background: #006676; /* ✅ darker teal instead of orange */
    border-radius: 4px;
    margin-top: 5px;
    display: none;
  }
  
  .nav-links .dropdown.open .dropdown-menu { display: block; }
  .nav-links .dropdown-menu li a { color: white; }

  .hamburger { display: block; }
  .dropdown:hover .dropdown-menu { display: block; }
}

/* Hide "All Services" link on desktop */
.nav-links .dropdown-menu .mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .nav-links .dropdown-menu .mobile-only {
    display: block;
  }
}

/* 🌙 Dark Mode */
body.dark-mode header {
  background: #1a1a1a;
  color: #eaeaea;
}
body.dark-mode .nav-links a {
  color: #eaeaea;
}
body.dark-mode .nav-links a:hover {
  color: #66c2cc; /* lighter teal for hover */
}
body.dark-mode #profile-initials {
  background: #66c2cc; /* warm teal */
  color: #000;
}
body.dark-mode .profile-dropdown {
  background: #222;
  border: 1px solid #444;
}
body.dark-mode .profile-dropdown li a {
  color: #eee;
}
body.dark-mode .profile-dropdown li:hover {
  background: #333;
}


/* Profile Container */
.profile-container {
  position: relative; /* ✅ make dropdown position relative */
  display: inline-block;
}

/* Profile initials button */
#profile-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #17877c;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

/* Dropdown */
.profile-dropdown {
  position: absolute;
  top: 100%;   /* ✅ directly below initials */
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
  list-style: none;
  padding: 10px 0;
  margin-top: 8px;  /* spacing */
  min-width: 150px;
  z-index: 1000;
}

.profile-container.open .profile-dropdown {
  display: block; /* show on toggle */
}
