/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Hero gradient - dark tech */
.hero-gradient {
  background: linear-gradient(135deg, #0A0F1C 0%, #111827 50%, #0A0F1C 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern on hero */
.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hero-gradient > * {
  position: relative;
  z-index: 1;
}

/* Capability card glow on hover */
.cap-card {
  background: #1F2937;
  border: 1px solid #374151;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cap-card:hover {
  transform: translateY(-4px);
  border-color: #06B6D4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Case card hover */
.case-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp floating button */
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

.wa-float {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: wa-pulse 3s infinite;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

@media (min-width: 768px) {
  .wa-float {
    width: auto;
    border-radius: 28px;
    padding: 0 20px;
    gap: 8px;
    bottom: 24px;
    right: 24px;
  }
  .wa-float-label {
    display: inline;
    color: white;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .wa-float-label { display: none; }
}

/* Form input focus */
.form-input {
  background: #1F2937;
  border: 1px solid #374151;
  color: #F9FAFB;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #06B6D4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
  outline: none;
}

.form-input::placeholder {
  color: #6B7280;
}

/* Header scroll shadow */
.header-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  border-bottom-color: #1F2937;
}

/* CTA glow */
.cta-glow {
  position: relative;
  overflow: hidden;
}

.cta-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  animation: cta-shine 4s ease-in-out infinite;
}

@keyframes cta-shine {
  0%, 100% { transform: translateX(-100%) rotate(45deg); }
  50% { transform: translateX(100%) rotate(45deg); }
}

/* Cyan underline for section titles */
.cyan-underline {
  position: relative;
  display: inline-block;
}

.cyan-underline::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #06B6D4, transparent);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.cyan-underline.visible::after,
.fade-in.visible .cyan-underline::after {
  width: 60px;
}

/* Stats counter animation */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Legal pages shared styles */
.legal-highlight {
  background: #1F2937;
  border-left: 4px solid #06B6D4;
  padding: 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
}

.legal-contact-box {
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-top: 1rem;
}
