/* styles.css */

/* Enhanced Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

#hero .absolute.inset-0 {
  z-index: 0;
}


/* Glassmorphism Components */
.glass-nav {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  /* For older WebKit browsers */
  backdrop-filter: blur(10px);
  /* Standard property */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  /* Increased to ensure navbar is above content */
}

.glass-dropdown {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 50;
}

.glass-btn {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111827;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.2);
}

.glass-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
  transition: 0.5s ease;
}

.glass-btn:hover::after {
  left: 100%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  padding: 1rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.glass-input {
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #111827;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
  transition: all 0.3s ease;
}

.glass-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

/* Expertise Cards */
.expertise-card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  /* Fallback for unsupported mask-composite */
  background-clip: padding-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.expertise-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  padding: 2px;
  background: linear-gradient(135deg, #4f46e5, #a855f7, #ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

.expertise-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.expertise-btn {
  background: linear-gradient(to right, #4f46e5, #a855f7);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.expertise-btn:hover {
  background: linear-gradient(to right, #4338ca, #9333ea);
  transform: translateY(-2px);
}

.expertise-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
}

.expertise-btn:hover::after {
  width: 200px;
  height: 200px;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

/* Framer-Inspired Navbar */
.nav-link {
  position: relative;
  color: #111827;
  font-weight: 500;
  z-index: 100;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #4f46e5;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #4f46e5, #ec4899);
  transition: width 0.3s ease;
}

.nav-link.active {
  color: #4f46e5;
}

.nav-link.active::after {
  width: 100%;
}

/* Mobile Menu */
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  z-index: 90;
  /* Changed: Use visibility and opacity for animation compatibility */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

#mobile-menu.active {
  /* Use .active class added by JS */
  opacity: 1;
  visibility: visible;
}

@media (min-width: 640px) {
  #mobile-menu {
    display: none !important;
    /* Force hide on desktop, overriding JS */
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

#mobile-menu .flex.justify-end.p-4 {
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 95;
  padding: 1rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#mobile-menu a.nav-link,
#mobile-menu button#services-toggle {
  padding: 0.75rem 1rem;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 0.5rem;
}

#mobile-menu a.nav-link.active,
#mobile-menu button#services-toggle.active {
  color: #4f46e5;
  background-color: rgba(79, 70, 229, 0.05);
}

#mobile-menu #services-toggle {
  border: none;
  background: none;
  cursor: pointer;
}

#services-dropdown {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease;
}

#services-dropdown.is-open {
  height: auto;
  opacity: 1;
}

/* Responsive Display */
@media (min-width: 640px) {
  #menu-toggle {
    display: none;
    /* Hide hamburger on desktop */
  }

  #mobile-menu {
    display: none;
    /* Hide mobile menu on desktop */
  }
}

@media (max-width: 639px) {
  #navbar .sm\:flex {
    display: none;
    /* Hide desktop menu on mobile */
  }
}

/* Section-Specific Styles */
.partners-card {
  text-align: center;
  margin-bottom: 0.5rem;
}

.partners-card svg {
  margin-bottom: 0.75rem;
}

.services-card {
  max-width: 22rem;
  min-height: 18rem;
}

.why-choose-card {
  max-width: 20rem;
}

.testimonial-card {
  min-height: 14rem;
  justify-content: space-between;
}

.testimonial-card p:first-child {
  line-height: 1.6;
  padding-bottom: 0.5rem;
}

/* FAQ Item Styles */
.faq-question {
  cursor: pointer;
}

.faq-question svg {
  transition: transform 0.3s ease;
}

.faq-question svg.rotate-180 {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  height: 0;
  opacity: 0;
}

.faq-answer.is-open {
  height: auto;
  opacity: 1;
}

/* Grid Spacing */
.grid {
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    gap: 2.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(-4px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

/* Specific float animations for variety in hero section */
@keyframes float-light {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(5px, -5px) rotate(2deg);
  }

  66% {
    transform: translate(-5px, 5px) rotate(-2deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes float-medium {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(8px, -8px) rotate(3deg);
  }

  50% {
    transform: translate(0, -10px) rotate(0deg);
  }

  75% {
    transform: translate(-8px, 8px) rotate(-3deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  40% {
    transform: translate(3px, -3px) rotate(1deg);
  }

  80% {
    transform: translate(-3px, 3px) rotate(-1deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* About section illustration animations */
@keyframes animateDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-small {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}


@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Navbar Logo Animation */
@keyframes logo-fill-in {
  from {
    fill: transparent;
  }

  to {
    fill: currentColor;
    /* Inherit color from parent */
  }
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


.animate-hero-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-bounce-btn {
  animation: bounce 2s infinite;
}

.animate-pulse-btn {
  animation: pulse 2s infinite;
}

.animate-card {
  opacity: 0;
  transform: translateY(20px);
}

.animate-testimonial {
  opacity: 1;
  transform: none;
}

.animate-section {
  opacity: 0;
  transform: translateY(20px);
}

.animate-icon svg {
  transition: transform 0.3s ease;
}

.expertise-card:hover .animate-icon {
  transform: scale(1.15);
}

/* Apply specific float animations */
.animate-float-light {
  animation: float-light 6s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 8s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 10s ease-in-out infinite;
}

/* About section illustration specific animations */
.about-illustration path {
  stroke-dasharray: 1000;
  /* Needs to be larger than the longest path */
  stroke-dashoffset: 1000;
  animation: animateDraw 2s ease-out forwards;
}

.animate-pulse-small {
  animation: pulse-small 2s infinite ease-in-out;
}


.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid #007bff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Content Padding */
body {
  /* padding-top: 64px;  REMOVE THIS LINE */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  height: 100%;
  margin: 0;
}

/* SVG Shape Delays */
/* Removed specific delays from individual shapes to use new float animations */

footer {
  margin-top: auto;
}

footer svg {
  z-index: -1;
}

footer>div {
  position: relative;
  z-index: 1;
}

/* Responsive Section Padding */
section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .expertise-card {
    padding: 2rem;
  }

  .expertise-btn {
    padding: 0.75rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Heading Consistency */
h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  h2 {
    font-size: 1.875rem;
  }
}

/* Responsive Adjustments for Expertise Section */
@media (max-width: 400px) {
  .expertise-card {
    padding: 1rem;
  }

  .expertise-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Line Clamp for Blog Cards */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 4.5em;
}