/* =============================================
   SUPERFREELANCERS.COM — MAIN STYLESHEET
   Mobile-first, BEM-style, CSS custom properties
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-primary: #0B1F3A;
  --color-primary-light: #152D52;
  --color-accent: #00C9A7;
  --color-accent-dark: #00A98C;
  --color-accent-light: #E6FAF7;
  --color-white: #FFFFFF;
  --color-bg: #F8FAFC;
  --color-muted: #64748B;
  --color-muted-light: #94A3B8;
  --color-card: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text: #1E293B;
  --color-text-light: #475569;
  --color-danger: #EF4444;
  --color-success: #22C55E;
  --color-purple: #7C3AED;
  --color-warning: #F59E0B;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-accent: 0 8px 24px rgba(0,201,167,0.3);

  /* Navbar */
  --navbar-height: 72px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  font-weight: 700;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-pad {
  padding: var(--space-3xl) 0;
}

.text-center { text-align: center; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  height: var(--navbar-height);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  height: 100%;
  padding: 0 var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

/* Fix: global img { display:block } breaks logo/flag images inside the flex nav.
   Override here so the header image renders correctly. */
.nav-logo img {
  display: inline-block;
  height: 36px;
  width: auto;
  max-width: none;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.nav-brand-dot { color: var(--color-accent); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: var(--space-sm) 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Nav Dropdowns */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 1001;
  list-style: none;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  width: 100%;
}

.dropdown-item:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.dropdown-icon { font-size: 1rem; }

/* Language Switcher */
.lang-switcher { margin-inline-start: auto; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.lang-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-menu {
  right: 0;
  left: auto;
  min-width: 160px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  font-family: var(--font-body);
  background: none;
  border: none;
  text-align: start;
}

.lang-option:hover,
.lang-option.active {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.fi {
  border-radius: 3px;
  width: 20px;
  height: 15px;
  flex-shrink: 0;
}

/* Nav CTAs */
.nav-ctas {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  margin-inline-start: auto;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.hamburger:hover { background: var(--color-accent-light); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-slow);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(380px, 100%);
  height: 100vh;
  background: var(--color-white);
  z-index: 2000;
  overflow-y: auto;
  transition: right var(--transition-slow);
  box-shadow: -4px 0 32px rgba(0,0,0,0.15);
}

.mobile-drawer.open { right: 0; }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.drawer-close:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.drawer-nav {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-link {
  display: block;
  padding: 0.75rem var(--space-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.drawer-link:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding-inline-start: 1.25rem;
}

.drawer-group-btn {
  width: 100%;
  text-align: start;
  padding: 0.75rem var(--space-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  background: none;
  border: none;
}

.drawer-group-btn:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.drawer-sub {
  display: none;
  flex-direction: column;
  padding: 4px 0 4px var(--space-md);
}

.drawer-group.open .drawer-sub { display: flex; }

.drawer-sub-link {
  padding: 0.6rem var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.drawer-sub-link:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.drawer-lang {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.drawer-lang-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.drawer-lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.drawer-lang-options .lang-option {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  flex: 1 1 auto;
}

.drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding: 0 var(--space-sm);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0B1F3A 0%, #0d3a5e 40%, #0a5f55 80%, #006653 100%);
  overflow: hidden;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,201,167,0.15);
  border: 1px solid rgba(0,201,167,0.3);
  color: var(--color-accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

/* Search Bar */
.hero-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  margin-bottom: var(--space-xl);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  padding: var(--space-sm) var(--space-md);
}

.search-icon { color: var(--color-muted); flex-shrink: 0; }

.search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: transparent;
  min-width: 0;
}

.search-field input::placeholder { color: var(--color-muted-light); }

.search-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0 var(--space-sm);
}

.search-btn {
  border-radius: var(--radius-lg);
  padding: 0.85rem var(--space-xl);
  font-size: 0.95rem;
  justify-content: center;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  min-width: 120px;
}

.trust-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.trust-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
  white-space: nowrap;
}

/* ===== CATEGORIES ===== */
.categories { background: var(--color-white); }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-decoration: none;
  gap: var(--space-sm);
}

.category-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: var(--color-white);
}

.cat-icon { font-size: 2rem; }
.cat-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}
.cat-count {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  background: var(--color-accent-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* ===== JOBS SECTION ===== */
.jobs-section { background: var(--color-bg); }

.jobs-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Filters Sidebar */
.jobs-sidebar { flex-shrink: 0; }

.filter-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--navbar-height) + 16px);
}

.filter-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-accent);
}

