/* ============================================
   Dee Dee's Trucking LLC — Custom Styles
   Premium overhaul | 2024
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #0f1b2d;
  --navy-light: #1a2d4a;
  --steel-blue: #2a4a7f;
  --accent-blue: #3b82f6;
  --highlight: #60a5fa;
  --silver: #94a3b8;
  --silver-light: #cbd5e1;
  --gold: #f59e0b;
  --white: #f8fafc;
  --text-muted: #94a3b8;
}

/* ---------- Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent-blue);
  color: white;
}

/* ---------- Navigation ---------- */
.nav-glass {
  background: rgba(15, 27, 45, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.nav-glass.scrolled {
  background: rgba(15, 27, 45, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  color: var(--silver-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--highlight));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: white;
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(42, 74, 127, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, #0c1420 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(59, 130, 246, 0.03) 50px,
      rgba(59, 130, 246, 0.03) 51px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(59, 130, 246, 0.03) 50px,
      rgba(59, 130, 246, 0.03) 51px
    );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--highlight);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), var(--highlight), #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--silver-light);
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: white;
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #0f1b2d;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.section-dark {
  background: var(--navy);
}

.section-darker {
  background: #0c1420;
}

.section-gradient {
  background: linear-gradient(180deg, var(--navy) 0%, #0c1420 100%);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--accent-blue);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(135deg, rgba(26, 45, 74, 0.6), rgba(15, 27, 45, 0.8));
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-blue);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--highlight));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Pricing ---------- */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
  transition: background 0.3s ease;
}

.price-row:hover {
  background: rgba(59, 130, 246, 0.05);
}

.price-route {
  font-weight: 600;
  font-size: 1rem;
}

.price-details {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.price-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--highlight);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: rgba(26, 45, 74, 0.3);
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(26, 45, 74, 0.5);
}

.faq-question .icon {
  transition: transform 0.3s ease;
  color: var(--accent-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---------- Contact Form ---------- */
.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: rgba(26, 45, 74, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 0.5rem;
  color: white;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(26, 45, 74, 0.6);
}

.form-input::placeholder {
  color: var(--silver);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.025em;
}

/* ---------- Footer ---------- */
.footer {
  background: #080e18;
  border-top: 1px solid rgba(59, 130, 246, 0.08);
  padding: 4rem 1.5rem 2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-blue);
}

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: rgba(15, 27, 45, 0.98);
  backdrop-filter: blur(20px);
  z-index: 100;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 6rem 2rem 2rem;
  border-left: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu .nav-link {
  display: block;
  font-size: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--silver-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Floating Particles ---------- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
}

/* ---------- Pulse Ring ---------- */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .stat-number {
    font-size: 2.25rem;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .btn-primary, .btn-secondary, .btn-gold {
    width: 100%;
    justify-content: center;
  }
}
