/* General Reset & Base */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fdfdfd;
  color: #333;
}

a {
  text-decoration: none;
}

/* HERO SECTION */
.hero-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: black;
}

.hero-logo {
  max-width: 120px;
  height: auto;
  display: inline-block;
}

.hero-content {
  z-index: 10;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 50% black */
  z-index: 5;
}

.bg-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation-duration: 9s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  z-index: 1;
  overflow: hidden;
}

.zoom {
  width: 100%;
  height: 100%;
  background-size: cover; /* ✅ responsive */
  background-position: center center;
  background-repeat: no-repeat;
  animation: kenburns 9s ease-in-out infinite;
  transform-origin: center center;
}

#services h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#services p {
  font-size: 0.95rem;
}

/* Crossfade Animations (smooth overlap) */
@keyframes fade1 {
  0%, 28% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@keyframes fade2 {
  0%, 28% { opacity: 0; }
  33%, 61% { opacity: 1; }
  66%, 100% { opacity: 0; }
}
@keyframes fade3 {
  0%, 61% { opacity: 0; }
  66%, 94% { opacity: 1; }
  100% { opacity: 0; }
}

/* Ken Burns Effect */
@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-2%, -2%);
  }
}

/* Assign fade animations */
.fade-1 { animation-name: fade1; }
.fade-2 { animation-name: fade2; }
.fade-3 { animation-name: fade3; }

/* Carousel Styling */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100px;
}

.carousel-track {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  height: 100px;
  will-change: transform;
}

.icon-carousel,
.icon-carousel.cloned {
  display: flex;
  gap: 40px;
  height: 100px;
  flex-shrink: 0;
}

.icon-item {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.loop-gap {
  width: 30px; /* You can adjust this */
  flex-shrink: 0;
}

/* Portfolio Cards */
.card-img-top {
  object-fit: cover;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid #ccc;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}
