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

header {
  width: 100%;
  background: #ff9595;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 20px rgba(0, 120, 255, 0.4);
  backdrop-filter: blur(12px);
}


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

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  position: relative;
}


/* ===== 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: 14px;
}

.navbar a {
  text-decoration: none;
  color: #0b87d3;
  font-weight: 600;
  position: relative;
  padding: 6px 4px;
  font-size: 15px;
  transition: all 0.3s ease;
}


/* ===== NAV HOVER ===== */

.navbar a:hover {
  color: #ff0000;
  transform: translateY(-2px);
}


/* ===== HOVER UNDERLINE ===== */

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ff0000;
  border-radius: 5px;
  transition: width 0.3s ease;
}

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


/* ===== HAMBURGER ===== */

.menu-toggle {
  display: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #000;
  background: transparent;
  border: 0;
  padding: 5px;
  margin-left: auto;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}


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

@media (max-width: 900px) {

  .header-container {
    min-height: 65px;
    padding: 8px 12px;
  }


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

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

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

  .brandh2 {
    font-size: 11px;
  }


  /* ===== HAMBURGER SHOW ===== */

  .menu-toggle {
    display: block !important;
  }


  /* ===== NAVBAR HIDDEN ===== */

  .navbar {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    background: #ffffff;

    padding: 10px 20px 20px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

    z-index: 1001;
  }


  /* ===== NAVBAR OPEN ===== */

  .navbar.active {
    display: flex !important;
    animation: slideDown 0.3s ease;
  }


  /* ===== MOBILE NAV LINKS ===== */

  .navbar > a {
    width: 100%;
    padding: 13px 5px;

    border-bottom: 1px solid #eeeeee;

    font-size: 16px;

    transition: all 0.3s ease;
  }


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

  .navbar > a:hover {
    color: #ff0000;
    background: #fff5f5;
    padding-left: 12px;
    transform: none;
  }


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

  .navbar > a::after {
    display: none;
  }


  /* ===== ANIMATION ===== */

  @keyframes slideDown {

    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }

  }

}


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

@media (max-width: 480px) {

  .brandh1 {
    font-size: 25px;
  }

  .brandh2 {
    font-size: 13px;
  }

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

  .menu-toggle {
    font-size: 26px;
  }

}