/* =========================================================
   VELORIX SOLUTIONS — DESIGN SYSTEM
   ========================================================= */

:root {
  --bg: #0B0F17;
  --bg-alt: #0D1117;
  --surface: #161B22;
  --surface-hover: #1B222B;
  --border: #30363D;
  --border-soft: rgba(48, 54, 61, 0.6);

  --text-primary: #F0F3F7;
  --text-secondary: #9AA5B1;
  --text-muted: #6B7684;

  --cyan: #06B6D4;
  --cyan-bright: #22D3EE;
  --purple: #7C3AED;
  --emerald: #10B981;

  --grad-primary: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  --grad-text: linear-gradient(90deg, var(--cyan-bright) 0%, var(--purple) 100%);

  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.18);
  --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.18);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 14px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 720px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 600px;
  margin-top: 14px;
}

.section-head { margin-bottom: 56px; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.dot-cyan { background: var(--cyan-bright); box-shadow: 0 0 10px var(--cyan-bright); }
.dot-purple { background: var(--purple); box-shadow: 0 0 10px var(--purple); }
.dot-emerald { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #05070B;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--cyan-bright); background: rgba(6,182,212,0.06); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  padding: 12px 0;
  background: rgba(13, 17, 23, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--surface); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link { font-size: 0.92rem; color: var(--text-secondary); position: relative; transition: color 0.2s ease; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--grad-text); transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-size: 0.88rem; font-weight: 600; padding: 9px 20px; border-radius: 999px;
  background: var(--grad-primary); color: #05070B; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(6,182,212,0.28); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 22px;
  z-index: 110;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 15%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(6, 182, 212, 0.14), transparent 60%),
    var(--bg);
}

.hero-flowfield { position: absolute; inset: 0; z-index: 0; opacity: 0.55; }
.flow-svg { width: 100%; height: 100%; }
.node { fill: var(--cyan-bright); opacity: 0.5; }
.flow-path {
  stroke-dasharray: 6 10;
  animation: dashFlow 14s linear infinite;
}
.flow-path--rev { animation-direction: reverse; animation-duration: 18s; }
@keyframes dashFlow { to { stroke-dashoffset: -400; } }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 26px;
}
.hero-title-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }

.hero-meta {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
}
.hero-meta-item { display: flex; align-items: center; }

/* =========================================================
   SERVICES — TABBED INTERFACE
   ========================================================= */

.services {
  padding: 120px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

/* gradient glow ring drawn behind the card, faded in on hover */
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-primary);
  
  /* Webkit prefix for Chrome, Edge, Safari */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  
  /* Standard CSS Syntax */
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4), var(--shadow-glow-cyan);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(6,182,212,0.14), rgba(124,58,237,0.14));
  border: 1px solid var(--border-soft);
  color: var(--cyan-bright);
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); color: var(--cyan-bright); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  font-size: 0.82rem;
  color: var(--text-primary);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.service-card:hover .chip { border-color: var(--border); }
.chip:hover { border-color: var(--cyan); color: var(--cyan-bright); background: rgba(6, 182, 212, 0.08); }

/* =========================================================
   ABOUT
   ========================================================= */

.about {
  padding: 40px 24px 120px;
  max-width: 1200px;
  margin: 0 auto;
}

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.founder-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-glow-cyan);
}

.founder-avatar {
  width: 84px; height: 84px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, rgba(6,182,212,0.18), rgba(124,58,237,0.18));
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }

.founder-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.founder-title { font-size: 0.85rem; color: var(--cyan-bright); font-family: var(--font-mono); margin-bottom: 14px; }
.founder-bio { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 16px; }

.founder-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.founder-link:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); }

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  padding: 40px 24px 130px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-details { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.contact-details li { display: flex; flex-direction: column; gap: 3px; font-size: 0.95rem; }
.contact-label {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
}
.contact-details a { color: var(--text-primary); transition: color 0.2s ease; }
.contact-details a:hover { color: var(--cyan-bright); }

.social-row { display: flex; gap: 12px; margin-top: 30px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); font-size: 0.75rem; font-weight: 700;
  font-family: var(--font-mono); color: var(--text-secondary);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.social-icon:hover { border-color: var(--cyan-bright); color: var(--cyan-bright); transform: translateY(-3px); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }

.form-row input,
.form-row select,
.form-row textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-muted); }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-row select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.form-row textarea { resize: vertical; min-height: 100px; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 60px 24px 30px;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-logo { margin-bottom: 12px; }
.footer-brand .brand-name { display: block; margin-bottom: 10px; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; max-width: 260px; }

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px;
}
.footer-links a, .footer-contact a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan-bright); }

.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.82rem; color: var(--text-muted); text-align: center;
}

/* =========================================================
   TOAST
   ========================================================= */

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 200;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--border-soft);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-cta { margin-top: 10px; }
  .hamburger { display: flex; }

  .hero { padding-top: 120px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }

  .founder-card { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .navbar-inner { padding: 0 18px; }
  .brand-name { font-size: 0.95rem; }
  .services, .about, .contact { padding-left: 18px; padding-right: 18px; }
  .service-card { padding: 24px; }
  .contact-form { padding: 24px; }
}

/* =========================================================
   FLOATING WHATSAPP WIDGET
   ========================================================= */

.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 27, 34, 0.65);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #25D366;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.whatsapp-widget:hover,
.whatsapp-widget:focus-visible {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.28), var(--shadow-glow-cyan);
}

.whatsapp-icon { position: relative; z-index: 1; }

.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.whatsapp-widget:hover .whatsapp-pulse,
.whatsapp-widget:focus-visible .whatsapp-pulse {
  animation: whatsappPulse 1.4s var(--ease) infinite;
}

@keyframes whatsappPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.whatsapp-widget:hover .whatsapp-tooltip,
.whatsapp-widget:focus-visible .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-widget {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-tooltip { display: none; }
}