/* Base styles */
body {
  overflow-x: hidden;
}

/* 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;
}

/* Add these styles for navbar */
.navbar {
  background-color: transparent;
  transition: all 0.3s ease;
}

.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;
}

/* Ensure proper positioning */
.nav-links .group {
  position: relative;
}

.nav-links .absolute {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-slideUp {
  animation: slideUp 0.6s ease-out forwards;
}

/* ADR Page Specific Styles */

/* Hero Section */
.adr-hero {
  position: relative;
  background-image: linear-gradient(
      90deg,
      rgba(9, 0, 43, 1) 0%,
      rgba(100, 116, 160, 0.8) 50%,
      rgba(29, 78, 216, 0) 100%
    ),
    url("assets/mediation-header.jpg");
  background-size: cover;
  background-position: top;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.adr-hero-bg {
  position: absolute;
  background-position: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      90deg,
      rgba(9, 0, 43, 1) 0%,
      rgba(100, 116, 160, 0.8) 50%,
      rgba(29, 78, 216, 0) 100%
    ),
    url("assets/adr-header.jpg");
  animation: adrHeroBg 20s ease-in-out infinite alternate;
}

@keyframes adrHeroBg {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.9;
  }
}

.adr-hero-title {
  animation: fadeInUp 1s ease-out;
}

.adr-hero-subtitle {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.adr-hero-buttons {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* ADR Overview Section */
.adr-overview .benefit-card {
  position: relative;
  overflow: hidden;
}

.adr-overview .benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.adr-overview .benefit-card:hover::before {
  left: 100%;
}

.benefit-icon {
  animation: bounceIn 0.8s ease-out;
}

/* ADR Services Section */
.adr-service-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.adr-service-section.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-content {
  position: relative;
}

.service-text h3 {
  position: relative;
  display: inline-block;
}

.service-text h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transition: width 0.8s ease-out;
}

.adr-service-section.animate .service-text h3::after {
  width: 100%;
}

.feature-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease-out;
}

.adr-service-section.animate .feature-item {
  opacity: 1;
  transform: translateX(0);
}

.adr-service-section.animate .feature-item:nth-child(1) {
  transition-delay: 0.1s;
}
.adr-service-section.animate .feature-item:nth-child(2) {
  transition-delay: 0.2s;
}
.adr-service-section.animate .feature-item:nth-child(3) {
  transition-delay: 0.3s;
}
.adr-service-section.animate .feature-item:nth-child(4) {
  transition-delay: 0.4s;
}

.service-image {
  position: relative;
  overflow: hidden;
}

.service-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.8s ease-out;
  transform: translate(-50%, -50%);
}

.adr-service-section.animate .service-image::before {
  width: 200px;
  height: 200px;
}

/* Process Timeline */
.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #3b82f6, #8b5cf6);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 80px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: 4px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  z-index: 2;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -15px;
  border-color: transparent transparent transparent white;
  border-width: 15px 0 15px 15px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -15px;
  border-color: transparent white transparent transparent;
  border-width: 15px 15px 15px 0;
}

/* Success Stories */
.success-stats .stat-card {
  position: relative;
  overflow: hidden;
}

.success-stats .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.8s ease;
}

.success-stats .stat-card:hover::before {
  left: 100%;
}

.stat-number {
  animation: countUp 2s ease-out;
}

.testimonials-grid .testimonial-card {
  position: relative;
  transition: all 0.3s ease;
}

.testimonials-grid .testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonials-grid .testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: #3b82f6;
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .adr-hero-title {
    font-size: 3rem;
  }

  .adr-hero-subtitle {
    font-size: 1.1rem;
  }

  .process-timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    text-align: left !important;
  }

  .timeline-item .timeline-content {
    margin-left: 80px !important;
    margin-right: 0 !important;
  }

  .timeline-marker {
    left: 30px !important;
    transform: translateX(0) !important;
  }

  .timeline-content::before {
    left: -15px !important;
    border-color: transparent white transparent transparent !important;
    border-width: 15px 15px 15px 0 !important;
  }

  .service-content {
    grid-template-columns: 1fr !important;
  }

  .service-image.lg\:order-first {
    order: 1 !important;
  }
}

@media (max-width: 480px) {
  .adr-hero-title {
    font-size: 2.5rem;
  }

  .timeline-content {
    max-width: 280px;
  }

  .benefit-card,
  .stat-card,
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* Hover Effects */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.service-image:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Focus States */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Loading Animation for Form */
.contact-form.loading {
  position: relative;
  pointer-events: none;
}

.contact-form.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  z-index: 10;
}

.contact-form.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 11;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* 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%);
  }
}

.btn-primary:active,
.contact-form button[type="submit"]:active {
  transform: translateY(1px) scale(0.98);
}

/* 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 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;
  }
}

/* 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;
}