/* =============================================
   CRUITECH DESIGN SYSTEM 2026
   ============================================= */

/* ===========================================
   1. DESIGN TOKENS
   =========================================== */
:root {
  /* Brand */
  --brand: #4f7cf8;
  --brand-dark: #3a66e8;
  --brand-light: #83acff;
  --brand-rgb: 79, 124, 248;

  /* Dark backgrounds */
  --bg-dark: #070b14;
  --bg-card: #0c1220;
  --bg-elevated: #121d30;
  --bg-border: rgba(255, 255, 255, 0.07);

  /* Light backgrounds */
  --bg-light: #f6f8fb;
  --bg-white: #ffffff;
  --border-light: #e5e7eb;

  /* Text */
  --text-inv: #e2e8f2;
  --text-muted-inv: #8896b3;
  --text-dark: #0a0d14;
  --text-muted-dark: #6b7280;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Border radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16), 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-brand: 0 4px 20px rgba(79, 124, 248, 0.35);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Nav */
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-inv);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove Bootstrap button outlines on focus, add brand focus ring */
.btn:focus,
.btn:focus-visible,
button:focus,
button:focus-visible,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}

*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===========================================
   3. NAVBAR
   =========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: transparent;
  transition: all var(--t-base);
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--bg-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 40px;
  width: auto;
  transition: opacity var(--t-fast);
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--t-fast);
  padding: 0.25rem 0;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: width var(--t-base);
  border-radius: 2px;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-full);
  padding: 0.4rem 1.2rem !important;
  transition: all var(--t-fast);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(79, 124, 248, 0.08);
}

/* Nav Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--t-base);
  transform-origin: center;
}

/* Mobile hamburger → X animation */
.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--bg-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-base);
  }

  .nav-menu.open {
    max-height: 400px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--bg-border);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link-cta {
    margin: 1rem 1.5rem 0;
    display: inline-block;
    text-align: center;
    border-radius: var(--r-full);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 0.625rem 1.5rem !important;
    width: calc(100% - 3rem);
  }

  .nav-links li:last-child .nav-link {
    border-bottom: none;
  }
}

/* ===========================================
   4. HERO SECTIONS
   =========================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(7, 11, 20, 0.75) 0%, rgba(7, 11, 20, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  animation: scrollBounce 2s ease-in-out infinite;
  background: none;
  border: none;
  padding: 0;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================================
   5. BUTTONS
   =========================================== */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: var(--r-full);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-brand:active {
  transform: translateY(0);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  border: 1.5px solid white;
  border-radius: var(--r-full);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost-white:hover {
  background: white;
  color: var(--text-dark);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-full);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

/* Override Bootstrap .btn-primary to match .btn-brand */
.btn-primary {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  border-radius: var(--r-full) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.75rem !important;
  transition: background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast) !important;
  letter-spacing: 0.02em;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand) !important;
}

.btn-primary:active {
  transform: translateY(0) !important;
}

/* ===========================================
   6. SECTIONS
   =========================================== */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-inv);
}

.section-card {
  background: var(--bg-card);
  color: var(--text-inv);
}

.container-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-title.light {
  color: var(--text-inv);
}

.section-title.dark {
  color: var(--text-dark);
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted-dark);
  line-height: 1.7;
}

.section-desc.light {
  color: var(--text-muted-inv);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

/* ===========================================
   7. SERVICE CARDS
   =========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-service {
  background: white;
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  border: 1px solid var(--border-light);
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-service:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(79, 124, 248, 0.2);
}

.card-service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(79, 124, 248, 0.12), rgba(79, 124, 248, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.card-service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.625rem;
}

.card-service-text {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  line-height: 1.65;
}

/* ===========================================
   8. ASSIGNMENTS MARQUEE
   =========================================== */
.assignments-section {
  background: var(--bg-card);
  padding: 5rem 0;
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

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

.marquee-track-reverse {
  animation-direction: reverse;
  animation-duration: 45s;
  margin-top: 1rem;
}

.assignment-chip {
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-full);
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.assignment-chip-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-light);
}

.assignment-chip-company {
  font-size: 0.8rem;
  color: var(--text-muted-inv);
  margin-left: 0.375rem;
}

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

/* ===========================================
   9. JOB CARDS
   =========================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.card-job {
  background: white;
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-job:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-job-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.card-job-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
  padding: 4px;
  flex-shrink: 0;
  background: white;
}

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

.card-job-company {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.card-job-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.card-job-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted-dark);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  padding: 0.25rem 0.75rem;
}

.job-label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.card-job-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

/* ===========================================
   10. FILTER BAR
   =========================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem 0;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted-inv);
  border-radius: var(--r-full);
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(79, 124, 248, 0.08);
}

.filter-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

/* ===========================================
   11. CONTACT FORM
   =========================================== */
.contact-section {
  background: var(--bg-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.service-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-option {
  background: var(--bg-elevated);
  border: 1.5px solid var(--bg-border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
  user-select: none;
}

.service-option:hover {
  border-color: rgba(79, 124, 248, 0.4);
}

.service-option.selected {
  border-color: var(--brand);
  background: rgba(79, 124, 248, 0.08);
}

.service-option-icon {
  color: var(--brand);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-option-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-inv);
  margin-top: 0.5rem;
}

.input-modern {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-md);
  padding: 0.875rem 1rem;
  color: var(--text-inv);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.input-modern:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 124, 248, 0.12);
}

.input-modern::placeholder {
  color: var(--text-muted-inv);
}

textarea.input-modern {
  resize: vertical;
  min-height: 120px;
}

.label-modern {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted-inv);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group-m {
  margin-bottom: 1.25rem;
}

