/* Base Navigation layout */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--accentColor);
  padding: 1rem 4rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Logo */
.navigation .logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Navigation links */
.navigation ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.navigation ul li a {
  text-decoration: none;
  color: var(--primaryColor);
  font-weight: 500;
  transition: color 0.3s ease;
}

.navigation ul li a:hover {
  color: var(--secondaryColor);
}

/* Behance icon (right side) */
.navigation > a img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  background-color: var(--accentColor);
  padding: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.navigation > a img:hover {
  transform: scale(1.1);
  background-color: var(--secondaryColor);
}













/* ----------------------------------------------------------------- */
/* Responsive CSS for tablet & mobile */
/* ------------------------------------------------------------------ */

/* Tablet:------------------------------------*/
@media (max-width: 1024px) {
  .navigation {
    padding: 1rem 2rem;
  }

  .navigation ul {
    gap: 1.5rem;
  }

  .navigation .logo img {
    height: 45px;
  }
}

/* HIde hamburger for default */
.menuWrap {
  display: none;
}



/* mobile---------------------------------------*/

@media (max-width: 768px) {

  /* hiding links */
  .navigation ul {
    display: none;
  }

  /* Adjust spacing */
  .navigation {
    padding: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
  }

  /* behance bit small*/
  .navigation > a img {
    height: 30px;
    width: 30px;
  }
  /* hiding the toggle checkbox */
  .toggle {
    display: none;
}

  /* Show hamburger menu */
  .menuWrap {
    display: block;
    position: relative;
    z-index: 20;
  }

  /* --- Hamburger Icon --- */
  .menuWrap .hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:1000;
  }

  .menuWrap .hamburger div,
  .menuWrap .hamburger div::before,
  .menuWrap .hamburger div::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primaryColor);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .menuWrap .hamburger div::before {
    top: -7px;
  }

  .menuWrap .hamburger div::after {
    top: 7px;
  }

  /* --- (turns into X) --- */
  #menuToggle:checked + .hamburger div {
    transform: rotate(45deg);
  }
  #menuToggle:checked + .hamburger div::before {
    transform: rotate(90deg);
    top: 0;
  }
  #menuToggle:checked + .hamburger div::after {
    opacity: 0;
  }

  /* --- Overlay Menu --- */
  .menuWrap .menu {
  position: fixed;
  inset: 0;
  background-color: var(--secondaryColor);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0);
  opacity: 0;
  pointer-events: none; 
  transition: all 0.4s ease;
  z-index: 999;
}


  
  }

  #menuToggle:checked ~ .menu {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}


  .menuWrap .menu ul {
    display: block !important;
    list-style: none;
    text-align: center;
    padding: 0;
  }

  .menuWrap .menu ul li {
    margin: 1.5rem 0;
  }

.menuWrap .menu ul li a {
  color: var(--primaryColor) !important; 
  font-size: 2rem !important;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  
}

.menuWrap .menu ul li a:hover {
  transform: matrix(1,3);
  color: var(--accentColor); 
  transform: scale(1.03);
}



