/* assets/css/style.css */
/* Curved Header Background - Alternative approach for better browser support */
header > div {
  position: relative;
 /* overflow: hidden;*/
}

/* Curved Header Background - Smoother Diagonal Transition */
header.curved-header {
  background: 
    linear-gradient(60deg, 
      #d1d5db 0%, 
      #d1d5db 78%, 
      #e5e7eb 72%, 
      #f9fafb 76%, 
      #ffffff 80%, 
      #ffffff 100%
    );
}

header.curved-header > div {
  position: relative;
  z-index: 2;
}


header > div > div {
  position: relative;
  z-index: 10;
}


/* Smooth shadow transition */
header {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

/* Existing animations */
@keyframes slide-in {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.animate-slide-in {
  animation: slide-in 0.3s ease-out;
}

/* RIGHT side slide animation for mobile menu */
@keyframes slide-in-right {
  from { 
    transform: translateX(100%);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}

/* Mobile menu backdrop */
#mobileMenu {
  transition: opacity 0.3s ease;
}

#mobileMenu.hidden {
  opacity: 1;
  pointer-events: none;
}

/* Fix Tailwind backdrop-filter stacking context issue */
.backdrop-blur-md,
.backdrop-blur-sm {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Optional: Add simple opacity instead */
header.sticky {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

#mobileMenuBackdrop {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html {
  scroll-behavior: smooth;
}

img {
  image-rendering: -webkit-optimize-contrast;
}

.shadow-orange-500\/30 {
  box-shadow: 0 10px 25px -5px rgba(255, 107, 53, 0.3);
}

.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.bg-dot-pattern {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===== SCROLL TO TOP BUTTON (SIMPLE) ===== */
.scroll-to-top {
  position: fixed;
  bottom: 110px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1a1a1a, #3b3b3b);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: none; /* HIDDEN BY DEFAULT */
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  display: flex; /* SHOWS WHEN .visible CLASS IS ADDED */
}

.scroll-to-top:hover {
  transform: scale(1.15);
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  box-shadow: 0 6px 30px rgba(255, 107, 53, 0.6);
}

.scroll-to-top:active {
  transform: scale(1);
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse-wa 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-button.visible {
  display: flex;
}

.whatsapp-button:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-text {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-text::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid #1a1a1a;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.whatsapp-button:hover .whatsapp-text {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 50px;
    height: 50px;
    font-size: 18px;
    bottom: 100px;
    right: 20px;
  }
  
  .whatsapp-button {
    width: 56px;
    height: 56px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-text {
    display: none; /* Hide tooltip on mobile */
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 90px;
    right: 15px;
  }
  
  .whatsapp-button {
    bottom: 15px;
    right: 15px;
  }
}

/* Honeypot field hiding - CRITICAL: Do NOT use display:none or visibility:hidden */
.hp-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

/* Alternative method - moves field off-screen */
.honeypot-alt {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================
   FORM VALIDATION STYLES
   ============================================ */

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Input validation states */
input.is-valid,
textarea.is-valid,
select.is-valid {
  border-color: #10b981 !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path fill="%2310b981" d="M2.75 6.5L.5 4.25l-.7.7L2.75 8l5.45-5.45-.7-.7L2.75 6.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: #ef4444 !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"><path fill="%23ef4444" d="M5.5 1L4 2.5 2.5 1 1 2.5.5 2l1.5 1.5L.5 5l.5.5L2 4l1.5 1.5.5-.5-1.5-1.5 1.5-1.5-.5-.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

/* Error message styling */
.error-message {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #fee2e2;
  border-left: 3px solid #ef4444;
  border-radius: 0.375rem;
  color: #991b1b;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideDown 0.3s ease-out;
}

.success-message {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #dcfce7;
  border-left: 3px solid #10b981;
  border-radius: 0.375rem;
  color: #166534;
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states with validation */
input:focus.is-valid,
textarea:focus.is-valid,
select:focus.is-valid {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input:focus.is-invalid,
textarea:focus.is-invalid,
select:focus.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
/* Honeypot field - hidden from users but visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* Grid pattern background */
.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Clip path for decorative angular cuts */
.clip-path-polygon {
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

/* Error message styling */
.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.form-group.error input,
.form-group.error select {
  border-color: #ef4444;
}

/* Smooth animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Testimonial Slider Pagination Dots */
.testimonial-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
}

.testimonial-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #d1d5db;
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.testimonial-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  width: 32px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
}

.testimonial-pagination .swiper-pagination-bullet:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

/* Navigation Button Hover Effects */
.testimonial-button-prev:hover,
.testimonial-button-next:hover {
  transform: translateY(-50%) scale(1.1);
}

.testimonial-button-prev:active,
.testimonial-button-next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Swiper Container Overflow Fix */
.swiper {
  overflow: visible !important;
}

.swiper-wrapper {
  align-items: stretch;
}

/* Make all slides equal height */
.swiper-slide {
  height: auto;
  display: flex;
}

.swiper-slide > div {
  width: 100%;
}

/* Hide navigation on mobile */
@media (max-width: 768px) {
  .testimonial-button-prev,
  .testimonial-button-next {
    display: none;
  }
}

/* Top level dropdown */
.nav-group:hover .nav-group-hover\:visible {
  visibility: visible;
}

/* Optional: simple transition */
.nav-submenu {
  transition: visibility 0.15s ease;
}

/* If you want nested submenu later, similar to group2 */
.nav-group2:hover .nav-group2-hover\:visible {
  visibility: visible;
}
