/* ========================================
   VIONIXO Brand Portal — Base Styles
   ======================================== */

:root {
  --color-canvas: #020617;
  --color-surface: #0f172a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #ffffff;
  --color-mute: #94a3b8;
  --color-accent: #3b82f6;
  --color-payinsight: #2563eb;
  --color-flower: #ec4899;
  --color-football: #22c55e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body {
  background-color: var(--color-canvas);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

/* ---- Sections ---- */

.section-pad {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* ---- Navigation ---- */

#navbar.scrolled {
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ---- Hero ---- */

#hero {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
    var(--color-canvas);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(34, 211, 238, 0.28);
  top: 10%;
  left: 15%;
  animation: orb-float-1 18s ease-in-out infinite;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: rgba(59, 130, 246, 0.3);
  bottom: 15%;
  right: 10%;
  animation: orb-float-2 22s ease-in-out infinite;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: rgba(37, 99, 235, 0.22);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orb-float-3 15s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

/* ---- Brand Cards ---- */

.brand-card {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.brand-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.16);
}

.brand-card[data-brand='payinsight']:hover {
  box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.35);
  border-color: rgba(37, 99, 235, 0.4);
}

.brand-card[data-brand='flower']:hover {
  box-shadow: 0 20px 60px -15px rgba(236, 72, 153, 0.35);
  border-color: rgba(236, 72, 153, 0.4);
}

.brand-card[data-brand='football']:hover {
  box-shadow: 0 20px 60px -15px rgba(34, 197, 94, 0.35);
  border-color: rgba(34, 197, 94, 0.4);
}

.brand-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.brand-card:hover .brand-glow {
  opacity: 1;
}

.brand-glow-payinsight {
  background: radial-gradient(ellipse at 30% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 60%);
}

.brand-glow-flower {
  background: radial-gradient(ellipse at 30% 0%, rgba(236, 72, 153, 0.18) 0%, transparent 60%);
}

.brand-glow-football {
  background: radial-gradient(ellipse at 30% 0%, rgba(34, 197, 94, 0.18) 0%, transparent 60%);
}

/* ---- Tech Tags ---- */

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-mute);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
  cursor: default;
}

.tech-tag:hover {
  color: #fff;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

/* ---- Timeline ---- */

.timeline {
  padding-left: 1.5rem;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    rgba(37, 99, 235, 0.5),
    rgba(236, 72, 153, 0.5),
    rgba(34, 197, 94, 0.5),
    rgba(148, 163, 184, 0.3)
  );
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.75rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dot-color, var(--color-accent));
  border: 2px solid var(--color-canvas);
  box-shadow: 0 0 0 2px var(--dot-color, var(--color-accent));
  z-index: 1;
}

.timeline-dot-accent {
  --dot-color: var(--color-accent);
}

.timeline-dot-muted {
  background: #475569;
  box-shadow: 0 0 0 2px #475569;
}

/* ---- Contact ---- */

.contact-card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

a.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(59, 130, 246, 0.25);
}

/* ---- Logo ---- */

.logo-full {
  display: block;
  object-fit: contain;
}

.logo-nav {
  height: 2.25rem;
  width: auto;
}

.logo-hero {
  width: min(100%, 18rem);
  height: auto;
}

@media (min-width: 640px) {
  .logo-hero {
    width: min(100%, 22rem);
  }
}

.logo-footer {
  height: 2.75rem;
  width: auto;
}

/* ---- Buttons ---- */

.btn-primary {
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px -8px rgba(34, 211, 238, 0.45);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* ---- Custom Cursor ---- */

.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
  transition:
    width 0.25s ease,
    height 0.25s ease,
    border-color 0.25s ease,
    opacity 0.3s ease;
}

.cursor-ring.hover {
  width: 52px;
  height: 52px;
  border-color: var(--color-accent);
}

body.has-custom-cursor .cursor-dot,
body.has-custom-cursor .cursor-ring {
  opacity: 1;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}
