/* Eazy Go Self Drive - Main Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #F26A0A;
  --primary-hover: #D95700;
  --dark-bg: #071827;
  --dark-card: #0D2235;
  --text-dark: #0f172a;
  --text-light: #f8fafc;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
}

/* Priority text color override for bright readability on any background */
.text-white,
h1.text-white,
h2.text-white,
h3.text-white,
h4.text-white,
h5.text-white,
h6.text-white,
p.text-white,
span.text-white,
a.text-white,
.hero-slide h1,
.hero-slide p,
.hero-slide span,
.hero-slide div,
.hero-title,
.hero-subtext {
  color: #ffffff !important;
}

/* Strong text shadows & contrast drop-shadows for high visibility on any image color */
.hero-slide h1,
.hero-title,
h1.text-white {
  color: #ffffff !important;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 2px #000000 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

.hero-slide p,
.hero-subtext,
p.text-white {
  color: rgba(255, 255, 255, 0.98) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.hero-slide .inline-flex,
.overlay-badge {
  background-color: rgba(7, 24, 39, 0.82) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Primary Button Styling */
.btn-primary {
  background: linear-gradient(135deg, #F26A0A 0%, #D95700 100%);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(242, 106, 10, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 106, 10, 0.55);
  background: linear-gradient(135deg, #FF7B1C 0%, #E65C00 100%);
}

.btn-secondary {
  background: rgba(7, 24, 39, 0.75);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  text-decoration: none !important;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #071827 !important;
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

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

::-webkit-scrollbar-track {
  background: #071827;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #F26A0A;
}

/* Utilities */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-none {
  -webkit-line-clamp: unset;
  display: block;
}

/* Active Nav State */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link.active {
  color: #F26A0A !important;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #F26A0A;
  border-radius: 2px;
}

/* Desktop Navigation Services Dropdown */
.services-dropdown {
  position: relative;
}

.services-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  width: 14rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(6px);
  z-index: 50;
}

.services-dropdown:hover .services-dropdown-menu,
.services-dropdown.open .services-dropdown-menu,
.services-dropdown-menu.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.services-dropdown:hover #servicesChevron,
.services-dropdown.open #servicesChevron {
  transform: rotate(180deg);
}