@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Smooth transitions for theme switching */
*, *::before, *::after {
  transition-property: background-color, border-color;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* Swiper / Slider Dot Customizations */
.slider-dot.active {
  background-color: #1e40af;
  width: 24px;
}

.dark .slider-dot.active {
  background-color: #059669;
}

/* Glassmorphism Classes */
.glass-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.dark .glass-header {
  background-color: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.dark .glass-card {
  background-color: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(10px);
}

/* Custom active outline */
.focus-ring:focus {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

.dark .focus-ring:focus {
  outline: 2px solid #059669;
}

/* Infinite Scrolling Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Global Subtle Dot Grid Background Pattern */
body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.02;
  background-image: radial-gradient(#1e40af 1px, transparent 1px);
  background-size: 20px 20px;
}

.dark body::before {
  opacity: 0.035;
  background-image: radial-gradient(#059669 1px, transparent 1px);
}


/* Premium Footer Blueprint Pattern */
.footer-pattern {
  position: relative;
}

.footer-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: 
    radial-gradient(#1e40af 1px, transparent 1px),
    linear-gradient(to right, rgba(30, 64, 175, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 64, 175, 0.1) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px, 48px 48px;
  background-position: 0 0, 12px 12px, 12px 12px;
}

.dark .footer-pattern::before {
  opacity: 0.07;
  background-image: 
    radial-gradient(#059669 1px, transparent 1px),
    linear-gradient(to right, rgba(5, 150, 105, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(5, 150, 105, 0.15) 1px, transparent 1px);
}

/* =============================================
   FINAL TOUCHUP — Premium Polish
   ============================================= */

/* Stat card float-in animation */
@keyframes statFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-card {
  animation: statFadeUp 0.5s ease-out both;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.15s; }
.stat-card:nth-child(3) { animation-delay: 0.25s; }
.stat-card:nth-child(4) { animation-delay: 0.35s; }

/* Section heading gradient underline accent */
.section-accent {
  display: inline-block;
  position: relative;
}
.section-accent::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #1e40af, #059669);
}

/* Primary button glow on hover */
a[class*="bg-primary"]:hover,
button[class*="bg-primary"]:hover {
  box-shadow: 0 0 16px rgba(30, 64, 175, 0.4);
}

/* Secondary/CTA button glow on hover */
a[class*="bg-secondary"]:hover,
button[class*="bg-secondary"]:hover {
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.4);
}

/* Smooth image hover zoom for product cards */
.product-img-wrap img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-img-wrap:hover img {
  transform: scale(1.06);
}

/* Top bar subtle separator */
.topbar-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(156, 163, 175, 0.4);
  vertical-align: middle;
  margin: 0 8px;
}

/* Footer heading accent line */
footer h4 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 16px !important;
}
footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, #1e40af, #059669);
}

/* Stronger dot grid in light mode */
body::before {
  opacity: 0.04 !important;
}

/* Navigation active link underline */
nav a.text-primary,
nav a.text-secondary-light {
  position: relative;
}
nav a.text-primary::after,
nav a.text-secondary-light::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.7;
}



/* =============================================
   STYLISH PAGE LOADER
   ============================================= */
#page-loader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Spinning dual-ring loader */
.loader-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.08);
  border-top-color: #1e40af;
  border-right-color: #059669;
  animation: loaderSpin 0.9s cubic-bezier(0.4,0,0.2,1) infinite;
  box-shadow: 0 0 20px rgba(30, 64, 175, 0.3), 0 0 40px rgba(5, 150, 105, 0.15);
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* Tagline fade pulse */
.loader-tagline {
  animation: taglinePulse 1.5s ease-in-out infinite;
}

@keyframes taglinePulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}
