/* Layout Components */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  box-shadow: var(--box-shadow);
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(26, 28, 30, 0.95);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  margin-right: 30px;
}

.logo img {
  max-width: 130px;
  height: auto;
  max-height: 28px;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
}

/* Main Navigation */
.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  position: relative;
  padding: 5px 0;
}

.nav-list a.active,
.nav-list a:hover {
  color: var(--blue-color);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-color), var(--accent-color));
  transition: var(--transition);
}

.nav-list a.active::after,
.nav-list a:hover::after {
  width: 100%;
}

/* Mobile menu button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 20px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--text-color);
  margin: 4px 0;
  transition: var(--transition);
}

/* Mobile menu styles */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Styles for Layout */
@media (max-width: 992px) {
  .nav-list {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }

  .header-container {
    position: relative;
  }

  .header-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    margin-right: 0;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background-color: rgba(26, 28, 30, 0.98);
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
  }

  .main-nav.mobile-open {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .nav-list a {
    font-size: 16px;
    padding: 12px 20px;
    display: block;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
  }
}
