@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
}
/* Essential custom styles that cannot be easily replicated with Tailwind */
:root {
  --brand-color: #0f64a4;
  --brand-font: "League Spartan", sans-serif;
}

.heading-font {
  font-family: var(--brand-font);
}

/* Mobile menu specific styles */

header {
  background: linear-gradient(to bottom right, #f8fafc, #e2e8f0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.5);
}

.nav-link.active {
  color: var(--brand-color) !important;
  font-weight: 600 !important;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--brand-color), #06b6d4);
  transform: translateX(-50%);
}

/* Mobile menu active state */
#mobileMenu a.active {
  color: var(--brand-color) !important;
  font-weight: 600 !important;
  background-color: rgba(15, 100, 164, 0.1) !important;
  border-left: 3px solid var(--brand-color) !important;
  padding-left: 1rem !important;
}

/* Additional debugging - make active state very visible */
.nav-link.active,
#mobileMenu a.active {
  color: var(--brand-color);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  max-width: 320px;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  overflow-y: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
}

/* Body lock when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Slider transitions */
#sliderTrack,
#productsSlider,
#clientsSlider {
  transition: transform 0.5s ease;
}

/* Swiper navigation styling overrides for clients/products */
.clients-swiper .swiper-button-prev,
.clients-swiper .swiper-button-next,
.products-swiper .swiper-button-prev,
.products-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(15, 100, 164, 0.2);
}

.clients-swiper .swiper-button-prev:after,
.clients-swiper .swiper-button-next:after,
.products-swiper .swiper-button-prev:after,
.products-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after,
.hero-swiper .swiper-button-next:after {
  font-size: 16px;
  color: var(--brand-color);
}

.clients-swiper .swiper-pagination-bullet,
.products-swiper .swiper-pagination-bullet,
.hero-swiper .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
}
.clients-swiper .swiper-pagination-bullet-active,
.products-swiper .swiper-pagination-bullet-active,
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--brand-color);
}

/* Product and client slide responsive widths */
@media (max-width: 768px) {
  .product-slide,
  .client-slide {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-slide {
    width: 50%;
  }
  .client-slide {
    width: 50%;
  }
}

@media (min-width: 1025px) {
  .product-slide {
    width: 33.333%;
  }
  .client-slide {
    width: 25%;
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) translateX(5px) rotate(2deg);
  }
  50% {
    transform: translateY(5px) translateX(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-5px) translateX(10px) rotate(1deg);
  }
}

@keyframes bounce-custom {
  0%,
  100% {
    transform: translateY(0); /* Start & End at normal position */
  }
  50% {
    transform: translateY(-5px); /* Moves up */
  }
}

.bounce-container {
  display: inline-block; /* Keeps it neat */
  animation: bounce-custom 3s ease-in-out infinite;
}

/* our products hover */

/* Enhanced glow effect with brand color only */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(15, 100, 164, 0.15),
    transparent
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.8s ease;
  z-index: 1;
}

.glow-effect:hover::before {
  transform: rotate(45deg) translateX(100%);
}

/* Smooth floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

/* Brand color border effect */
.brand-border {
  border: 2px solid transparent;
  border-radius: 20px;
  transition: all 0.4s ease;
}

.brand-border:hover {
  border-color: #0f64a4;
  box-shadow: 0 0 20px rgba(15, 100, 164, 0.3);
}

/* Image zoom and overlay effects */
.image-container {
  position: relative;
  overflow: hidden;
}

.image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 100, 164, 0.1);
  opacity: 0;
  transition: all 0.4s ease;
}

.image-container:hover::after {
  opacity: 1;
}

/* Enhanced button effects with brand color */
.demo-button {
  position: relative;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px rgba(15, 100, 164, 0.2);
  border: 1px solid rgba(15, 100, 164, 0.2);
}

.demo-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(15, 100, 164, 0.1);
  transition: left 0.5s ease;
}

.demo-button:hover::before {
  left: 100%;
}

/* Text effect with brand color */
.brand-text-effect {
  background: #0f64a4;
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.brand-text-effect:hover {
  background: linear-gradient(90deg, #0f64a4 0%, #1976d2 50%, #0f64a4 100%);
  animation: brand-shimmer 2s linear infinite;
}

@keyframes brand-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Swiper custom styles */
.swiper-button-prev,
.swiper-button-next {
  color: var(--brand-color) !important;
  background: white;
  border-radius: 50%;
  width: 50px !important;
  height: 50px !important;
  box-shadow: 0 8px 25px rgba(15, 100, 164, 0.15);
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(15, 100, 164, 0.25);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: var(--brand-color) !important;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.3);
}

/* Enhanced section header with brand color */
.header-brand {
  background: #0f64a4;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.divider-line {
  background: linear-gradient(to right, transparent, #0f64a4, transparent);
  height: 4px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.divider-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(15, 100, 164, 0.3);
  animation: slide 2s ease-in-out infinite;
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Card shadow enhancement */
.enhanced-shadow {
  box-shadow: 0 10px 30px rgba(15, 100, 164, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enhanced-shadow:hover {
  box-shadow: 0 25px 60px rgba(15, 100, 164, 0.25);
  transform: translateY(-15px);
}

.client-card {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 100, 164, 0.1);
}

.client-image {
  position: relative;
  overflow: hidden;
}

.client-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: all 0.3s ease;
}

.client-card:hover .client-image::before {
  background: linear-gradient(
    135deg,
    rgba(15, 100, 164, 0.8) 0%,
    rgba(15, 100, 164, 0.9) 100%
  );
}

.hover-overlay {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-card:hover .hover-overlay {
  opacity: 1 !important;
  transform: translateY(0px) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: #0f64a4 !important;
  background: white;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -25px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: #0f64a4 !important;
  opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  transform: scale(1.2);
}

.client-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.05);
}

