
/* ==========================
   🔥 Global Animations
========================== */
@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes jelly {
  0% {
    transform: scale(1, 1);
  }

  25% {
    transform: scale(1.2, 0.8);
  }

  50% {
    transform: scale(0.9, 1.1);
  }

  75% {
    transform: scale(1.05, 0.95);
  }

  100% {
    transform: scale(1, 1);
  }
}

.group:hover span.ml-4 {
  animation: jelly 0.6s;
}

.animate-moveGradient {
  animation: moveGradient 4s ease infinite;
}

/* navbar  */
.nav-link {
  position: relative;
  text-decoration: none;
  color: #374151;
  transition: color 0.3s ease;
}

/* Underline element */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  /* start at center */
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  /* background-color: #FFEA00;  */
  background: linear-gradient(to right, #D44931, #0056A1);

  transition: width 0.3s ease;
}

/* Hover effects */
.nav-link:hover {
  color: #003366;
  /* hover text color  #c46f55*/
}

.nav-link:hover::after {
  width: 100%;
  /* animate outward */
}


/* why */
@keyframes slowMove {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-10px);
  }

  100% {
    transform: translateX(0);
  }
}

.animate-slowMove {
  animation: slowMove 4s ease-in-out infinite;
}

.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);
  }
}

/* flower  */
.flower {
  width: calc(100% + 140px);
  /* adjust to control the size */
  aspect-ratio: 1;
  --g: /20.56% 20.56% radial-gradient(#000 calc(71% - 1px), #0000 71%) no-repeat;
  mask: 100% 50% var(--g), 93.301% 75% var(--g), 75% 93.301% var(--g), 50% 100% var(--g), 25% 93.301% var(--g), 6.699% 75% var(--g), 0% 50% var(--g), 6.699% 25% var(--g), 25% 6.699% var(--g), 50% 0% var(--g), 75% 6.699% var(--g), 93.301% 25% var(--g), radial-gradient(100% 100%, #000 38.366%, #0000 calc(38.366% + 1px));
}

/*  */
/* Float fix */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/*  ====== STEAM ANIMATION ======  */
@keyframes steamFlow {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, -20px) scale(1.05);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -40px) scale(1.1);
    opacity: 0.2;
  }
}

.animate-steamFlow {
  animation: steamFlow 4s ease-in-out infinite;
}

/* product description */
.expanded-image {
  transition-property: all;
  transition-duration: 12s; /* very slow & smooth */
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  opacity: 0.95;
}

.hover\:expanded-image:hover {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 86% !important;
  border-radius: 0 !important;
  border: none !important;
  transform: none !important;
  z-index: 30 !important;
  opacity: 1 !important;
}


/* ==========================
   💫 Sticky Navbar Animation
========================== */
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-down {
  animation: slideDown 0.4s ease forwards;
  z-index: 999;
}

/* ==========================
   📱 Mobile Menu Animation
========================== */
@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideDown {
  animation: slideDownMenu 0.3s ease forwards;
}

/* ==========================
   📂 Mobile Dropdown Expand Animation
========================== */
@keyframes slideDownMenuDropdown {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
  }
}

.animate-slideDownMenu {
  animation: slideDownMenuDropdown 0.35s ease forwards;
  overflow: hidden;
}

/* ==========================
   🌈 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
========================== */
header {
  font-family: 'Poppins', sans-serif;
}

button,
a {
  cursor: pointer;
}

.fixed+* {
  margin-top: 90px;
}

@keyframes slideDownMenu {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-slideDownMenu {
  animation: slideDownMenu .25s ease-out;
}