/* ── Gig Enhancements — Animations & Mobile Nav ── */

/* ── Keyframes ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(61,184,90,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(61,184,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,184,90,0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Enhanced hero ── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0a1f3d 0%, #0f3460 35%, #1a3f6e 65%, #0d3458 100%);
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: inherit;
}

/* Hero badge pulse */
.hero-badge {
  animation: pulseRing 2.5s ease-out infinite, fadeIn 0.8s ease both;
}

/* Hero h1 text shimmer on the accent span */
.hero h1 span {
  background: linear-gradient(90deg, #5de08a, #a8f0c0, #5de08a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Hero content fade in sequence */
.hero-inner > * { animation: fadeInUp 0.7s ease both; }
.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.55s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.7s; }

/* Hero floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: floatY 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(61,184,90,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  bottom: 40px; left: -60px;
  animation-delay: -4s;
}

/* Floating task card in hero */

  .hero p     { margin-left: 0; }
  .hero-cta   { justify-content: flex-start; }
  .hero-stats { justify-content: flex-start; }
}

/* ── Step numbers enhanced ── */
.hiw-step .step-num {
  background: linear-gradient(135deg, var(--primary), #1e5a9e);
  box-shadow: 0 6px 20px rgba(15,52,96,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hiw-step:hover .step-num {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(15,52,96,0.45);
}

/* ── Enhanced category items ── */
.cat-item {
  position: relative;
  overflow: hidden;
}
.cat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,52,96,0.05), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.cat-item:hover::before { opacity: 1; }
.cat-item .cat-icon {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.cat-item:hover .cat-icon { transform: scale(1.25) rotate(-5deg); }

/* ── Trust items enhanced ── */
.trust-item {
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.trust-item:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}
.t-icon {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  display: inline-block;
}
.trust-item:hover .t-icon { transform: scale(1.2); }

/* ── Enhanced stat cards ── */
.hero-stat .num {
  font-variant-numeric: tabular-nums;
  transition: opacity 0.3s;
}
.hero-stat .lbl {
  letter-spacing: 0.1em;
}

/* ── Smooth button press ── */
.btn-accent, .btn-primary {
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
}
.btn-accent:active, .btn-primary:active {
  transform: scale(0.97);
}
.btn-lg {
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-lg:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.24);
}

/* ── Section title gradient accent ── */
.section-accent {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #1e6ab4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Uni pills enhanced ── */
.uni-pill {
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.uni-pill.active {
  box-shadow: 0 4px 16px rgba(15,52,96,0.3);
  transform: translateY(-2px);
}
.uni-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

/* ── How it works enhanced section ── */
.hiw {
  position: relative;
  overflow: hidden;
}
.hiw::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,52,96,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Mobile nav ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.14); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,31,61,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.nav-mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-mobile-menu a {
  color: rgba(255,255,255,0.85);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-mobile-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.nav-mobile-menu .btn-nav-mobile {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-top: 0.5rem;
  justify-content: center;
}
.nav-mobile-menu .btn-nav-mobile:hover { background: var(--accent-dk); }
.nav-mobile-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── Pay flow arrow enhancement ── */
.pay-step::after {
  font-size: 1.5rem;
  color: #cbd5e1;
  opacity: 0.8;
}

/* ── About cards hover ── */
.about-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── Live tasks section header ── */
.live-tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.live-tasks-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.live-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
  flex-shrink: 0;
}

/* ── Enhanced footer ── */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.75); text-decoration: none; }

/* ── Smooth page transitions ── */
main {
  animation: fadeIn 0.4s ease both;
}

/* ── Input focus ring enhancement ── */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,52,96,0.12);
}

/* ── Task card improved ── */
.task-card {
  transition: box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1), border-color 0.25s;
}
.task-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.1);
  filter: brightness(1.08);
  transform: translateY(-4px);
}

/* ── Fix hero clip-path cutting off stat labels ── */
.hero {
  padding-bottom: 6rem !important;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%) !important;
}
@media (max-width: 600px) {
  .hero { clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%) !important; }
}

/* ── Reduce gap between hero and How It Works ── */
.hiw {
  padding-top: 3rem !important;
  margin-top: -1rem;
}

/* ── Stats row fix — keep in single row ── */
.hero-stats {
  flex-wrap: nowrap !important;
  gap: 0 !important;
}
.hero-stat {
  padding: 0 1.75rem !important;
  min-width: 0;
}

/* ── Task card link wrapper ── */
.task-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}
.task-card-link:hover { text-decoration: none !important; }

/* ── Sample jobs section ── */
.sample-jobs-section {
  padding: 3.5rem 1.5rem;
}
.sample-jobs-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sample-card {
  height: 100%;
  cursor: pointer;
}
.sample-post-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  background: #fafbfc;
}
.sample-post-card:hover {
  border-color: var(--accent);
  background: #f0fdf4;
}

/* ── Availability day checkboxes ── */
.avail-days {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.avail-day-label {
  cursor: pointer;
}
.avail-day-label input {
  display: none;
}
.avail-day-label span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
  user-select: none;
}
.avail-day-label input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.avail-day-label span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ══ Float cycling card ══ */
.hero-float-card {
  display: none;
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 230px;
  animation: floatY 6s ease-in-out infinite, slideInRight 0.8s cubic-bezier(0.4,0,0.2,1) 0.9s both;
}

@media (min-width: 1050px) {
  .hero-float-card { display: block; }
  .hero-inner {
    text-align: left !important;
    max-width: 540px !important;
    margin-left: 4% !important;
    margin-right: auto !important;
  }
  .hero p     { margin-left: 0 !important; }
  .hero-cta   { justify-content: flex-start !important; }
  .hero-stats { justify-content: flex-start !important; }
}

.float-card {
  background: rgba(15, 28, 56, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 1.1rem 1.1rem 0.9rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}

.float-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.float-card-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseRing 2s ease-out infinite;
}
.float-card-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.float-dots {
  display: flex;
  gap: 4px;
}
.float-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s;
}
.float-dot.active { background: #22c55e; }

/* Slides */
.float-slides {
  position: relative;
  height: 110px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.float-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.float-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.float-slide.exiting {
  opacity: 0;
  transform: translateY(-12px);
}

.float-task-cat {
  font-size: 0.68rem;
  color: #6ee7a0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.float-task-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}
.float-task-loc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.float-budget {
  display: inline-block;
  background: rgba(61,184,90,0.18);
  border: 1px solid rgba(61,184,90,0.3);
  color: #6ee7a0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-top: auto;
}

.float-cta {
  display: block;
  text-align: center;
  background: rgba(61,184,90,0.15);
  border: 1px solid rgba(61,184,90,0.3);
  color: #6ee7a0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}
.float-cta:hover {
  background: rgba(61,184,90,0.28);
  text-decoration: none;
  color: #86efac;
}

/* Hero overflow fix */
.hero { overflow: visible !important; }
.hero-orb { overflow: hidden; }

/* Stats single row */
.hero-stats {
  flex-wrap: nowrap !important;
  gap: 0 !important;
}
.hero-stat { padding: 0 1.5rem !important; min-width: 0; }
