:root {
  --brand-primary: #0284c7;
  --brand-secondary: #1e293b;
  --brand-tertiary: #38bdf8;
}

/* ================= BASE ================= */
html {
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  background: #020617;
  color: white;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

/* ================= BACKGROUND SYSTEM ================= */
.hero-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0);
  background-size: 28px 28px;
}

.glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, .25), transparent 35%),
    radial-gradient(circle at bottom left, rgba(139, 92, 246, .2), transparent 35%);
  filter: blur(100px);
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: .25;
  animation: pulseOrb 8s ease-in-out infinite;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ================= GLASS SYSTEM ================= */
.glass {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .05);
}

.gradient-text {
  background: linear-gradient(90deg, #38bdf8, #8b5cf6, #22d3ee);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ================= BUTTONS ================= */

/* Primary CTA */
.btn-primary {
  position: relative;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  color: white;
  overflow: hidden;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  box-shadow: 0 4px 15px rgba(139, 92, 246, .25);
  transition: all .3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, .35);
}

/* Secondary */
.btn-glass {
  padding: 12px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  transition: 0.3s;
}

.btn-glass:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.08);
}

/* ================= CARDS ================= */


/* ================= CARDS ================= */
.tilt-card {
  transition: .4s transform, .4s box-shadow;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
}

/* ================= GROUP EFFECT ================= */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.12);
}

/* ================= EPIC BUTTON ================= */

.btn-epic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 32px;
  border-radius: 14px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;

  color: #fff;
  text-transform: none;

  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  background-size: 200% 200%;

  box-shadow:
    0 4px 15px rgba(139, 92, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  overflow: hidden;
  transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
}

/* shimmer layer */
.btn-epic::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(120deg,
      transparent 20%,
      rgba(255, 255, 255, 0.4),
      transparent 80%);

  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

/* hover */
.btn-epic:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(34, 211, 238, 0.35),
    0 0 15px rgba(139, 92, 246, 0.3);
}

/* shimmer animation trigger */
.btn-epic:hover::before {
  transform: translateX(100%);
}

/* subtle gradient motion */
.btn-epic:hover {
  background-position: right center;
}

/* click */
.btn-epic:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ================= FORM INPUTS ================= */
.auth-input {
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}
.auth-input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
  background: rgba(2, 6, 23, 1);
}
.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ================= ANIMATIONS ================= */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulseOrb {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* ================= HEADER BASE ================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  padding-top: 22px;
  padding-bottom: 22px;
  transition: all 0.5s ease;
}

/* INNER */
#headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================= BACKGROUND ================= */

#headerBg {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.7)),
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.25), transparent 40%);

  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  transition: all 0.5s ease;
  z-index: -1;
}

/* ================= LOGO ================= */

#logo {
  height: 72px;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(.22, 1, .36, 1);
}

/* ================= NAV ================= */

#nav {
  position: relative;
  gap: 40px;
}

.nav-item {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9ca3af;
  position: relative;
  transition: 0.3s;
}

.nav-item:hover {
  color: white;
}

/* ================= PREMIUM PILL HOVER ================= */

#liquidLine {
  position: absolute;
  top: 50%;
  margin-top: -20px;
  height: 40px;
  width: 0;
  border-radius: 999px;
  z-index: -1;

  /* Glass Pill Look */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), inset 0 0 20px rgba(34, 211, 238, 0.1);
  backdrop-filter: blur(10px);

  opacity: 0;

  transition:
    width 0.4s cubic-bezier(.22, 1, .36, 1),
    transform 0.4s cubic-bezier(.22, 1, .36, 1),
    opacity 0.3s;
}

/* ================= CTA ================= */

.btn-nav {
  padding: 12px 28px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;

  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  color: #000;

  box-shadow: 0 10px 30px rgba(139, 92, 246, .35);
  transition: 0.3s;
}

.btn-nav:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 50px rgba(34, 211, 238, .45);
}

/* ================= CURSOR GLOW ================= */

#header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
      rgba(56, 189, 248, 0.18),
      transparent 40%);

  opacity: 0;
  transition: opacity 0.3s;
}

#header:hover::after {
  opacity: 1;
}

/* ================= SCROLL STATE ================= */

#header.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  /* Just a very slight change to make it feel sleek, without massive jumps */
}

#header.scrolled #headerBg {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ================= HOW WE HIRE PAGE ================= */
.premium-card {
  position: relative;
  background: rgba(3, 7, 18, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform, box-shadow, border-color;
}

.premium-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(34, 211, 238, 0.08);
}

.premium-card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(34, 211, 238, 0.08),
      transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
  border-radius: inherit;
}

.premium-card:hover .premium-card-glare {
  opacity: 1;
}

