@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;400&family=Roboto:wght@400;500&display=swap');
:root {
  --primary: #0a2540;
  --secondary: #1e90ff;
  --accent: #00cfff;
  --bg: #101820;
  --text: #fff;
  --muted: #b0b8c1;
  --radius: 1.2rem;
}
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
header, footer {
  background: var(--primary);
  color: var(--text);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}
.logo img {
  height: 44px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links li a.active,
.nav-links li a:hover {
  color: var(--accent);
}
.jobs-hero {
  background: linear-gradient(120deg, var(--primary) 60%, var(--secondary) 100%);
  text-align: center;
  padding: 3rem 1rem 2rem 1rem;
}
.jobs-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.jobs-hero p {
  color: var(--muted);
  font-size: 1.2rem;
}
.jobs-list {
  max-width: 1100px;
  margin: 2.5rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
}
.job-card {
  background: rgba(16,24,32,0.98);
  border-radius: var(--radius);
  box-shadow: 0 0 16px 2px var(--accent), 0 2px 16px rgba(30,144,255,0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.25s, transform 0.18s;
}
.job-card:hover {
  box-shadow: 0 0 32px 8px var(--secondary), 0 4px 32px rgba(0,207,255,0.18);
  transform: scale(1.03);
  z-index: 2;
}
.job-card h2 {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.job-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.job-card ul {
  margin: 0 0 1rem 1.2rem;
  color: var(--text);
  font-size: 1rem;
}
.apply-btn {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(30,144,255,0.08);
  margin-top: auto;
  align-self: flex-end;
}
.apply-btn:hover {
  background: var(--accent);
  color: var(--primary);
}
footer {
  padding: 2rem 0 1rem 0;
  text-align: center;
  margin-top: 3rem;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: color 0.2s, border-bottom 0.3s cubic-bezier(.68,-0.55,.27,1.55);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.footer-social {
  margin-bottom: 1rem;
}
.footer-social a img {
  width: 32px;
  height: 32px;
  margin: 0 0.5rem;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-social a img:hover {
  opacity: 1;
  transform: scale(1.15);
}
.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
@media (max-width: 900px) {
  .jobs-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    z-index: 120;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle .bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 6px auto;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.68,-0.55,.27,1.55);
  }
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: var(--primary);
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: flex-start;
    padding: 4.5rem 2rem 2rem 2rem;
    gap: 2rem;
    z-index: 110;
    transition: right 0.35s cubic-bezier(.68,-0.55,.27,1.55);
    display: flex;
  }
  .nav-links.open {
    right: 0;
  }
  .mobile-nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10,37,64,0.55);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .nav-links {
    gap: 1rem;
    font-size: 1rem;
  }
  .jobs-hero {
    padding: 1.5rem 0.5rem 1rem 0.5rem;
  }
  .jobs-hero h1 {
    font-size: 1.3rem;
  }
  .job-card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
  .jobs-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-nav a {
    font-size: 1.1rem;
    transition: color 0.2s, border-bottom 0.35s cubic-bezier(.68,-0.55,.27,1.55);
    padding-bottom: 3px;
  }
}
.logo-text {
  font-family: 'Orbitron', 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  user-select: none;
  text-transform: uppercase;
  text-shadow: 0 0 8px #00cfff, 0 0 16px #1e90ff, 0 2px 12px rgba(0,207,255,0.18);
}
.logo-visa {
  color: var(--accent);
  margin-right: 0.1em;
  text-shadow: 0 2px 12px rgba(0,207,255,0.12);
}
.logo-path {
  color: var(--secondary);
  text-shadow: 0 2px 12px rgba(30,144,255,0.12);
}
.logo-link {
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}
.job-payment {
  margin: 10px 0 0 0;
  font-size: 1rem;
  color: #2d4a53;
  background: #f3f8fa;
  border-radius: 6px;
  padding: 7px 12px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.04);
  display: inline-block;
}
.job-slots {
  margin: 7px 0 0 0;
  font-size: 1rem;
  color: #1a3a3a;
  background: #eaf6f3;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(44, 62, 80, 0.03);
  display: inline-block;
}
.country-group {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e6ea;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  padding-top: 1.2rem;
  background: rgba(255,255,255,0.01);
  border-radius: 10px;
}
.job-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
.country-heading {
  margin-bottom: 1.8rem;
}
.flag-icon {
  width: 24px;
  height: 18px;
  vertical-align: middle;
  margin-right: 0.6em;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(44,62,80,0.07);
  object-fit: cover;
}
.country-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 2.5rem 0;
  justify-items: center;
}
.country-card {
  background: #f3f8fa;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  padding: 1.2rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 2px solid transparent;
  min-width: 120px;
}
.country-card:hover, .country-card.active {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 6px 18px rgba(44,62,80,0.13);
  border-color: #2d4a53;
}
.country-card .flag-icon {
  width: 48px;
  height: 36px;
  margin-bottom: 0.7em;
  box-shadow: 0 1px 2px rgba(44,62,80,0.09);
}
.country-card span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a3a3a;
  text-align: center;
}
.back-to-countries {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1.5rem 0;
}
.back-card {
  background: #eaf6f3;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a3a3a;
  cursor: pointer;
  border: 2px solid #2d4a53;
  transition: background 0.18s;
}
.back-card:hover {
  background: #d2ede3;
}
.jobs-list {
  display: none;
}
.country-group {
  display: none;
}
.jobs-list.active {
  display: block;
}
.country-group.active {
  display: block;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .job-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .country-group {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
@media (max-width: 600px) {
  .job-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .country-group {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-top: 0.7rem;
  }
  .country-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  .country-card {
    padding: 0.8rem 0.5rem 0.7rem 0.5rem;
    min-width: 90px;
  }
  .country-card .flag-icon {
    width: 36px;
    height: 27px;
  }
}
.no-jobs {
  color: #888;
  font-size: 1.05rem;
  margin: 1.2rem 0 0 0;
  padding: 0.7rem 1.2rem;
  background: #f8fafb;
  border-radius: 6px;
  text-align: center;
}
@media (max-width: 800px) {
  .nav-links {
    display: none !important;
  }
  .nav-dropdown {
    display: block;
    margin: 0.7em auto 0.7em auto;
    left: 0; right: 0;
    position: relative;
    max-width: 180px;
  }
  .navbar {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .nav-dropdown {
    display: block;
    width: 90%;
    max-width: 260px;
    margin: 0.7em auto 0.7em auto;
    padding: 0.7em 2.2em 0.7em 1.2em;
    font-size: 1.08rem;
    border-radius: 2em;
    border: 2px solid var(--accent);
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 18px rgba(30,144,255,0.13);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    text-align: center;
    cursor: pointer;
  }
  .nav-dropdown:focus {
    border: 2.5px solid var(--secondary);
    box-shadow: 0 0 0 2px var(--secondary);
  }
  .nav-dropdown {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%2300cfff" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548a1 1 0 0 1 1.415 0L10 10.617l3.07-3.07a1 1 0 1 1 1.415 1.415l-3.777 3.778a1 1 0 0 1-1.415 0L5.516 8.963a1 1 0 0 1 0-1.415z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1.1em center;
    background-size: 1.2em;
  }
  .nav-dropdown {
    margin: 0.5em auto !important;
    float: none;
  }
}
.nav-dropdown {
  display: none;
}
.job-requirements {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s;
  margin-bottom: 0.5rem;
}
.job-card:hover .job-requirements,
.job-card:focus-within .job-requirements {
  max-height: 200px;
  opacity: 1;
}
.requirements-list {
  margin: 0 0 1rem 1.2rem;
  color: var(--text);
  font-size: 1rem;
  padding: 0;
  list-style: disc inside;
}
/* Application Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.38);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  border-radius: 1.2em;
  max-width: 400px;
  width: 95vw;
  box-shadow: 0 8px 32px rgba(30,144,255,0.18);
  position: relative;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
}
.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2rem;
  color: var(--accent, #00cfff);
  cursor: pointer;
  font-weight: bold;
  z-index: 2;
}
#jobApplicationForm label {
  display: block;
  margin-top: 1.2em;
  margin-bottom: 0.3em;
  font-weight: 600;
  color: var(--primary, #181f2a);
}
#jobApplicationForm input[type="text"],
#jobApplicationForm input[type="email"],
#jobApplicationForm input[type="tel"] {
  width: 100%;
  padding: 0.7em 1em;
  border-radius: 0.7em;
  border: 1.5px solid var(--accent, #00cfff);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}
#jobApplicationForm button[type="submit"] {
  width: 100%;
  margin-top: 1.2em;
  padding: 0.9em 0;
  border-radius: 2em;
  border: none;
  background: var(--secondary, #1e90ff);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(30,144,255,0.08);
  transition: background 0.2s, color 0.2s;
}
#jobApplicationForm button[type="submit"]:hover {
  background: var(--accent, #00cfff);
  color: var(--primary, #181f2a);
}
@media (max-width: 600px) {
  .modal-content {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    max-width: 98vw;
  }
  .close-modal {
    top: 0.5rem;
    right: 0.7rem;
    font-size: 1.5rem;
  }
}
.logout-icon-btn {
  background: none;
  border: none;
  color: var(--accent, #00cfff);
  font-size: 1.3rem;
  padding: 0.2em 0.6em;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-left: 0.7em;
  outline: none;
  vertical-align: middle;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logout-icon-btn:hover, .logout-icon-btn:focus {
  background: rgba(0,207,255,0.10);
  color: var(--secondary, #1e90ff);
}
