/* ── DSTS Platforms — Custom Styles ── */

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0f0f0f; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* ── Text gradient ── */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 500;
  transition: all 0.22s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(59, 130, 246, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-weight: 500;
  transition: all 0.22s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.7);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ── Hero background ── */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 15% 55%, rgba(59, 130, 246, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(6, 182, 212, 0.06) 0%, transparent 55%),
    #0f0f0f;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Scroll hint arrow ── */
.scroll-hint {
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Pulsing dot ── */
.pulse-dot { animation: pulseOpacity 2s ease-in-out infinite; }
@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Hero fade-in sequence ── */
.fade-in {
  opacity: 0;
  animation: fadeUp 0.75s ease forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.25s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.55s; }
.fade-in:nth-child(5) { animation-delay: 0.7s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Navbar scroll state ── */
#navbar.scrolled {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About mini cards ── */
.about-card {
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.about-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
}

/* ── Service cards ── */
.service-card {
  transition: border-color 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}
.service-card:hover .service-icon {
  background: rgba(59, 130, 246, 0.18);
}

/* ── Tags ── */
.tag {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-block;
}

/* ── Case study cards ── */
.case-card {
  transition: border-color 0.25s ease, transform 0.3s ease;
}
.case-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-5px);
}

/* ── Why choose us / differentiator cards ── */
.diff-card {
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.diff-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}
.diff-card:hover .diff-icon {
  background: rgba(59, 130, 246, 0.18);
}

/* ── Testimonial cards ── */
.testimonial-card {
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.testimonial-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
}

/* ── Form inputs ── */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.form-input.input-error {
  border-color: #f87171 !important;
}

/* ── Mobile responsive fixes ── */
@media (max-width: 640px) {
  .hero-bg {
    background:
      radial-gradient(ellipse 100% 50% at 50% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
      #0f0f0f;
  }
}

/* ── Focus visible for keyboard nav ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

/* ── Skip to content (accessibility) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: #3b82f6;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
}
