/* style.css - KeyNexus Minimalist Modern Theme */
:root {
  --bg-main: #0b0c10;
  --bg-card: #13151c;
  --bg-elevated: #1a1d26;
  --border-subtle: #222634;
  --border-hover: #1549e7;
  --brand: #1549e7;
  --brand-hover: #113cb8;
  --brand-active: #0d2e8e;
  --brand-glow: rgba(21, 73, 231, 0.2);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
}

#products,
[id] {
  scroll-margin-top: 100px;
}

/* Base Body Styling with ultra-subtle ambient grid pattern */
body {
  background-color: var(--bg-main);
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #1e2230;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* Subtle Entrance Animations */
@keyframes navSlideDown {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeSlideUp {
  0% {
    transform: translateY(16px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}

.animate-navbar {
  animation: navSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-hero {
  animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.status-pulse {
  animation: pulseDot 2.5s infinite ease-in-out;
}

/* Product Card - Clean & Minimalist without lines/sheen effects */
.product-card {
  animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.product-card::before,
.product-card::after {
  display: none !important;
  content: none !important;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }

.product-card:hover {
  border-color: rgba(21, 73, 231, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
}

/* Pure #1549e7 Primary Buttons */
.btn-primary {
  background-color: var(--brand) !important;
  color: #ffffff !important;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px var(--brand-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: var(--brand-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 73, 231, 0.35);
}

.btn-primary:active {
  background-color: var(--brand-active) !important;
  transform: translateY(0);
}

/* Minimalist Floating Glass Navbar */
.glass-nav {
  background-color: rgba(19, 21, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Page Loader Top Progress Bar */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: #1549e7;
  z-index: 9999;
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  box-shadow: 0 0 10px #1549e7, 0 0 5px #1549e7;
  pointer-events: none;
}