.filter-group {
  margin-bottom: var(--space-lg);
}

.filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.filter-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-select:focus { border-color: var(--color-accent); outline: none; }

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.range-slider {
  width: 100%;
  appearance: none;
  height: 4px;
  background: linear-gradient(to right, var(--color-accent) 0%, var(--color-border) 0%);
  border-radius: var(--radius-full);
  cursor: pointer;
  margin-top: var(--space-sm);
}

.range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,201,167,0.4);
  border: 2px solid white;
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}

.skill-tags-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.skill-tag:hover,
.skill-tag.active {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.filter-apply-btn { margin-bottom: var(--space-sm); }
.filter-reset-btn { border-color: var(--color-border); color: var(--color-muted); }

/* Job Listings */
.jobs-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.job-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition);
}

.job-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.job-company-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.job-meta { flex: 1; min-width: 0; }

.job-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.job-title a {
  color: inherit;
  transition: color var(--transition);
}
.job-title a:hover { color: var(--color-accent); }

.job-company {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}

.job-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-remote {
  background: rgba(0,201,167,0.12);
  color: var(--color-accent-dark);
  border: 1px solid rgba(0,201,167,0.3);
}

.job-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-tag {
  padding: 3px 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.tag-type {
  background: rgba(124,58,237,0.08);
  color: var(--color-purple);
  border-color: rgba(124,58,237,0.2);
}

/* ===== FREELANCERS SECTION ===== */
.freelancers-section { background: var(--color-white); }

/* Filter bar wraps tabs + location dropdown */
.freelancer-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.freelancer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

/* Location dropdown */
.freelancer-location-filter { flex-shrink: 0; }

.filter-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 14px 8px 12px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--color-muted);
}

.filter-select-wrap:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.15);
}

.filter-select {
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  padding-right: 4px;
  min-width: 130px;
}

.select-chevron {
  pointer-events: none;
  color: var(--color-muted);
  flex-shrink: 0;
}

/* Empty state */
.freelancers-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--color-muted);
}
.freelancers-empty .empty-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.freelancers-empty h3 { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 8px; }
.freelancers-empty p { font-size: 0.9rem; }

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.filter-tab {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,201,167,0.25);
}

.freelancers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.freelancer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition);
}

.freelancer-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: var(--color-white);
}

.freelancer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
}

.freelancer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.freelancer-title {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.freelancer-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.stars { color: var(--color-warning); }
.rating-count { color: var(--color-muted); }

.freelancer-rate {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.freelancer-location {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.freelancer-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.freelancer-skill {
  padding: 2px 8px;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.freelancer-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.8rem;
}

/* ===== TRUSTED / LOGO SLIDER ===== */
.trusted-section { background: var(--color-bg); }

.logo-slider {
  overflow: hidden;
  position: relative;
  padding: var(--space-xl) 0;
}

.logo-slider::before,
.logo-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.logo-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}
.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

.logo-track {
  display: flex;
  gap: var(--space-2xl);
  animation: logoScroll 30s linear infinite;
  width: max-content;
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-muted-light);
  letter-spacing: 0.03em;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 140px;
  transition: all var(--transition);
}

.logo-track:hover { animation-play-state: paused; }

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--color-white); }

.about-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-img-block {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 320px;
}

.about-shape-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d5fa8 100%);
  border-radius: var(--radius-xl);
}

.about-shape-2 {
  position: absolute;
  inset: 16px;
  background: linear-gradient(135deg, var(--color-accent) 0%, #00e5c5 100%);
  border-radius: var(--radius-lg);
  opacity: 0.15;
}

.about-card-float {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  white-space: nowrap;
  font-size: 0.85rem;
}

.about-card-icon { font-size: 2rem; }

.about-match-bar {
  width: 140px;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin: 4px 0;
  overflow: hidden;
}

.about-match-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-full);
}

.about-text .section-title { text-align: start; }
.about-text .section-eyebrow { display: block; }

.about-text p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-size: 0.975rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.about-stat { text-align: center; }

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  display: inline;
}

.about-stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.about-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== AI TOOLS ===== */
.ai-tools-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d3355 100%);
}

.ai-tools-section .section-title,
.ai-tools-section .section-sub {
  color: var(--color-white);
}

.ai-tools-section .section-sub {
  color: rgba(255,255,255,0.75);
}

