* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --gray: rgba(228, 227, 227, 0.49);
  --light: #f8f9fa;
  --dark: #212529;
  --saffron: #ff9933;
  --white: #ffffff;
  --green: #a3f69c;
  --danger: #f86060;
}

body {
  font-family: "Roboto";
}

/* Navbar Styles */
.navbar {
  padding: 5px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  color: var(--secondary);
  padding: 8px 15px;
  margin: 0 5px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--white),
    var(--green)
  );
  transition: width 0.3s ease;
  border-radius: 10px;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Sidebar nav animation (Left Side) */
    .offcanvas-nav {
      position: fixed;
      top: 0;
      left: -250px; /* hidden off-screen */
      width: 250px;
      height: 100%;
      background: var(--secondary);
      padding-top: 60px;
      transition: left 0.4s ease-in-out;
      z-index: 1050;
    }

    .offcanvas-nav.show {
      left: 0; /* slide in */
    }

    .offcanvas-nav .nav-item {
      list-style-type: none;
    }

    .offcanvas-nav a {
      display: block;
      padding: 12px 20px;
      color: #fff !important;
      text-decoration: none;
      transition: background 0.3s;
    }

    .offcanvas-nav a:hover {
      background: var(--primary);
      border-radius: 10px;
    }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  transform: translateY(20px);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Optional: Add a pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

.back-to-top.pulse {
  animation: pulse 1.5s infinite;
}

/* Contact Form */
.contact {
  background-color: var(--gray);
  border-radius: 6px;
  border: none;
}

.contact .msg {
  text-align: center;
}

.custom-placeholder {
  color: var(--secondary) !important;
  font-size: 12px;
}

.custom-placeholder::placeholder {
  font-size: 12px;
}

#contactForm .form-control:hover {
  border: none;
  border-bottom: 3px solid var(--secondary);
  background-color: var(--light);
}

#contactForm p {
  text-align: center;
  margin: 25px;
  color: var(--secondary);
}

.btn-success-state {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  animation: none !important;
}

.form-control.is-valid {
  background-image: none;
  padding-right: 12px;
}

.form-control.is-invalid {
  background-image: none;
  padding-right: 12px;
}

#contactForm1 .btn,
#contactForm .btn {
  border-radius: 25px;
}

.whatsapp-button .btn {
  border-radius: 25px;
}

.hover-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.map-container {
  overflow: hidden;
  border-radius: 10px;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Footer */
footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
}

.social-icons a {
  display: inline-block;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  color: white !important;
}

@media (max-width: 992px) {
  .custom-placeholder::placeholder {
    font-size: 16px;
  }

  .form-select,
  .form-select option {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .custom-placeholder::placeholder {
    font-size: 16px !important;
  }

  .form-select,
  .form-select option {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .nav-link:hover::after {
    width: 0%;
  }
  .form-select option{
    width: 250px;
    font-size: 0.5rem;
  }
}
