@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

.noto-serif-font {
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
/* ========================== */
/* navbar  */
.nav-link {
  position: relative;
  text-decoration: none;
  color: #E4962B;
  transition: color 0.3s ease;
}

/* Underline element */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0%;
  /* start at center */
  /* transform: translateX(-50%); */
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #ffffff, #ffff51);

  transition: width 0.3s ease;
}

/* Hover effects */
.nav-link:hover {
  color: #ffffff;
  /* hover text color  #c46f55*/
}

.nav-link:hover::after {
  width: 100%;
}

/* why */
@keyframes slowMove {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-10px);
  }

  100% {
    transform: translateX(0);
  }
}

.animate-slowMove {
  animation: slowMove 4s ease-in-out infinite;
}

/* nav btn */
@keyframes rc-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.rc-animate-spin-paused {
  animation: rc-spin 5s linear infinite;
  animation-play-state: paused;
}

.group:hover .rc-animate-spin-running {
  animation: rc-spin 5s linear infinite;
  animation-play-state: running;
}

/* why  */
.spinner {
  width: 100px;
  height: 100px;
  /* background: royalblue; */
  margin: 100px auto;
  border-radius: 8px;

  /* Animation */
  animation: spin 20s linear infinite;
  transform-origin: center center;
  /* ensures it rotates around its center */
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* about and product description */
/* Float fix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Logo smooth transition on scroll */
#navbarlogo {
  /* transition: width 0.4s ease, height 0.4s ease; */
  transition: all 0.4s ease;
}

/* ==========================
   🌈 Utility Fixes
========================== */
#navbar.fixed {
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(8px);
}

#mobileMenu a {
  transition: color 0.2s ease;
}

#mobileMenu a:hover {
  color: #003366;
}

/* Improve dropdown hover */
nav ul li ul {
  transition: all 0.25s ease-in-out;
}

/* Prevent flicker when dropdown opens */
nav ul li:hover>ul {
  visibility: visible;
  opacity: 1;
}

/* Mobile Dropdown subtle spacing */
#mobileDropdown li a {
  display: block;
  padding: 6px 0;
  transition: all 0.2s ease;
}

#mobileDropdown li a:hover {
  color: #0056A1;
  transform: translateX(4px);
}

/* ==========================
   💎 Optional Style Polish
========================== */
button,
a {
  cursor: pointer;
}

.fixed+* {
  margin-top: 90px;
}

/* footer */
/* WebKit browsers (Chrome, Safari, Edge) */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: #eab055;
  /* brown */
  border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

/* Firefox */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: #eab055 transparent;
}

/* Bounce animations */
@keyframes bounce1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(30px); }
}

@keyframes bounce2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes bounce3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(30px); }
}

@keyframes bounce4 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

/* Bounce classes */
.bounce1 { animation: bounce1 1.2s ease-in-out infinite; }
.bounce2 { animation: bounce2 1.2s ease-in-out infinite; }
.bounce3 { animation: bounce3 1.2s ease-in-out infinite; }
.bounce4 { animation: bounce4 1.2s ease-in-out infinite; }

/* Pause animation on hover */
.bounce1:hover,
.bounce2:hover,
.bounce3:hover,
.bounce4:hover {
    animation-play-state: paused;
}

/* Disable bounce animation on mobile */
@media (max-width: 768px) {
    .bounce1,
    .bounce2,
    .bounce3,
    .bounce4 {
        animation: none !important;
        transform: none !important;
    }
}
