/* Header Styles - Mobile Sidebar Navigation Design */

.main-header {
  background: white;
  color: black;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 100%;
  transition: all 0.3s ease;
}

/* Removed scrolled state since header is no longer fixed */

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  width: 100%;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0.75rem;
}

.logo-image {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 6px rgba(255, 0, 0, 0.35));
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
  color: white;
  line-height: 1.2;
}

.logo .tagline {
  font-size: 0.75rem;
  opacity: 0.9;
  font-weight: 300;
  margin-top: -2px;
  color: black;
  line-height: 1.2;
}

.main-nav {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  overflow-y: auto;
  /* Ensure navigation is fully interactive */
  pointer-events: auto;
}

.main-nav.active {
  left: 0;
  display: block;
}

/* Mobile Sidebar Header */
.mobile-nav-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2001;
}

.mobile-nav-logo {
  color: black;
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2002;
}

.mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-close:active {
  transform: scale(0.95);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  flex-direction: column;
  position: relative;
  z-index: 2001;
}

.nav-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list li:last-child {
  border-bottom: none;
}

.nav-link {
  color: grey;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 1.2rem 1.5rem;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  cursor: pointer;
  /* Ensure links are clickable */
  position: relative;
  z-index: 2003;
}

.nav-link:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(5px);
}

.nav-link:active {
  transform: scale(0.98);
}

/* Mobile Contact Section */
.mobile-contact {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  position: relative;
  z-index: 2001;
}

.mobile-contact h3 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-contact-icons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 2002;
}

.mobile-contact-icon:hover {
  background: rgba(59, 130, 246, 0.4);
  transform: scale(1.1);
}

.mobile-contact-icon:active {
  transform: scale(0.95);
}

.mobile-contact-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.mobile-contact-icon:hover .mobile-contact-img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1500;
  cursor: pointer;
  /* Ensure overlay doesn't interfere with navigation */
  pointer-events: none;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  /* Keep overlay non-interfering even when active */
  pointer-events: none;
}

/* Tablet Design */
@media (min-width: 768px) {
  .header-container {
    padding: 0 2rem;
    min-height: 80px;
  }

  .logo-image {
    width: 50px;
    height: 50px;
  }

  .logo h1 {
    font-size: 1.8rem;
    letter-spacing: 0.8px;
  }

  .logo .tagline {
    font-size: 0.85rem;
    margin-top: -3px;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    left: auto;
    overflow: visible;
    z-index: auto;
  }

  .mobile-nav-header,
  .mobile-contact {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-list li {
    border-bottom: none;
  }

  .nav-link {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-align: center;
    font-size: 1rem;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* Desktop Design */
@media (min-width: 1024px) {
  .header-container {
    padding: 0 2.5rem;
    min-height: 85px;
  }

  .logo-image {
    width: 55px;
    height: 55px;
  }

  .logo h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  .logo .tagline {
    font-size: 1rem;
    margin-top: -3px;
  }

  .nav-list {
    gap: 2.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Large Desktop Design */
@media (min-width: 1400px) {
  .header-container {
    padding: 0 3rem;
    min-height: 90px;
  }

  .logo-image {
    width: 60px;
    height: 60px;
  }

  .logo h1 {
    font-size: 2.5rem;
  }

  .logo .tagline {
    font-size: 1.1rem;
  }

  .nav-list {
    gap: 3rem;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem 2rem;
  }
}

/* Mobile Interactions */
@media (max-width: 767px) {
  .nav-link {
    min-height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
  }

  body.nav-open {
    overflow: hidden;
  }

  .mobile-nav-close,
  .mobile-contact-icon {
    min-height: 44px;
    min-width: 44px;
  }
}
