/* ================================
   NAVBAR STYLES
================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 40px;
  background: linear-gradient(135deg, #033843, #065f71);
  color: white;
  flex-wrap: nowrap;
}

#navbar .logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#navbar .logo-group h2 a{
   color: #07ffe6;
  text-decoration: none;

}
#navbar .logo1 {
  font-size: 24px;
  color: #07ffe6;
  font-weight: 500;
  line-height: 1;
}

#navbar .logo1 a {
  color: #07ffe6;
  text-decoration: none;
}

#navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

#navbar .logo a {
  color: #fff;
  text-decoration: none;
}

/* Nav Links */
#navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

#navbar .nav-links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

#navbar .nav-links a:hover {
  color: #07ffe6;
}

#navbar .nav-links a.is-active,
#navbar .nav-links .dropbtn.is-active {
  color: #07ffe6;
  text-decoration: underline;
  text-decoration-color: rgba(7, 255, 230, 0.95);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

/* Dropdown */
header .dropdown {
  position: relative;
}

header .dropbtn {
  cursor: pointer;
}

header .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #044653;
  min-width: 150px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

header .dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
}

header .dropdown-content a:hover {
  background: #065f71;
}

header .dropdown:hover .dropdown-content {
  display: block;
}

/* Button Group */
#navbar .btn-group {
  display: flex;
  gap: 10px;
}

#navbar .btn-group button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

#navbar .btn-group button a {
  text-decoration: none;
  color: inherit;
}

#navbar .btn-group .one a,
#navbar .btn-group .one a:visited,
#navbar .btn-group .one a:hover,
#navbar .btn-group .one a:focus,
#navbar .btn-group .one a:active,
#navbar .btn-group .two a,
#navbar .btn-group .two a:visited,
#navbar .btn-group .two a:hover,
#navbar .btn-group .two a:focus,
#navbar .btn-group .two a:active {
  color: #000 !important;
}

#navbar .btn-group .one {
  background: #07ffe6;
  color: #000;
}

#navbar .btn-group .one:hover {
  background: #00d4c0;
  color: #000;
}

#navbar .btn-group .two {
  background: transparent;
  border: 2px solid #07ffe6;
  color: #000;
}

#navbar .btn-group .two:hover {
  background: #07ffe6;
  color: #000;
}

/* Nav Right */
#navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#navbar .toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 34px;
  line-height: 1;
  color: inherit;
}

#navbar .toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#navbar .hamburger {
  display: none;
  font-size: 0;
  padding: 0;
  color: #fff;
  position: relative;
}

#navbar .hamburger::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  transform: translate(-50%, -50%);
}

#navbar .toggle-btn:focus-visible {
  outline: 2px solid rgba(7, 255, 230, 0.9);
  outline-offset: 3px;
}

/* Mobile Menu */
header .mobile-menu {
  display: none;
  flex-direction: column;
  background: #044653;
  padding: 20px;
  gap: 15px;
}

header .mobile-menu a {
  color: white;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .mobile-menu a.is-active,
header .mobile-menu .dropbtn.is-active {
  color: #07ffe6;
  font-weight: 600;
}

header .mobile-menu button {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

header .mobile-menu button a {
  text-decoration: none;
  color: inherit;
  border: none;
  padding: 0;
}

header .mobile-menu .one a,
header .mobile-menu .one a:visited,
header .mobile-menu .one a:hover,
header .mobile-menu .one a:focus,
header .mobile-menu .one a:active,
header .mobile-menu .two a,
header .mobile-menu .two a:visited,
header .mobile-menu .two a:hover,
header .mobile-menu .two a:focus,
header .mobile-menu .two a:active {
  color: #000 !important;
}

header .mobile-menu .one {
  background: #07ffe6;
  color: #000;
}

header .mobile-menu .one:hover {
  background: #00d4c0;
  color: #000;
}

header .mobile-menu .two {
  background: transparent;
  border: 2px solid #07ffe6;
  color: #000;
}

header .mobile-menu .two:hover {
  background: #07ffe6;
  color: #000;
}

header .mobile-menu.active {
  display: flex;
}

header .mobile-menu .dropdown .dropdown-content {
  position: static;
  display: none;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  border-radius: 6px;
}

header .mobile-menu .dropdown:hover .dropdown-content {
  display: none;
}

header .mobile-menu .dropdown.open .dropdown-content {
  display: block;
}

/* ================================
   RESPONSIVE STYLES
================================ */

/* Desktop: >= 1280px - Full navbar visible */
@media (min-width: 1280px) {
  #navbar .nav-links {
    display: flex !important;
  }
  
  #navbar .hamburger {
    display: none !important;
  }
  
  header .mobile-menu {
    display: none !important;
  }
}

/* Tablet & Mobile: < 1280px - Hamburger visible */
@media (max-width: 1279px) {
  #navbar .nav-links {
    display: none !important;
  }
  
  #navbar .hamburger {
    display: block !important;
  }
}

/* Tablet adjustments: 768px - 1279px */
@media (min-width: 768px) and (max-width: 1279px) {
  #navbar {
    height: 65px;
    padding: 0 30px;
  }
  
  #navbar .logo,
  #navbar .logo1 {
    font-size: 22px;
  }
  
  header .mobile-menu {
    padding: 25px 30px;
  }
  
  header .mobile-menu a {
    font-size: 16px;
    padding: 12px 0;
  }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
  #navbar {
    height: 60px;
    padding: 0 20px;
  }
  
  #navbar .logo,
  #navbar .logo1 {
    font-size: 20px;
  }
  
  header .mobile-menu {
    padding: 20px;
  }
  
  header .mobile-menu a {
    font-size: 15px;
  }
}

/* Small Mobile: < 480px */
@media (max-width: 479px) {
  #navbar {
    height: 55px;
    padding: 0 15px;
  }
  
  #navbar .logo,
  #navbar .logo1 {
    font-size: 18px;
  }
  
  #navbar .toggle-btn {
    padding: 6px 10px;
    font-size: 16px;
  }
  
  header .mobile-menu {
    padding: 15px;
    gap: 10px;
  }
  
  header .mobile-menu a {
    font-size: 14px;
    padding: 10px 0;
  }
  
  header .mobile-menu button {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* ================================
   DARK MODE STYLES
================================ */

.dark-mode #navbar {
  background: linear-gradient(135deg, #022830, #044653);
}

.dark-mode header .mobile-menu {
  background: #022830;
}

.dark-mode header .dropdown-content {
  background: #022830;
}

/* ================================
   RTL STYLES
================================ */

.rtl #navbar {
  direction: rtl;
}

.rtl #navbar .nav-links {
  flex-direction: row-reverse;
}

.rtl header .dropdown-content {
  left: auto;
  right: 0;
}

.rtl #navbar .logo-group {
  flex-direction: row-reverse;
}
