/* BOXD Dark Theme - Black, Gray & Gold */

/* Font Family Override */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-weight: 400;
  line-height: 1.6;
}

/* Hero Section Background */
.hero-section {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%),
              url('images/stock.jpeg') center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

/* Map Container Styling */
.map-container {
  position: relative;
}

#map {
  height: 450px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #2a2a2a;
}

/* Custom Card Hover Effects */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
  border-color: #d4af37 !important;
}

/* Form Input Styling */
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
  border-color: #d4af37;
}

.form-control.bg-secondary {
  background-color: #2a2a2a !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

.form-control.bg-secondary::placeholder {
  color: #888;
}

/* Button Enhancements */
.btn {
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Icon Styling */
.bi {
  vertical-align: middle;
}

/* Custom Gold Color Scheme */
:root {
  --bs-primary: #d4af37;
  --bs-primary-rgb: 212, 175, 55;
  --gold-color: #d4af37;
  --gold-hover: #b8941f;
  --dark-bg: #0a0a0a;
  --dark-card: #1a1a1a;
  --dark-border: #333;
}

/* Page Transition Effects */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.fade-in {
  opacity: 1;
}

body.fade-out {
  opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 50vh;
    padding: 80px 0 40px;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  #map {
    height: 350px;
  }
}

/* Dark Theme Enhancements */
.bg-dark {
  background-color: #0a0a0a !important;
}

.border-secondary {
  border-color: #333 !important;
}

/* Navbar Backdrop Filter */
.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(10, 10, 10, 0.95) !important;
}

/* Card Border Enhancement */
.card.border-secondary {
  border: 1px solid #333 !important;
  background-color: #1a1a1a !important;
}

/* Link Hover Effects */
a.text-primary:hover {
  text-decoration: underline !important;
  color: var(--gold-hover) !important;
}

/* Gold Text and Accent Colors */
.text-primary {
  color: var(--gold-color) !important;
}

.btn-primary {
  background-color: var(--gold-color);
  border-color: var(--gold-color);
  color: #000 !important;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #000 !important;
}

.btn-outline-primary {
  color: var(--gold-color);
  border-color: var(--gold-color);
}

.btn-outline-primary:hover {
  background-color: var(--gold-color);
  border-color: var(--gold-color);
  color: #000 !important;
}

/* Gold highlights for special elements */
.bg-primary {
  background-color: var(--gold-color) !important;
  color: #000 !important;
}

.card-header.bg-primary {
  background-color: var(--gold-color) !important;
  color: #000 !important;
  border-bottom: 1px solid var(--gold-hover);
}

/* Dark backgrounds and borders */
.footer, footer {
  background-color: #0a0a0a !important;
  border-top: 1px solid #333 !important;
}

/* Warning color for 404 page */
.text-warning {
  color: var(--gold-color) !important;
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }
