/* Reset and base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: 'Roboto', sans-serif; background: #0f0f0f; color: #fff; line-height: 1.6; }

/* Global icon color & sizing */
i.fa-solid, i.fa-brands {
  font-size: 1.3em;
  color: #fff;
}

/* Header */
header {
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 4px solid #cc0000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
header img.logo { width: 400px; height: auto; margin-left: 20px; }
.contact-info {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
}
.contact-info a {
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px;
  font-size: 1.1em;
}
.contact-info a:hover { color: #cc0000; }

/* Hero Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  height: 50vh;
  min-height: 250px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
  animation: var(--anim) 20s ease-in-out;
  animation-fill-mode: forwards;
}
.hero-text {
  position: absolute; bottom: 0; width: 100%;
  background: rgba(204, 0, 0, 0.5);
  text-align: center; padding: 5px 10px;
  z-index: 3;
  pointer-events: none;
}
.hero-text h2 {
  font-size: 1.8em; font-family: 'Orbitron', sans-serif; margin: 0; color: #fff;
}

/* Ken Burns keyframes */
@keyframes bottomLeftToRight {
  from { transform-origin: bottom left; transform: scale(1.1); }
  to   { transform-origin: center right; transform: scale(1.3); }
}
@keyframes bottomRightToCenter {
  from { transform-origin: bottom right; transform: scale(1.1); }
  to   { transform-origin: center center; transform: scale(1.3); }
}
@keyframes centerZoom {
  from { transform-origin: center center; transform: scale(1.1); }
  to   { transform-origin: center center; transform: scale(1.3); }
}
@keyframes centerToLeft {
  from { transform-origin: center center; transform: scale(1.1); }
  to   { transform-origin: center left; transform: scale(1.3); }
}
@keyframes bottomRightToLeft {
  from { transform-origin: bottom right; transform: scale(1.1); }
  to   { transform-origin: center left; transform: scale(1.3); }
}
@keyframes centerToRight {
  from { transform-origin: center center; transform: scale(1.1); }
  to   { transform-origin: center right; transform: scale(1.3); }
}

/* Nav */
nav {
  background: #222;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
nav ul {
  list-style: none; display: flex; justify-content: center; gap: 25px;
  padding: 12px 0; margin: 0;
}
nav li { display: flex; align-items: center; }
nav li:not(:last-child)::after {
  content: "|"; margin-left: 25px; color: #cc0000;
}
nav a {
  color: #fff; text-decoration: none; font-family: 'Orbitron', sans-serif;
  font-size: 1.1em;
}
nav a:hover { color: #cc0000; }

/* Sections */
section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
section h2 {
  color: #cc0000; font-family: 'Orbitron', sans-serif; text-align: center; margin-bottom: 20px;
  position: relative; font-size: 2em;
}
section h2::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 3px; background: #cc0000;
}
.section-content {
  background: #1c1c1c; padding: 25px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.mission {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Who We Are specific formatting */
.who-we-are .who-block {
  margin-bottom: 20px;
}
.who-we-are h3 {
  color: #fff;
  font-size: 1.3em;
  margin-bottom: 6px;
}
.who-we-are p {
  margin: 0;
}

/* Services grid: fixed 3x2 equal squares */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 160px;
  gap: 15px;
}
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.service-card i { font-size: 2.2em; margin-bottom: 8px; }
.service-card:hover {
  background: #333;
  transform: scale(1.03);
}

/* eBay link */
.ebay-link {
  color: #cc0000;
  font-weight: 500;
  text-decoration: none;
}
.ebay-link:hover {
  text-decoration: underline;
}

/* Contact links */
.contact-link {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-link:hover {
  color: #cc0000;
}

/* Footer */
footer {
  background: linear-gradient(180deg, #1a1a1a, #000); text-align: center;
  padding: 20px; border-top: 4px solid #cc0000;
}
footer p { margin: 5px; color: #ccc; }
footer .disclaimer { font-size: 0.7em; color: #999; }

/* Mobile adjustments */
@media (max-width: 768px) {
  header { flex-direction: column; padding: 15px; }
  header img.logo { width: 330px; margin: 0 0 10px 0; }
  .contact-info {
    flex-direction: row; justify-content: center; gap: 15px; flex-wrap: wrap;
  }
  .contact-info a { font-size: 1em; }

  .hero-carousel { height: 35vh; }
  .hero-text h2 { font-size: 0.95em; }

  .services-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  nav a {
    font-size: 0.9em;
  }

  nav ul {
    flex-wrap: nowrap; justify-content: center; gap: 15px; padding: 0 10px;
  }
  nav li { text-align: center; max-width: 22%; white-space: normal; }
  nav li:not(:last-child)::after { margin-left: 8px; }
}

@media (max-width: 480px) {
  header img.logo { width: 280px; }
  .hero-text h2 { font-size: 0.85em; }
  section h2 { font-size: 1.4em; }
  .section-content { padding: 15px; }
}

/* Landscape small height adjustments */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-carousel { min-height: 200px; height: auto; }
  .hero-text h2 { font-size: 1.1em; }
  nav ul {
    flex-direction: row; flex-wrap: nowrap; gap: 20px;
  }
  nav li:not(:last-child)::after { margin-left: 20px; }
}

