/* Modern Header Styles */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background-color: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#header.scrolled {
  padding: 0.8rem 0;
  background-color: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* Logo */
#header .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#header .logo span {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

#header .logo:hover {
  transform: translateY(-2px);
}

#header .logo:hover span {
  color: #66d9ff;
}

/* Navigation */
#header .main-nav {
  display: flex;
  align-items: center;
  margin-right: auto;
}

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

#header .nav-list li {
  position: relative;
}

#header .nav-link {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Remove the underline effect by commenting out or removing the ::after pseudo-element */
/* 
#header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
*/

#header .nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

#header .nav-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* Remove the underline animation on hover */
/*
#header .nav-link:hover::after,
#header .nav-link.active::after {
  width: 100%;
}
*/

/* Language Selector in Header */
#header .lang-selector {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0;
  gap: 0.5rem;
  padding-left: 2rem;
}

#header .lang-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

#header .lang-link:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -4px;
  opacity: 0.3;
  color: var(--text-secondary);
}

#header .lang-link:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

#header .lang-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* Contact Link - Styled like regular nav links */
#header .contact-link {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Remove the underline effect */
/*
#header .contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
*/

#header .contact-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

#header .contact-link.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* Remove the underline animation on hover */
/*
#header .contact-link:hover::after,
#header .contact-link.active::after {
  width: 100%;
}
*/

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 10;
}

.mobile-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  left: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-toggle .bar:nth-child(1) {
  top: 0;
}

.mobile-toggle .bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-toggle .bar:nth-child(3) {
  bottom: 0;
}

/* Active Toggle State */
.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 991px) {
  #header .container {
    padding: 0 1.5rem;
  }
  
  #header .nav-list {
    gap: 1.5rem;
  }
  
  #header .lang-selector {
    margin-right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block !important;
  }

  #header .main-nav {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background-color: var(--bg-dark) !important;
    padding: 6rem 2rem 2rem !important;
    transform: translateX(100%) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15) !important;
    overflow-y: auto !important;
    z-index: 5 !important;
    align-items: flex-start !important;
    margin-right: 0 !important;
  }
  
  #header .main-nav.active {
    transform: translateX(0) !important;
  }
  
  #header .nav-list {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    align-items: flex-start !important;
  }
  
  #header .nav-list li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
    text-align: left !important;
    float: none !important;
  }
  
  #header .nav-link {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0 !important;
    font-size: 1.1rem !important;
    text-align: left !important;
    white-space: normal !important;
  }
  
  #header .lang-selector {
    position: absolute !important;
    top: 1.5rem !important;
    right: 3rem !important;
    margin: 0 !important;
    padding-left: 0 !important;
    gap: 0.2rem !important;
    z-index: 11 !important;
  }
  
  #header .lang-link {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.85rem !important;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
    animation: fadeIn 0.3s ease-in-out forwards;
    backdrop-filter: blur(2px);
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
} 