/* Blue Pearl Technologies — Custom CSS */

/* Screen-reader only (WCAG) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus\:not-sr-only:focus {
  position: absolute;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0B0F14;
}

::-webkit-scrollbar-thumb {
  background: #1E2D3D;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #27EAC8;
}

/* Smooth scroll + prevent horizontal overflow globally */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* ── BASE TYPOGRAPHY ─────────────────────────────── */
h1,
h2,
h3,
h4 {
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-weight: 600;
  line-height: 1.3;
}

p {
  line-height: 1.7;
}

/* ── RESPONSIVE BREAKPOINT OVERRIDES ────────────── */
/* Ensure mobile-only elements hide on desktop (Tailwind CDN safety) */
@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none !important;
  }

  #mobile-menu {
    display: none !important;
  }

  .mobile-sticky-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none !important;
  }

  .desktop-cta {
    display: none !important;
  }
}

/* ── CURSOR SPOTLIGHT ────────────────────────────── */
#cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle,
      rgba(39, 234, 200, 0.07) 0%,
      rgba(39, 234, 200, 0.03) 35%,
      transparent 70%);
  opacity: 1;
  transition: opacity 0.6s ease;
  will-change: transform;
}

/* Disable on touch devices */
@media (hover: none) {
  #cursor-spotlight {
    display: none;
  }
}

/* ── LOGO ────────────────────────────────────────── */
.site-logo {
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 8px;
  border-radius: 6px;
  width: 150px;
  height: auto;
}

/* ── NAVBAR ──────────────────────────────────────── */
.navbar-scrolled {
  background-color: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

/* ── GRADIENT TEXT (hero only) ───────────────────── */
.gradient-text {
  background: linear-gradient(90deg, #27EAC8 0%, #4F8EF7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── GLASS CARD (hero + CTA sections only) ───────── */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── FOCUS (WCAG) ────────────────────────────────── */
*:focus-visible {
  outline: 2px solid #27EAC8;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── SECTION RHYTHM ──────────────────────────────── */
.section-pad {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Alternating section backgrounds for depth */
.section-alt {
  background-color: #111827;
}

/* ── HERO ────────────────────────────────────────── */
.hero-grid {
  background-image:
    linear-gradient(rgba(39, 234, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 234, 200, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Hero radial fade over grid */
.hero-fade {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(39, 234, 200, 0.06) 0%, transparent 70%);
}

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07) 20%, rgba(255, 255, 255, 0.07) 80%, transparent);
}

/* ── CARDS ───────────────────────────────────────── */
.card-hover {
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  border-color: rgba(39, 234, 200, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(39, 234, 200, 0.08);
}

/* Elevated card (inside alt sections) */
.card-elevated {
  background-color: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ── FORM INPUTS ─────────────────────────────────── */
.form-input {
  background-color: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  width: 100%;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #27EAC8;
  box-shadow: 0 0 0 3px rgba(39, 234, 200, 0.12);
}

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

select.form-input option {
  background-color: #111827;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #27EAC8;
  color: #0B0F14;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 15px rgba(39, 234, 200, 0.25);
}

.btn-primary:hover {
  background-color: #20d4b4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 234, 200, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #E6EDF3;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: rgba(39, 234, 200, 0.5);
  color: #27EAC8;
  background-color: rgba(39, 234, 200, 0.05);
}

/* ── STAT BAR ────────────────────────────────────── */
.stat-item {
  position: relative;
}

.stat-item+.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* ── SCROLL INDICATOR ────────────────────────────── */
.scroll-arrow {
  animation: bounceDown 1.6s ease-in-out infinite;
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ── TEAL ACCENT TEXT ────────────────────────────── */
.text-teal-label {
  color: #27EAC8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── PROOF / CASE STUDY BLOCKS ───────────────────── */
.proof-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.proof-block:hover {
  border-color: rgba(39, 234, 200, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

/* ── PROCESS STEPS ───────────────────────────────── */
.step-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #27eac8;
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}