/*
 * AimFinity-inspired custom theme
 * Dark tactical aesthetic with pill badges, stat cards, and card grid layout
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =====================
   ROOT / VARIABLES
   ===================== */
:root {
  --cl-accent: #4ade80;
  --cl-accent-rgb: 74, 222, 128;
  --cl-background-primary: #0a0a0a;
  --cl-background-primary-rgb: 10, 10, 10;
  --cl-background-secondary: #111111;
  --cl-background-secondary-rgb: 17, 17, 17;
  --cl-border: rgba(255, 255, 255, 0.07);
  --cl-border-rgb: 255, 255, 255;
  --cl-text-muted: #6b7280;
  --cl-card-bg: #141414;
  --cl-card-border: rgba(255, 255, 255, 0.06);
}

/* =====================
   GLOBAL
   ===================== */
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cl-background-primary);
  color: #e5e7eb;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
}

/* Noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* =====================
   BACKGROUND IMAGE
   ===================== */
.bg-image {
  filter: blur(2px) brightness(0.18) saturate(0.6) !important;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
  background: rgba(10, 10, 10, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar .navbar-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #fff !important;
  gap: 0.6rem;
  padding-right: 0;
  border-right: 0;
}

.navbar .navbar-brand img {
  max-height: 2rem;
}

.navbar .nav-link {
  color: #9ca3af !important;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.25rem 0 !important;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-item a.nav-link.active {
  color: #ffffff !important;
}

.navbar .nav-item a.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.navbar .btn-outline-primary {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 0.83rem;
  padding: 0.4rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.navbar .btn-outline-primary:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* =====================
   HERO
   ===================== */
.hero {
  background: transparent !important;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--cl-background-primary));
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  z-index: 1;
  position: relative;
}

.hero .content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero .content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero .content p {
  font-size: 0.93rem;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Stat cards grid */
.hero .content .stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
  flex-wrap: unset !important;
}

.hero .content .stats div {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.25rem 0.5rem;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: border-color 0.2s;
}

.hero .content .stats div:hover {
  border-color: rgba(255,255,255,0.14);
}

.hero .content .stats div .value {
  font-family: 'Syne', sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1;
}

.hero .content .stats div .label {
  font-size: 0.6rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4b5563 !important;
}

@media (max-width: 576px) {
  .hero .content .stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* =====================
   SECTION TITLE (used in products/feedbacks components)
   ===================== */
.section-title {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.section-subtitle {
  justify-content: center;
  text-align: center;
  margin-bottom: 2rem;
}

.section-subtitle p {
  color: #6b7280;
  font-size: 0.88rem;
  max-width: 520px;
  line-height: 1.7;
}

/* =====================
   PRODUCTS
   ===================== */
.products .card {
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 14px !important;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.products .card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12) !important;
}

.products .card .card-img-top {
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
}

/* Diagonal line pattern on card image area */
.products .card .card-img-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.022) 8px,
    rgba(255,255,255,0.022) 9px
  );
  pointer-events: none;
  z-index: 1;
}

.products .card .card-body {
  padding: 1rem 1.1rem 1.1rem;
}

.products .card .card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.products .card .info {
  color: #6b7280;
  font-size: 0.78rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Stock count pills */
.products .card .info span,
.products .card .info .price {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
}

/* =====================
   TESTIMONIALS / FEEDBACKS
   ===================== */
.testimonial {
  background: #141414 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 14px !important;
  margin-bottom: 1rem;
}

.testimonial .header {
  padding: 1rem 1.2rem 0;
}

.testimonial .header p {
  color: #d1d5db;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial .stars svg {
  color: #f59e0b;
}

.testimonial .content {
  padding: 0.5rem 1.2rem 0;
}

.testimonial .content .message {
  color: #9ca3af;
  font-size: 0.83rem;
  line-height: 1.65;
}

.testimonial .footer {
  background: rgba(0,0,0,0.25) !important;
  border-top: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 0 0 14px 14px !important;
  padding: 0.55rem 1.2rem;
  color: #374151;
  font-size: 0.7rem;
  font-weight: 500;
}

/* =====================
   FOOTER
   ===================== */
footer.footer {
  background: #0a0a0a !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}

footer.footer h5 {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #4b5563;
}

footer.footer .nav li a {
  font-size: 0.85rem;
  color: #6b7280 !important;
}

footer.footer .nav li a:hover {
  color: #ffffff !important;
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 600;
  border-radius: 8px !important;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
}

/* =====================
   MISC
   ===================== */
.bg-gray,
.bg-block-secondary {
  background: #111 !important;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1c1c1c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #252525; }
