/* ============================= */
/* GLOBAL STYLES */
/* ============================= */

:root {

  --primary-color: #0f172a;
  --secondary-color: #2563eb;
  --accent-color: #f59e0b;

  --white-color: #ffffff;
  --light-color: #f8fafc;
  --dark-color: #111827;
  --gray-color: #64748b;

  --transition: 0.3s ease;

}

* {

  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

html {

  scroll-behavior: smooth;

}

body {

  font-family: 'Poppins', sans-serif;
  background: var(--light-color);
  color: var(--dark-color);
  overflow-x: hidden;

}



/* ============================= */
/* CUSTOM SCROLLBAR */
/* ============================= */

::-webkit-scrollbar {

  width: 10px;

}

::-webkit-scrollbar-track {

  background: #e2e8f0;

}

::-webkit-scrollbar-thumb {

  background: var(--secondary-color);
  border-radius: 10px;

}



/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {

  padding: 18px 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  z-index: 1000;

}

.navbar-scrolled {

  padding: 12px 0;
  background: rgba(15, 23, 42, 0.98);

}

.navbar-brand {

  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white-color) !important;

}

.nav-link {

  color: #dbeafe !important;
  margin: 0 10px;
  font-weight: 500;
  position: relative;
  transition: var(--transition);

}

.nav-link:hover,
.nav-link.active {

  color: var(--accent-color) !important;

}

.nav-link::after {

  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;

  width: 0%;
  height: 2px;

  background: var(--accent-color);

  transition: var(--transition);

}

.nav-link:hover::after,
.nav-link.active::after {

  width: 100%;

}

.nav-btn {

  border-radius: 12px;
  padding: 10px 22px;

}



/* ============================= */
/* BUTTONS */
/* ============================= */

.custom-btn {

  background: var(--accent-color);
  color: var(--white-color);

  border: none;
  border-radius: 14px;

  padding: 12px 28px;

  font-weight: 600;

  transition: var(--transition);

}

.custom-btn:hover {

  transform: scale(1.05);
  
  background: #e08a12;
  
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);

  color: var(--white-color);

}



/* ============================= */
/* HERO SECTION */
/* ============================= */

.hero-section {

  background:
    linear-gradient(rgba(15, 23, 42, 0.7),
      rgba(15, 23, 42, 0.7)),
    url("../images/bus-hero.avif");

  background-size: cover;
  background-position: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;

  display: flex;
  align-items: center;

  color: white;

  position: relative;

}

.hero-content {

  animation: fadeUp 1s ease;

}

.hero-badge {

  display: inline-block;

  background: rgba(255, 255, 255, 0.12);

  padding: 10px 20px;
  border-radius: 50px;

  margin-bottom: 20px;

  font-size: 14px;

}

.hero-content h1 {

  font-size: 4rem;
  font-weight: 700;

  line-height: 1.2;

  margin-bottom: 24px;

}

.hero-content p {

  font-size: 1.1rem;

  color: #e2e8f0;

  margin-bottom: 30px;

  max-width: 550px;

}

.hero-buttons {

  display: flex;
  gap: 16px;
  flex-wrap: wrap;

}

.hero-image img {

  animation: floatImage 4s ease-in-out infinite;

}



/* ============================= */
/* SEARCH SECTION */
/* ============================= */

.search-section {

  margin-top: -60px;
  position: relative;
  z-index: 10;

}

.search-box {

  background: var(--white-color);

  padding: 40px;

  border-radius: 24px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);

}

.form-label {

  font-weight: 600;
  margin-bottom: 10px;

}

.form-control {

  height: 55px;

  border-radius: 14px;

  border: 1px solid #cbd5e1;

  padding-left: 16px;

  transition: var(--transition);

}

.form-control:focus {

  border-color: var(--secondary-color);

  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);

}



/* ============================= */
/* SECTION STYLES */
/* ============================= */

.section-padding {

  padding: 100px 0;

}

.section-title {

  text-align: center;

  margin-bottom: 60px;

}

.section-title h2 {

  font-size: 2.5rem;
  font-weight: 700;

  margin-bottom: 15px;

}

.section-title p {

  color: var(--gray-color);
  font-size: 1.05rem;

}



/* ============================= */
/* OFFER CARDS */
/* ============================= */

.offer-card {

  background: var(--white-color);

  border-radius: 22px;

  overflow: hidden;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  transition: var(--transition);

  opacity: 0;
  transform: translateY(40px);

  position: relative;
  z-index: 2;
}

.offer-card.show {

  opacity: 1;
  transform: translateY(0);

}

