/* style.css */
.gradient-text {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
 .popping-text {
font-family: 'Sansita One', sans-serif;
      font-weight: bold;
      font-style: italic; 
      color: #0b0b5a; 
    }
     .popping-new-text {
      font-family: 'Palanquin Dark', sans-serif;
            font-weight: bold;
          font-style: normal;
          color: #B29C70; 
          font-size: 48px;
        }

    /* For subtext */
.sub-text {
  font-family: 'Palanquin', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: #555;
}

.desert-sand {
  background-color: #B29C70;
}
/* Dark mode styles */
body.dark {
  background-color: #111827;
  color: #f9fafb;
}
body.dark .bg-white {
  background-color: #1e293b;
}
body.dark .bg-gray-50 {
  background-color: #1e293b;
}
body.dark .bg-indigo-900 {
  background-color: #1e40af;
}
body.dark .text-gray-800 {
  color: #f9fafb;
}
body.dark .text-white {
  color: #f9fafb;
}
body.dark .border {
  border-color: #4b5563;
}
body.dark input,
body.dark textarea {
  background-color: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}
body.dark button {
  background-color: #3b82f6;
  color: white;
}
body.dark button:hover {
  background-color: #2563eb;
}
body.dark .card-shadow {
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}
body.dark .card-shadow:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}
body.dark .logo-grid img {
  filter: invert(1);
}

/* Button hover effect */
button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Animation utilities */
.opacity-0 {
  opacity: 0 !important;
}

/* Ensure animations play on visible elements */
.animate-slide-up,
.animate-slide-in-left,
.animate-slide-in-right,
.animate-zoom-in,
.animate-fade-in {
  animation-fill-mode: forwards;
  will-change: transform, opacity;
}

/* Add transition for opacity removal */
.animate-slide-up:not(.opacity-0),
.animate-slide-in-left:not(.opacity-0),
.animate-slide-in-right:not(.opacity-0),
.animate-zoom-in:not(.opacity-0),
.animate-fade-in:not(.opacity-0) {
  opacity: 1 !important;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

/* Section padding */
.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Card shadow */
.card-shadow {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}
.card-shadow:hover {
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  place-items: center;
}

/* Responsive typography */
.text-3xl {
  font-size: 1.875rem;
}
@media (min-width: 1024px) {
  .text-3xl {
    font-size: 2.25rem;
  }
}

/* Gradient button */
.btn-gradient {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
  /* style.css */
@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-scroll {
  display: flex;
  width: max-content;
  animation: scrollX 30s linear infinite;
}

.logo-scroll:hover {
  animation-play-state: paused;
}

/* Enhanced image effects */
img {
  transition: transform 0.5s ease, filter 0.3s ease;
}

img:hover {
  filter: brightness(1.05);
}

/* Card enhancements */
.card-shadow {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth page transitions */
body {
  transition: background-color 0.3s ease;
}

/* Link hover effects */
a {
  transition: color 0.3s ease;
}

/* Hero section text animation */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  }
}

.popping-new-text {
  /* remove glow animation so the brown color displays cleanly */
  animation: none;
}

/* Parallax hero section */
.hero-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Mobile: disable parallax for better performance */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
}

/* Loading state improvements */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Improved shadow effects */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

/* Stat cards styling */
.stat-card {
  padding: 1.5rem;
  cursor: pointer;
}

.stat-card .counter {
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.stat-card:hover .counter {
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
  transform: scale(1.1);
  display: inline-block;
}

/* ============================================
   MODERN HEADER & FOOTER STYLES
   ============================================ */

/* Modern Header Styles */
.modern-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.modern-header .logo-wrapper {
  position: relative;
}

.modern-header .logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(45deg, transparent, rgba(234, 179, 8, 0.2), transparent);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modern-header .logo-wrapper:hover::before {
  opacity: 1;
}

.modern-header .nav-link {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.modern-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #eab308, #fbbf24);
  transition: width 0.3s ease;
}

.modern-header .nav-link:hover::after {
  width: 80%;
}

/* Mobile menu animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideDown {
  animation: slideDown 0.3s ease-out;
}

/* Modern Footer Styles */
.modern-footer {
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(234, 179, 8, 0.5),
    transparent
  );
  animation: shimmerLine 3s infinite;
}

@keyframes shimmerLine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.modern-footer .logo-wrapper {
  position: relative;
  display: inline-block;
}

.modern-footer .social-icon {
  position: relative;
  overflow: hidden;
}

.modern-footer .social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.modern-footer .social-icon:hover::before {
  transform: translateX(100%);
}

.modern-footer .footer-link {
  position: relative;
  display: inline-block;
}

.modern-footer .location-item {
  transition: all 0.3s ease;
}

.modern-footer .location-item:hover {
  transform: translateX(5px);
}

.modern-footer .location-item svg {
  transition: all 0.3s ease;
}

.modern-footer .location-item:hover svg {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.5));
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modern-header .logo-wrapper img {
    height: 2.5rem;
  }

  .modern-footer .social-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Enhanced button gradient effect */
.nav-link.bg-gradient-to-r {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-link.bg-gradient-to-r::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link.bg-gradient-to-r:hover::before {
  opacity: 1;
}

/* Smooth scrolling improvement */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Fix for images with white borders */
.image-container {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-container img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Remove inline white space from images */
img {
  vertical-align: middle;
  display: block;
}

/* ============================================
   SERVICE CARD ANIMATIONS & EFFECTS
   ============================================ */

/* Service Card Hover Effects */
.service-card {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 1;
}

/* Image Overlay Animation */
.service-card .relative img {
  filter: brightness(0.85);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .relative img {
  filter: brightness(1);
}

/* Gradient Overlay Pulse */
@keyframes gradientPulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
  }
}

.service-card:hover .bg-gradient-to-t {
  animation: gradientPulse 2s ease-in-out infinite;
}

/* Text Slide Up on Hover */
.service-card h3 {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover h3 {
  transform: translateY(-8px);
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.service-card:hover::after {
  animation: shimmer 1.5s ease-in-out;
}

/* Glow Effect on Hover */
@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
                0 0 20px rgba(139, 92, 246, 0.1);
  }
  50% {
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.15),
                0 0 40px rgba(139, 92, 246, 0.3);
  }
}

.service-card:hover {
  animation: cardGlow 2s ease-in-out infinite;
}

/* Text Content Fade In */
.service-card p {
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover p {
  opacity: 1;
  transform: translateX(4px);
}

/* Staggered Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-zoom-in {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.service-card:hover {
  animation: float 3s ease-in-out infinite;
}

/* Border Gradient Animation */
@keyframes rotateBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.service-card-wrapper {
  position: relative;
  padding: 2px;
  border-radius: 1.5rem;
  background: linear-gradient(
    45deg,
    #8b5cf6,
    #3b82f6,
    #8b5cf6,
    #3b82f6
  );
  background-size: 300% 300%;
}

.service-card-wrapper:hover {
  animation: rotateBorder 3s ease-in-out infinite;
}
