* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

:root {
  --primary-accent: #059ab5;
  --primary-accent-dark: #047f97;
}

body {
  background: #f3f6f9;
  color: #333;
  line-height: 1.6;
}

.section {
  padding: 80px 10%;
}

h1, h2, h3 {
  color: var(--primary-accent);
  margin-bottom: 15px;
}

.section h2 {
  border-bottom: 2px solid var(--primary-accent);
  padding-bottom: 8px;
  margin-bottom: 25px;
}

p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #4b5563;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 5px rgba(79,70,229,0.5);
}

::placeholder {
  color: #9ca3af;
}

button {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
  font-weight: bold;
}

button:hover {
  background: #6366f1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#applyButton,
#applyForm button,
#applyForm button[type="submit"],
#applyForm button[type="button"] {
  background: var(--primary-accent);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

#applyButton:hover,
#applyForm button:hover {
  background: var(--primary-accent-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

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

#applyButton {
  width: 300px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #058aa8;
  padding: 15px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 4px solid #ff7f50;
  box-shadow: 0 4px 12px rgba(3,127,140,0.4);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.navbar a {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  margin: 0 8px;
}

.navbar a:hover {
  color: #ff4500;
  text-decoration: underline;
  font-weight: bold;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid white;
  object-fit: contain;
  box-shadow: 0 0 8px rgba(5,154,181,0.6);
}

.company-name {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
  margin-left: 8px;
  text-shadow: 0 0 6px rgba(255,99,71,0.8);
}

.company-name:hover {
  color: #ff6347;
  letter-spacing: 2px;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

.menu-toggle:hover {
  color: #ffa600;
}

.hero {
  margin-top: 80px;
  padding-bottom: 40px;
}

.hero p {
  margin-bottom: 10px;
  font-size: 18px;
}

#home {
  padding-bottom: 20px;
}

.services .service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  transition: 0.3s;
}

.services .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

#services {
  padding-top: 80px;
  padding-bottom: 40px;
}

@media (max-width: 1024px) {
  .services .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services .service-grid {
    grid-template-columns: 1fr;
  }
}

#jobs {
  padding: 80px 10%;
  padding-bottom: 80px;
}

.job-search-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 20px;
  align-self: center;
}

.job-search-left {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px 15px;
  flex: 1;
}

table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

th {
  background: var(--primary-accent);
  color: #fff;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}

td:first-child {
  text-align: left;
}

tr:hover {
  background: rgba(5, 154, 181, 0.08);
}

tr.active {
  background: rgba(5, 154, 181, 0.15);
}

.job-search-container button {
  padding: 6px 20px;
  height: 45px;
  align-self: center;
  background: var(--primary-accent);
}

.job-search-container button:hover {
  background: var(--primary-accent-dark);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}


.modal-content {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

#jobApplyModal .close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

#jobApplyModal .close:hover {
  color: var(--primary-accent);
}

#jobApplyForm {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#jobApplyForm input,
#jobApplyForm textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

#jobApplyForm input:focus,
#jobApplyForm textarea:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 5px rgba(5, 154, 181, 0.4);
}

#jobApplyForm textarea {
  resize: vertical;
  min-height: 100px;
}

#jobApplyForm button[type="submit"] {
  background: var(--primary-accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
  width: 50%;
}

#jobApplyForm button[type="submit"]:hover {
  background: var(--primary-accent-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.custom-file-upload {
  display: inline-block;
  padding: 12px 20px;
  cursor: pointer;
  background-color: var(--primary-accent);
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.custom-file-upload:hover {
  background-color: var(--primary-accent-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-file-upload input[type="file"] {
  display: none;
}

.custom-file-upload::after {
  content: attr(data-file-name);
  display: block;
  margin-top: 5px;
  font-size: 0.9em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.custom-file-upload.has-file {
  font-weight: 500;
  font-style: italic;
}

#jobApplyFeedback {
  font-size: 14px;
  color: green;
  text-align: center;
}

#contact {
  padding: 80px 10%;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-btn {
  width: auto;
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--primary-accent);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--primary-accent-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.contact-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.contact-btn {
  align-self: center;
  height: 45px;
}

footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: white;
  font-size: 14px;
}

.text-center { text-align: center; }
.hidden { display: none !important; }
.w-100 { width: 100% !important; }

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .navbar ul {
    flex-direction: column;
    background: #058aa8;
    position: absolute;
    top: 60px;
    left: -100%;
    width: 100%;
    padding: 15px 20px;
    transition: 0.3s;
  }

  .navbar ul.active {
    left: 0;
  }

  .services .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 28px; }
  .hero p { font-size: 16px; }
}

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

.modal.show .modal-content {
  transform: translateY(0);
}

.fade-out {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.fade-out.hide {
  opacity: 0;
}

#modalJobDetails {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

#modalJobDetails p {
  margin-bottom: 12px;
}

#modalJobDetails strong {
  color: var(--primary-accent);
  font-weight: 600;
}

#modalJobDetails ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

#modalJobDetails li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .job-search-left {
    grid-template-columns: 1fr !important;
  }

  .job-search-left input,
  .job-search-left select {
    min-width: 100%;
  }

  .table-wrapper {
    overflow-x: auto;
  }

  .table-wrapper table {
    min-width: 600px;
  }
}
