/* Web3Jobs.pro - Main stylesheet with punk/underground aesthetic */

/* ===== Base Styles ===== */
:root {
  /* Color palette */
  --primary-color: #00ff41; /* Matrix green */
  --secondary-color: #ff00a0; /* Neon pink */
  --accent-color: #7928ca; /* Purple */
  --background-color: #0a0a0a; /* Almost black */
  --background-alt: #111111; /* Slightly lighter black */
  --text-color: #e0e0e0; /* Off-white */
  --text-muted: #8c8c8c; /* Muted gray */
  --border-color: #333333;
  --danger-color: #ff0033; /* Red */
  --success-color: #00ff85; /* Green */

  /* Typography */
  --font-main: 'Courier New', monospace;
  --font-heading: 'Courier New', monospace;
}

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

html {
  font-size: 62.5%; /* 10px base for easier rem calculations */
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  background-image: 
    radial-gradient(var(--accent-color) 1px, transparent 1px),
    radial-gradient(var(--primary-color) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  background-attachment: fixed;
  background-blend-mode: overlay;
  overflow-x: hidden;
}

/* Dark overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 2rem;
  font-weight: 700;
}

h1 {
  font-size: 4.8rem;
  letter-spacing: -0.05rem;
}

h2 {
  font-size: 3.6rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1rem;
  width: 100%;
  height: 0.3rem;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

h3 {
  font-size: 2.4rem;
}

p {
  margin-bottom: 1.6rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 5px var(--secondary-color);
}

button {
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

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

/* ===== Layout ===== */
.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.8);
}

.header-content {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

main {
  min-height: calc(100vh - 16rem);
  padding: 4rem 0;
}

footer {
  background-color: var(--background-alt);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1.4rem;
}

/* ===== Header Styles ===== */
.logo {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 0.1rem;
  position: relative;
  text-transform: uppercase;
  animation: neonPulse 2s infinite alternate;
  text-shadow: 
    0 0 5px rgba(0, 255, 65, 0.5),
    0 0 10px rgba(0, 255, 65, 0.3),
    0 0 15px rgba(0, 255, 65, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.logo::before {
  content: '<';
  margin-right: 0.5rem;
  opacity: 0.8;
}

.logo::after {
  content: '/>';
  margin-left: 0.5rem;
  opacity: 0.8;
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(0, 255, 65, 0.2), 
    rgba(0, 255, 65, 0.2), 
    transparent);
  animation: scanLine 3s linear infinite;
  z-index: -1;
  transform: skewX(-45deg);
}

.logo:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  animation: glitchText 0.4s linear;
  text-shadow: 
    0 0 10px rgba(0, 255, 65, 0.8),
    0 0 20px rgba(0, 255, 65, 0.5),
    0 0 30px rgba(0, 255, 65, 0.3);
}

.contact-links {
  display: flex;
  gap: 2rem;
}

.contact-link {
  font-size: 2rem;
  color: var(--text-color);
}

.contact-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== Intro Section ===== */
.intro-container {
  text-align: center;
  margin: 6rem 0;
  position: relative;
}

.intro-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background-image: 
    linear-gradient(90deg, transparent 49%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, var(--primary-color) 49%, var(--primary-color) 51%, transparent 51%);
  background-size: 40px 40px;
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(1px);
  animation: rotateCircuit 15s linear infinite;
  z-index: -1;
}

#intro-title {
  font-size: 6rem;
  color: var(--primary-color);
  letter-spacing: 0.5rem;
  text-shadow: 0 0 5px var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  animation: floatEffect 5s ease-in-out infinite;
}

.type-container {
  height: 3rem;
  overflow: hidden;
  margin-bottom: 4rem;
  border-right: 0.15em solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
  margin: 0 auto;
  max-width: fit-content;
}

#intro-subtitle {
  font-size: 1.8rem;
  color: var(--secondary-color);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

/* Glitch effect for intro title */
.glitch {
  position: relative;
  animation: glitch 0.2s linear infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch::before {
  animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
  color: #0ff;
  z-index: -1;
}

.glitch::after {
  animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
  color: #f0f;
  z-index: -2;
}

@keyframes glitch {
  0% { transform: translate(0) }
  20% { transform: translate(-2px, 2px) }
  40% { transform: translate(-2px, -2px) }
  60% { transform: translate(2px, 2px) }
  80% { transform: translate(2px, -2px) }
  100% { transform: translate(0) }
}

/* ===== Search Section ===== */
.search-section {
  max-width: 120rem;
  margin: 0 auto 4rem;
  padding: 2rem;
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.search-box {
  display: flex;
  width: 100%;
  position: relative;
}

.search-box input {
  flex: 1;
  padding: 1.2rem;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: 1.6rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.2);
}

.search-box button {
  padding: 0 2rem;
  background-color: var(--primary-color);
  color: var(--background-color);
  font-size: 1.6rem;
  transition: all 0.2s ease;
}

.search-box button:hover {
  background-color: var(--secondary-color);
}

.filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
}