.ai-tools-section .section-eyebrow {
  color: var(--color-accent);
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.ai-tool-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.ai-tool-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.ai-tool-card--alt {
  border-color: rgba(0,201,167,0.3);
}

.ai-tool-icon { font-size: 3rem; margin-bottom: var(--space-md); }

.ai-tool-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.ai-tool-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.ai-tool-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-tool-features li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
}

.ai-tool-btn { width: 100%; justify-content: center; }

/* ===== BLOG ===== */
.blog-section { background: var(--color-bg); }

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-thumb {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.blog-thumb-1 { background: linear-gradient(135deg, #0B1F3A, #00C9A7); }
.blog-thumb-2 { background: linear-gradient(135deg, #6366f1, #ec4899); }
.blog-thumb-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.blog-thumb-4 { background: linear-gradient(135deg, #10b981, #0ea5e9); }

.blog-body { padding: var(--space-lg); }

.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.blog-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.35;
  margin-bottom: var(--space-sm);
}

.blog-title a { transition: color var(--transition); }
.blog-title a:hover { color: var(--color-accent); }

.blog-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.blog-author { font-weight: 600; }

.blog-read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover { color: var(--color-accent-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-logo .nav-brand { color: var(--color-white); }
.footer-logo .nav-brand-dot { color: var(--color-accent); }

.footer-desc {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 340px;
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.social-icon:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--color-accent); }
.footer-legal span { color: rgba(255,255,255,0.3); }

/* ===== TUTORIAL BLOG THUMB WITH REAL IMAGE ===== */
.blog-thumb-link {
  display: block;
  text-decoration: none;
}

.blog-thumb {
  height: 190px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img { transform: scale(1.06); }

/* ===== FREE AI COACHES SECTION ===== */
.ai-coaches-section {
  background: var(--color-bg);
}

/* 5 cards in a row on wide screens */
.coaches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px)  { .coaches-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .coaches-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .coaches-grid { grid-template-columns: repeat(5, 1fr); } }

/* Card */
.coach-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coach-card:hover {
  border-color: var(--coach-a, var(--color-accent));
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-6px);
}

/* Gradient top bar per card */
.coach-card-top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--coach-a, #00c9a7), var(--coach-b, #0068ff));
  flex-shrink: 0;
}

.coach-card-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Avatar row */
.coach-card-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coach-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--coach-a, #00c9a7);
}

.coach-card-avatar-info { flex: 1; min-width: 0; }

.coach-card-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Live badge */
.coach-card-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #16a34a;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 20px;
  padding: 2px 8px;
}

.coach-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: coachLivePulse 1.8s ease-in-out infinite;
}

@keyframes coachLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.6); }
}

/* Card title & desc */
.coach-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.coach-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Availability strip */
.coach-card-avail {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: var(--radius-md);
  padding: 7px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #15803d;
}

.coach-card-avail svg { flex-shrink: 0; }

/* CTA button */
.coach-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--coach-a, #00c9a7), var(--coach-b, #0068ff));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.22s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  margin-top: auto;
}

.coach-card:hover .coach-card-cta {
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.coach-card-cta svg { transition: transform 0.2s ease; }
.coach-card:hover .coach-card-cta svg { transform: translateX(3px); }

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .mobile-drawer { right: auto; left: -100%; }
[dir="rtl"] .mobile-drawer.open { left: 0; right: auto; }

/* ===== RESPONSIVE: 640px+ ===== */
@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-search {
    flex-direction: row;
    padding: var(--space-sm);
  }

  .search-divider {
    width: 1px;
    height: 40px;
    margin: 0;
  }

  .search-field { padding: var(--space-sm) var(--space-md); }

  .ai-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .freelancers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== RESPONSIVE: 768px+ ===== */
@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }

  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .jobs-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .jobs-sidebar { width: 280px; }
  .jobs-main { flex: 1; }

  .about-grid {
    flex-direction: row;
    align-items: center;
  }

  .about-visual { width: 45%; flex-shrink: 0; }
  .about-text { flex: 1; }

  .footer-main {
    grid-template-columns: 1fr 2fr;
  }

  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }

  .hamburger { display: none; }
  .nav-links { display: flex; }
  .nav-ctas { display: flex; }
}

/* ===== RESPONSIVE: 1024px+ ===== */
@media (min-width: 1024px) {
  .freelancers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-img-block { height: 400px; }
}

/* ===== RESPONSIVE: 1280px+ ===== */
@media (min-width: 1280px) {
  .freelancers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content > * {
  animation: fadeUp 0.6s ease both;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.3s; }
.hero-search { animation-delay: 0.4s; }
.trust-badges { animation-delay: 0.5s; }