/* ===== SA Tech Academy — custom styles ===== */

html { scroll-behavior: smooth; }
body { scroll-padding-top: 5rem; }

/* Header link styles (Tailwind @apply not available via CDN, use plain CSS) */
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
}
.nav-link:hover { color: #2563eb; background: #eff6ff; }
.nav-active { color: #2563eb !important; background: #eff6ff; }
#header.scrolled .nav-active { color: #2563eb !important; }

.mobile-link {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  color: #334155;
  transition: background 0.2s ease;
}
.mobile-link:hover { background: #f1f5f9; }

/* Header scrolled state */
#header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}
#header { color: white; }
#header.scrolled { color: #0f172a; }
#header.scrolled .nav-link { color: #334155; }
#header.scrolled .text-brand-600 { color: #2563eb; }

/* Suggestion chips */
.chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  transition: all 0.2s ease;
}
.chip:hover { background: #dbeafe; }

/* Opportunity / course cards */
.opp-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.opp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(37,99,235,0.12); }

.course-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(37,99,235,0.15); }

/* Hero background slideshow */
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Keep hero text readable over full-brightness images */
.hero-content h1,
.hero-content p { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }

/* Faint code pattern background for hero */
.code-pattern {
  background-image:
    linear-gradient(transparent 0 23px, rgba(255,255,255,0.4) 23px 24px),
    linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,0.4) 23px 24px);
  background-size: 24px 24px;
}

/* Progress bar fill animation */
.bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Chat bubble entrance */
.bubble-in { animation: fadeUp 0.4s ease forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Custom scrollbar for chat */
#chatWindow::-webkit-scrollbar { width: 6px; }
#chatWindow::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }

/* Typing indicator */
.typing span {
  animation: blink 1.2s infinite;
  font-size: 1.2rem;
  line-height: 1;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 60%, 100% { opacity: 0.2; }
  30% { opacity: 1; }
}
