/* ==========================================================================
   DS AUTO (dsauto.com.lk) — 2026 Luxury Brand Flagship Stylesheet
   Palette: Deep Obsidian, Brushed Titanium, Signature Crimson & Studio Gold
   ========================================================================== */

:root {
  --bg-obsidian: #050507;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --crimson: #e11d48;
  --text-primary: #f4f4f5;
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background-color: var(--bg-obsidian);
  color-scheme: dark;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Architectural Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--crimson);
}

/* Subtle Architectural Grid Background */
.bg-architectural-grid {
  background-size: 64px 64px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* ==========================================================================
   2026 Floating-Glass Architectural Header
   ========================================================================== */
.site-header {
  transition: background-color 0.4s var(--ease-luxury),
              border-color 0.4s var(--ease-luxury),
              padding 0.4s var(--ease-luxury),
              box-shadow 0.4s var(--ease-luxury);
}

.site-header.is-scrolled {
  background-color: rgba(5, 5, 7, 0.84);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.85);
}

.nav-pill-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-link {
  position: relative;
  color: #a1a1aa;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Mouse-Reactive Spotlight Bento Cards & Specular Glass Surfaces
   ========================================================================== */
.bento-card {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.78) 0%, rgba(10, 10, 14, 0.92) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.09), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-luxury),
              transform 0.35s var(--ease-luxury),
              box-shadow 0.35s var(--ease-luxury);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
    var(--spotlight-color, rgba(255, 255, 255, 0.06)),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.bento-card-crimson {
  --spotlight-color: rgba(225, 29, 72, 0.14);
}

.bento-card-crimson:hover {
  border-color: rgba(225, 29, 72, 0.38);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 24px 48px -20px rgba(225, 29, 72, 0.22);
}

.bento-card-amber {
  --spotlight-color: rgba(245, 158, 11, 0.13);
}

.bento-card-amber:hover {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 24px 48px -20px rgba(245, 158, 11, 0.18);
}

/* ==========================================================================
   Metallic & Luxury Gradient Typography
   ========================================================================== */
.text-gradient-titanium {
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 58%, #8f8f98 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #fda4af 0%, #e11d48 52%, #9f1239 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 55%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Scroll-Driven Reveal System
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-luxury), transform 0.8s var(--ease-luxury);
  will-change: opacity, transform;
}

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

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 270ms;
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bento-card,
  .site-header {
    transition: none;
  }
}

/* Subtle Pulse Ring for Floating Concierge */
@keyframes concierge-pulse {
  0% {
    transform: scale(0.96);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.38);
    opacity: 0;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.concierge-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 1px solid rgba(225, 29, 72, 0.55);
  animation: concierge-pulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
}

/* Hide Horizontal Scrollbar on Filter Pills */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Sculpted Automotive Wordmark & Metallic Emblem Bezel
   ========================================================================== */
.font-brand {
  font-family: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
}

.brand-emblem-ring {
  padding: 2px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36) 0%, rgba(225, 29, 72, 0.65) 50%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0 6px 20px -6px rgba(225, 29, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury);
}

.group:hover .brand-emblem-ring {
  transform: scale(1.05);
  box-shadow: 0 8px 24px -4px rgba(225, 29, 72, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.brand-wordmark-underline {
  height: 1.5px;
  width: 100%;
  background: linear-gradient(90deg, #e11d48 0%, rgba(228, 228, 231, 0.55) 55%, transparent 100%);
  border-radius: 9999px;
}

/* ==========================================================================
   Theme-Matched Import Calculator Range Sliders
   ========================================================================== */
input[type="range"].ds-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

input[type="range"].ds-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #e11d48;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.75);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"].ds-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.95);
}

input[type="range"].ds-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #e11d48;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.75);
  cursor: pointer;
}

input[type="range"].ds-slider-gold::-webkit-slider-thumb {
  background: #d97706;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.65);
}

input[type="range"].ds-slider-gold::-webkit-slider-thumb:hover {
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.9);
}

input[type="range"].ds-slider-gold::-moz-range-thumb {
  background: #d97706;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.65);
}

/* ==========================================================================
   Floating Obsidian Concierge Capsule & Back-to-Top
   ========================================================================== */
.floating-concierge-capsule {
  background: rgba(11, 11, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 18px 40px -10px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: transform 0.3s var(--ease-luxury), border-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-concierge-capsule:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.16), 0 22px 44px -10px rgba(225, 29, 72, 0.28);
}

.back-to-top-btn {
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-luxury), background-color 0.2s ease, border-color 0.2s ease;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ==========================================================================
   Dark Matte Gold Footer Attribution (GEENIX.)
   ========================================================================== */
.geenix-link {
  color: #a88438;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.geenix-link:hover {
  color: #c8a456;
  text-shadow: 0 0 12px rgba(168, 132, 56, 0.25);
}
