/* ============================================================
   CUSTOM.CSS — Enhanced  |  Blue Palette, Smooth Animations
   ============================================================ */

/* ─── Rounded card surfaces ─── */
.bg-card,
.bg-card\/75,
.bg-card\/90,
.bg-background\/35 {
  border-radius: 22px;
}

.bg-accent-500,
.hover\:bg-accent-500\/10 {
  border-radius: 28px;
}

.focus-within\:border-accent-500 {
  border-radius: 28px;
}
.focus-within\:border-accent-500 button {
  border-radius: 0;
}

/* View Details button */
.flex.items-center.justify-center.gap-2.text-accent-500.text-center.font-semibold.border.border-accent-500.px-4.py-1.transition-colors.duration-150.ease-in-out.hover\:bg-accent-500.hover\:text-white {
  border-radius: 28px;
}

/* ─── Product grid ─── */
.w-full.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  position: relative;
  padding: 5px 0;
  border-radius: 24px;
  /* NO box-shadow here — handled by blue.css per-card */
}

/* ─── Product card ─── */
.product-card {
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(59,130,246,0.12);
  color: var(--text-primary);
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    transform 0.35s cubic-bezier(.4,0,.2,1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  animation: cardReveal 0.6s cubic-bezier(.4,0,.2,1) forwards;
  will-change: transform, opacity;
}

/* stagger cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.12s; }
.product-card:nth-child(3) { animation-delay: 0.19s; }
.product-card:nth-child(4) { animation-delay: 0.26s; }
.product-card:nth-child(n+5) { animation-delay: 0.32s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px 4px rgba(59,130,246,0.35), 0 12px 32px rgba(0,0,0,0.3);
  border-color: rgba(59,130,246,0.4);
}

/* image container */
.product-card .image-container {
  width: 100%; height: 200px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
}

.product-card .image-container img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .image-container img {
  transform: scale(1.07);
}

/* product info */
.product-card .product-info {
  padding: 15px;
  text-align: center;
}
.product-card .product-info h3 {
  margin-bottom: 10px;
  font-size: 1.15em;
  font-weight: 700;
  color: #e2e8f0;
}
.product-card .product-info p {
  color: #3b82f6;
  font-weight: 700;
  font-size: 1.1em;
}

/* ─── Navbar container ─── */
:root {
  --navbar-height: 80px;
  --navbar-total-height: 160px;
}

.navbar-container {
  width: 100%;
  height: 80px;
  background-color: transparent;
  transition: all 0.4s ease;
}

@media (max-width: 1024px) {
  .navbar-container {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
.navbar-container.scrolled {
  background: rgba(5,10,25,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

/* ─── Mobile menu ─── */
.mobile-menu-backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mobile-menu-content {
  background: rgba(10,16,40,0.85);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 1rem;
  margin: 1rem;
  overflow: hidden;
  transform-origin: top;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mobile-link {
  position: relative;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}
.mobile-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, rgba(59,130,246,0.2), transparent);
}
.mobile-link.active {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
}

/* hamburger */
.hamburger-btn {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  opacity: 1; visibility: visible;
}
.hamburger-btn.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hamburger-line {
  width: 24px; height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}
.hamburger-active .line-1 { transform: translateY(8px) rotate(45deg); }
.hamburger-active .line-2 { opacity: 0; }
.hamburger-active .line-3 { transform: translateY(-8px) rotate(-45deg); }

/* ─── Slide animations ─── */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-16px); }
}
.mobile-menu-enter { animation: slideIn 0.35s cubic-bezier(.4,0,.2,1) forwards; }
.mobile-menu-exit  { animation: slideOut 0.3s cubic-bezier(.4,0,.2,1) forwards; }

/* z-index stacking */
.mobile-menu-backdrop { z-index: 100; }
.mobile-menu-content  { position: relative; z-index: 101; }

/* ─── Mobile overrides ─── */
@media (max-width: 640px) {
  .product-card {
    width: 100% !important;
    margin: 0 !important;
  }
  .w-full.grid { gap: 0.75rem; }
  .product-card .image-container { height: 175px; }
  .product-card .product-info h3 { font-size: 1.05em; }
  .product-card .product-info p  { font-size: 0.95em; }
}
