/* ===========================
   RESET & VARIABLES
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;  
}

:root {
  --blue-primary: #163C85;
  --yellow-accent: #f1c227;
  --gray-text: #333;
  --gray-light: #777;
  --light-gray: #f8f9fc;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ===========================
   HEADER WRAPPER
=========================== */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10%;
  /* padding: 20px 150px 10px 150px; */
  background: var(--light-gray);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

@media (max-width: 1440px) {
  .head{
    padding: 18px 8%;
  }
}

/* subtle color change on scroll */
.head.scrolled {
  background: #f9fbff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* ===========================
   LOGO
=========================== */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}


/* ===========================
   NAVIGATION
=========================== */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--gray-text);
  font-weight: 600;
  position: relative;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--blue-primary);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--yellow-accent);
  transition: width var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

/* ===========================
   SIGN UP / LOGIN BUTTON
=========================== */
.sign-up {
  background: var(--blue-primary);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 8px;
  border: 2px solid var(--blue-primary);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.sign-up:hover {
  background: none;
  color: var(--blue-primary);
}

/* ===========================
   HEADER ACTIONS (RIGHT SIDE)
=========================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ===========================
   NOTIFICATIONS
=========================== */
.notification {
  position: relative;
}

.notification-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--blue-primary);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  padding: 5px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  color: var(--blue-primary);
  transform: scale(1.1);
}

.notification-btn .fa-bell {
  font-size: 22px;
}

.notification-btn .count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--yellow-accent);
  color: #163C85;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.notif-dropdown {
  position: absolute;
  top: 115%;
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  width: 320px;
  overflow: hidden;
  animation: fadeIn 0.25s ease;
  z-index: 999;
}

.notif-dropdown[hidden] {
  display: none;
}

.notif-header {
  padding: 12px 16px;
  background: #f7f9fc;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.notif-header strong {
  color: var(--gray-text);
}

.mark-all {
  background: none;
  border: none;
  color: var(--blue-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
  padding: 0;
}

.mark-all:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.notif-list {
  max-height: 350px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-list::-webkit-scrollbar {
  width: 6px;
}

.notif-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.notif-list::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.notif-list li {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: var(--gray-text);
  transition: background var(--transition);
  cursor: pointer;
}

.notif-list li:hover {
  background: #f7faff;
}

.notif-list li:last-child {
  border-bottom: none;
}

.notif-list li.unread {
  background: #eef4ff;
  font-weight: 600;
  border-left: 4px solid var(--blue-primary);
  padding-left: 12px;
}

.notif-list li.unread:hover {
  background: #d9ebff;
}

.notif-list li.empty {
  text-align: center;
  color: var(--gray-light);
  padding: 24px 16px;
  cursor: default;
}

.notif-list li.empty:hover {
  background: transparent;
}

.notif-message {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.notif-time {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 4px;
  font-weight: 400;
}

.notif-footer {
  padding: 10px 16px;
  background: #f7f9fc;
  font-weight: 500;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #eee;
}

.notif-footer .view-all {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

.notif-footer .view-all:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* ===========================
   ACCOUNT DROPDOWN
=========================== */
.account-dropdown {
  position: relative;
}

.account-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--blue-primary);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  padding: 5px;
}

.account-btn:hover {
  color: var(--blue-primary);
  transform: scale(1.1);
}

.dropdown-menu {
  position: absolute;
  top: 115%;
  right: 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  animation: fadeIn 0.25s ease;
  z-index: 999;
}

.dropdown-menu[hidden] {
  display: none;
}

.dropdown-menu a,
.dropdown-menu button {
  background: none;
  border: none;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--gray-text);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: #f5f7ff;
  color: var(--blue-primary);
}

/* ===========================
   HAMBURGER MENU
=========================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
.desktop-sign { display: inline-block; }
.mobile-sign { display: none; }

@media (max-width: 991px) {

    .sign-up{
    background-color: white;
  }

  .menu-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 70px;
    right: 6%;
    background: linear-gradient(135deg, #f8fbff, #eaf0ff);
    border: 1px solid #ddd;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 300px;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    border-radius: 10px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
  }

  .nav.active {
    transform: scaleY(1);
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    width: 100%;
  }

  .desktop-sign { display: none; }
  .mobile-sign { display: block; }

  .header-actions {
    gap: 12px;
  }

  .notification-btn,
  .account-btn {
    font-size: 20px;
  }

  .notif-dropdown {
    width: 90vw;
    max-width: 300px;
    right: -30px;
  }

  .account-dropdown {
    margin-left: 0;
    justify-content: center;
  }

  .dropdown-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .notif-dropdown {
    width: 90vw;
    max-width: 280px;
    right: -50px;
  }

  .notification-btn .fa-bell {
    font-size: 20px;
  }

  .notification-btn .count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
  }
}

@media (max-width: 375px) {
  .head {
    padding: 10px 5%;
  }

  .logo img {
    max-height: 40px;
  }

  .header-actions {
    gap: 8px;
  }
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-5px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}