@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors - Light Theme (Default) */
  --primary: #0F766E;
  --primary-hover: #0f615b;
  --primary-light: rgba(15, 118, 110, 0.1);
  --secondary: #F59E0B;
  --secondary-hover: #d97706;
  --secondary-light: rgba(245, 158, 11, 0.1);
  
  --bg-body: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F1F5F9;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  --border: #E2E8F0;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  
  /* Spacing & Sizes */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --container-max-width: 1200px;
}

[data-theme="dark"] {
  --bg-body: #0F172A;
  --bg-surface: #1E293B;
  --bg-surface-hover: #334155;
  
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --border: #334155;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.4);
  
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll; /* always show vertical scrollbar to avoid layout shift */
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100vw;
  position: relative; /* establish stacking context so overflow is respected */
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ==========================================================================
   Page Load Animations
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.3); }
  50% { box-shadow: 0 0 20px 4px rgba(15, 118, 110, 0.15); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Staggered children reveal */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  /* Prevent any child from bleeding past the container */
  overflow-x: clip;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

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

/* Cards */
.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.card-hover:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(15, 118, 110, 0.3);
}

.card-hover {
  will-change: transform, box-shadow;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
}

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

.badge-secondary {
  background-color: var(--bg-surface-hover);
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light), 0 1px 3px rgba(0,0,0,0.08);
}

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

/* Glass Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
  padding: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--border);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 60;
}
.mobile-menu-btn:active {
  background-color: var(--bg-surface-hover);
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important; /* Replaced by mobileDropdownPanel */
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Mobile Dropdown Panel */
  .mobile-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1.25rem 1rem;
    display: none;
    flex-direction: column;
    z-index: -1;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .mobile-dropdown-panel.active {
    display: flex;
    animation: slideInDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30%); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* 2x2 nav grid */
  .mobile-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .mobile-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem 0.5rem;
    color: white;
    text-decoration: none;
    gap: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .mobile-nav-card:hover, .mobile-nav-card:active {
    transform: translateY(-2px);
    opacity: 0.9;
  }

  .mobile-nav-card .mobile-icon {
    color: white;
  }

  .mobile-nav-card span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
  }

  .mobile-menu-divider {
    height: 1px;
    background-color: var(--border);
    margin: 1.25rem 0;
  }

  .mobile-dropdown-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
  }

  .mobile-dropdown-row:hover, .mobile-dropdown-row:active {
    background-color: var(--bg-surface-hover);
  }

  .mobile-dropdown-row .mobile-icon {
    color: var(--primary);
  }

  .mobile-dropdown-row .menu-toggle-switch {
    margin-left: auto;
  }

  /* iOS-style toggle switch */
  .menu-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
  }

  .menu-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
  }

  .menu-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: var(--border);
    transition: background 0.25s ease;
  }

  .menu-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

  .menu-toggle-switch.on .menu-toggle-track {
    background: var(--primary);
  }

  .menu-toggle-switch.on .menu-toggle-thumb {
    transform: translateX(20px);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 8rem 0 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(255,255,255,0) 70%);
  z-index: -1;
  filter: blur(60px);
  animation: float 10s ease-in-out infinite reverse;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-content h1 {
  animation: fadeInUp 0.8s ease-out both;
}

.hero .search-bar {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Search Bar (Hero) */
.search-bar {
  background-color: var(--bg-surface);
  padding: 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  max-width: 700px;
  margin: 0 auto;
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
  color: var(--text-muted);
}

.search-input-group input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.search-input-group input:focus {
  outline: none;
}

.search-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border);
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 1rem;
    gap: 1rem;
  }
  .search-divider {
    display: none;
  }
  .search-bar .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Job Cards Grid
   ========================================================================== */
.section {
  padding: 5rem 0;
  /* Prevent any section-level content from bleeding horizontally */
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
}

.section-header {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

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

@media (min-width: 481px) and (max-width: 768px) {
  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.job-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-color: white; /* Always white background for logos to pop */
  padding: 0; /* Remove padding if using cover so it fully fills the frame */
  border: 1px solid var(--border);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.job-description {
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.category-card {
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  background: var(--primary) !important;
  color: white !important;
  border-radius: var(--radius-md);
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  width: 100%;
  color: white !important;
  margin: 0;
}

.category-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  text-align: center;
  line-height: 1.3;
}

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.category-icon svg {
  width: 32px;
  height: 32px;
}

.category-card:hover, .category-card:active {
  transform: translateY(-4px);
  opacity: 0.95;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.3) !important;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Mobile: single-column category tiles — no horizontal overflow */
@media (max-width: 640px) {
  .categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .categories-grid .card.category-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 0.5rem;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }
  .category-icon {
    width: 40px;
    height: 40px;
  }
  .category-icon svg {
    width: 28px;
    height: 28px;
  }
  .category-card h3 {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #064E3B 100%);
  color: white;
  padding: 5rem 0;
  border-radius: var(--radius-xl);
  margin: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 1rem auto 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  position: relative;
}

/* --- Carousel --- */
/* The section that wraps the carousel must NOT use overflow-x: clip
   so the scrolling animation can work. We override it here. */
.carousel-container {
  overflow: hidden; /* clips the scrolling track — intentional */
  width: 100%;
  max-width: 100%; /* never exceed viewport */
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  /* Reset the clip override from .container so the animation works */
  overflow-x: hidden;
}

/* The section wrapping the carousel needs its container to allow the mask */
.carousel-container ~ * { overflow-x: clip; }

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll-carousel 40s linear infinite;
  padding: 1rem 0; /* space so hover shadows aren't clipped */
}

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

@keyframes scroll-carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.75rem)); }
}

.carousel-track .job-card {
  width: 350px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .carousel-track .job-card {
    width: 300px;
  }
}

.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

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

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  position: relative;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

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

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary);
}

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

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ==========================================================================
   Skeletons & Utilities
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface-hover) 25%, var(--border) 50%, var(--bg-surface-hover) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}
.skeleton-text.short { width: 60%; }
.skeleton-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slide-up 0.3s ease-out forwards;
}

.toast.error { border-left-color: #EF4444; }
.toast.success { border-left-color: #10B981; }

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), #064E3B);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.3);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

@media (max-width: 480px) {
  .step-card {
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   Stats Counter Section
   ========================================================================== */
.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

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

.counter-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
  }
}

@media (max-width: 360px) {
  .counter-value {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Section Divider
   ========================================================================== */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   Mobile Polish
   ========================================================================== */
@media (max-width: 480px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-section {
    padding: 3rem 1.25rem;
    margin: 2rem 0;
    border-radius: var(--radius-lg);
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Ensure job cards in the carousel don't overflow */
  .carousel-track .job-card {
    width: 260px;
  }

  /* Toast positioning on mobile */
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    padding: 0.875rem 1rem;
  }

  /* Navbar text size on mobile */
  .logo {
    font-size: 1.25rem;
  }
}
