/* careers.css */

.careers-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: var(--surface-color);
  background-image: linear-gradient(to right, rgba(20, 157, 82, 0.05), rgba(0, 0, 0, 0));
}

.careers-hero h1 {
  font-size: 3rem;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.careers-hero p {
  font-size: 1.2rem;
  color: var(--default-color);
  max-width: 800px;
  margin: 0 auto;
}

.career-companies {
  padding: 80px 0;
  background-color: var(--background-color);

}


.career-companies .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible !important;

}

.career-companies .section-title h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.career-companies .section-title p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 30px;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin-top: 40px;
  overflow: visible !important; /* change from hidden if set */
  padding: 20px 10px; /* add this */

}

.career-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  border: 1px solid rgba(20, 157, 82, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}


.career-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-color);
}

.career-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.career-card:hover::before {
  transform: scaleX(1);
}

.career-card-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.career-card h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 15px;
}

.career-card p {
  color: var(--default-color);
  margin-bottom: 30px;
  flex-grow: 1;
}

.btn-apply {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  border: 2px solid var(--accent-color);
  cursor: pointer;
}

.btn-apply:hover {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.apply-modal {
  background: #ffffff; /* Use solid white instead of var(--surface-color) which might be transparent */
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--surface-color);
  z-index: 10;
}

.modal-header h3 {
  margin: 0;
  color: var(--heading-color);
  font-size: 1.5rem;
}

.modal-header span {
  color: var(--accent-color);
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--default-color);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.close-modal:hover {
  background-color: rgba(0,0,0,0.05);
  color: var(--heading-color);
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--heading-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: var(--background-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--default-color);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(20, 157, 82, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.file-upload-wrapper {
  position: relative;
  width: 100%;
  height: 100px;
  border: 2px dashed rgba(20, 157, 82, 0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(20, 157, 82, 0.02);
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-wrapper:hover {
  background: rgba(20, 157, 82, 0.05);
  border-color: var(--accent-color);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-wrapper i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.file-upload-wrapper span {
  color: var(--default-color);
  font-size: 0.9rem;
}

.file-name-display {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 500;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #128a48; /* slightly darker green */
}

.btn-submit:active {
  transform: scale(0.98);
}

/* 404 Page Specific Styles - Placing here for simplicity, or we can make a separate file */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  text-align: center;
  padding: 20px;
}

.error-content {
  max-width: 600px;
}

.error-animation {
  margin-bottom: 40px;
  position: relative;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.construction-gear {
  font-size: 6rem;
  color: var(--accent-color);
  animation: spin 6s linear infinite;
  display: inline-block;
}

.construction-cone {
  font-size: 4rem;
  color: #ff9800; /* Orange for cone */
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.error-content h1 {
  font-size: 8rem;
  line-height: 1;
  color: var(--heading-color);
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 4px 4px 0 rgba(20, 157, 82, 0.1);
}

.error-content h2 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 20px;
}

.error-content p {
  color: var(--default-color);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

/* Responsive constraints */
@media (max-width: 768px) {
  .careers-hero h1 {
    font-size: 2.2rem;
  }
  
  .error-content h1 {
    font-size: 5rem;
  }
  
  .career-grid {
    grid-template-columns: 1fr;
  }
}
