/* Vanguard Properties — Dark Fintech Design System */

:root {
  --color-bg: #09090b;
  --color-bg-elevated: #18181b;
  --color-bg-card: #0f0f12;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-blue: #3B82F6;
  --color-blue-muted: #2563EB;
  --color-blue-glow: rgba(59, 130, 246, 0.35);
  --color-text: #fafafa;
  --color-text-muted: rgba(255, 255, 255, 0.55);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg);
}

::selection {
  background-color: rgba(59, 130, 246, 0.25);
  color: #fff;
}

/* Monospace labels / data */
.font-mono-label {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Grid dot pattern background */
.grid-bg {
  background-color: var(--color-bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.grid-bg-fade {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
  background-size: 24px 24px, 100% 100%;
}

/* Gradient mesh hero */
.hero-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    var(--color-bg);
}

/* Blue glow effects */
.glow-blue {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), 0 0 80px rgba(59, 130, 246, 0.05);
}

.glow-blue-sm {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.glow-blue-border {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Accent line */
.blue-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-blue), rgba(59, 130, 246, 0.2));
}

/* Tech search panel */
.search-panel {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
}

.search-panel:focus-within {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 0 40px rgba(59, 130, 246, 0.08);
}

/* Navbar scroll state — dark theme (lighter bg on scroll) */
.navbar-scrolled {
  background: rgba(24, 24, 27, 0.92) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
}

.navbar-scrolled .nav-link:hover {
  color: var(--color-blue) !important;
}

.navbar-scrolled .logo-text {
  color: #fff !important;
}

.navbar-scrolled .hamburger-line {
  background-color: #fff;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Dark property cards */
.property-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.4s;
}

.property-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(59, 130, 246, 0.08);
}

.property-card .property-image {
  transition: transform 0.7s var(--ease-out-expo);
  opacity: 0.85;
}

.property-card:hover .property-image {
  transform: scale(1.05);
  opacity: 0.95;
}

.property-card .image-overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(9, 9, 11, 0.85) 100%);
}

/* Feature cards */
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.06);
}

.feature-card:hover .feature-icon {
  transform: scale(1.05);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
}

/* Ripple effect */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* Decorative glow blob */
.blob-blue {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  background: rgba(59, 130, 246, 0.08);
}

/* Counter */
.counter-value {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* Carousel */
.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease-out-expo);
}

.carousel-slide {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .carousel-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 33.333%;
  }
}

/* Testimonial slider */
.testimonial-track {
  display: flex;
  transition: transform 0.7s var(--ease-out-expo);
}

.testimonial-slide {
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .testimonial-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-slide {
    flex: 0 0 33.333%;
  }
}

/* Timeline — dark */
.timeline-line {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
  height: 1px;
}

.timeline-step.active .timeline-icon {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 24px rgba(59, 130, 246, 0.15);
}

.timeline-step.active .timeline-icon svg {
  color: var(--color-blue);
}

/* Map — dark */
.map-container {
  background: var(--color-bg-elevated);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.map-pin {
  animation: pin-bounce 2s ease-in-out infinite;
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Mobile menu — dark */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
  transform: translateX(0);
}

.hamburger-line {
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Dark form inputs */
.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hero parallax */
.hero-bg {
  will-change: transform;
}

.hero-bg img {
  opacity: 0.35;
}

/* Loading fade */
.page-loader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background: var(--color-bg);
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Button glow */
.btn-glow:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.btn-blue-glow:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

/* Stats card dark */
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.06);
}

/* Carousel dots override */
[data-carousel-dots] button {
  background: rgba(255, 255, 255, 0.15);
}

[data-carousel-dots] button.active {
  background: var(--color-blue);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}
