/* =============================================================================
   Noventis — Global Stylesheet
   All custom CSS for the site. Tailwind utility classes are provided by the
   CDN; this file covers only the custom components and overrides.
   ============================================================================= */

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Inter', sans-serif;
}

/* ── Material Icons ───────────────────────────────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ── Glassmorphic Nav ─────────────────────────────────────────────────────── */
.glass-nav {
  background: rgba(16, 21, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Hero Glow ────────────────────────────────────────────────────────────── */
.hero-glow { box-shadow: 0 0 22px rgba(19, 73, 236, 0.45); }
.hero-glow:hover { box-shadow: 0 0 32px rgba(19, 73, 236, 0.65); }

/* ── Orb Gradient ─────────────────────────────────────────────────────────── */
.orb-gradient {
  background: radial-gradient(circle at center, #1349ec 0%, #101522 70%);
  opacity: 0.15;
  filter: blur(60px);
}

/* ── Glass Card ───────────────────────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.glass-card:hover {
  border-color: rgba(19, 73, 236, 0.5);
  box-shadow: 0 0 28px rgba(19, 73, 236, 0.15);
  transform: translateY(-2px);
}

/* ── Light Glass (contact form) ───────────────────────────────────────────── */
.glass-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.dark .glass-light {
  background: rgba(22, 30, 50, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Glow Button ──────────────────────────────────────────────────────────── */
.glow-button { box-shadow: 0 0 18px rgba(19, 73, 236, 0.42); }
.glow-button:hover { box-shadow: 0 0 30px rgba(19, 73, 236, 0.65); }

/* ── Tech Grid Background ─────────────────────────────────────────────────── */
.tech-grid-bg {
  background-image:
    linear-gradient(rgba(19, 73, 236, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 73, 236, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Glow Accent Blob ─────────────────────────────────────────────────────── */
.glow-accent {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(19, 73, 236, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Blur Overlay ─────────────────────────────────────────────────────────── */
.blur-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Glassmorphic Section Variant ─────────────────────────────────────────── */
.glassmorphic {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Glow Border ──────────────────────────────────────────────────────────── */
.glow-border { position: relative; }
.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, #1349ec, #8b5cf6, transparent, transparent);
  z-index: -1;
  border-radius: inherit;
  opacity: 0.3;
}

/* ── Bento Grid ───────────────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── Wave Container (services/solutions bento) ────────────────────────────── */
.wave-container {
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.65s ease forwards; }

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

/* ── Mobile Navigation ────────────────────────────────────────────────────── */
#mobile-nav {
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobile-nav.open { max-height: 400px; opacity: 1; }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #101522; }
::-webkit-scrollbar-thumb { background: #1349ec; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2d5ef0; }

/* ── Responsive Overrides ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .solution-grid { height: auto !important; }
  .hero-title { font-size: 2.25rem !important; line-height: 1.15 !important; }
}

/* ── Privacy Popup ────────────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.78);
  display: none; justify-content: center; align-items: center;
  z-index: 9999;
}
.popup-box {
  background: #111827; width: 90%; max-width: 700px;
  border-radius: 16px; padding: 28px;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: popupFade 0.28s ease-in-out;
  max-height: 82vh; overflow-y: auto;
}
.popup-box h2 {
  margin: 0 0 16px; font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: white;
}
.close-btn {
  float: right; font-size: 22px; font-weight: bold;
  cursor: pointer; color: rgba(255, 255, 255, 0.65); line-height: 1;
}
.close-btn:hover { color: white; }
.popup-box p { font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, 0.82); }
.popup-box h4 { margin-top: 16px; font-size: 15px; color: #38bdf8; }
@keyframes popupFade {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.privacy-link {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 2px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.privacy-link:hover { color: white; }

/* ── Job Card Accent Variants (used by careers.php dynamic rendering) ─────── */

/* Base job card */
.job-card {
  background: #0d1120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
@media (min-width: 768px) {
  .job-card {
    flex-direction: row;
    align-items: center;
  }
}
.job-card-meta { margin-bottom: 1rem; }
@media (min-width: 768px) { .job-card-meta { margin-bottom: 0; } }

.job-card-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.job-type-badge {
  font-size: 0.875rem; font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: rgb(148 163 184);
  white-space: nowrap;
}

/* Primary (blue) accent */
.job-card--primary:hover { border-color: rgba(19, 73, 236, 0.5); background: rgba(19, 73, 236, 0.05); }
.job-dept--primary        { color: #1349ec; }
.job-title--primary:hover { color: #1349ec; }

/* Purple accent */
.job-card--purple:hover  { border-color: rgba(168, 85, 247, 0.5); background: rgba(168, 85, 247, 0.05); }
.job-dept--purple        { color: #c084fc; }
.job-title--purple:hover { color: #c084fc; }

/* Emerald accent */
.job-card--emerald:hover  { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.05); }
.job-dept--emerald        { color: #34d399; }
.job-title--emerald:hover { color: #34d399; }

/* Blue accent */
.job-card--blue:hover  { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.05); }
.job-dept--blue        { color: #60a5fa; }
.job-title--blue:hover { color: #60a5fa; }

/* Amber accent */
.job-card--amber:hover  { border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.05); }
.job-dept--amber        { color: #fbbf24; }
.job-title--amber:hover { color: #fbbf24; }

/* ── Jobs loading / error states ──────────────────────────────────────────── */
.jobs-loading {
  text-align: center; padding: 3rem 1rem;
  color: rgb(148 163 184);
}
.jobs-error { text-align: center; padding: 2rem; color: #f87171; }

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Scroll Reveal ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(0.95) translateY(16px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── SVG service-card animations ─────────────────────────────────────────── */
@keyframes flow-dash {
  to { stroke-dashoffset: -18; }
}
@keyframes node-pulse {
  0%,100% { opacity:.6; r:38px; }
  50%      { opacity:1;  r:42px; }
}
@keyframes orbit-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.svc-flow { animation: flow-dash 1.4s linear infinite; }
.svc-orbit { transform-origin: 210px 155px; animation: orbit-slow 18s linear infinite; }
.svc-float { animation: float-y 3.5s ease-in-out infinite; }

/* ── Service section hover cards ─────────────────────────────────────────── */
.svc-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.svc-card:hover {
  border-color: rgba(19,73,236,0.4);
  box-shadow: 0 0 28px rgba(19,73,236,0.12);
  transform: translateY(-3px);
}
.svc-card--violet:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 28px rgba(139,92,246,0.12);
}
.svc-card--emerald:hover {
  border-color: rgba(16,185,129,0.4);
  box-shadow: 0 0 28px rgba(16,185,129,0.10);
}
.svc-card--amber:hover {
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 0 28px rgba(245,158,11,0.10);
}
.svc-card--coral:hover {
  border-color: rgba(251,113,133,0.4);
  box-shadow: 0 0 28px rgba(251,113,133,0.10);
}
