@charset "UTF-8";

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border-gold);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.8rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; 
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-text {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.3px;
  background: linear-gradient(120deg, var(--color-text-light), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 4px;
  letter-spacing: 0.3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-link i {
  margin-right: 6px;
  font-size: 0.85rem;
  color: var(--color-accent-gold);
}

.nav-link:hover {
  color: var(--color-text-white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-end));
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-header {
  background: linear-gradient(105deg, var(--color-secondary), var(--color-secondary-end));
  border: none;
  padding: 0.55rem 1.3rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-bg-page); 
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  flex-shrink: 0;
}

.btn-header i {
  font-size: 0.9rem;
  color: currentColor;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(38, 184, 247, 0.3);
  background: linear-gradient(105deg, var(--color-accent-gold), var(--color-accent-gold-dark));
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border-gold-dim);
  border-radius: 40px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--color-text-gold);
  transition: all 0.2s ease;
  z-index: 1010; 
}

.mobile-toggle:hover {
  background: var(--color-glass-light);
  border-color: var(--color-accent-gold);
}

@media screen and (max-width: 820px) {
  .header-container {
    padding: 0.8rem 1.2rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh; 
    background: var(--color-surface-raised);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 6rem 1.8rem 2rem 1.8rem; 
    gap: 1rem;
    border-radius: 0 24px 24px 0;
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1); 
    box-shadow: var(--shadow-card);
    border-right: 1px solid var(--color-border-subtle);
    z-index: 1005; 
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem;
    display: block;
    padding: 0.6rem 0;
    width: 100%;
    border-bottom: 1px dashed var(--color-border-subtle);
  }
  
  .nav-link::after {
    display: none; 
  }

  .btn-header {
    width: 100%;
    justify-content: center;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-glass-dark);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media screen and (max-width: 820px) {
  .btn-header {
    width: 100%;
    justify-content: center;
    margin-bottom: 2rem;
  }
}

@media screen and (min-width: 821px) {
  .nav-menu {
    display: flex !important;
  }
  
  .btn-header {
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
  }
}

.site-header.scrolled {
  background: var(--color-surface-deep);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border-subtle);
  box-shadow: var(--shadow-card);
}