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

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Lato", sans-serif;
  background-color: rgba(218, 218, 218, 0.8);
  color: #333;
  display: flex;
  flex-direction: column;
}

/* ====== Wrapper for Sticky Footer ====== */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  margin-top: 80px; /* to account for the fixed header */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== Updated Header (Top Navigation) ====== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #858585;
  color: #fff;
  padding: 15px 0;
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-nav .logo {
  margin: 0;
  padding: 0;
}

.top-nav .logo img {
  max-height: 50px; /* Match index styling */
  width: auto;
  display: block;
}

.top-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 20px; /* increased gap for index look */
  justify-content: center;
}

.top-nav .nav-links a {
  color: #ffa500;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.top-nav .nav-links a:hover,
.top-nav .nav-links a.active {
  color: #ff0000;
}

/* ====== Clients Section ====== */
.clients-section {
  padding: 100px 15px;
  text-align: center;
}

.clients-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ffa500;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #555;
}

/* ====== Vertical Carousel Styles ====== */
.vertical-carousel {
  width: 100%;
  height: 400px; /* Ensure this matches your desired carousel height */
  overflow: hidden;
  margin: 0 auto;
  position: relative;
}

.carousel-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease-in-out;
}

.carousel-item {
  width: 100%;
  height: 400px; /* Updated height to match the carousel container */
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ====== Footer ====== */
footer {
  background: #f0ab2c;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
}
