@import "tailwindcss";

* {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.gradient-overlay {
  background: linear-gradient(
    to right,
    rgba(124, 58, 237, 0.1),
    rgba(139, 92, 246, 0.05)
  );
}

.banner-slide {
  height: 600px;
}

@media (max-width: 768px) {
  .banner-slide {
    height: 500px;
  }
}

.content-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide-active .content-fade-in {
  opacity: 1;
  transform: translateY(0);
}

.slide-background {
  position: absolute;
  inset: 0;
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-gradient {
  background: linear-gradient(145deg, #4c1d95 0%, #581c87 50%, #6d28d9 100%);
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .glass-effect {
    backdrop-filter: blur(5px);
  }
}

.footer-link {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: white;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

@media (hover: hover) {
  .footer-link:hover {
    transform: translateX(8px);
    color: white;
  }

  .social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
  }
}

.social-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-input:focus {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.wave-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.1;
  transform: translateY(-99%);
}

.glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #7c3aed;
  filter: blur(100px);
  opacity: 0.2;
}

@media (max-width: 768px) {
  .glow {
    width: 150px;
    height: 150px;
    filter: blur(50px);
  }
}

/* Accordion styles for mobile */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 500px;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-icon.active {
  transform: rotate(180deg);
}

/* Major services section */
.card-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slide-indicator {
  transition: all 0.3s ease;
}

.slide-indicator.active {
  width: 2rem;
  background-color: #4c1d95;
}

.city-card {
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
}

.city-image {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 70%;
  transition: all 0.4s ease-in-out;
  opacity: 0;
}

.city-name {
  transition: all 0.3s ease-in-out;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.city-card:hover .city-image {
  bottom: 0;
  opacity: 1;
}

.city-card:hover .city-name {
  top: 20%;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* tabs */
.tab-underline {
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: all 0.3s ease;
}

.tab-button.active .tab-underline {
  width: 100%;
}

.device-card {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.device-card:hover {
  transform: translateY(-8px);
}

.device-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(79, 70, 229, 0.9) 0%,
    rgba(99, 102, 241, 0.8) 100%
  );
  padding: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-card:hover .device-overlay {
  bottom: 0;
}

.tab-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: none;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
  display: grid;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, #818cf8, #6366f1);
  opacity: 0.1;
  z-index: 0;
}

/* care2home */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-600 {
  animation-delay: 600ms;
}

.category-btn.active {
  background-color: rgb(124 58 237);
  color: white;
  /* transform: translateY(-4px); */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.category-btn.active svg {
  color: white;
}

.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
  position: relative;
}

.category-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.category-content.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.image-container img {
  transition: all 0.7s ease-in-out;
}

.image-container:hover img {
  transform: scale(1.05);
}

.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.benefit-item {
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(8px);
}

.gradient-overlay {
  background: linear-gradient(
    90deg,
    rgba(88, 28, 135, 0.8),
    rgba(88, 28, 135, 0.4),
    rgba(88, 28, 135, 0.2)
  );
}

.banner-slide {
  height: 750px;
}

@media (max-width: 768px) {
  .banner-slide {
    height: 100vh;
  }
}

.slide-content {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.swiper-slide-active .slide-content {
  opacity: 1;
  transform: translateY(0);
}

.floating-card {
  animation: float 3s ease-in-out infinite;
}

.floating-card-delayed {
  animation: float 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.blur-backdrop {
  backdrop-filter: blur(8px);
}

.noise-bg {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
}

.navbar-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-shadow {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translate(-100%, -100%) rotate(25deg);
  }

  100% {
    transform: translate(100%, 100%) rotate(25deg);
  }
}

/* About us css */
.clip-path-slant {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.tech-grid-bg {
  background-image: radial-gradient(rgba(37, 99, 235, 0.1) 2px, transparent 2px),
    radial-gradient(rgba(37, 99, 235, 0.05) 2px, transparent 2px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.neo-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 2px;
}

.card-highlight {
  position: relative;
  overflow: hidden;
}

.card-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 180px;
  background-color: rgba(79, 70, 229, 0.9);
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 6px 10px;
  position: absolute;
  z-index: 100;
  bottom: 125%;
  left: 25%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
  pointer-events: none;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(79, 70, 229, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Disabled link style */
.disabled-link {
  color: #9ca3af !important;
  cursor: not-allowed;
  pointer-events: none;
}
