:where([class^="ri-"])::before {
  content: "\f3c2";
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
}
.carousel {
  transition: transform 1.5s ease-in-out;
}
.carousel-item {
  transition: opacity 0.5s ease-in-out;
}
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-up {
  animation: slideUp 0.8s ease-in-out;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-in-right {
  animation: slideInRight 0.8s ease-in-out;
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.scale-in {
  animation: scaleIn 0.8s ease-in-out;
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.progress-bar {
  transition: width 0.5s ease-in-out;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-checkbox {
  position: relative;
  cursor: pointer;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  border: 2px solid #000000;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.custom-checkbox:hover input ~ .checkmark {
  border-color: #ccc;
}
.custom-checkbox input:checked ~ .checkmark {
  background-color: #f4050b;
  border-color: #f4050b;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.custom-checkbox .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .switch-slider {
  background-color: #f4050b;
}
input:checked + .switch-slider:before {
  transform: translateX(24px);
}
.custom-range {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #e0e0e0;
  outline: none;
}
.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4050b;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.custom-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f4050b;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hover-grow {
  transition: transform 0.3s ease;
}
.hover-grow:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.3s ease;
}
.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-shadow-lg {
  transition: box-shadow 0.3s ease;
}
.hover-shadow-lg:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-hover {
  transition: all 0.3s ease;
}
.btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #f4050b;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.animate-delay-100 {
  animation-delay: 0.1s;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-300 {
  animation-delay: 0.3s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-500 {
  animation-delay: 0.5s;
}
.animate-delay-600 {
  animation-delay: 0.6s;
}
.animate-delay-700 {
  animation-delay: 0.7s;
}
.animate-delay-800 {
  animation-delay: 0.8s;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom animation classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}
.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}
.animate-slide-down {
  animation: slideDown 0.8s ease-out;
}
.animate-slide-left {
  animation: slideLeft 0.8s ease-out;
}
.animate-slide-right {
  animation: slideRight 0.8s ease-out;
}
.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}
.animate-rotate-in {
  animation: rotateIn 0.8s ease-out;
}
.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.gradient-bg {
  background: linear-gradient(135deg, #f4050b 0%, #f4050b 100%);
}
.service-hero {
  background-image: url("https://images.unsplash.com/photo-1483721310020-03333e577078?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: #a8020293;
}
.service-card {
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}
.tab-button {
  transition: all 0.3s ease;
}
.tab-button.active {
  background-color: #f4050b;
  color: white;
}
.stats-item {
  position: relative;
  overflow: hidden;
}
.stats-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #f4050b, #a802029e);
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  }
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.wave-animation {
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

.glow-box {
  box-shadow: 0 0 15px rgba(0, 86, 179, 0.3);
  transition: all 0.3s ease;
}

.glow-box:hover {
  box-shadow: 0 0 25px rgba(0, 86, 179, 0.5);
  transform: translateY(-5px);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4050b;
  border: 4px solid white;
  box-shadow: 0 0 0 4px #f4050b;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  height: 100%;
  width: 4px;
  background: #f4050b;
}

.floating-shape {
  animation: float 6s ease-in-out infinite;
}

.rotate-icon {
  transition: transform 0.6s ease;
}

.rotate-icon:hover {
  transform: rotate(360deg);
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.service-feature {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-feature:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  transition: all 0.5s ease;
}
.service-feature:hover .service-icon {
  transform: scale(1.2) rotate(5deg);
  color: #0056b3;
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.btn-hover {
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}
.btn-hover:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-hover:active {
  transform: translateY(-1px);
}

.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.text-gradient {
  background: linear-gradient(90deg, #f4050b, #d40000);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-card {
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}
.contact-card.animate {
  transform: translateY(0);
  opacity: 1;
}
.contact-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(168, 2, 2, 0.15);
}
.contact-icon {
  transition: all 0.3s ease;
}
.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  color: #0056b3;
}
.hero-title {
  background: linear-gradient(90deg, #ffffff, #f8d7da);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.floating {
  animation: float 6s ease-in-out infinite;
}
.gradient-border {
  position: relative;
}
.gradient-border::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f4050b, #000000);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.gradient-border:hover::after {
  transform: scaleX(1);
}
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}
.btn-glow:hover::before {
  opacity: 1;
  animation: shine 1.5s;
}
@keyframes shine {
  0% {
    left: -100%;
    top: -100%;
  }
  100% {
    left: 100%;
    top: 100%;
  }
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.map-container {
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.quote-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.form-input:focus {
  border-color: #f4050b;
  box-shadow: 0 0 0 2px rgba(168, 2, 2, 0.2);
}
.branch-card {
  transition: all 0.3s ease;
}
.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(168, 2, 2, 0.1);
}

/* Chatbot toggle */

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

#typing-loader .dot {
  animation: blink 2s infinite;
}
#typing-loader .dot:nth-child(2) {
  animation-delay: 0.4s;
}
#typing-loader .dot:nth-child(3) {
  animation-delay: 0.8s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

.animate-fade-slide-in {
  animation: fadeSlideIn 0.4s ease-out;
}

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

/* Gallery */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: float 8s ease-in-out infinite;
}

.gallery-item {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
}

.gallery-item:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

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

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

.image-viewer {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.image-viewer.active {
  opacity: 1;
  visibility: visible;
}

.image-viewer img {
  max-height: 80vh;
  max-width: 90vw;
  transition: transform 0.3s ease;
}

.image-viewer.active img {
  animation: fadeIn 0.5s ease-out forwards;
}

.nav-button {
  transition: all 0.3s ease;
}

.nav-button:hover {
  transform: scale(1.2);
  background-color: rgba(168, 2, 2, 0.7);
}

.close-button {
  transition: all 0.3s ease;
}

.close-button:hover {
  transform: rotate(90deg);
}

.category-filter {
  transition: all 0.3s ease;
}

.category-filter:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-filter.active {
  background-color: #a80202;
  color: white;
}

/* index page css */

/* Custom CSS for additional animations */
.hover-grow {
  transition: transform 0.3s ease;
}
.hover-grow:hover {
  transform: scale(1.05);
}

.hover-rotate {
  transition: transform 0.3s ease;
}
.hover-rotate:hover {
  transform: rotate(5deg);
}

.hover-shadow-lg {
  transition: box-shadow 0.3s ease;
}
.hover-shadow-lg:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-hover {
  transition: all 0.3s ease;
}
.btn-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #f4050b;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.animate-delay-100 {
  animation-delay: 0.1s;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-300 {
  animation-delay: 0.3s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-500 {
  animation-delay: 0.5s;
}
.animate-delay-600 {
  animation-delay: 0.6s;
}
.animate-delay-700 {
  animation-delay: 0.7s;
}
.animate-delay-800 {
  animation-delay: 0.8s;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom animation classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}
.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}
.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}
.animate-slide-down {
  animation: slideDown 0.8s ease-out;
}
.animate-slide-left {
  animation: slideLeft 0.8s ease-out;
}
.animate-slide-right {
  animation: slideRight 0.8s ease-out;
}
.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}
.animate-rotate-in {
  animation: rotateIn 0.8s ease-out;
}
.animate-shake {
  animation: shake 0.5s ease-in-out;
}
