/* Shubham Computers — Custom Styles & Micro-interactions
   Complements Tailwind CSS v4.3 (@tailwindcss/browser@4.3) */

:root {
  --surface-grid: rgba(15, 23, 42, 0.04);
  --surface-grid-dark: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

.font-mono-tech {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

/* Subtle architectural grid background */
.bg-tech-grid {
  background-image:
    linear-gradient(to right, var(--surface-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--surface-grid) 1px, transparent 1px);
  background-size: 36px 36px;
}

.bg-tech-grid-dark {
  background-image:
    linear-gradient(to right, var(--surface-grid-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--surface-grid-dark) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Toast notification animation */
.toast-banner {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-banner.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* Subtle card hover elevation */
.catalog-card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
}

/* Active filter pill */
.filter-btn[aria-pressed="true"] {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.35);
}

/* Subtle pulse ring for WhatsApp float button */
@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

.wa-pulse {
  animation: softPulse 2.6s infinite;
}

/* FAQ accordion icon rotation */
.faq-icon {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Reviews star fill */
.star-rating {
  color: #f59e0b;
}
