/* home.css — Homepage-specific styles */

/* HERO */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; }
.shape-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; }
.shape-3 { width: 300px; height: 300px; background: #7C3AED; top: 50%; left: 30%; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 8px #25D366; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-title { color: var(--white); margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; }
.text-gradient { background: linear-gradient(135deg, #60A5FA, #00C2FF, #818CF8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-bottom: 32px; max-width: 520px; }

/* Search Box */
.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  margin-bottom: 24px;
  gap: 0;
}
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; padding: 8px 16px; }
.search-icon { font-size: 1.1rem; flex-shrink: 0; }
.search-input { border: none; outline: none; font-size: 0.95rem; color: var(--dark); width: 100%; background: transparent; }
.search-input::placeholder { color: var(--gray-400); }
.search-select { border: none; outline: none; font-size: 0.95rem; color: var(--dark); width: 100%; background: transparent; cursor: pointer; appearance: none; }
.search-divider { width: 1px; height: 36px; background: var(--gray-200); flex-shrink: 0; }
.search-btn { border-radius: var(--radius-md) !important; flex-shrink: 0; padding: 14px 28px !important; }

.hero-popular { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.popular-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 500; white-space: nowrap; }
.popular-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-tags .tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); font-size: 0.8rem; }
.popular-tags .tag:hover { background: var(--primary); border-color: var(--primary); color: white; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Hero Visual */
.hero-visual { position: relative; }
.hero-card { background: rgba(255,255,255,0.95); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); backdrop-filter: blur(20px); }
.hero-card-main { padding: 24px; animation: float 4s ease-in-out infinite; }
.hc-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hc-logo { width: 48px; height: 48px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.hc-title { font-weight: 700; font-size: 1rem; color: var(--dark); }
.hc-company { font-size: 0.85rem; color: var(--gray-500); margin-top: 2px; }
.hc-tags { display: flex; gap: 8px; margin-bottom: 20px; }
.hc-footer { display: flex; align-items: center; justify-content: space-between; }
.hc-salary { font-weight: 700; color: var(--primary); font-size: 1rem; }

.hero-card-float {
  position: absolute;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-md);
  min-width: 180px;
}
.hero-card-float-1 { bottom: 80px; left: -60px; animation: float 3.5s ease-in-out infinite 0.5s; }
.hero-card-float-2 { top: 60px; right: -40px; animation: float 4.5s ease-in-out infinite 1s; }
.float-icon { font-size: 1.5rem; }
.float-title { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.float-sub { font-size: 0.75rem; color: var(--gray-500); }

.hero-stats-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 20px;
  box-shadow: var(--shadow-blue);
}
.hs-item { text-align: center; }
.hs-num { font-size: 1.5rem; font-weight: 800; color: white; display: block; font-family: var(--font-heading); }
.hs-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.hs-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* Trusted Companies */
.trusted-section { background: white; border-bottom: 1px solid var(--gray-200); }
.companies-track-wrapper { overflow: hidden; position: relative; }
.companies-track-wrapper::before, .companies-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.companies-track-wrapper::before { left: 0; background: linear-gradient(to right, white, transparent); }
.companies-track-wrapper::after { right: 0; background: linear-gradient(to left, white, transparent); }
.companies-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.companies-track:hover { animation-play-state: paused; }
.company-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-right: 1px solid var(--gray-200);
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-600);
  transition: var(--transition);
}
.company-logo-item:hover { color: var(--primary); }
.company-logo-item span { font-size: 1rem; }

/* Featured Jobs */
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.job-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.job-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
  transform: translateY(-8px) scale(1.02);
}
.job-card.featured { border-color: var(--primary); }
.featured-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.jc-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.jc-logo {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.jc-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.jc-company { font-size: 0.85rem; color: var(--primary); font-weight: 500; }
.jc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.jc-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--gray-500); }
.jc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.jc-footer { display: flex; align-items: center; justify-content: space-between; }
.jc-salary { font-weight: 700; color: var(--success); font-size: 0.95rem; }
.save-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  background: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}
.save-btn:hover, .save-btn.saved { border-color: var(--danger); background: #FEF2F2; }

/* Job Tabs */
.job-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.job-tab {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-300);
  background: white;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.job-tab.active, .job-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Categories */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.category-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-card:hover .cat-count { color: var(--primary); }
.cat-icon { font-size: 2.2rem; margin-bottom: 12px; display: block; }
.cat-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); margin-bottom: 6px; }
.cat-count { font-size: 0.82rem; color: var(--gray-500); }