/* ===========================================
   12. FOOTER
   =========================================== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.875rem;
  text-decoration: none;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted-inv);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-inv);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--t-fast);
  text-decoration: none;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-address {
  font-style: normal;
}

.footer-address p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.375rem;
}

.footer-address a {
  transition: color var(--t-fast);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
}

.footer-address a:hover {
  color: var(--brand);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--t-fast);
  text-decoration: none;
  flex-shrink: 0;
}

.social-link:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--bg-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted-inv);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===========================================
   13. SCROLL ANIMATIONS
   =========================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--t-slow);
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger children delays */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.40s; }

/* ===========================================
   14. MODAL OVERRIDES
   =========================================== */
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  color: var(--text-inv);
}

.modal-header {
  border-bottom: 1px solid var(--bg-border);
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

.modal-title {
  color: var(--text-inv);
  font-weight: 600;
  font-size: 1.1rem;
}

.modal .btn-close {
  filter: invert(1);
  opacity: 0.7;
}

.modal .btn-close:hover {
  opacity: 1;
}

.modal .form-control,
.modal .form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-md);
  color: var(--text-inv);
  font-family: var(--font);
}

.modal .form-control::placeholder {
  color: var(--text-muted-inv);
}

.modal .form-control:focus,
.modal .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 124, 248, 0.12);
  background: var(--bg-elevated);
  color: var(--text-inv);
}

.modal .form-select option {
  background: var(--bg-elevated);
  color: var(--text-inv);
}

.modal label {
  color: var(--text-muted-inv);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.modal-footer {
  border-top: 1px solid var(--bg-border);
  padding: 1.25rem 2rem;
}

/* ===========================================
   15. STATS BAR
   =========================================== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===========================================
   16. PROFILE DASHBOARD
   =========================================== */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: calc(var(--nav-h) + 2rem) auto 3rem;
  padding: 0 1.5rem;
}

.profile-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-inv);
  text-align: center;
}

.profile-role {
  font-size: 0.85rem;
  color: var(--text-muted-inv);
  text-align: center;
  margin-top: 0.25rem;
}

.completion-ring {
  margin: 1.25rem 0;
  display: flex;
  justify-content: center;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-panel {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
}

.panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-inv);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title .btn-sm {
  font-size: 0.78rem;
  padding: 0.3rem 0.875rem;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }
}

/* ===========================================
   17. UPLOAD ZONE
   =========================================== */
.upload-zone {
  border: 2px dashed var(--bg-border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--brand);
  background: rgba(79, 124, 248, 0.05);
}

.upload-zone-icon {
  color: var(--brand);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.upload-zone-text {
  font-size: 0.9rem;
  color: var(--text-muted-inv);
  line-height: 1.5;
}

.upload-zone-text strong {
  color: var(--brand);
}

.upload-zone-filename {
  font-size: 0.85rem;
  color: var(--brand);
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ===========================================
   18. ABOUT PAGE VALUES
   =========================================== */
.values-section {
  background: var(--bg-dark);
  padding: 6rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  transition: border-color var(--t-base), transform var(--t-base);
}

.value-card:hover {
  border-color: rgba(79, 124, 248, 0.2);
  transform: translateY(-3px);
}

.value-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(79, 124, 248, 0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-inv);
  margin-bottom: 0.875rem;
}

.value-text {
  font-size: 0.9rem;
  color: var(--text-muted-inv);
  line-height: 1.7;
}

/* ===========================================
   19. TOAST NOTIFICATIONS
   =========================================== */
.toast-container-custom {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-m {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 260px;
  max-width: 380px;
  box-shadow: var(--shadow-xl);
  animation: toastIn 300ms ease forwards;
  pointer-events: all;
}

.toast-m.success {
  border-left: 3px solid var(--brand);
}

.toast-m.error {
  border-left: 3px solid #ef4444;
}

.toast-m-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-m.success .toast-m-icon {
  color: var(--brand);
}

.toast-m.error .toast-m-icon {
  color: #ef4444;
}

.toast-m-text {
  font-size: 0.875rem;
  color: var(--text-inv);
  line-height: 1.4;
  flex: 1;
}

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

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

/* ===========================================
   20. RESPONSIVE UTILITIES
   =========================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section,
  .section-dark,
  .section-card,
  .section-light {
    padding: 3rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    gap: 2rem;
  }

  .contact-form-wrap {
    padding: 2rem 1.5rem;
  }

  .values-section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-brand,
  .hero-actions .btn-ghost-white,
  .hero-actions .btn-ghost-dark {
    text-align: center;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 1.5rem 1rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .stats-bar {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .toast-container-custom {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast-m {
    min-width: unset;
    max-width: 100%;
  }
}

/* ===========================================
   MISC UTILITIES
   =========================================== */
.text-brand {
  color: var(--brand);
}

.bg-brand {
  background: var(--brand);
}

.rounded-full {
  border-radius: var(--r-full);
}

/* Spinner */
.spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error / success messages */
.form-msg {
  font-size: 0.85rem;
  padding: 0.625rem 1rem;
  border-radius: var(--r-sm);
  margin-top: 0.75rem;
}

.form-msg.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.form-msg.success {
  background: rgba(79, 124, 248, 0.1);
  border: 1px solid rgba(79, 124, 248, 0.25);
  color: var(--brand-light);
}

/* Password error helper */
#passwordError {
  font-size: 0.82rem;
  color: #fca5a5;
  margin-top: 0.375rem;
  display: none;
}

#passwordError.visible {
  display: block;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--bg-border);
  margin: 1.5rem 0;
}

/* Pill badge */
.badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-full);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-brand {
  background: rgba(79, 124, 248, 0.15);
  color: var(--brand-light);
}

/* Scroll-margin for anchor links below fixed nav */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