/* 3D Parallax Elements inside cards */
.card-3d-element-lg {
  transform: translateZ(0px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover .card-3d-element-lg {
  transform: translateZ(35px) scale(1.03);
}

.card-3d-element-md {
  transform: translateZ(0px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover .card-3d-element-md {
  transform: translateZ(22px);
}

.card-3d-element-sm {
  transform: translateZ(0px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover .card-3d-element-sm {
  transform: translateZ(12px);
}

/* Timeline animations & connections */
.timeline-step {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.timeline-step.active-step {
  transform: scale(1.02);
}

#timelineProgress {
  height: 100%;
  transform-origin: top;
  background: linear-gradient(to bottom, #22d3ee, #a855f7, #22d3ee);
  background-size: 100% 200%;
  animation: progress-flow-pulse 4s linear infinite;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

@keyframes progress-flow-pulse {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 0% 200%;
  }
}

.timeline-bullet {
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.timeline-bullet.active-bullet {
  background-color: #22d3ee !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.6) !important;
  transform: scale(1.1);
}

/* Accordion Smooth Springs */
.faq-content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-height;
}

.faq-content-inner {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-active .faq-content-inner {
  opacity: 1;
  transform: translateY(0px);
}

.faq-btn svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes orb-float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

.animate-orb-slow {
  animation: orb-float 8s infinite ease-in-out;
}

/* Premium Footer Link Hover System */
.footer-link {
  position: relative;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #22d3ee;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

.footer-link:hover {
  color: #22d3ee !important;
  padding-left: 14px;
}

.footer-link:hover::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Timeline 3D Image Floating & Interactive Scaling */
@keyframes image-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hiring-image-float {
  animation: image-bob 5s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.premium-card:hover .hiring-image-float {
  transform: scale(1.04) translateY(-4px);
  filter: brightness(1.06) contrast(1.02);
  animation-play-state: paused;
  /* Pause bobbing during manual 3D cursor tilt */
}

/* Active Navbar Highlight Underline */
.nav-item.nav-active {
  color: #22d3ee !important;
  font-weight: 700;
}

.nav-item.nav-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background-color: #22d3ee;
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}

/* Core Principles Custom Neon Hover Glow Borders */
.premium-card.card-glow-cyan {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.premium-card.card-glow-cyan:hover {
  border-color: rgba(34, 211, 238, 0.35) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.18) !important;
}

.premium-card.card-glow-purple {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.premium-card.card-glow-purple:hover {
  border-color: rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.18) !important;
}

.premium-card.card-glow-emerald {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.premium-card.card-glow-emerald:hover {
  border-color: rgba(52, 211, 153, 0.35) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 211, 153, 0.18) !important;
}

/* ================= SELECTION & ZERO-BLINK INPUT STYLES ================= */
::selection {
  background: rgba(34, 211, 238, 0.3) !important;
  color: #ffffff !important;
}

::-moz-selection {
  background: rgba(34, 211, 238, 0.3) !important;
  color: #ffffff !important;
}

/* Prevent Chrome / Edge / Safari autofill white/yellow background and blinking */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #020617 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 50000s ease-in-out 0s !important;
  caret-color: #22d3ee !important;
}

/* Stable input focus with zero layout or color blinking */
input, textarea, select {
  caret-color: #22d3ee !important;
  color-scheme: dark !important;
}

input:focus, textarea:focus, select:focus {
  background-color: #020617 !important;
  color: #ffffff !important;
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 1px #22d3ee, 0 0 12px rgba(34, 211, 238, 0.2) !important;
  outline: none !important;
}

/* ================= NEW PREMIUM ANIMATIONS ================= */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient {
  animation: gradient-shift 6s ease infinite;
}

@keyframes float-advanced {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

.animate-float {
  animation: float-advanced 6s ease-in-out infinite;
}

@keyframes infinite-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.animate-infinite-scroll {
  animation: infinite-scroll 40s linear infinite;
}

/* ================= RADICAL LAYOUT ANIMATIONS ================= */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee-slow {
  animation: marquee-scroll 40s linear infinite;
}
.animate-marquee-fast {
  animation: marquee-scroll 20s linear infinite reverse;
}



.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ================= MOBILE NAV DROPDOWN ================= */
#mobileNav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

#mobileNav.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

@media (min-width: 1024px) {
  #mobileNav, #mobileNav.open {
    display: none !important;
  }
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}
.toast-item.hide {
  animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-success {
  border-left: 4px solid #22c55e;
  color: #fff;
}
.toast-success i { color: #22c55e; }
.toast-error {
  border-left: 4px solid #ef4444;
  color: #fff;
}
.toast-error i { color: #ef4444; }
.toast-info {
  border-left: 4px solid #22d3ee;
  color: #fff;
}
.toast-info i { color: #22d3ee; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(20px) scale(0.95); }
}

/* ================= SCROLL PROGRESS ================= */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617; /* Matches body bg */
}
::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.6);
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #22d3ee; /* Solid cyan, corporate look */
  width: 0%;
  z-index: 99999;
  box-shadow: 0 1px 4px rgba(34, 211, 238, 0.3);
  pointer-events: none;
}

/* ================= MODALS ================= */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex !important; /* Override Tailwind hidden */
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-backdrop > div {
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.modal-backdrop.open > div {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ================= SCROLLBAR & STEPPER NORMALIZATION ================= */
textarea {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow-y: auto;
}
textarea::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.no-scrollbar,
.custom-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.no-scrollbar::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}