
:root {
  --primary: #6A89A7;
  --light: #BDDDFC;
  --sky: #88BDF2;
  --dark: #384959;
}

* { scroll-behavior: smooth; }

body { font-family: 'Montserrat', sans-serif; }

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* LOADER */
#loader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* HERO BG */
.hero-bg {
  background: linear-gradient(135deg, #384959 0%, #2a3844 40%, #1a2530 70%, #0f1a22 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(106, 137, 167, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(136, 189, 242, 0.2) 0%, transparent 50%);
}
/* Texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236A89A7' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* BTN */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(106, 137, 167, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 137, 167, 0.5);
}

/* FLOATING ANIMATION */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.float-anim { animation: float 6s ease-in-out infinite; }
.float-anim-delay { animation: float 6s ease-in-out 3s infinite; }

/* TYPED CURSOR */
.cursor {
  display: inline-block;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* FADE UP */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* SCROLL ANIMATION for reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CAROUSEL */
.carousel-outer {
  overflow: hidden;
  padding: 10px 0;
}
.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}
@keyframes scrollCarousel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.animate-scroll {
  animation: scrollCarousel 30s linear infinite;
}
.animate-scroll:hover {
  animation-play-state: paused;
}

/* PRODUCT FILTER */
.filter-card {
  transition: all 0.4s ease;
}
.filter-card.hidden-item {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  display: none;
}

/* ACTIVE FILTER BTN */
.active-filter {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}

/* NAVBAR SCROLLED */
#navbar.scrolled .bg-dark\/95 {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* CATEGORY CARDS hover */
.category-card:hover {
  box-shadow: 0 20px 60px rgba(106, 137, 167, 0.15);
}

/* BACK TO TOP */
#backToTop { display: none; }
#backToTop.visible {
  display: flex;
}

/* PRODUCT PAGE GRID */
.product-grid-item {
  transition: all 0.4s ease;
}
.product-grid-item.hide {
  display: none;
}

/* CONTACT form */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106, 137, 167, 0.15);
}

/* ABOUT page decorative */
.about-accent {
  background: linear-gradient(135deg, #6A89A7, #88BDF2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .hero-bg { min-height: 100vh; }
}