.filter-group h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 10px;
  opacity: 1;
}

.filter-options.collapsed {
  max-height: 0;
  padding: 0;
  opacity: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.filter-option input[type="checkbox"] {
  appearance: none;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--border-color);
  background-color: var(--background-color);
  border-radius: 0.3rem;
  cursor: pointer;
  position: relative;
}

.filter-option input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.filter-option input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--background-color);
  font-size: 1.2rem;
}

.filter-option label {
  cursor: pointer;
}

/* Filter Section Styles - Updated for collapsible functionality */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  background-color: #1a1a1a;
  margin-bottom: 5px;
}

.filter-header:hover {
  background-color: #252525;
}

.toggle-filter {
  background: none;
  border: none;
  color: #00ff41;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.toggle-filter[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

/* Popular Tags Section */
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 8px;
}

.popular-tag {
  background-color: #1e1e1e;
  border: 1px solid #00ff41;
  color: #00ff41;
  border-radius: 15px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popular-tag:hover {
  background-color: #00ff41;
  color: #000;
}

.popular-tag.selected {
  background-color: #00ff41;
  color: #000;
}

.all-tags-container {
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.all-tags-container::-webkit-scrollbar {
  width: 6px;
}

.all-tags-container::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.all-tags-container::-webkit-scrollbar-thumb {
  background: #00ff41;
  border-radius: 3px;
}

.show-more-tags {
  background: none;
  border: none;
  color: #00ff41;
  text-decoration: underline;
  cursor: pointer;
  margin: 10px 0 0;
  font-size: 14px;
}

/* Autocomplete Styles */
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-top: none;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}

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

.autocomplete-item:hover {
  background-color: #252525;
}

.autocomplete-item .icon {
  font-size: 14px;
  color: #00ff41;
  width: 20px;
  text-align: center;
}

.autocomplete-item .text {
  flex-grow: 1;
}

.autocomplete-item .match {
  color: #00ff41;
  font-weight: bold;
}

.autocomplete-item .type {
  color: #888;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
  background-color: #252525;
}

/* Make sure the search box is properly styled with the new autocomplete feature */
#search-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px 0 0 5px;
  border: 2px solid #333;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

#search-input:focus {
  outline: none;
  border-color: #00ff41;
}

/* ===== Jobs Section ===== */
.jobs-section {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.job-count {
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.jobs-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
  gap: 2rem;
}

.job-card {
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 255, 65, 0.15);
  border-color: var(--primary-color);
}

/* Cyberpunk grid effect on hover */
.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(0deg, transparent 24%, rgba(0, 255, 65, .05) 25%, rgba(0, 255, 65, .05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, .05) 75%, rgba(0, 255, 65, .05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 255, 65, .05) 25%, rgba(0, 255, 65, .05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, .05) 75%, rgba(0, 255, 65, .05) 76%, transparent 77%, transparent);
  background-size: 3rem 3rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.job-card:hover::before {
  opacity: 1;
}

.company-logo {
  width: 5rem;
  height: 5rem;
  background-color: var(--accent-color);
  color: var(--text-color);
  border-radius: 0.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 1.6rem;
}

