/* ===========================
   ✅ GLOBAL MEGA MENU STYLES
============================= */
.mega-column .main-menu-title {
  font-size: 28px !important;
}
.patterned-bg {
  position: relative;
  background-color: #fff;
  z-index: 1;
  overflow: hidden;
}

.patterned-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/pattern-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.navbar {
  position: relative;
  z-index: 1000;
}

.mega-dropdown {
  position: static;
}

/* ✅ Fixed height and scroll behavior globally */
.mega-menu-full {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  width: calc(100% - 12px);
  margin: 0 auto;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  border-top: #ff0163 solid 1px;
  color: #111;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mega-menu-full.active {
  opacity: 1;
  visibility: visible;
}

/* ✅ Always enforce height and scroll inside menu */
.navbar:hover .mega-menu-full,
.mega-dropdown:hover .mega-menu-full {
  max-height: 90vh;
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
}

/* ✅ Scroll container inside */
.mega-menu-scroll {
  max-height: calc(90vh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
}

.mega-menu-full::-webkit-scrollbar {
  width: 6px;
}
.mega-menu-full::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.mega-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.mega-column h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.mega-column a {
  color: #111 !important;
  display: block !important;
  font-size: 14px;
  padding: 6px !important;
  text-decoration: none;
}

.sec-2-menu {
  padding: 40px 40px 0 40px;
}

.subtext {
  font-size: 14px;
  color: #555 !important;
  margin-bottom: 12px;
}

.mega-column a:hover,
.subtext:hover {
  color: #e0243b !important;
  text-decoration: none;
}

.gray-bg .article {
  margin: 0 30px;
}

.mega-dropdown-mobile {
  display: none;
}

/* ===========================
   ✅ MOBILE RESPONSIVE STYLES
============================= */
@media (max-width: 1536px) {
  .mega-menu-full {
    max-height: 85vh;
    padding: 15px 10px;
  }

  .mega-menu-scroll {
    max-height: calc(85vh - 30px);
  }

  .sec-2-menu {
    padding: 20px 15px 0 15px;
  }

  .mega-column h3,
  .mega-column h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .mega-column.mb-3 {
    margin-bottom: 12px;
  }
}

@media (max-width: 1111px) {
  .mega-column .main-menu-title {
    font-size: 18px !important;
  }
  .mega-menu-full {
    max-height: 85vh;
    padding: 15px 10px;
  }

  .mega-menu-scroll {
    max-height: calc(85vh - 30px);
  }

  .sec-2-menu {
    padding: 20px 15px 0 15px;
  }

  .mega-column h3,
  .mega-column h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .mega-column a,
  .subtext {
    font-size: 10px !important;
    padding: 1px !important;
    margin-bottom: 5px;
  }

  .mega-column.mb-3 {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .mega-column .main-menu-title {
    font-size: 18px !important;
  }
  .mega-wrapper {
    flex-direction: column;
  }

  .mega-menu-full {
    left: 0;
    width: 100vw;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 15px 10px;
  }

  .gray-bg {
    background: none;
    padding: 0;
  }

  .mega-column {
    min-width: 100%;
  }

  .sec-2-menu {
    padding: 15px 10px 0 10px;
  }

  .mega-column h3,
  .mega-column h4 {
    font-size: 14px;
  }

  .mega-column a,
  .subtext {
    font-size: 12.5px !important;
    padding: 3px !important;
    margin-bottom: 5px;
  }
}

/* .bs-hero-4-area {
  background-color: #f7f7f7;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 100px 100px;
} */

.bs-hero-4-area {
  background-color: #f7fcff;
  background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 100px 100px;
  position: relative;
  overflow: hidden;
  height: 100vh; /* or any section height */
}

/* Animated Dots Layer */
.dots {
  position: absolute;
  width: 300%;
  height: 300%;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.08) 3px,
    transparent 3px
  );
  background-size: 100px 100px;
  animation: moveDots 20s linear infinite;
  opacity: 0.4;
  pointer-events: none;
  top: -100%;
  left: -100%;
  z-index: 1;
}
@keyframes moveDots {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(100px, 100px);
  }
}

/* .gradient-text {
  background: linear-gradient(90deg, #a259ff, #f94892, #ff82d2, #a259ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
} */

.gradient-text {
  background: linear-gradient(90deg, #a259ff, #f94892, #ff82d2, #a259ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.category-card {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
}

.category-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.category-label {
  position: absolute;
  top: 15px;
  left: 15px;
  font-weight: bold;
  color: #fff;
  font-size: 11px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0px 8px;
  border-radius: 6px;
}

/* ✅ Assign custom property for each card */
.category-card:nth-child(0) {
  --shadow-color: #e6e1da;
}
.category-card:nth-child(1) {
  --shadow-color: #ebd0cd;
}
.category-card:nth-child(2) {
  --shadow-color: #dff69b;
}
.category-card:nth-child(3) {
  --shadow-color: #d3d3d3;
}
.category-card:nth-child(4) {
  --shadow-color: #d7baf7;
}
.category-card:nth-child(5) {
  --shadow-color: #000000;
}
.category-card:nth-child(6) {
  --shadow-color: #a8dfe3;
}

.category-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 65px;
  box-shadow: var(--shadow-color) 0px 25px 50px -12px;
}

.preloader {
  width: 150px;
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-part {
  position: absolute;
  opacity: 0;
  transform: scale(0.8);
  animation-fill-mode: forwards;
}

.small-arc {
  width: 100%;
  height: 100%;
  background: url("shape1.png") no-repeat center;
  background-size: contain;
  clip-path: circle(25%);
  animation: fadeIn 0.8s ease forwards;
}

.pink-arc {
  width: 100%;
  height: 100%;
  background: url("shape1.png") no-repeat center;
  background-size: contain;
  clip-path: circle(50%);
  animation: fadeIn 0.8s ease forwards 0.8s;
}

.blue-arc {
  width: 100%;
  height: 100%;
  background: url("shape1.png") no-repeat center;
  background-size: contain;
  clip-path: circle(75%);
  animation: fadeIn 0.8s ease forwards 1.6s;
}

.center-sphere {
  width: 100%;
  height: 100%;
  background: url("shape1.png") no-repeat center;
  background-size: contain;
  clip-path: circle(10%);
  animation: fadeIn 0.8s ease forwards 2.4s;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
