* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

header {
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #6a5acd;
  text-decoration: none;
}

.logo i {
  font-size: 1.5rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  color: #4a4a68;
  transition: color 0.2s;
  text-decoration: none;
}

nav a:hover {
  color: #6a5acd;
}

.btn-login {
  background: transparent;
  color: #6a5acd !important;
  padding: 10px 20px;
  border: 2px solid #6a5acd;
  border-radius: 10px;
  font-weight: 700;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-login:hover {
  background: #6a5acd;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 900px) {
  header {
    padding: 1.2rem 6%;
  }
  
  nav {
    gap: 1.5rem;
  }
  
  nav a {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem 5%;
  }
  
  nav a:not(.btn-login) {
    display: none;
  }
}

.nav-bar {
  width: 100%;
  background-color: #fff;
  border-bottom: 2px solid #6a5acd;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.nav-bar li {
  margin: 0 15px;
}

.nav-bar a {
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  color: #6a5acd;
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.3s, border-bottom 0.3s;
}

.nav-bar a:hover {
  color: #7b68ee;
  border-bottom: 2px solid #7b68ee;
}