/* Trusof Freelancer - Modern Freelance & Professional Services Marketplace */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Freelancer.in Signature Color System */
  --primary: #0082E6;
  --primary-hover: #006ec4;
  --primary-active: #0050b3;
  --primary-light: #ebf5fe;
  --primary-tint: #d9edfd;
  
  --accent: #131b26;
  --accent-hover: #1f2d3d;
  
  --milestone-green: #10b981;
  --milestone-light: #ecfdf5;
  --milestone-hover: #059669;
  
  --freelancer-blue: #0082E6;
  --freelancer-hover: #006ec4;
  --freelancer-light: #ebf5fe;
  
  --dark: #0e1726;
  --dark-surface: #192231;
  --gray-900: #131b26;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #f1f5f9;
  --gray-100: #f8fafc;
  --gray-50: #f8fafc;
  --white: #ffffff;
  
  --badge-gold: #f59e0b;
  --badge-gold-bg: #fffbeb;
  --badge-blue: #0082E6;
  --badge-blue-bg: #ebf5fe;
  --badge-purple: #8b5cf6;
  --badge-purple-bg: #f5f3ff;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 130, 230, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px -2px rgba(14, 23, 38, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(14, 23, 38, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 24px 48px -8px rgba(14, 23, 38, 0.16);
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

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

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-fluid {
  width: 100%;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.brand-logo .logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--freelancer-blue) 100%);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

/* Header Search Form */
.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 16px;
  transition: var(--transition);
}

.header-search:focus-within {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 138, 0, 0.12);
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  color: var(--gray-800);
}

.header-search .search-select {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  padding: 0 8px;
  border-right: 1px solid var(--gray-300);
  margin-right: 8px;
  cursor: pointer;
}

.header-search .btn-search {
  background: var(--primary);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.header-search .btn-search:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Live Instant AJAX Search Dropdown */
.ajax-search-wrap {
  position: relative;
}

.ajax-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--gray-200);
  max-height: 440px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  padding: 8px 0;
}

.ajax-search-dropdown.active {
  display: block;
  animation: ajaxFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ajaxFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ajax-sec-title {
  padding: 8px 14px 4px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.ajax-sec-title:first-child {
  border-top: none;
}

.ajax-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f8fafc;
}

.ajax-item:last-child {
  border-bottom: none;
}

.ajax-item:hover, .ajax-item:focus {
  background: #f0f7ff;
}

.ajax-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.ajax-item-avatar.rounded {
  border-radius: 50%;
}

.ajax-item-info {
  flex: 1;
  min-width: 0;
}

.ajax-item-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ajax-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ajax-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.ajax-loading, .ajax-no-results {
  padding: 18px 16px;
  text-align: center;
  font-size: 0.86rem;
  color: #64748b;
}

.ajax-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-item {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Category Sub-Navigation */
.category-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 10px 0;
  white-space: nowrap;
}

.category-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.category-link:hover, .category-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(16, 138, 0, 0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn-dark:hover {
  background: var(--dark-surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-accent {
  background: var(--freelancer-blue);
  color: var(--white);
  border-color: var(--freelancer-blue);
}

.btn-accent:hover {
  background: var(--freelancer-hover);
  box-shadow: 0 4px 14px rgba(0, 130, 230, 0.28);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-800);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-300);
  color: var(--dark);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-top-rated {
  background: var(--badge-gold-bg);
  color: #b37300;
  border: 1px solid rgba(255, 190, 91, 0.5);
}

.badge-verified {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(16, 138, 0, 0.25);
}

.badge-pro {
  background: var(--badge-purple-bg);
  color: var(--badge-purple);
}

.badge-fixed {
  background: var(--badge-blue-bg);
  color: var(--badge-blue);
}

.badge-hourly {
  background: var(--success-light);
  color: var(--success);
}

/* Skill Pills */
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.skill-pill {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.skill-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Trust & Milestone Protection Banner (Freelancer.in Style) */
.trust-milestone-banner, .gdrive-storage-banner {
  background: linear-gradient(135deg, #0e1726 0%, #162438 100%);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.84rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-milestone-banner .content, .gdrive-storage-banner .content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-pill, .gdrive-pill {
  background: rgba(0, 130, 230, 0.25);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #f0f7fd 0%, #ffffff 100%);
  padding: 60px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: 3.1rem;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 18px;
}

.hero-title span.highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}

/* Hero Search Box with Tabs */
.hero-search-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(16, 138, 0, 0.1);
  max-width: 580px;
}

.hero-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
}

.hero-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.hero-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
}

.hero-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--dark);
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--gray-600);
  flex-wrap: wrap;
}

.hero-tags a {
  background: var(--white);
  border: 1px solid var(--gray-300);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition);
}

.hero-tags a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero Right Feature Card */
.hero-visual {
  position: relative;
}

.hero-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(16, 138, 0, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.hero-metric-item {
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}

.hero-metric-item .val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-metric-item .lbl {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 0.98rem;
  margin-top: 6px;
}

/* Grid Layouts */
.gigs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.freelancers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Fixed-Price Service Gig Card */
.gig-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.gig-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 138, 0, 0.25);
}

.gig-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

.gig-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gig-card:hover .gig-thumb img {
  transform: scale(1.04);
}

