/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@300;400&display=swap');

/* Variables */
:root {
  --primary:      #5a2bbf;
  --secondary:    #8846e0;
  --light:        #f9f9f9;
  --dark:         #111;
  --text:         #222;
  --max-width:    1200px;
  --fade-duration: 0.8s;
  --transition-speed: 0.3s;
  --font-size-base: 16px; /* Base font size */
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  font-size: var(--font-size-base);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  background-color: var(--dark);
  padding: 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.navbar__logo img {
  width: 150px;
}

.navbar__links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.navbar__list {
  display: flex;
  list-style-type: none;
}

.navbar__link {
  color: var(--light);
  margin: 0 15px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  transition: color var(--transition-speed);
}

.navbar__link:hover {
  color: var(--secondary);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.burger span {
  width: 100%;
  height: 4px;
  background-color: var(--light);
  transition: all var(--transition-speed) ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar__links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dark);
    width: 100%;
    text-align: center;
    display: none;
    flex-direction: column;
  }

  .navbar__links.nav-active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .burger.toggle span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .burger.toggle span:nth-child(2) {
    opacity: 0;
  }

  .burger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .navbar__link {
    margin: 15px 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url('images/hero-background.jpg') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--light);
}

.hero__title {
  font-size: 3rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.2rem;
}

/* Section GoFast Taxi */
#gofast-taxi {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--light);
  overflow: hidden;
  transition: background 0.5s ease-in-out; /* Transition ajoutée pour le background */
}

.service-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.gradient-title {
  font-size: 2.2rem;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #ffffff, #e0d0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Slide-in & fade-in */
.slide-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 0.7s ease-out;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.slide-in-left.appear,
.fade-in.appear {
  opacity: 1;
  transform: translate(0, 0);
}

/* Animations pour les icônes */
.rotate-on-hover img {
  width: 100px;
  transition: transform 0.8s ease-in-out;
}

.rotate-on-hover:hover img {
  transform: rotate(360deg) scale(1.1);
}

/* Ajout d'un effet hover pour augmenter la taille des services */
.service-wrapper:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Parallax effect */
.parallax-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/parallax-background.jpg') center/cover no-repeat;
  background-attachment: fixed; /* Parallax effect */
  z-index: -1; /* Keep the background behind the content */
  opacity: 0.7; /* Optional: reduce opacity for a more subtle effect */
}

/* Responsive mobile */
@media (max-width: 768px) {
  .service-wrapper {
    padding: 40px 20px;
  }

  .gradient-title {
    font-size: 1.7rem;
  }

  .rotate-on-hover img {
    width: 80px;
  }
}

/* Cards */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.services__card {
  background-color: var(--light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.services__card h3 {
  font-size: 1.5rem;
  color: var(--primary);
}

.services__card p {
  font-size: 1rem;
  color: var(--text);
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Carousel */
.carousel-inner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transition: opacity var(--fade-duration) ease-in-out;
}

.fade-in.appear {
  opacity: 1;
}

.carousel-section {
  margin-top: 60px;
}

.carousel-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: var(--light);
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--secondary);
}

/* Loader */
#loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

#loader.hide {
  opacity: 0;
  pointer-events: none;
}
