/* Global font */
* {
  font-family: 'Exo 2', Arial, sans-serif;
}

body {
  margin: 0;
}

/* Header container */
header {
  width: 100%;
  height: 100px;
  box-sizing: border-box;
  position: fixed;
  z-index: 10;
  transition: background-color 0.5s ease, box-shadow 0.3s ease;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #5f6061;
}

/* Header when scrolled */
header.scrolled {
  background-color: #003f5c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Logo */
.logo {
  width: 150px;
}

.logo img {
  max-width: 100%;
  height: auto;
}

/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 10px;
}

/* Desktop nav container */
.nav-container {
  width: 100%;
}

.bgNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Left and right navs */
.nav-left,
.nav-right {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-left li,
.nav-right li {
  margin: 0 10px;
}

.nav-left a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-left a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Auth buttons */
.nav-btn {
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-btn.login {
  background-color: #00bcd4;
}

.nav-btn.register {
  background-color: #4caf50;
}

.nav-btn.logout {
  background-color: #f44336;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Profile avatar */
.profile-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  transition: transform 0.2s ease;
}

.profile-avatar img:hover {
  transform: scale(1.1);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9;
  display: none;
}

.mobile-overlay.show {
  display: block;
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  background-color: #003f5c;
  z-index: 10;
  transition: right 0.3s ease;
  padding-top: 80px;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0 20px;
}

.mobile-nav ul li {
  margin: 15px 0;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: block;
  padding: 10px;
  border-radius: 5px;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Close button inside mobile nav */
.mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

/* Responsive layout */
@media (max-width: 768px) {
  header {
    height: 100px;
    padding: 0 15px;
  }

  .logo {
    width: 130px;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  .nav-container {
    display: none;
  }
}

/* Hide mobile nav and overlay on desktop */
@media (min-width: 769px) {
  .mobile-nav,
  .mobile-overlay {
    display: none !important;
  }
}