.job-title {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.company-name {
  font-size: 1.6rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.4rem;
  align-items: center;
}

.job-location,
.job-type,
.job-work-model {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-location i,
.job-type i,
.job-work-model i {
  font-size: 1.4rem;
  width: 1.6rem;
  text-align: center;
  color: var(--primary-color);
}

.job-desc {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.job-tag {
  background-color: rgba(121, 40, 202, 0.2);
  color: var(--primary-color);
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  border: 1px solid var(--accent-color);
}

.more-tags {
  background-color: rgba(255, 0, 160, 0.2);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.detail-button {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 1rem 2rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.detail-button:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  box-shadow: 0 0 10px var(--primary-color);
}

/* Loading animation */
.loading-jobs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
}

.loading-pulse {
  display: inline-block;
  width: 5rem;
  height: 5rem;
  border: 0.3rem solid rgba(0, 255, 65, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* No jobs found */
.no-jobs {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
}

.no-jobs i {
  font-size: 5rem;
  color: var (--text-muted);
  margin-bottom: 2rem;
}

.reset-button {
  background-color: transparent;
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
  padding: 1rem 2rem;
  font-size: 1.4rem;
  border-radius: 0.4rem;
  margin-top: 2rem;
}

.reset-button:hover {
  background-color: var(--danger-color);
  color: var(--background-color);
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.visible {
  opacity: 1;
  visibility: visible;
}

body.modal-open {
  overflow: hidden;
}

.modal-content {
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  width: 100%;
  max-width: 70rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
  
  /* Cyberpunk grid effect */
  background-image: linear-gradient(0deg, transparent 24%, rgba(0, 255, 65, .03) 25%, rgba(0, 255, 65, .03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, .03) 75%, rgba(0, 255, 65, .03) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 255, 65, .03) 25%, rgba(0, 255, 65, .03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, .03) 75%, rgba(0, 255, 65, .03) 76%, transparent 77%, transparent);
  background-size: 4rem 4rem;
}

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

.modal-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.close-modal {
  font-size: 3rem;
  line-height: 1;
  color: var(--text-muted);
}

.close-modal:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 2rem;
}

.job-company {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.modal .job-meta {
  margin-bottom: 2.4rem;
}

.job-description {
  margin: 2.5rem 0;
  line-height: 1.8;
  font-size: 1.6rem;
  max-width: 80ch; /* Improves readability by limiting line length */
}

.job-description p {
  margin-bottom: 1.5rem;
}

.job-description ul, 
.job-description ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.job-description li {
  margin-bottom: 0.8rem;
}

.job-description h1,
.job-description h2,
.job-description h3,
.job-description h4 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.job-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

/* Improved meta information display */
.job-meta-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
}

.job-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.meta-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  width: 2.4rem;
  text-align: center;
  margin-top: 0.2rem; /* Improve vertical alignment with text */
}

.meta-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}

.meta-content p {
  font-size: 1.6rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.job-description-full {
  margin-bottom: 3rem;
}

.job-description-full h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.job-description-full h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5rem;
  height: 0.3rem;
  background: var(--primary-color);
}

.job-description-content,
.job-requirements-content {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.job-requirements-content ul {
  padding-left: 2rem;
  list-style-type: disc;
}

.job-requirements-content li {
  margin-bottom: 1rem;
  position: relative;
}

.job-requirements-content li::marker {
  color: var(--primary-color);
}

.job-tags-full {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0;
}

.job-tags-full .job-tag {
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background-color: rgba(121, 40, 202, 0.15);
  border: 1px solid rgba(121, 40, 202, 0.3);
}

.apply-section {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem;
  background-color: var(--background-alt);
  border-radius: 0.4rem;
  border: 1px solid var(--border-color);
}

.apply-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.apply-btn.large {
  padding: 1.4rem 2.8rem;
  font-size: 1.7rem;
}

.apply-btn:hover {
  background-color: var(--secondary-color);
  color: var(--background-color);
  box-shadow: 0 0 15px var(--secondary-color);
}

/* ===== Job Detail Page Styles ===== */
.page-section {
  padding: 4rem 0;
}

.job-detail-section {
  padding-top: 3rem;
}

.job-detail-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.job-detail-title {
  flex: 1;
}

.job-detail-title h1 {
  font-size: 3.2rem;
  margin-bottom: 0.8rem;
}

.job-company {
  font-size: 1.8rem;
  color: var(--text-muted);
}

.job-company a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.apply-container {
  display: flex;
  justify-content: flex-end;
}

.apply-btn {
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}

/* Job meta information at the top */
.job-meta-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3.5rem;
  padding: 2rem;
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meta-item-icon {
  font-size: 2rem;
  color: var(--primary-color);
  width: 2.4rem;
  text-align: center;
}

.meta-item-content {
  display: flex;
  flex-direction: column;
}

.meta-item-label {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.meta-item-value {
  font-size: 1.6rem;
  font-weight: 500;
}

/* Updated job content layout */
.job-content-container {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 3rem;
}

.job-main-content {
  order: 1;
}

.job-sidebar {
  order: 2;
}

/* Description section styling */
.job-section {
  margin-bottom: 4rem;
}

.job-section-title {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.job-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 5rem;
  height: 0.3rem;
  background-color: var(--primary-color);
}

.job-description-content {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-color);
}

.job-description-content p {
  margin-bottom: 1.5rem;
}

.job-description-content ul, 
.job-description-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.job-description-content li {
  margin-bottom: 1rem;
  position: relative;
}

.job-description-content li::marker {
  color: var(--primary-color);
}

/* Requirements section */
.job-requirements-list {
  list-style-type: disc;
  padding-left: 2rem;
}

.job-requirements-list li {
  margin-bottom: 1rem;
}

.job-requirements-list li::marker {
  color: var(--primary-color);
}

/* Tags section */
.job-tags-full {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.job-tags-full .job-tag {
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background-color: rgba(121, 40, 202, 0.15);
  border: 1px solid rgba(121, 40, 202, 0.3);
}

/* Company card in sidebar */
.company-card,
.share-card {
  padding: 2rem;
  background-color: var(--background-alt);
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  margin-bottom: 2rem;
}

.company-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.company-logo-large {
  width: 8rem;
  height: 8rem;
  background-color: var(--accent-color);
  color: var(--text-color);
  border-radius: 0.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  font-weight: bold;
}

.company-info-wrapper {
  text-align: center;
}

.company-info-wrapper h3 {
  margin-bottom: 1.5rem;
}

.company-website,
.company-jobs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.4rem;
  color: var(--text-color);
  font-size: 1.4rem;
  transition: all 0.2s ease;
}

.company-website:hover,
.company-jobs:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.share-card h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.share-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.8rem;
  transition: all 0.2s ease;
}

.share-button:hover {
  transform: translateY(-3px);
}

.apply-section {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  background-color: var(--background-alt);
  border-radius: 0.4rem;
  border: 1px solid var(--border-color);
}

.apply-section h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.apply-btn.large {
  padding: 1.4rem 2.8rem;
  font-size: 1.7rem;
}

.apply-btn:hover {
  background-color: var(--secondary-color);
  color: var(--background-color);
  box-shadow: 0 0 15px var(--secondary-color);
}

/* Responsive adjustments for job detail page */
@media (max-width: 991px) {
  .job-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .apply-container {
    margin-top: 2rem;
    justify-content: flex-start;
    width: 100%;
  }
  
  .apply-btn {
    width: 100%;
    text-align: center;
  }
  
  .job-content-container {
    grid-template-columns: 1fr;
  }
  
  .job-main-content {
    order: 2;
  }
  
  .job-sidebar {
    order: 1;
  }
  
  .job-meta-overview {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .meta-item {
    width: 100%;
  }
  
  .company-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== Enhanced Logo & Title Animations ===== */

/* Header Logo Animation */

/* Animated data lines effect behind logo */

/* Enhanced intro title */

/* Breaking title into individual characters for matrix effect */
.matrix-letter {
  display: inline-block;
  position: relative;
  animation: matrixEffect 3s infinite;
  animation-delay: calc(0.1s * var(--i));
}

/* Animation for subtitle with typewriter effect */

/* Keyframe Animations */
@keyframes neonPulse {
  0% {
    text-shadow: 
      0 0 5px rgba(0, 255, 65, 0.5),
      0 0 10px rgba(0, 255, 65, 0.3);
  }
  100% {
    text-shadow: 
      0 0 10px rgba(0, 255, 65, 0.8),
      0 0 20px rgba(0, 255, 65, 0.5),
      0 0 30px rgba(0, 255, 65, 0.3),
      0 0 40px rgba(0, 255, 65, 0.1);
  }
}

@keyframes scanLine {
  0% {
    top: -100%;
  }
  100% {
    top: 250%;
  }
}

@keyframes glitchText {
  0% { transform: translate(0) }
  20% { transform: translate(-2px, 2px) }
  40% { transform: translate(-2px, -2px) }
  60% { transform: translate(2px, 2px) }
  80% { transform: translate(2px, -2px) }
  100% { transform: translate(0) }
}

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

@keyframes matrixEffect {
  0% {
    color: transparent;
    text-shadow: none;
    transform: translateY(0);
  }
  5% {
    color: var(--primary-color);
  }
  10% {
    color: white;
    text-shadow: 0 0 10px var(--primary-color);
  }
  90% {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
  }
  100% {
    color: var(--primary-color);
    text-shadow: none;
  }
}

@keyframes rotateCircuit {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color) }
}

/* Cyber decoration for intro title */
.cyber-brackets {
  color: var(--primary-color);
  font-family: monospace;
  font-weight: normal;
  opacity: 0.8;
  animation: blinkingBrackets 2s infinite;
}

@keyframes blinkingBrackets {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Glitch hover effect enhancement */

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(-3px, -3px);
  }
  60% {
    transform: translate(3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

/* ===== Footer Styles ===== */
.footer-section {
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.footer-link {
  display: block;  /* Makes links stack vertically */
  margin-bottom: 1rem;
  color: var(--text-color);
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3.6rem;
  height: 3.6rem;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-color);
  font-size: 1.8rem;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  transform: translateY(-3px);
}