/* =========================================================
   HEADER
   Rafiul Islam Portfolio
   Mobile First
========================================================= */

/* =========================================================
   GLOBAL HEADER
========================================================= */

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  font-family: "Manrope", sans-serif;
  background-color: #ffffff;
  color: #111111;
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
  width: 100%;
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
}

.topbarCenter {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbarContact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
}

/* =========================================================
   TOPBAR LINK
========================================================= */

.topbarLink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #555555;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 0.25s ease;
}

.topbarLink:hover {
  color: #111111;
}

/* =========================================================
   TOPBAR ICON
========================================================= */

.topbarIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.topbarIcon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   TOPBAR TEXT
========================================================= */

.topbarText {
  white-space: nowrap;
}

/* =========================================================
   PRIMARY NAVBAR
========================================================= */

.primarynavbar {
  position: relative;
  z-index: 1000;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.navcenter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   BRAND
========================================================= */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 9px;

  color: #111111;

  text-decoration: none;

  flex-shrink: 0;
}

/* =========================================================
   BRAND IMAGE
========================================================= */

.brandImg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
}

.brandImg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================================================
   BRAND TEXT
========================================================= */

.brandTxt {
  font-family: "DM Serif Display", serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

/* =========================================================
   NAVIGATION
========================================================= */

.menuitems {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================================================
   MENU ITEM
========================================================= */

.menuItem {
  margin: 0;
  padding: 0;
}

/* =========================================================
   MENU LINK
========================================================= */

.menuLink {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 8px 0;

  color: #555555;

  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.3px;

  text-decoration: none;

  transition: color 0.25s ease;
}

/* =========================================================
   MENU LINK UNDERLINE
========================================================= */

.menuLink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;

  width: 100%;
  height: 1px;

  background-color: #111111;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 0.25s ease;
}

.menuLink:hover {
  color: #111111;
}

.menuLink:hover::after,
.menuLink.active::after {
  transform: scaleX(1);

  transform-origin: left;
}

.menuLink.active {
  color: #111111;
}

/* =========================================================
   HAMBURGER
========================================================= */

.hamburger {
  display: flex;

  flex-direction: column;
  align-items: flex-end;
  justify-content: center;

  gap: 5px;

  width: 40px;
  height: 40px;

  margin: 0;
  padding: 8px;

  border: 0;

  background: transparent;

  cursor: pointer;
}

/* =========================================================
   HAMBURGER LINES
========================================================= */

.hamburger span {
  display: block;

  height: 1px;

  background-color: #111111;

  transition:
    width 0.3s ease,
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger1 {
  width: 20px;
}

.hamburger2 {
  width: 14px;
}

.hamburger3 {
  width: 20px;
}

/* =========================================================
   HAMBURGER HOVER
========================================================= */

.hamburger:hover .hamburger2 {
  width: 20px;
}

/* =========================================================
   HAMBURGER CLOSE
========================================================= */

.hamburgerclose .hamburger1 {
  width: 20px;

  transform: translateY(6px) rotate(45deg);
}

.hamburgerclose .hamburger2 {
  width: 20px;

  opacity: 0;
}

.hamburgerclose .hamburger3 {
  width: 20px;

  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 1023px) {
  .menuitems {
    position: absolute;

    top: 100%;
    left: 0;

    display: flex;
    flex-direction: column;

    width: 100%;

    max-height: 0;

    overflow: hidden;

    background-color: #ffffff;

    border-bottom: 0 solid #e5e5e5;

    opacity: 0;
    visibility: hidden;

    transition:
      max-height 0.4s ease,
      opacity 0.3s ease,
      visibility 0.3s ease,
      border-color 0.3s ease;
  }

  /* =====================================================
       OPEN MENU
    ===================================================== */

  .menuitems.openhamburger {
    max-height: 500px;

    border-bottom: 1px solid #e5e5e5;

    opacity: 1;
    visibility: visible;
  }

  /* =====================================================
       MOBILE MENU ITEM
    ===================================================== */

  .menuItem {
    width: 100%;

    border-top: 1px solid #eeeeee;
  }

  /* =====================================================
       MOBILE MENU LINK
    ===================================================== */

  .menuLink {
    display: flex;
    align-items: center;

    width: 100%;

    min-height: 58px;

    padding: 0 20px;

    font-size: 13px;

    color: #111111;
  }

  .menuLink::after {
    display: none;
  }

  .menuLink:hover {
    background-color: #f7f7f7;
  }

  .menuLink.active {
    font-weight: 700;
  }

  /* =====================================================
       BODY WHEN MENU OPEN
    ===================================================== */

  body.menuOpen {
    overflow: hidden;
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) {
  .topbarCenter {
    padding: 0 40px;
  }

  .navcenter {
    min-height: 76px;

    padding: 0 40px;
  }

  .brandImg {
    width: 38px;
    height: 38px;
  }

  .brandTxt {
    font-size: 23px;
  }

  .topbarContact {
    min-height: 38px;
  }

  .topbarLink {
    font-size: 11px;
  }

  .menuLink {
    font-size: 12px;
  }
}

/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1024px) {
  /* =====================================================
       TOPBAR
    ===================================================== */

  .topbarCenter {
    padding: 0;
  }

  .topbarContact {
    justify-content: flex-end;
    gap: 30px;
    min-height: 38px;
  }

  /* =====================================================
       NAVBAR
    ===================================================== */

  .navcenter {
    min-height: 82px;
    padding: 0;
  }

  /* =====================================================
       BRAND
    ===================================================== */

  .brand {
    gap: 10px;
  }

  .brandImg {
    width: 40px;
    height: 40px;
  }

  .brandTxt {
    font-size: 25px;
  }

  /* =====================================================
       DESKTOP MENU
    ===================================================== */

  .menuitems {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
    
  }

  .menuLink {
    min-height: 40px;

    padding: 12px 0;

    font-size: 11px;
  }

  /* =====================================================
       HAMBURGER
    ===================================================== */

  .hamburger {
    display: none;
  }
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {
  .menuitems {
    gap: 34px;
  }

  .menuLink {
    font-size: 16px;
  }
}
