/* =======================
   RESET
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =======================
   HEADER BASE
======================= */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background: linear-gradient(90deg, #0d1b2a, #1b263b, #415a77);
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.main-header a {
  text-decoration: none;
}

/* LEFT SECTION */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 50px;
  transition: height 0.3s ease;
}

.company-title h1 {
  color: #fff;
  font-weight: 300;
  font-size: 1.1rem;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  transition: 0.3s;
}

.main-nav a:hover {
  color: #ffd60a;
  background: rgba(255,214,10,0.1);
}

/* RIGHT SECTION */
.right-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-select,
.login-btn,
.logout-btn,
.theme-toggle {
  background: #1b263b;
  color: #fff;
  border: 1px solid #415a77;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.profile-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd60a;
}

/* =======================
   MOBILE HAMBURGER
======================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =======================
   MOBILE MENU
======================= */
@media (max-width: 920px) {
  .hamburger {
    display: flex;
  }

  .main-nav,
  .right-section {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #1b263b;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }

  .main-nav.active,
  .right-section.active {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   DARK MODE
======================= */
body.dark-mode {
  background: #0d0d0d;
  color: #eee;
}

body.dark-mode .main-header {
  background: linear-gradient(90deg, #111, #222, #333);
}

body.dark-mode .main-nav a,
body.dark-mode .right-section {
  color: #eee;
}

body.dark-mode .profile-img {
  border-color: #ffd60a;
}
