/* Reset */


/* Body and typography */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #004488;
  background-color: #ffffff;
}

/* Section styling with fade-in animation */
section {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  color: #333333;
  transition: background-color 0.3s ease-in-out;
  animation: fadeIn 0.8s ease-out;
  opacity: 1;
}

/* Headings */
h1 {
  margin-top: 15rem; /* intentional large top margin */
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #004488;
  text-align: center;
  position: relative;
}

/* Search Container */
.search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  position: relative;
  transition: box-shadow 0.3s ease-in-out;
}

.search-bar i,
.search-bar button i {
  color: #007bff;
  font-size: 1.2rem;
  transition: color 0.3s ease-in-out;
}

.search-bar button:hover i {
  color: #0056b3;
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  margin: 0 10px;
  font-size: 1rem;
  background: transparent;
  transition: background-color 0.3s ease-in-out;
}

.search-bar input:focus {
  background-color: #e6f7ff;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Suggestions Dropdown */
.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 12px 12px;
  max-height: 200px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: max-height 0.3s ease-in-out;
}

.suggestions div {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

.suggestions div:hover {
  background-color: #f0f0f0;
}

/* Results Container Grid */
.results-container {
  margin-top: 3rem;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  transition: grid-template-columns 0.3s ease-in-out;
}

/* Reseller Boxes */
.reseller-box {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation-delay: 0.5s; /* consistent delay for all boxes */
}

.reseller-box:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.reseller-box img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 2px;
  transition: transform 0.3s ease-in-out;
}

.reseller-box:hover img {
  transform: scale(1.1);
}

.reseller-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #333;
}

.reseller-box p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #444;
  opacity: 0.9;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.reseller-box p:hover {
  color: #007bff;
  opacity: 1;
}

.reseller-box a {
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: inline-block;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.reseller-box a:hover {
  text-decoration: underline;
  color: #007bff;
  transform: translateX(5px);
}

.reseller-box i {
  color: #0056b3;
  transition: color 0.3s ease-in-out;
}

.reseller-box:hover i {
  color: #0056b3;
}

/* Suggestions box for #suggestions (if used) */
#suggestions {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ccc;
}

#suggestions div {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#suggestions div:hover {
  background-color: #f0f0f0;
}

/* Brand container */
.brands-container {
  overflow: hidden;
  width: 100%;
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 50px;
}

/* Brand track - infinite scroll */
.brand-track {
  display: flex;
  min-width: 200%;
  width: max-content;
  animation: scrollLoop 60s linear infinite;
}

.brand-track:hover {
  animation-play-state: paused;
}

.brand-logo {
  flex: 0 0 auto;
  margin: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  height: 65px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand-logo img:hover {
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLoop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
