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

:root {
  /* Brand Colors */
  --brand-navy: #0B1F3A;
  --brand-pink: #FF2E7E;
  --brand-pink-hover: #E61E6D;
  --brand-blue-light: #EBF2FA;

  /* UI Colors */
  --bg-main: #F5F7FB;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Text Colors */
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #6C757D;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--brand-navy) 0%, #1a365d 100%);
  --gradient-accent: linear-gradient(135deg, var(--brand-pink) 0%, #ff4b8e 100%);

  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(11, 31, 58, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(11, 31, 58, 0.05), 0 2px 4px -1px rgba(11, 31, 58, 0.03);
  --shadow-lg: 0 10px 25px -3px rgba(11, 31, 58, 0.08), 0 4px 6px -2px rgba(11, 31, 58, 0.04);
  --shadow-xl: 0 20px 40px -5px rgba(11, 31, 58, 0.1);
  --shadow-pink: 0 8px 20px -4px rgba(255, 46, 126, 0.4);

  --max-width: 1200px;
}

/* Dark Mode Overrides (Optional / Scoped) */
[data-theme="dark"] {
  --bg-main: #0B1F3A;
  --bg-card: #152A4A;
  --border-light: #1E3A5F;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Remove old floatOrb animations from body */
body::before,
body::after {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: var(--brand-navy);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

code {
  font-family: 'Space Mono', monospace;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Premium Card (Previously Glassmorphism) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 31, 58, 0.1);
}

/* Typography Scale */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}

[data-theme="dark"] .card-title {
  color: #fff;
}

.text-small {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--brand-blue-light);
  color: var(--brand-navy);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--brand-pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--brand-pink-hover);
  box-shadow: 0 10px 25px -4px rgba(255, 46, 126, 0.5);
}

.btn-secondary {
  background: #fff;
  color: var(--brand-navy);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-navy);
}

[data-theme="dark"] .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--border-light);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

.animate-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar {
  background: rgba(11, 31, 58, 0.9);
  border-bottom-color: var(--border-light);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
}

[data-theme="dark"] .nav-logo {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

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

.nav-links a.active {
  color: var(--brand-navy);
  font-weight: 600;
}

[data-theme="dark"] .nav-links a.active {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle,
.mobile-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
}

.theme-toggle:hover,
.mobile-toggle:hover {
  color: var(--brand-pink);
}

.mobile-toggle {
  display: none;
}

.saved-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.saved-badge:hover {
  background: #dbeafe;
}

[data-theme="dark"] .saved-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    clip-path: circle(0% at top right);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    clip-path: circle(150% at top right);
  }

  .mobile-toggle {
    display: block;
  }

  .nav-actions .btn-primary {
    display: none;
  }
}

/* Base Job Layout/Cards - Common for all Job Pages */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 31, 58, 0.1);
}

/* Status indicator lines instead of full borders */
.job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-light);
  transition: background 0.3s;
}

.job-card:hover::before {
  background: var(--brand-pink);
}

.job-card.cat-tech::before {
  background: #3b82f6;
}

.job-card.cat-finance::before {
  background: #10b981;
}

.job-card.cat-design::before {
  background: #f59e0b;
}

.job-card.cat-marketing::before {
  background: #8b5cf6;
}

.job-card.cat-internship::before {
  background: #f59e0b;
}

.job-card.cat-remote::before {
  background: #0ea5e9;
}

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

.company-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--brand-navy);
  flex-shrink: 0;
  overflow: hidden;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-theme="dark"] .company-logo {
  background: #fff;
}

.job-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.company-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.job-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--brand-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] .job-title {
  color: #fff;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.job-desc-snippet {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  line-height: 1.5;
}

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

.salary {
  font-weight: 600;
  color: var(--success);
  font-size: 0.95rem;
}

/* List layout modifications */
.job-card-list {
  flex-direction: row;
  align-items: center;
  padding: 1.25rem 1.5rem;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .job-card-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

.job-card-list .job-desc-snippet {
  margin-bottom: 0;
}

.job-card-list .job-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-left: auto;
}

@media (max-width: 768px) {
  .job-card-list .job-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    margin-top: 1rem;
  }
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-main) 25%, var(--border-light) 50%, var(--bg-main) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-text {
  height: 1em;
  width: 100%;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5em;
  width: 80%;
}

.skeleton-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.skeleton-btn {
  height: 40px;
  width: 100px;
  border-radius: 8px;
}

/* Ads Section Global */
.ad-container {
  margin: 30px 0;
  padding: 10px;
  text-align: center;
}

.ad-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background: var(--brand-navy);
  padding: 4rem 0 2rem;
  margin-top: auto;
  color: #fff;
}

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

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

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

.footer-col h4 {
  font-size: 1.1rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 600;
}

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

.footer-links a {
  color: #94A3B8;
  transition: color 0.3s;
  font-size: 0.95rem;
}

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

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #fff;
}

.social-icon:hover {
  background: var(--brand-pink);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  color: var(--text-primary);
}

.page-btn:hover:not(:disabled) {
  background: var(--brand-blue-light);
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.page-btn.active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-main);
}

/* Empty / Error States */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  height: 100%;
}

.state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--border-strong);
}

.state-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--brand-navy);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--danger);
}

[data-theme="dark"] .toast {
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-navy);
}

/* Text Alignment Utility */
.text-center {
  text-align: center;
}

/* Hide scrollbar but keep functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}