/* Why Section */
.why-section { background: white; }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-features { display: flex; flex-direction: column; gap: 24px; }
.why-feature { display: flex; align-items: flex-start; gap: 16px; }
.why-feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.why-feature h4 { font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.why-feature p { font-size: 0.875rem; color: var(--gray-500); }

.why-visual { position: relative; }
.why-stats-box {
  background: var(--gradient-dark);
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
}
.ws-header { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.ws-number { font-size: 3.5rem; font-weight: 900; font-family: var(--font-heading); color: white; line-height: 1; }
.ws-label { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin: 8px 0 28px; }
.ws-bars { display: flex; flex-direction: column; gap: 16px; }
.ws-bar-row { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.ws-bar-row span:first-child { width: 70px; }
.ws-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.ws-fill { height: 100%; background: var(--gradient-primary); border-radius: 4px; transition: width 1.5s ease; }
.ws-bar-row span:last-child { width: 36px; text-align: right; font-weight: 600; color: white; }

.why-floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  font-size: 1.5rem;
}
.wfc-1 { bottom: -20px; left: -30px; animation: float 4s ease-in-out infinite; }
.wfc-2 { top: -20px; right: -20px; animation: float 5s ease-in-out infinite 1s; }
.wfc-title { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.wfc-sub { font-size: 0.75rem; color: var(--gray-500); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tc-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.tc-text { font-size: 0.95rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.tc-author { display: flex; align-items: center; gap: 14px; }
.tc-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
  background: var(--primary-light); color: var(--primary);
  flex-shrink: 0;
}
.tc-name { font-weight: 700; font-size: 0.95rem; color: var(--dark); }
.tc-role { font-size: 0.82rem; color: var(--gray-500); }

/* CTA Banner */
.cta-banner-section { padding: 60px 0; background: var(--gray-50); }
.cta-banner {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.cta-banner-content { position: relative; z-index: 1; }
.cta-banner h2 { color: white; font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.c1 { width: 300px; height: 300px; right: -80px; top: -100px; }
.c2 { width: 200px; height: 200px; right: 80px; bottom: -80px; }

/* Responsive */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .search-box { flex-direction: column; padding: 16px; gap: 8px; }
  .search-divider { width: 100%; height: 1px; }
  .search-field { width: 100%; padding: 8px 0; }
  .search-btn { width: 100%; justify-content: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .jobs-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .cta-banner { padding: 40px 28px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { justify-content: center; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-card-float { display: none; }
  .hero-stats-card { flex-direction: column; gap: 20px; padding: 24px; }
  .hs-divider { width: 100%; height: 1px; }
  .job-tab { padding: 8px 12px; font-size: 0.85rem; flex: 1; text-align: center; }
}

/* ============================================================
   TESTIMONIALS MARQUEE — CSS-only infinite auto-scroll
   ============================================================ */
@keyframes testimonial-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Outer wrapper: clips overflow and adds fade edges */
.testimonials-marquee-wrapper {
  overflow: hidden;
  position: relative;
  padding: 12px 0 24px;
  /* Fade mask on left & right edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* The scrolling track — must be wide enough for all cards + duplicate set */
.testimonials-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testimonial-scroll 40s linear infinite;
}

/* Pause on hover over ANY card in the track */
.testimonials-marquee-wrapper:hover .testimonials-marquee-track {
  animation-play-state: paused;
}

/* Override the old grid-based card style for marquee context */
.testimonials-marquee-track .testimonial-card {
  width: 340px;
  flex-shrink: 0;
  /* Inherit all existing .testimonial-card styles */
}

@media (max-width: 600px) {
  .testimonials-marquee-track .testimonial-card {
    width: 280px;
  }
}