.offer-card:hover {

  transform:
    translateY(-6px)
    scale(1.02);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.14);

}

.offer-card img {

  width: 100%;
  height: 240px;

  object-fit: cover;

}

.offer-content {

  padding: 24px;

}

.offer-tag {

  display: inline-block;

  background: #dbeafe;
  color: var(--secondary-color);

  padding: 8px 14px;

  border-radius: 50px;

  font-size: 13px;
  font-weight: 600;

  margin-bottom: 16px;

}

.offer-content h4 {

  font-weight: 700;
  margin-bottom: 12px;

}

.offer-content p {

  color: var(--gray-color);

  margin-bottom: 20px;

}

.carousel {

  overflow: visible;

}

.carousel-inner {

  overflow: visible;

}

.carousel-item {

  overflow: visible;

  padding: 20px 0;

}



/* ============================= */
/* ROUTE CARDS */
/* ============================= */

.route-card {

  background: var(--white-color);

  border-radius: 22px;

  padding: 28px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  transition: var(--transition);

  opacity: 0;
  transform: translateY(40px);

}

.route-card.show {

  opacity: 1;
  transform: translateY(0);

}

.route-card:hover {

  transform:
    translateY(-6px)
    scale(1.02);

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.14)

}

.route-top {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 20px;

}

.route-badge {

  background: #dbeafe;
  color: var(--secondary-color);

  padding: 8px 14px;

  border-radius: 50px;

  font-size: 13px;
  font-weight: 600;

}

.route-rating {

  font-weight: 600;

}

.route-card h4 {

  font-weight: 700;
  margin-bottom: 12px;

}

.route-card p {

  color: var(--gray-color);

  margin-bottom: 20px;

}

.route-bottom {

  display: flex;

  justify-content: space-between;

  align-items: center;

}

.route-bottom h5 {

  font-size: 1.4rem;
  font-weight: 700;

}



/* ============================= */
/* FAQ SECTION */
/* ============================= */

.accordion-item {

  border: none;

  margin-bottom: 18px;

  border-radius: 18px !important;

  overflow: hidden;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);

}

.accordion-button {

  font-weight: 600;

  padding: 22px;

}

.accordion-button:focus {

  box-shadow: none;

}

.accordion-button:not(.collapsed) {

  background: #dbeafe;
  color: var(--secondary-color);

}



/* ============================= */
/* CONTACT SECTION */
/* ============================= */

.contact-card {

  background: var(--white-color);

  padding: 40px;

  border-radius: 24px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  opacity: 0;
  transform: translateY(40px);

}

.contact-card.show {

  opacity: 1;
  transform: translateY(0);

}

textarea.form-control {

  height: auto;
  resize: none;

}



/* ============================= */
/* FOOTER */
/* ============================= */

.footer {

  background: var(--primary-color);

  color: var(--white-color);

  text-align: center;

  padding: 30px 0;

}



/* ============================= */
/* BACK TO TOP BUTTON */
/* ============================= */

.back-to-top {

  position: fixed;

  bottom: 30px;
  right: 30px;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;

  background: var(--accent-color);
  color: var(--white-color);

  font-size: 20px;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transition: var(--transition);

  z-index: 999;

}

.back-to-top.show-btn {

  opacity: 1;
  visibility: visible;

}



/* ============================= */
/* ANIMATIONS */
/* ============================= */

@keyframes fadeUp {

  from {

    opacity: 0;
    transform: translateY(40px);

  }

  to {

    opacity: 1;
    transform: translateY(0);

  }

}

@keyframes floatImage {

  0% {

    transform: translateY(0px);

  }

  50% {

    transform: translateY(-15px);

  }

  100% {

    transform: translateY(0px);

  }

}



/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */

@media (max-width: 992px) {

  .hero-content {

    text-align: center;

  }

  .hero-buttons {

    justify-content: center;

  }

  .hero-content h1 {

    font-size: 3rem;

  }

  .hero-image {

    margin-top: 50px;

    text-align: center;

  }

}

@media (max-width: 768px) {

  .section-padding {

    padding: 80px 0;

  }

  .hero-content h1 {

    font-size: 2.4rem;

  }

  .section-title h2 {

    font-size: 2rem;

  }

  .search-box {

    padding: 25px;

  }

  .route-bottom {

    flex-direction: column;
    align-items: flex-start;
    gap: 15px;

  }

}

@media (max-width: 576px) {

  .hero-content h1 {

    font-size: 2rem;

  }

  .hero-buttons {

    flex-direction: column;

  }

  .hero-buttons .btn {

    width: 100%;

  }

  .navbar-brand {

    font-size: 1.4rem;

  }

}