/* =========================================
   Webexcel Technologies - Custom Styles
   ========================================= */

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #475569;
  background-color: #F8FAFC;
}

/* --- Navigation Link Styles --- */
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.nav-link:hover {
  color: #0F2B5B;
  background-color: #EFF6FF;
}
.nav-active {
  color: #1A56DB !important;
  font-weight: 600;
}

/* --- Dropdown Link Styles --- */
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.dropdown-link:hover {
  background-color: #EFF6FF;
}

/* --- Mobile Nav Styles --- */
.mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #0F2B5B;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-sub-link {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: #475569;
  transition: color 0.2s;
}
.mobile-sub-link:hover {
  color: #1A56DB;
}

/* --- Header Scroll Effect --- */
.header-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* --- Hero Gradient Overlays --- */
.hero-gradient {
  background: linear-gradient(135deg, #0F2B5B 0%, #1A56DB 50%, #06B6D4 100%);
}
.hero-gradient-dark {
  background: linear-gradient(135deg, #0F172A 0%, #0F2B5B 100%);
}

/* --- 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: 40px 40px;
}

/* --- Dot Pattern --- */
.bg-dots {
  background-image: radial-gradient(circle, rgba(6, 182, 212, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Card Hover Lift --- */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, #1A56DB, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section Divider --- */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #1A56DB, #06B6D4);
  border-radius: 2px;
}

/* --- FAQ Accordion --- */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-content.active {
  max-height: 500px;
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-icon.active {
  transform: rotate(180deg);
}

/* --- Testimonial Slider --- */
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s;
  cursor: pointer;
}
.testimonial-dot.active {
  background: #1A56DB;
  width: 30px;
  border-radius: 5px;
}

/* --- Floating Animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* --- Pulse Glow --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
  50% { box-shadow: 0 0 20px 10px rgba(6, 182, 212, 0); }
}
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* --- Smooth Reveal --- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Tech Logo Carousel --- */
.tech-scroll {
  animation: scroll-left 30s linear infinite;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tech-scroll:hover {
  animation-play-state: paused;
}

/* --- Process Timeline --- */
.process-line {
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: linear-gradient(to right, #1A56DB, #06B6D4);
  z-index: 0;
}

/* --- Button Shine Effect --- */
.btn-shine {
  position: relative;
  overflow: hidden;
}
.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    transparent 40%,
    rgba(255,255,255,0.15) 50%,
    transparent 60%
  );
  transform: rotate(45deg);
  transition: transform 0.6s;
}
.btn-shine:hover::after {
  transform: rotate(45deg) translate(50%, 50%);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* --- Selection Color --- */
::selection {
  background-color: #1A56DB;
  color: white;
}
