/* =====================================================
   ASSAM EDUX ACADEMY
   PREMIUM HEADER
===================================================== */


/* ================= HEADER ================= */

#header {
  width: 100%;
  position: relative;
  z-index: 9999;
}


.header-container {

  width: 100%;
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px;

  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid #e5e7eb;

  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.06);

  backdrop-filter: blur(14px);
}


/* =====================================================
   BRAND
===================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brandh1 {
  font-size: 30px;
  font-family: serif;
  color: #b700ff;
  font-weight: 900;
  transition: all 0.3s ease;
}

.brandh2 {
  font-size: 12px;
  color: #000;
  font-weight: 700;
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.08);
}


/* =====================================================
   NAVIGATION
===================================================== */

.navbar {

  display: flex;

  align-items: center;

  gap: 4px;
}


.navbar > a:not(.login-btn) {

  position: relative;

  padding: 10px 13px;

  color: #334155;

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  border-radius: 8px;

  transition:
    color 0.25s ease,
    background 0.25s ease;
}


.navbar > a:not(.login-btn):hover {

  color: #2563eb;

  background: #eff6ff;
}


/* ================= NAV UNDERLINE ================= */

.navbar > a:not(.login-btn)::after {

  content: "";

  position: absolute;

  left: 50%;
  bottom: 4px;

  width: 0;
  height: 2px;

  background: #2563eb;

  border-radius: 10px;

  transform: translateX(-50%);

  transition: width 0.25s ease;
}


.navbar > a:not(.login-btn):hover::after {

  width: 20px;
}


/* =====================================================
   PREMIUM LOGIN BUTTON
===================================================== */

.login-btn {

  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  min-width: 92px;

  padding: 10px 18px;

  margin-left: 8px;

  color: #ffffff !important;

  text-decoration: none;

  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.2px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 50px;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #4f46e5
    );

  box-shadow:

    0 6px 18px
    rgba(37, 99, 235, 0.25),

    inset 0 1px 0
    rgba(255, 255, 255, 0.25);

  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


/* =====================================================
   LOGIN SHINE EFFECT
===================================================== */

.login-btn::before {

  content: "";

  position: absolute;

  top: 0;

  left: -120%;

  width: 70%;

  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.28),
      transparent
    );

  transform: skewX(-20deg);

  transition: left 0.6s ease;
}


.login-btn:hover::before {

  left: 130%;
}


/* =====================================================
   LOGIN HOVER
===================================================== */

.login-btn:hover {

  transform: translateY(-2px);

  background:
    linear-gradient(
      135deg,
      #1d4ed8,
      #4338ca
    );

  box-shadow:

    0 10px 28px
    rgba(37, 99, 235, 0.38),

    inset 0 1px 0
    rgba(255, 255, 255, 0.3);
}


.login-btn:active {

  transform: translateY(0);

}


/* =====================================================
   LOGIN ICON
===================================================== */

.login-icon {

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 14px;
}


.login-text {

  position: relative;

  z-index: 2;
}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.menu-toggle {

  display: none;

  width: 42px;
  height: 42px;

  border: 0;

  border-radius: 10px;

  background: #f1f5f9;

  color: #0f172a;

  font-size: 19px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


.menu-toggle:hover {

  background: #e2e8f0;

}


.menu-toggle.active {

  color: #ffffff;

  background: #2563eb;

  transform: rotate(90deg);
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

  .header-container {

    padding-left: 3%;
    padding-right: 3%;
  }


  .navbar > a:not(.login-btn) {

    padding: 9px 9px;

    font-size: 13px;
  }


  .login-btn {

    padding: 9px 15px;

  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 850px) {

  .header-container {

    min-height: 68px;

    padding: 8px 18px;
  }


  
  .brand img {
    width: 42px;
    height: 42px;
  }

  .brandh1 {
    font-size: 21px;
    color: #0078ff;
    font-weight: 700;
  }

  .brandh2 {
    font-size: 11px;
  }



  /* Hide desktop navigation */

  .navbar {

    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 3px;

    padding: 12px 15px 16px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid #e5e7eb;

    box-shadow:
      0 12px 30px
      rgba(15, 23, 42, 0.10);

    backdrop-filter: blur(16px);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-10px);

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }


  /* Open mobile menu */

  .navbar.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

  }


  /* Mobile nav links */

  .navbar > a:not(.login-btn) {

    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    border-radius: 9px;

    font-size: 14px;

  }


  .navbar > a:not(.login-btn)::after {

    display: none;

  }


  .navbar > a:not(.login-btn):hover {

    background: #eff6ff;

  }


  /* Mobile Login */

  .login-btn {

    width: 100%;

    min-height: 46px;

    box-sizing: border-box;

    margin: 7px 0 0;

    border-radius: 11px;

    font-size: 14px;

  }


  /* Show hamburger */

  .menu-toggle {

    display: flex;

    align-items: center;

    justify-content: center;

  }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

  .header-container {

    padding: 8px 13px;

  }


   .brandh1 {
    font-size: 25px;
  }

  .brandh2 {
    font-size: 13px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }


  .menu-toggle {

    width: 40px;
    height: 40px;

  }

}