/* Custom Styles for Travel Agency Website */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #007bff;
  /* A nice blue */
  --secondary-color: #6c757d;
  /* A calm gray */
  --light-color: #f8f9fa;
  /* Light background */
  --dark-color: #343a40;
  /* Dark text/background */
  --font-family: 'Poppins', sans-serif;
  --border-radius: 0.25rem;
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: calc(50% - 25px);
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.navbar {
  transition: all 0.5s;
  padding: 15px 0;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 28px;
}

.nav-link {
  color: #fff;
  transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?q=80&w=2070&auto=format&fit=crop') no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content .typewriter {
  border-right: .15em solid var(--primary-color);
  animation: blink-caret .75s step-end infinite;
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--primary-color);
  }
}

/*--------------------------------------------------------------
# Why Choose Us Section
--------------------------------------------------------------*/
.why-us .icon-box {
  text-align: center;
  padding: 30px 20px;
  transition: all ease-in-out 0.3s;
  background: #fff;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.08);
}

.why-us .icon-box .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: ease-in-out 0.3s;
}

.why-us .icon-box .icon i {
  color: #fff;
  font-size: 28px;
}

.why-us .icon-box h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
}

.why-us .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.why-us .icon-box:hover {
  transform: translateY(-10px);
}

/*--------------------------------------------------------------
# Featured Packages (Cards)
--------------------------------------------------------------*/
.packages .card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.packages .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.packages .card-body {
  padding: 25px;
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery .gallery-item {
  overflow: hidden;
  border-radius: 10px;
}

.gallery .gallery-item img {
  transition: transform 0.3s ease;
}

.gallery .gallery-item:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
  background-color: var(--light-color);
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  padding: 30px;
  margin: 60px 15px 30px 15px;
  min-height: 200px;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  background: #fff;
  border-radius: 10px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  position: absolute;
  top: -45px;
  left: calc(50% - 45px);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0;
}

.testimonials .carousel-indicators button {
  background-color: var(--secondary-color);
}

.testimonials .carousel-indicators .active {
  background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: #1a1a1a;
  /* Darker, more modern background */
  color: #a0a0a0;
  font-size: 14px;
  padding: 60px 0 30px 0;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  color: var(--primary-color);
  font-size: 18px;
  line-height: 1;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: #a0a0a0;
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: #fff;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #444;
  color: #fff;
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.footer .newsletter-form input[type="email"] {
  border: 0;
  padding: 8px;
  width: calc(100% - 110px);
  border-radius: 5px 0 0 5px;
}

.footer .newsletter-form input[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  background: none;
  font-size: 16px;
  padding: 0 20px;
  background: var(--primary-color);
  color: #fff;
  transition: 0.3s;
  border-radius: 0 5px 5px 0;
}

.footer .newsletter-form input[type="submit"]:hover {
  background: #0056b3;
  /* Darker blue */
}

.footer .copyright {
  border-top: 1px solid #333;
  padding-top: 30px;
  margin-top: 30px;
  text-align: center;
}

/*--------------------------------------------------------------
# Mobile Responsiveness
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 60px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .footer .footer-info,
  .footer .footer-links,
  .footer .footer-contact {
    text-align: center;
  }

  .footer .social-links {
    justify-content: center;
  }

  .footer .newsletter-form input[type="email"] {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .footer .newsletter-form input[type="submit"] {
    position: static;
    width: 100%;
    border-radius: 5px;
  }
}