.gig-thumb .gig-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.gig-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gig-seller-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gig-seller-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-xs);
}

.gig-seller-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
}

.gig-seller-level {
  font-size: 0.72rem;
  color: var(--gray-600);
}

.gig-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gig-title:hover {
  color: var(--primary);
}

.gig-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: auto;
  padding-bottom: 12px;
}

.gig-rating svg {
  width: 16px;
  height: 16px;
  fill: #ffbe5b;
}

.gig-rating .review-count {
  color: var(--gray-500);
  font-weight: 400;
}

.gig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.gig-price-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}

.gig-price-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
}

/* Verified Freelancer Card */
.freelancer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.freelancer-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.freelancer-avatar-wrap {
  position: relative;
}

.freelancer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.freelancer-meta {
  flex: 1;
}

.freelancer-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.freelancer-title {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 2px;
}

.freelancer-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.freelancer-rate {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
}

.freelancer-jss {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--primary);
}

.freelancer-bio {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.freelancer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}

/* Client Project / Job Feed Card */
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.job-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.job-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.35;
}

.job-title:hover {
  color: var(--primary);
}

.job-financial-specs {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--gray-700);
  flex-wrap: wrap;
}

.job-budget {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--dark);
  font-size: 1rem;
}

.job-desc {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-client-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  flex-wrap: wrap;
}

.job-client-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--dark);
}

/* 3-Tier Packages Pricing Matrix */
.packages-pricing-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 28px 0;
}

.pricing-tabs-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.pricing-tab-btn {
  border: none;
  background: transparent;
  padding: 16px 12px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.pricing-tab-btn:hover {
  color: var(--primary);
}

.pricing-tab-btn.active {
  background: var(--white);
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.pricing-tab-content {
  padding: 28px;
}

.tier-header-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.tier-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
}

.tier-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.tier-desc {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 20px;
}

.tier-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.tier-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.tier-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(14, 30, 18, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--white);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--dark);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--gray-50);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 138, 0, 0.12);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideUp 0.3s ease;
  min-width: 300px;
}

.toast.success {
  border-left: 4px solid var(--primary);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Filter Bar */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--gray-800);
  cursor: pointer;
  outline: none;
}

.filter-select:focus {
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 64px 0 32px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* AJAX Live Search Dropdown Styles */
.ajax-search-wrap {
  position: relative;
  width: 100%;
}

.ajax-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(14, 23, 38, 0.16);
  z-index: 99999;
  max-height: 460px;
  overflow-y: auto;
  display: none;
  padding: 8px 0;
  text-align: left;
}

.ajax-search-dropdown.active {
  display: block;
}

.ajax-sec-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--gray-500);
  padding: 8px 14px 4px;
  letter-spacing: 0.6px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin-top: 4px;
}

.ajax-sec-title:first-child {
  margin-top: 0;
  border-top: none;
}

.ajax-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s ease;
}

.ajax-item:last-child {
  border-bottom: none;
}

.ajax-item:hover, .ajax-item:focus {
  background: var(--primary-light);
}

.ajax-item-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ajax-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.ajax-item-info {
  flex: 1;
  min-width: 0;
}

.ajax-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ajax-item-meta {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.ajax-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.ajax-no-results {
  padding: 20px 14px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-500);
}

.ajax-loading {
  padding: 14px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 700;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--dark);
  align-items: center;
  justify-content: center;
}

/* Responsive Media Queries (Zero Overflow, Zero Crop, Compact) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero-visual {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .top-nav {
    height: auto;
    padding: 12px 0;
    gap: 12px;
    flex-wrap: wrap;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    padding: 4px 6px 4px 12px;
  }

  .header-search input {
    font-size: 0.85rem;
    min-width: 0;
  }

  .header-search .search-select {
    font-size: 0.76rem;
    padding: 0 4px;
    margin-right: 4px;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 4;
    gap: 6px;
    padding: 12px 0 6px;
    border-top: 1px solid var(--gray-200);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    background: var(--gray-50);
  }

  .hero-section {
    padding: 36px 0 48px;
  }

  .hero-title {
    font-size: 1.95rem;
    letter-spacing: -0.5px;
    line-height: 1.25;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .hero-search-card {
    padding: 8px;
    width: 100%;
  }

  .hero-tab-btn {
    padding: 6px 8px;
    font-size: 0.78rem;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags a {
    padding: 3px 8px;
    font-size: 0.75rem;
  }

  .gigs-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .freelancers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .freelancer-card {
    padding: 16px;
  }

  .freelancer-header {
    flex-direction: row;
    gap: 12px;
  }

  .freelancer-avatar {
    width: 52px;
    height: 52px;
  }

  .freelancer-name {
    font-size: 1.1rem;
  }

  .freelancer-stats-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }

  .freelancer-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .freelancer-footer .btn {
    width: 100%;
    text-align: center;
  }

  .job-card {
    padding: 18px 16px;
  }

  .job-financial-specs {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
  }

  .job-client-info {
    flex-wrap: wrap;
    gap: 8px;
  }

  .job-client-info .btn {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .filter-select {
    width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .btn-lg {
    padding: 10px 18px;
    font-size: 0.92rem;
  }

  .brand-logo {
    font-size: 1.25rem;
  }
}
