:root {
  --primary-blue: #09002b;
  --secondary-blue: #1a365d;
  --accent-yellow: #ffdc5b;
  --dark-yellow: #8a6727;
  --pure-white: #fdf9f9;
}

/* Base styles */
body {
  overflow-x: hidden;
}

/* Header animations and background */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

/* Essential animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* WhatsApp Icon Animation */
@keyframes ringing {
  0% {
    transform: rotate(0deg) scale(1);
  }
  10% {
    transform: rotate(-10deg) scale(1.1);
  }
  20% {
    transform: rotate(10deg) scale(1.1);
  }
  30% {
    transform: rotate(-10deg) scale(1.1);
  }
  40% {
    transform: rotate(10deg) scale(1.1);
  }
  50% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}
.whatsapp-float {
  transition: background 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
  background: #128c7e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
@media (min-width: 768px) {
  .whatsapp-float {
    display: none !important;
  }
}

.animate-ring {
  animation: ringing 2s infinite;
}

/* Stop animation on hover */
.whatsapp-icon:hover .animate-ring {
  animation: none;
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Hero Slider Container */
.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Slide Items */
.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Change from center to flex-start */
  opacity: 0;
  transform: scale(1.1);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.slide-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide-item.prev {
  opacity: 0;
  transform: translateX(-100%) scale(0.9);
}

.slide-item.next {
  opacity: 0;
  transform: translateX(100%) scale(0.9);
}

/* Slide Content Animations */
.slide-content {
  max-width: 650px; /* Limit content width */
  margin-left: 8%; /* Add left margin */
  animation: slideContentIn 1s ease-out 0.3s both;
}

.slide-item:not(.active) .slide-content {
  animation: slideContentOut 0.5s ease-out both;
}

.slide-title {
  animation: fadeInUp 1s ease-out 0.5s both;
}

.slide-subtitle {
  animation: fadeInUp 1s ease-out 0.7s both;
}

.slide-description {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.slide-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start; /* Align buttons to left */
  animation: fadeInUp 1s ease-out 1.1s both;
}

.slide-item:not(.active) .slide-title,
.slide-item:not(.active) .slide-subtitle,
.slide-item:not(.active) .slide-description,
.slide-item:not(.active) .slide-buttons {
  animation: fadeOutDown 0.3s ease-out both;
}

/* Hero Slider Navigation */
.hero-slider-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 20;
  pointer-events: none; /* This allows clicks to pass through the container */
}

.slider-btn {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto; /* Re-enable clicks for buttons */
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

.dot:hover {
  background: white;
  transform: scale(1.2);
}

/* New Slider Animations - ADD THESE */
@keyframes slideContentIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideContentOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* Responsive styles for hero/slider section */
@media (max-width: 768px) {
  .slide-content {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    padding: 0 20px;
  }

  .slide-buttons {
    justify-content: center !important;
    flex-direction: column;
  }

  .slide-title,
  .slide-subtitle,
  .slide-description {
    text-align: center;
  }
}

/* Update your existing fadeInUp animation if needed - yours might be slightly different */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for slider */
@media (max-width: 768px) {
  .hero-slider-buttons {
    bottom: 1rem;
  }

  .slider-dots {
    bottom: 3rem;
  }

  .slider-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 14px;
  }

  .dot {
    width: 0.625rem;
    height: 0.625rem;
  }
}

/* How It Works carousel */
.carousel-container {
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Button ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
  .testimonial-track {
    width: 800%;
  }

  .carousel-wrapper {
    flex-direction: column;
  }
}

/* Add these styles for navbar */
.navbar {
  background-color: transparent;
  transition: all 0.3s ease;
  z-index: 999 !important;
}

.navbar.scrolled {
  background-color: rgba(9, 0, 43, 1); /* blue-900 with opacity */
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Dropdown menu styles */
.nav-links .group:hover .absolute {
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
  animation: fadeIn 0.3s ease;
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.nav-links .absolute {
  z-index: 50;
  border-radius: 0.5rem;
  min-width: 200px;
  background-color: white;
}

.nav-links .absolute a {
  color: #1e3a8a; /* blue-900 */
  padding: 0.75rem 1rem;
  display: block;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-links .absolute a:hover {
  background-color: #eff6ff; /* blue-50 */
  color: #396ec5; /* blue-500 */
  border-radius: 0.5rem;
}

/* Add this to ensure proper spacing and borders */
.nav-links .absolute a:not(:last-child) {
  border-bottom: 1px; /* gray-200 */
}

/* Ensure proper positioning */
.nav-links .group {
  position: relative;
}

.nav-links .absolute {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
}

/* Service card progress line animation */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    #062953,
    #3b82f6
  ); /* blue-400 to blue-500 */
  transition: all 0.6s ease;
  transform: translateX(-50%);
}

.service-card:hover::before {
  width: 100%;
}

/* Animation for removing the line */
.service-card.removing::before {
  width: 0;
  transition: all 0.6s ease;
}

/* Service Icons Animation */
.service-icon {
  display: inline-block;
  transition: all 0.3s ease;
}

/* Remove the continuous bounce animation, only animate on hover */
.service-card:hover .service-icon {
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Update the Button styles */
.btn-primary,
.contact-form button[type="submit"] {
  position: relative;
  overflow: hidden;
  background: #3b82f6; /* Default blue */
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

/* Update hover effects */
.btn-primary:hover,
.contact-form button[type="submit"]:hover {
  background: linear-gradient(45deg, #2563eb, #1d4ed8);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
}

/* Add the glowing effect only on hover */
.btn-primary:hover::before,
.contact-form button[type="submit"]:hover::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(45deg);
  animation: glowingEffect 3s infinite;
}

@keyframes glowingEffect {
  0% {
    transform: rotate(45deg) translateX(-100%);
  }
  50% {
    transform: rotate(45deg) translateX(100%);
  }
  100% {
    transform: rotate(45deg) translateX(-100%);
  }
}

/* Button Hover Effects */
.btn-primary:hover,
.contact-form button[type="submit"]:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.7);
  background: linear-gradient(45deg, #2563eb, #1d4ed8);
}

.btn-primary:active,
.contact-form button[type="submit"]:active {
  transform: translateY(1px) scale(0.98);
}

/* Add hover effect for contact icons */
.contact-item:hover .contact-icon {
  animation: tada 1s;
  color: #3b82f6;
}

@keyframes tada {
  0% {
    transform: scale(1) rotate(0);
  }
  10%,
  20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%,
  50%,
  70%,
  90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%,
  60%,
  80% {
    transform: scale(1.1) rotate(-3deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

/* Testimonial CSS */

.client-bg {
  background-image: url("assets/client-bg.jpg");

  position: relative;
  background-size: cover;
  background-position: top;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.testimonials-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-container {
  position: relative;
  height: auto;
  padding: 20px 0;
}

.testimonials-track {
  position: relative;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 20px;
  opacity: 0;
  transition: all 0.5s ease;
  transform: scale(0.8);
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;   /* prevent interaction on inactive cards */
}

.testimonial-card.active {
  opacity: 1;
  transform: scale(0.8);
  pointer-events: auto;   /* ✅ only active card is scrollable */
  position: relative;     /* ✅ so height flows correctly */
}

.testimonial-card.prev {
  transform: translateX(-100%) scale(0.8);
  opacity: 0;
}

.testimonial-card.next {
  transform: translateX(100%) scale(0.8);
  opacity: 0;
}

.card-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Navigation buttons */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  /* Update background and border for better visibility */
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  /* Add visible box shadow */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Update button icon color */
.testimonial-nav svg {
  stroke: #1e3a8a; /* Blue-900 color for better visibility */
}

.testimonial-nav.prev {
  left: -5rem;
}

.testimonial-nav.next {
  right: -5rem;
}

.testimonial-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.testimonial-nav.prev {
  left: -5rem;
}

.testimonial-nav.next {
  right: -5rem;
}

.testimonial-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Dots navigation */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dots button {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots button.active {
  background: white;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .testimonial-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .testimonial-nav.prev {
    left: -1rem;
  }

  .testimonial-nav.next {
    right: -1rem;
  }
}

/* FAQ styles */

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-button:hover {
  background-color: #f1f5f9;
}

.faq-button svg {
  transition: transform 0.3s ease;
}

/* Update the FAQ answer styles */

.faq-answer {
  transition: all 0.3s ease-in-out;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding: 0 1.5rem 1.5rem 1.5rem;
  background-color: #f8fafc;
  border-radius: 0 0 0.5rem 0.5rem;
}

.faq-answer p {
  color: #374151; /* Darker text color (gray-700) */
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.faq-answer:not(.hidden) {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Our Work Section Animations */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Timeline Styles continued */
.timeline-dot {
  @apply w-6 h-6 bg-gradient-to-r from-blue-400 to-purple-400 rounded-full absolute left-1/2 transform -translate-x-1/2 z-10;
  box-shadow: 0 0 0 4px white, 0 0 0 6px rgba(59, 130, 246, 0.2);
}

.timeline-item {
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Story section - Initial State */
.story-content {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.story-content.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.story-image {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out 0.2s;
}

.story-image.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Media and Awards - Initial State */
.media-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.media-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.award-item {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.award-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Hover Effects */
.timeline-item:hover .timeline-dot {
  transform: translate(-50%, -50%) scale(1.5);
  transition: transform 0.3s ease;
}

.media-item:hover,
.award-item:hover {
  transform: translateX(10px);
  transition: transform 0.3s ease;
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-item > div:first-child {
    text-align: left !important;
  }
}

/* Gradient Text Animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.our-work h2 {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}
.our-work {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.our-work .container {
  position: relative;
  z-index: 2;
}
/* Floating Animation for Background Elements */
@keyframes float-up {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.story-image img {
  animation: float-up 4s ease-in-out infinite;
}

/* Pulse Animation for Stats */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.stat-counter:hover {
  animation: pulse 1s ease-in-out infinite;
}

/* Add/update these styles */

.our-work {
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

.our-work .container {
  position: relative;
  z-index: 2;
}

/* Stats section */
.stat-counter {
  opacity: 1;
  transform: none;
  transition: transform 0.3s ease;
}

.stat-counter:hover {
  transform: translateY(-5px);
}

/* Timeline section */
.timeline {
  position: relative;
  z-index: 2;
}

.timeline-item {
  opacity: 1;
  transform: none;
  transition: all 0.3s ease;
}

/* Story section */
.story-content,
.story-image {
  opacity: 1;
  transform: none;
  transition: all 0.3s ease;
}

/* Media and Awards */
.media-item,
.award-item {
  opacity: 1;
  transform: none;
  transition: all 0.3s ease;
}

/* Ensure content visibility */
.work-stats,
.work-features,
.media-mentions,
.certifications,
.clientele,
.recognition {
  opacity: 1;
  visibility: visible;
  display: block !important;
}

/* Glassmorphism effects */
.backdrop-filter {
  backdrop-filter: blur(10px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #09002b, #8a6727);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #09002b, #8a6727);
}

/* Responsive styles for footer */
@media (max-width: 768px) {
  footer .grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  footer .flex {
    justify-content: center;
  }

  footer img {
    margin-left: auto;
    margin-right: auto;
  }

  footer ul {
    margin-left: auto;
    margin-right: auto;
  }

  footer ul li i {
    margin-right: 10px;
  }
}

.inquiry-bar {
  background: var(--dark-yellow);
  color: white;
  font-size: 1rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.07);
}
.inquiry-bar a {
  text-decoration: none;
  transition: color 0.2s;
}
.inquiry-bar a:hover {
  text-decoration: underline;
}
