/* ===== FONTS ===== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Dancing+Script:wght@400..700&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Monoton&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&display=swap');

/* ===== ROOT COLORS & FONT ===== */
:root {
  --primary-font: "Montserrat", sans-serif;
  --logo-font:"Dancing Script", cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--primary-font);
}

/* ===== NAVBAR ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}
nav {
  position: fixed;      /* Fix navbar */
  top: 0;               /* Screen top e thakbe */
  left: 0;
  width: 100%;          /* Full width */
  z-index: 999;         /* Content er upore thakbe */


}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo img {
  height: 32px;
  width: auto;
}

.logo p:nth-of-type(1) {
  color: #ff0000; /* Amar */
  font-size: 30px;
  font-weight: 800;
  font-family: var(--logo-font);
}

.logo p:nth-of-type(2) {
  color: #0000ff; /* Dokan */
  font-size: 20px;
  font-weight: 400;
  font-family: var(--logo-font);
}

/* ===== MENU ===== */
.menu ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.menu ul li a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 5px 5px;
  border-radius: 50%;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

/* ===== HOVER BACKGROUND ===== */
.menu ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  z-index: -1;
}

.menu ul li a:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ===== ICONS ===== */
.menu ul li a img {
  height: 15px;
  width: 15px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu ul li a img.fade {
  opacity: 0;
  transform: scale(0.8);
}

/* ===== TEXT ===== */
.menu ul li a span {
  transition: color 0.25s ease, font-weight 0.25s ease;
}

/* ===== ACTIVE STATE ===== */
.menu ul li a.active {
  background: rgba(0, 0, 0, 0.08);
}

.menu ul li a.active img {
  transform: scale(1.15);
}

.menu ul li a.active span {
  font-weight: 600;
}

/* ===== CLICK PRESS EFFECT ===== */
.menu ul li a:active {
  transform: scale(0.95);
}


/* ===== MEDIA QUERY ===== */
@media (max-width: 768px) {

  /* NAV: one line (logo left, search right) */
  nav {
    flex-direction: row;              /* 🔥 এক লাইনে */
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
  }

  /* LOGO LEFT */
  .logo {
    margin:auto;
  }

  .logo img {
    height: 28px;
  }

  .logo p:nth-of-type(1) {
    font-size: 22px;
  }

  .logo p:nth-of-type(2) {
    font-size: 16px;
  }

  
  /* ===== BOTTOM MENU (unchanged behavior) ===== */
  .menu {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
    padding: 5px 0;
    z-index: 1000;
  }

  .menu ul {
    display: flex;
    justify-content: space-around;
    gap: 0;
    padding: 0 10px;
  }

  .menu ul li a {
    padding: 5px;
    border-radius: 50%;
    flex-direction: column;
    align-items: center;
  }

  .menu ul li a span {
    font-size: 10px;
  }

  .menu ul li a img {
    height: 20px;
    width: 20px;
  }

  /* bottom menu clash fix */
  body {
    padding-bottom: 70px;
  }
}
