/* --- Smooth Scroll Recommended CSS --- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  width: 100%;
  padding-top: 80px;
}

body.loaded {
  overflow-y: visible;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

button {
  all: unset;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Animations & Repeatable Reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 900;
  font-size: 24px;
  color: #3d4094;
  letter-spacing: -1px;
}

.logo-img {
  width: 6rem;
  margin-top: 8px;
}

.desktop-menu {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 1200px) {
  .desktop-menu {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #3d4094;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover,
.dropdown-trigger:hover {
  color: #3d4094;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  color: #4b5563;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  white-space: nowrap;
  gap: 4px;
}

.caret-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.dropdown-parent {
  position: relative;
  padding: 10px 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  min-width: 180px;
  z-index: 100;
}

.dropdown-menu.right-align {
  left: auto;
  right: 0;
}

.dropdown-menu.wide {
  width: 288px;
}

.dropdown-menu.medium {
  width: 240px;
}

.dropdown-parent:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-parent:hover .caret-icon {
  transform: rotate(180deg);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #374151;
  margin: 4px;
  border-radius: 8px;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: #eef2ff;
  color: #4f46e5;
}

/* --- Mobile Menu --- */
.mobile-menu-btn-container {
  display: flex;
  align-items: center;
}

.mobile-menu-btn {
  color: #4b5563;
  padding: 8px;
  font-size: 28px;
  display: flex;
  align-items: center;
}

@media (min-width: 1200px) {
  .mobile-menu-btn-container {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  z-index: 999;
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

.mobile-nav-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 100px;
}

.mobile-link {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.mobile-link:hover {
  border-color: #3d4094;
  color: #3d4094;
  transform: translateX(4px);
}

.mobile-dropdown-btn {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  background-color: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
}

.mobile-dropdown-content {
  display: none;
  margin-top: 8px;
  background-color: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
}

.mobile-dropdown-content.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-sub-link {
  display: block;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  border-bottom: 1px solid #e2e8f0;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* --- Grid & Detail View --- */
.pkg-section {
  background: linear-gradient(180deg, #00b0f0 0%, #b1eaff 100%);
  padding: 50px 0;
  min-height: calc(100vh - 80px);
}

.pkg-container {
  text-align: center;
}

.pkg-section h1 {
  color: #ffffff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.search-container {
  margin-bottom: 40px;
  position: relative;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 25px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #3d4094;
  font-size: 1.2rem;
}

.pkg-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

/* --- FIXED BOXES --- */
.pkg-product-card {
  width: calc(50% - 9px);
  background: rgba(247, 241, 241, 0.38);
  border-radius: 15px;
  padding: 20px;
  transition:
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.3s;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

@media (min-width: 992px) {
  .pkg-product-card {
    width: calc(33.333% - 17px);
  }
}

@media (max-width: 480px) {
  .pkg-product-card {
    padding: 12px;
  }
}

.pkg-product-card.active {
  opacity: 1;
  transform: translateY(0);
}

.pkg-product-card:hover {
  transform: translateY(-5px);
  background-color: rgba(247, 241, 241, 0.55);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pkg-product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  background: #fff;
}

@media (min-width: 992px) {
  .pkg-product-image {
    height: 250px;
  }
}

/* --- Red Arrow Icon Logic --- */
.arrow-icon {
  margin-top: 8px;
  font-size: 24px;
  color: #ed3338;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.pkg-product-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

.pkg-product-card h3 {
  font-size: 1rem;
  color: #3d4094;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 768px) {
  .pkg-product-card h3 {
    font-size: 1.2rem;
  }
}

.product-details-section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: 0 auto;
  display: none;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pd-header {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .pd-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
  }
}

.pd-image-container {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: zoom-in;
}

.pd-image {
  width: 100%;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.pd-info {
  flex: 1;
  text-align: left;
}

.pd-title {
  font-family: "Fredoka", sans-serif;
  font-size: 2.5rem;
  color: #3d4094;
  margin-bottom: 20px;
}

.pd-spec-title {
  font-size: 1.5rem;
  color: #1f2937;
  border-bottom: 3px solid #ed3338;
  padding-bottom: 5px;
  font-weight: 700;
  margin-bottom: 15px;
  display: inline-block;
}

.pd-spec-text {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 30px;
}

@keyframes box-morph {
  0% {
    transform: rotate(0deg);
    border-radius: 8px;
  }

  50% {
    transform: rotate(180deg);
    border-radius: 50%;
  }

  100% {
    transform: rotate(360deg);
    border-radius: 8px;
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  transform: translateY(20px);
  transition: transform 0.3s;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

/* --- Footer --- */
.footer-section {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 80px 0 30px 0;
  font-family: "Roboto", sans-serif;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: #ffffff;
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: #ed3338;
  border-radius: 2px;
}

.footer-logo img {
  width: 6rem;
}

.footer-about-text {
  color: #9ca3af;
  line-height: 1.8;
  font-size: 1rem;
  max-width: 300px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #d1d5db;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #ed3338;
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: #d1d5db;
  align-items: flex-start;
}

.footer-contact i {
  color: #ed3338;
  font-size: 1.5rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.95rem;
}
