/* Optylinks Enterprise Services — Global Styles */
:root {
  --navy-900: #050A16;
  --navy-800: #0A1128;
  --navy-700: #0B192C;
  --navy-600: #0F2540;
  --navy-500: #16365E;
  --electric: #00D2FF;
  --electric-dim: #00A8CC;
  --emerald: #10B981;
  --emerald-dim: #0E9F6E;
  --ink: #E6EEF7;
  --ink-dim: #94A8BE;
  --ink-faint: #5C7290;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--navy-800);
  color: var(--ink);
  overflow-x: hidden;
}

.font-display { font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--electric-dim); }

/* Selection */
::selection { background: var(--electric); color: var(--navy-900); }

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #00D2FF 0%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-electric {
  background: linear-gradient(135deg, #00D2FF 0%, #4DE3FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass {
  background: rgba(11, 25, 44, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(0, 210, 255, 0.12);
}

.glass-strong {
  background: rgba(10, 17, 40, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(0, 210, 255, 0.15);
}

/* Grid background pattern */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.grid-bg-fade {
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* Glow effects */
.glow-electric { box-shadow: 0 0 40px -8px rgba(0, 210, 255, 0.45); }
.glow-emerald { box-shadow: 0 0 40px -8px rgba(16, 185, 129, 0.45); }
.glow-soft { box-shadow: 0 0 60px -20px rgba(0, 210, 255, 0.25); }

.text-glow-electric { text-shadow: 0 0 24px rgba(0, 210, 255, 0.5); }
.text-glow-emerald { text-shadow: 0 0 24px rgba(16, 185, 129, 0.5); }

/* Service card hover */
.service-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,210,255,0.5), rgba(16,185,129,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(0, 210, 255, 0.25);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-icon { transform: scale(1.08); }

.service-icon { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

/* Button shimmer */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #00D2FF 0%, #00A8CC 100%);
  color: #050A16;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(0, 210, 255, 0.5); }
.btn-primary:hover::after { left: 140%; }

.btn-ghost {
  border: 1px solid rgba(0, 210, 255, 0.35);
  background: rgba(0, 210, 255, 0.05);
  color: var(--electric);
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--electric);
  box-shadow: 0 0 24px -6px rgba(0, 210, 255, 0.5);
  transform: translateY(-2px);
}

/* Nav link underline */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--electric), var(--emerald));
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--electric); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Animated pulse ring */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.7; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--electric);
  animation: pulse-ring 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite; }

/* Orb / blob */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

/* Marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

/* Metric counter */
.metric-num { font-variant-numeric: tabular-nums; }

/* Form */
.form-input {
  background: rgba(10, 17, 40, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.18);
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-input::placeholder { color: var(--ink-faint); }
.form-input:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
  background: rgba(10, 17, 40, 0.85);
}
.form-label { color: var(--ink-dim); }

/* Accordion */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-icon { transition: transform 0.4s ease; }

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open { transform: translateX(0); }

/* Hero gradient sweep */
@keyframes sweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-gradient {
  background: linear-gradient(120deg, #050A16, #0A1128, #0B192C, #0A1128);
  background-size: 300% 300%;
  animation: sweep 18s ease infinite;
}

/* Dotted divider */
.divider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--electric);
  display: inline-block;
}

/* Page transition */
.page-enter { animation: pageEnter 0.6s ease; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
