/* ========================================
   ULTRA-MODERN HEADER & FOOTER
   ======================================== */

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  padding: 10px 0;
  font-size: 0.875rem;
  color: white;
}

.top-bar-left a,
.top-bar-right a {
  color: white;
  margin-right: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.top-bar-left a:hover {
  color: var(--accent-gold);
}

.top-bar-left i {
  margin-right: 6px;
}

.top-bar-right {
  text-align: right;
}

.top-bar-right a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-left: 8px;
  margin-right: 0;
}

.top-bar-right a:hover {
  background: var(--accent-gold);
  color: var(--charcoal-black);
  transform: translateY(-3px);
}

.top-bar-right .theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.top-bar-right .theme-toggle:hover {
  background: var(--accent-gold);
  color: var(--charcoal-black);
  transform: translateY(-3px);
}

/* Modern Header */
.modern-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: none;
}

.night-mode .modern-header {
  background: rgba(44, 62, 80, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.modern-header .navbar {
  padding: 15px 0;
}

.modern-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.modern-header .logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.modern-header .navbar-brand:hover .logo-img {
  transform: scale(1.1) rotate(5deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  letter-spacing: 1px;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.night-mode .brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
.modern-header .navbar-nav {
  gap: 5px;
}

.modern-header .nav-link {
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 10px 18px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.95rem;
}

.night-mode .modern-header .nav-link {
  color: white !important;
}

.modern-header .nav-link:hover,
.modern-header .nav-item.active .nav-link {
  color: var(--primary-blue) !important;
  background: var(--light-blue);
}

.modern-header .dropdown-item.active {
  color: var(--primary-blue) !important;
  background: var(--light-blue);
}

.night-mode .modern-header .dropdown-item.active {
  background: rgba(153, 202, 252, 0.15);
}

.night-mode .modern-header .nav-link:hover,
.night-mode .modern-header .nav-item.active .nav-link {
  background: rgba(153, 202, 252, 0.15);
}

.modern-header .btn-contact {
  background: var(--accent-gold) !important;
  color: var(--charcoal-black) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.modern-header .btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: #FFC700 !important;
}

.modern-header .btn-contact-active {
  background: var(--primary-blue) !important;
  color: var(--charcoal-black) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(73, 110, 255, 0.4);
}

.modern-header .btn-contact-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: #FFC700 !important;
}


/* Dropdown Menu */
.modern-header .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 12px;
  margin-top: 10px;
  min-width: 240px;
}

.night-mode .modern-header .dropdown-menu {
  background: var(--charcoal-black);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modern-header .dropdown-item {
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-weight: 500;
}

.night-mode .modern-header .dropdown-item {
  color: white;
}

.modern-header .dropdown-item i {
  margin-right: 10px;
  color: var(--primary-blue);
  width: 20px;
}

.modern-header .dropdown-item:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
  transform: translateX(5px);
}

.night-mode .modern-header .dropdown-item:hover {
  background: rgba(65, 143, 222, 0.15);
}

/* Mega Menu */
.modern-header .mega-menu {
  min-width: 600px;
  padding: 20px;
}

.modern-header .mega-menu h6 {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-left: 16px;
}

.night-mode .modern-header .mega-menu h6 {
  color: var(--accent-gold);
}

/* Mobile Toggle */
.modern-header .navbar-toggler {
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
}

.modern-header .navbar-toggler span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  margin: 5px auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.night-mode .modern-header .navbar-toggler span {
  background: white;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(65, 143, 222, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  display: none;
}

.back-to-top:hover {
  background: var(--accent-gold);
  color: var(--charcoal-black);
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

/* Modern Footer */
.modern-footer {
  background: var(--charcoal-black);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--charcoal-black);
  clip-path: ellipse(100% 100% at 50% 100%);
}

.footer-logo {
  width: 60px;
  margin-bottom: 20px;
}

.footer-about h5 {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-about p {
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(65, 143, 222, 0.1);
  border: 2px solid rgba(65, 143, 222, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: white;
  transform: translateY(-5px);
}

.footer-links h6,
.footer-contact h6 {
  color: white;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-links h6::after,
.footer-contact h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary-blue);
  transform: translateX(5px);
}

.footer-contact li {
  display: flex;
  align-items: start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--primary-blue);
  margin-top: 3px;
  font-size: 16px;
}

.footer-bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-left: 20px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 991px) {
  .top-bar-left,
  .top-bar-right {
    text-align: center;
    margin-bottom: 10px;
  }
  
  .modern-header .navbar-nav {
    padding: 20px 0;
  }
  
  .modern-header .nav-link {
    padding: 12px 20px !important;
  }
  
  .modern-header .mega-menu {
    min-width: 100%;
  }
  
  .footer-about,
  .footer-links,
  .footer-contact {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-links h6::after,
  .footer-contact h6::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom {
    text-align: center;
  }
  
  .footer-bottom a {
    display: block;
    margin: 10px 0;
  }
}

