/* Career Hero Section */
.career-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 8% 50px;
  background: linear-gradient(180deg, var(--bg-body) 0%, #0b120c 100%);
  position: relative;
  overflow: hidden;
}

.career-hero::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(39, 217, 83, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scale(1.1);
    opacity: 0.8;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-content .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-benefits {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 0;
  overflow-x: auto;
  padding: 10px 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(39, 217, 83, 0.05);
  border: 1px solid rgba(39, 217, 83, 0.2);
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.benefit-item i {
  font-size: 1.1rem;
  color: var(--primary);
}

.benefit-item span {
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
}

.benefit-item:hover {
  background: rgba(39, 217, 83, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(39, 217, 83, 0.2);
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: var(--primary);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(39, 217, 83, 0.3);
}

.btn-explore:hover {
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(39, 217, 83, 0.4);
}

.btn-explore i {
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* Job Listings Section */
.job-listings-section {
  padding: 40px 8% 100px;
  background: var(--bg-body);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: white;
  font-weight: 800;
  margin-bottom: 15px;
}

/* Filter Section */
.filter-container {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.filter-select {
  width: 100%;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa89d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.filter-select:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(39, 217, 83, 0.1);
}

.filter-select option {
  background: #18241b;
  color: #f0f4f1;
  padding: 10px;
}

.filter-select option:hover,
.filter-select option:checked {
  background: #1f2e23;
  color: #27d953;
}

.form-control option {
  background: #18241b;
  color: #f0f4f1;
  padding: 10px;
}

.form-control option:hover,
.form-control option:checked {
  background: #1f2e23;
  color: #27d953;
}

/* Jobs Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Job Card */
.job-card {
  background: linear-gradient(
    145deg,
    rgba(24, 36, 27, 0.8),
    rgba(14, 22, 16, 0.9)
  );
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.job-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(39, 217, 83, 0.15);
}

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

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.job-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(39, 217, 83, 0.15),
    rgba(39, 217, 83, 0.05)
  );
  border: 1px solid rgba(39, 217, 83, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.job-card:hover .job-icon {
  background: var(--primary);
  color: #000;
  transform: scale(1.1) rotate(-5deg);
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.job-type {
  background: rgba(39, 217, 83, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.job-location {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.job-location i {
  color: var(--primary);
}

.job-card h3 {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 8px;
}

.job-department {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.job-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.3s;
}

.job-card:hover .tag {
  background: rgba(39, 217, 83, 0.1);
  color: var(--primary);
  border-color: rgba(39, 217, 83, 0.2);
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.salary {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-apply {
  background: var(--primary);
  color: #000;
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-apply:hover {
  background: white;
  box-shadow: 0 8px 20px rgba(39, 217, 83, 0.3);
  transform: translateY(-2px);
}

/* Application Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(
    145deg,
    rgba(24, 36, 27, 0.95),
    rgba(14, 22, 16, 0.98)
  );
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.4);
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
  margin-bottom: 10px;
}

.modal-header h2 span {
  color: var(--primary);
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.file-input {
  cursor: pointer;
}

.file-input::file-selector-button {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.3s, color 0.3s;
}

.file-input::file-selector-button:hover {
  background: white;
}

/* Job Details Modal Styles */
.details-modal-content {
  max-width: 800px;
}

.modal-job-header h2 {
  font-size: 2rem;
  color: white;
  margin: 10px 0;
}

.details-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.details-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.details-meta span i {
  color: var(--primary);
  margin-right: 5px;
}

.details-job-type {
  background: rgba(39, 217, 83, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.details-modal-body h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 25px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.details-modal-body p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.details-modal-body ul {
  list-style: none;
  padding: 0;
}

.details-modal-body ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.details-modal-body ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.details-modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

.job-actions {
  display: flex;
  gap: 10px;
}

.btn-view-details {
  background: transparent;
  color: white;
  border: 1px solid var(--primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  font-size: 0.85rem;
}

.btn-view-details:hover {
  background: rgba(39, 217, 83, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

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

@media (max-width: 768px) {
  .career-hero {
    min-height: 60vh;
    padding: 100px 5% 40px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-benefits {
    gap: 12px;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .benefit-item {
    padding: 10px 16px;
  }

  .benefit-item i {
    font-size: 1rem;
  }

  .benefit-item span {
    font-size: 0.8rem;
  }

  .job-listings-section {
    padding: 30px 5% 60px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .filter-container {
    flex-direction: column;
    margin-bottom: 30px;
  }

  .filter-group {
    width: 100%;
  }

  .job-card {
    padding: 25px;
  }

  .job-header {
    flex-direction: column;
    gap: 15px;
  }

  .job-meta {
    align-items: flex-start;
    width: 100%;
  }

  .job-footer {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .btn-apply {
    width: 100%;
    position: relative;
    z-index: 10;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(39, 217, 83, 0.3);
    touch-action: manipulation;
  }

  .modal-content {
    padding: 30px 20px;
    max-height: 85vh;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

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

@media (max-width: 480px) {
  .career-hero {
    padding: 90px 5% 30px;
    min-height: 50vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .hero-benefits {
    gap: 10px;
  }

  .benefit-item {
    padding: 8px 14px;
  }

  .benefit-item i {
    font-size: 0.9rem;
  }

  .benefit-item span {
    font-size: 0.75rem;
  }

  .job-listings-section {
    padding: 25px 5% 50px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  .filter-container {
    margin-bottom: 25px;
  }

  .filter-select {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .jobs-grid {
    gap: 15px;
  }

  .job-card {
    padding: 20px;
  }

  .job-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  .job-card h3 {
    font-size: 1.2rem;
  }

  .job-department {
    font-size: 0.75rem;
  }

  .job-description {
    font-size: 0.85rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 5px 10px;
  }

  .salary {
    font-size: 0.85rem;
  }

  .btn-apply {
    font-size: 0.8rem;
    padding: 9px 20px;
  }

  .modal-content {
    padding: 25px 15px;
    border-radius: 20px;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-header p {
    font-size: 0.85rem;
  }

  .form-group label {
    font-size: 0.7rem;
  }

  .form-control {
    padding: 12px 15px;
    font-size: 0.85rem;
  }

  .btn-submit {
    padding: 12px 25px;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .benefit-item {
    padding: 6px 12px;
  }

  .benefit-item span {
    font-size: 0.7rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .job-card h3 {
    font-size: 1.1rem;
  }
}

/* Custom Scrollbar for Modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: white;
}
