.topbanner-cinematic {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 15px;
}

/* Slideshow Container */
.cinematic-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Semi-transparent Dark overlay */
.cinematic-bg-slider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.cinematic-bg-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  animation: kenBurnsFade 25s infinite;
}

/* 5 slides, each active for 5s (20% of 25s) */
.cinematic-bg-slider .slide:nth-child(1) {
  animation-delay: 0s;
}
.cinematic-bg-slider .slide:nth-child(2) {
  animation-delay: 5s;
}
.cinematic-bg-slider .slide:nth-child(3) {
  animation-delay: 10s;
}
.cinematic-bg-slider .slide:nth-child(4) {
  animation-delay: 15s;
}
.cinematic-bg-slider .slide:nth-child(5) {
  animation-delay: 20s;
}

@keyframes kenBurnsFade {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  5% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  25% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

.container-cinematic {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1140px;
}

.cinematic-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.cinematic-title {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: 3.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.8s ease-out;
  text-align: center;
}

/* Search Bar Container */
.cinematic-search-container {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-top: 1rem;
  animation: fadeInUp 1.1s ease-out;
}

/* Microphone Button (overlapping the top border) */
.cinematic-mic-btn {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  border: 4px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.cinematic-mic-btn svg {
  transition: transform 0.2s ease;
}

.cinematic-mic-btn:hover {
  transform: translate(-50%, -55%) scale(1.06);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.5), 0 0 0 6px rgba(37, 99, 235, 0.2);
}

.cinematic-mic-btn:hover svg {
  transform: scale(1.08);
}

.cinematic-mic-btn:active {
  transform: translate(-50%, -48%) scale(0.96);
}

/* Listening State Pulse Animation */
.cinematic-mic-btn.listening {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 0 0 0px rgba(239, 68, 68, 0.5), 0 0 25px rgba(239, 68, 68, 0.7);
  border-color: #ffffff;
}

.cinematic-mic-btn.listening svg {
  animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Input Wrapper styling */
.cinematic-input-wrapper {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 64px;
  position: relative;
  z-index: 10;
}

.cinematic-input-wrapper:hover {
  border-color: rgba(203, 213, 225, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.cinematic-input-wrapper.active-focus {
  border-color: #2563eb;
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
}

.cinematic-sparkles-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-right: 14px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.cinematic-input-wrapper.active-focus .cinematic-sparkles-icon {
  color: #2563eb;
  transform: rotate(15deg) scale(1.1);
}

.cinematic-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 1.15rem;
  color: #1e293b;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.cinematic-input::placeholder {
  color: #94a3b8;
  transition: color 0.3s ease;
}

.cinematic-input-wrapper.listening-mode {
  border-color: #ef4444;
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.15);
}

.cinematic-input-wrapper.listening-mode .cinematic-input::placeholder {
  color: #ef4444;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness */
@media (max-width: 991px) {
  .cinematic-title {
    font-size: 3rem;
    margin-bottom: 2.5rem;
  }
  .cinematic-search-container {
    max-width: 90%;
  }
  .cinematic-mic-btn {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 576px) {
  .topbanner-cinematic {
    height: 80vh;
  }
  .cinematic-title {
    font-size: 2.2rem;
    margin-bottom: 2.2rem;
  }
  .cinematic-input-wrapper {
    padding: 12px 18px;
    min-height: 56px;
  }
  .cinematic-input {
    font-size: 1rem;
  }
  .cinematic-mic-btn {
    width: 48px;
    height: 48px;
  }
}

/* About section alignment fixes */
.about-image {
    margin-top: 0;
    padding-top: 0;
}

.about-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.features-area .about-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.image {
    margin-top: 0;
    padding-top: 0;
}

.features-area .row {
    align-items: flex-start !important;
}

.features-area .row > [class*="col-"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.features-area .about-text h1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.features-area .about-image .row {
    margin-top: 0;
    padding-top: 0;
}
