/* ================================================================
   YO JOBS - Main Stylesheet
   Structure: css/style.css
   ================================================================ */

/* ----------------------------------------------------------------
   BASE
   ---------------------------------------------------------------- */
* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ----------------------------------------------------------------
   CUSTOM SCROLLBAR
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 3px; }
.dark ::-webkit-scrollbar-track { background: #1e293b; }
.dark ::-webkit-scrollbar-thumb { background: #2563eb; }

/* ----------------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------------- */
.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------------------------------
   NAVBAR
   ---------------------------------------------------------------- */
.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile menu slide */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open { max-height: 500px; }

/* ----------------------------------------------------------------
   DARK MODE TOGGLE BUTTON
   ---------------------------------------------------------------- */
.theme-btn {
  transition: transform 0.3s ease, background 0.3s ease;
}
.theme-btn:hover { transform: rotate(15deg) scale(1.1); }

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.hero-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 70%, #3b82f6 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

/* Floating badge animation */
.avatar-badge {
  animation: float 3s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   STATS BAR
   ---------------------------------------------------------------- */
.stats-bar {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}

.stat-number {
  font-family: 'Playfair Display', serif;
}

/* ----------------------------------------------------------------
   SCROLL ANIMATIONS
   Elements start invisible and fade+slide up when they enter
   the viewport. JS adds .visible. The hero section gets an
   immediate reveal via JS getBoundingClientRect check on load.
   ---------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safety net: if JS is blocked or very slow,
   never leave the hero content invisible forever */
#home .animate-on-scroll {
  transition-delay: 0ms !important; /* hero should never wait */
}

/* ----------------------------------------------------------------
   SERVICE CARDS
   ---------------------------------------------------------------- */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* ----------------------------------------------------------------
   TEAM CARDS
   ---------------------------------------------------------------- */
.team-overlay {
  transition: opacity 0.3s ease;
}
.team-card:hover .team-overlay {
  opacity: 1;
}

/* Team member actual photos — fills the card slot completely */
.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* When a real photo is present, hide the initials fallback */
.team-photo-slot:has(.team-photo) .team-initials {
  display: none;
}

/* ----------------------------------------------------------------
   TESTIMONIAL CARDS
   ---------------------------------------------------------------- */
.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

/* ----------------------------------------------------------------
   CLIENT LOGO TICKER — transparent SVG logos, no card border/box
   Just logos floating on the background, sliding smoothly.
   ---------------------------------------------------------------- */
.clients-track-wrapper {
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  /* Fade left and right edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 96px;
  width: max-content;
  animation: ticker 32s linear infinite;
}

/* Pause on hover */
.clients-track-wrapper:hover .clients-track {
  animation-play-state: paused;
}

/* No box, no border, no background — just the logo */
.client-logo-card {
  flex-shrink: 0;
  width: 240px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  opacity: 1;
  transition: transform 0.3s ease;
}
.client-logo-card:hover {
  transform: scale(1.08);
}

/* SVG / transparent-bg logo image */
.client-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* No filter — SVGs with transparent bg render as-is */
  filter: none;
  transition: filter 0.3s ease;
}

/* Dark mode: if logos are dark-coloured and hard to see,
   brighten them slightly. Remove this if your logos are light. */
.dark .client-logo-img {
  filter: brightness(1.15);
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   FORM INPUTS
   ---------------------------------------------------------------- */
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* ----------------------------------------------------------------
   KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}