/* BMW Font Configuration */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600;700;900&display=swap");

* {
  font-family: "mnm-font-bmw-nofb", "Tahoma", "Noto Sans", "sans-serif" !important;
}

body,
html {
  font-family: "mnm-font-bmw-nofb", "Tahoma", "Noto Sans", "sans-serif" !important;
}

/* Ensure all text elements use the BMW font */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
button,
input,
textarea,
label,
.font-black,
.font-bold,
.font-semibold,
.font-medium,
.font-light {
  font-family: "mnm-font-bmw-nofb", "Tahoma", "Noto Sans", "sans-serif" !important;
}

/* Custom CSS */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Mobile menu animations */
.mobile-menu-open {
  transform: translateX(0);
}

.mobile-menu-overlay-show {
  display: block;
}

/* Enhanced mobile menu styles */
#mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

#mobile-menu.translate-x-0 {
  transform: translateX(0);
}

#mobile-menu.-translate-x-full {
  transform: translateX(-100%);
}

/* Mobile menu button enhanced */
#mobile-menu-button {
  background: rgba(51, 65, 85, 0.3);
  border: 2px solid rgb(71, 85, 105);
  backdrop-filter: blur(4px);
  min-width: 48px;
  min-height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#mobile-menu-button:hover {
  background: rgba(51, 65, 85, 0.5);
  border-color: rgb(251, 191, 36);
  color: rgb(251, 191, 36);
}

@media (min-width: 768px) {
  #mobile-menu-button {
    display: none !important;
  }
}

/* Ensure mobile menu overlay works */
#mobile-menu-overlay {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

#mobile-menu-overlay.block {
  display: block;
}

#mobile-menu-overlay.hidden {
  display: none;
}

/* Tab functionality */
.tab-button {
  background: transparent;
  color: #9ca3af;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tab-button:hover:not(.active) {
  background: #374151;
  color: white;
}

.tab-button.active {
  background: #dc2626;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Mobile navigation active state */
.mobile-nav-link.active {
  background: #374151;
  color: #fbbf24;
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* Gradient text animation */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Enhanced gradients */
.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-black {
  --tw-gradient-from: #000000;
  --tw-gradient-to: rgba(0, 0, 0, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-slate-900 {
  --tw-gradient-to: rgba(15, 23, 42, 0);
  --tw-gradient-stops: var(--tw-gradient-from), #0f172a, var(--tw-gradient-to);
}

.to-blue-900 {
  --tw-gradient-to: #1e3a8a;
}

.to-blue-800 {
  --tw-gradient-to: #1e40af;
}

/* Container responsive */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

/* Mobile menu backdrop blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Smooth transitions for mobile menu */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Loading animation for form submission */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Language dropdown styles */
#language-dropdown {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Logo hover effect */
a:hover img {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Scroll to top button */
#scroll-to-top {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#scroll-to-top:hover {
  transform: translateY(-2px);
}

#scroll-to-top.opacity-0 {
  pointer-events: none;
}

#scroll-to-top.opacity-100 {
  pointer-events: auto;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
