/* TalentHub — custom styles + UI polish (Tailwind utilities elsewhere) */

:root {
  --th-green-dark: #0d4d3d;
  --th-yellow: #f5d547;
  --th-green-light: #7dd3a8;
  --th-blue: #3b82f6;
  --th-orange: #fb923c;
  --th-cream: #fefce8;
  --th-shadow: 0 12px 40px -12px rgba(13, 77, 61, 0.22);
  --th-glow: 0 0 0 3px rgba(245, 213, 71, 0.45);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  font-family: "Inter", system-ui, sans-serif;
}

.font-heading {
  font-family: "Poppins", "Baloo 2", system-ui, sans-serif;
}

/* ---------- Site header (scroll state) ---------- */
#site-header > header {
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease,
    backdrop-filter 0.4s ease;
}

#site-header > header.is-scrolled {
  background-color: rgba(13, 77, 61, 0.97) !important;
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Desktop nav underline */
@media (min-width: 1024px) {
  .nav-link-desktop {
    position: relative;
  }

  .nav-link-desktop::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--th-yellow);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s ease;
  }

  .nav-link-desktop:hover::after,
  .nav-link-desktop.is-active::after {
    transform: scaleX(1);
  }

  .nav-link-desktop.is-active {
    background-color: rgba(255, 255, 255, 0.12) !important;
  }
}

/* Active navigation */
.nav-link.is-active:not(.nav-link-desktop) {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 9999px;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    box-shadow 0.28s ease,
    background-color 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(13, 77, 61, 0.35);
}

.btn-cta-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px -10px rgba(13, 77, 61, 0.45);
}

.btn-cta-primary:active {
  transform: scale(0.98);
}

.btn-cta-primary .fa-arrow-right {
  transition: transform 0.25s ease;
}

.btn-cta-primary:hover .fa-arrow-right {
  transform: translateX(4px);
}

.btn-bounce {
  transition:
    transform 0.25s ease,
    box-shadow 0.28s ease;
}

.btn-bounce:hover {
  transform: scale(1.03);
}

.btn-bounce:active {
  transform: scale(0.97);
}

/* ---------- Decorative blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.blob-float {
  animation: blob-float 14s ease-in-out infinite;
}

.blob-float-delayed {
  animation: blob-float 16s ease-in-out infinite 2s;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(12px, -10px) scale(1.03);
  }
  66% {
    transform: translate(-8px, 8px) scale(0.98);
  }
}

.blob-yellow {
  background: var(--th-yellow);
}
.blob-green {
  background: var(--th-green-light);
}
.blob-blue {
  background: var(--th-blue);
}
.blob-orange {
  background: var(--th-orange);
}

/* ---------- Hero load-in ---------- */
.hero-stagger > * {
  opacity: 0;
  animation: hero-in 0.85s ease forwards;
}

.hero-stagger > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-stagger > *:nth-child(2) {
  animation-delay: 0.18s;
}
.hero-stagger > *:nth-child(3) {
  animation-delay: 0.3s;
}
.hero-stagger > *:nth-child(4) {
  animation-delay: 0.42s;
}
.hero-stagger > *:nth-child(5) {
  animation-delay: 0.54s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stagger > * {
    opacity: 1;
    animation: none;
  }
}

/* ---------- Wave divider (krem → vazhdon seksionin e radhës; pjesa mbi kurbë është e tejdukshme) ---------- */
.wave-divider {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  background: transparent;
  /* heq çdo vijë 1px midis hero dhe valës */
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 52px;
  max-height: 88px;
  vertical-align: bottom;
  shape-rendering: geometricPrecision;
  color: var(--th-cream);
}

.wave-divider svg path {
  fill: currentColor;
}

/* Legacy reveal (fallback if AOS disabled) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cards ---------- */
.card-lift {
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--th-shadow);
}

.card-premium {
  position: relative;
  border: 1px solid rgba(226, 232, 240, 1);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.card-premium::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 213, 71, 0.5), rgba(125, 211, 168, 0.4), rgba(59, 130, 246, 0.25));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card-premium:hover::before {
  opacity: 1;
}

.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--th-shadow);
}

.card-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  transition: transform 0.35s ease;
}

.card-premium:hover .card-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
}

.course-card-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    margin 0.35s ease;
}

.card-premium:hover .course-card-extra {
  max-height: 4rem;
  opacity: 1;
  margin-top: 0.75rem;
}

/* ---------- Forms ---------- */
.input-with-icon {
  position: relative;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(13, 77, 61, 0.45);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}

.input-th {
  transition:
    border-color 0.25s ease,
    box-shadow 0.28s ease,
    background-color 0.2s ease;
}

.input-th:focus {
  outline: none;
  border-color: var(--th-yellow) !important;
  box-shadow: var(--th-glow);
}

.input-with-icon:not(.input-with-icon--textarea):focus-within .input-icon {
  color: var(--th-green-dark);
  transform: translateY(-50%) scale(1.08);
}

.input-with-icon--textarea .input-icon {
  top: 1.15rem;
  transform: none;
}

.input-with-icon--textarea:focus-within .input-icon {
  color: var(--th-green-dark);
  transform: scale(1.08);
}

.input-th.input-error {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.input-th.input-success {
  border-color: var(--th-green-light) !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 168, 0.35);
}

/* ---------- Mobile menu ---------- */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
}

#mobile-menu.is-open {
  max-height: 560px;
  opacity: 1;
}

/* ---------- Star rating ---------- */
.star-fill {
  color: var(--th-yellow);
}

.star-row .fa-star {
  transition: transform 0.2s ease;
}

.testimonial-card:hover .star-row .fa-star {
  transform: scale(1.08);
}

/* ---------- Select ---------- */
.select-th {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230d4d3d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--th-yellow);
  color: var(--th-green-dark);
  font-weight: 600;
  border-radius: 9999px;
}

.skip-link:focus {
  left: 0.5rem;
  outline: 3px solid #fff;
}

/* ---------- Course filter ---------- */
.filter-btn {
  border: 2px solid rgba(13, 77, 61, 0.2);
  background-color: #fff;
  color: #0d4d3d;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.filter-btn.is-active {
  background-color: #0d4d3d;
  color: #fff;
  border-color: #0d4d3d;
}

/* ---------- Testimonial carousel ---------- */
.testimonial-viewport {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(13, 77, 61, 0.2);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.carousel-dot.is-active {
  background: var(--th-green-dark);
  transform: scale(1.2);
}

/* ---------- Success panel animation ---------- */
#form-success.success-pop,
#contact-success.success-pop {
  animation: success-pop 0.6s ease;
}

@keyframes success-pop {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  60% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Badge pills ---------- */
.badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #f5d547, #fbbf24);
  color: #0d4d3d;
}

/* ---------- AOS offset fix for sticky header ---------- */
[data-aos] {
  pointer-events: auto;
}
