/* ============================================================
   SkillGrow – Home Page Styles
   ============================================================ */

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 4rem) 5% 5rem;
  position: relative;
  overflow: hidden;
}

/* Animated Spotlight Mesh */
.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 60%);
  background-size: 200% 200%;
  pointer-events: none;
  animation: spotlightMesh 25s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes spotlightMesh {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10%, 10%) scale(1.1); }
  100% { transform: translate(10%, -10%) scale(1.05); }
}

/* Hide old orbs since we use mesh */
.hero-orb { display: none; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-light);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text-primary);
  animation: fadeInDown 0.6s 0.1s ease both;
}
.hero h1 .brand {
  background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .highlight {
  position: relative;
}
.hero-tagline {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  animation: fadeInDown 0.6s 0.2s ease both;
}

/* Hero Search */
.hero-search {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  animation: fadeInDown 0.6s 0.3s ease both;
  transition: var(--transition);
}
.hero-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}
.hero-search-icon { 
  display: flex; align-items: center; justify-content: center;
  padding: 0 0.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}
.hero-search input::placeholder { color: var(--text-muted); }

/* Hero CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadeInDown 0.6s 0.4s ease both;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  animation: fadeInDown 0.6s 0.5s ease both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual Side */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInRight 0.8s 0.3s ease both;
}
.hero-card-float {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.hero-card-float:nth-child(2) { margin-left: 2rem; animation: floatCard 4s ease-in-out infinite; }
.hero-card-float:nth-child(3) { margin-left: 1rem; animation: floatCard 4s 1.5s ease-in-out infinite; }
.hero-card-float:nth-child(4) { animation: floatCard 4s 3s ease-in-out infinite; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hcf-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.25rem; }
.hcf-value { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }
.hcf-sub   { font-size: 0.72rem; color: var(--green); margin-top: 0.15rem; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate(30px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

/* ── Category Slider ──────────────────────────────────────── */
.category-slider-section {
  padding: 2.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.category-slider-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.slider-track-wrapper {
  position: relative;
  overflow: hidden;
}
/* Fade edges */
.slider-track-wrapper::before,
.slider-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.slider-track-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary), transparent);
}
.slider-track-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-secondary), transparent);
}
.slider-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: slideLeft 30s linear infinite;
}
.slider-track:hover { animation-play-state: paused; }
@keyframes slideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.category-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}
.category-pill:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
  transform: scale(1.05);
}
.category-pill-icon { font-size: 1.1rem; }

/* ── Reviews Section ──────────────────────────────────────── */
.reviews-section {
  padding: 5rem 5%;
  overflow: hidden;
}
.reviews-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  height: 600px;
  position: relative;
}
.reviews-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  position: relative;
}
.reviews-column-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.col-down  { animation-name: scrollDown;  animation-duration: 28s; }
.col-up    { animation-name: scrollUp;    animation-duration: 32s; }
.col-down2 { animation-name: scrollDown2; animation-duration: 25s; }

@keyframes scrollDown {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes scrollUp {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
@keyframes scrollDown2 {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.reviews-column:hover .reviews-column-inner {
  animation-play-state: paused;
}

/* Top/Bottom fades on columns */
.reviews-column::before,
.reviews-column::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.reviews-column::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
}
.reviews-column::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.review-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
.review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.review-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.review-author-info { flex: 1; min-width: 0; }
.review-author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-author-location {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.review-stars {
  color: #ffffff;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.review-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.review-service {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.review-service span { color: var(--green); font-weight: 500; }

/* ── Popular Gigs (Home) ──────────────────────────────────── */
.popular-gigs-section { padding: 5rem 5%; }
.gigs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Home responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .reviews-columns { grid-template-columns: repeat(2, 1fr); }
  .reviews-columns .reviews-column:last-child { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.8rem; letter-spacing: -1px; }
  .hero-search { flex-direction: column; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .reviews-columns { grid-template-columns: 1fr; height: 450px; }
  .reviews-columns .reviews-column:not(:first-child) { display: none; }
}
