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

/* ===== BACKGROUND ===== */
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: linear-gradient(135deg, #0a0a0a, #bfa34a, #5a2a80);
  color: white;
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* ===== NAVBAR ===== */
.main-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
}

.main-nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* LOGO CENTRIRAN NA STRANICI */
.logo-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  font-family: "Audiowide", cursive;
  font-size: 32px;
  color: white;
  text-decoration: none;
  font-weight: 500;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-247 {
  font-size: 16px;
  color: white;
  margin-top: -6px;
  margin-left: 34px;
  animation: logoColorShift 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

.main-nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  width: auto;
}

.main-nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.main-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.main-nav-links a:hover::after {
  width: 100%;
}

@keyframes logoColorShift {
  0% {
    color: #bfa34a;
    text-shadow: 0 0 8px rgba(191, 163, 74, 0.6);
  }
  40% {
    color: #5a2a80;
    text-shadow: 0 0 10px rgba(90, 42, 128, 0.6);
  }
  70% {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  }
  100% {
    color: #bfa34a;
    text-shadow: 0 0 8px rgba(191, 163, 74, 0.6);
  }
}

/* ===== ACTIVE LINK ===== */
.main-nav-links a.active {
  color: #d4af37;
}
.main-nav-links a.active::after {
  width: 100%;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}

/* ===== CAREER CONTENT ===== */
.career {
  max-width: 900px;
  margin: 3rem auto;
  text-align: center;
}

/* ===== CAREER PAGE HEADING ===== */
.career-heading {
  text-align: center;
  margin: 4rem auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.career-title {
  font-family: "Audiowide", cursive;
  font-size: 3.1rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.6rem;
  text-shadow:
    0 0 8px rgba(212, 175, 55, 0.6),
    0 0 18px rgba(212, 175, 55, 0.5),
    0 0 32px rgba(212, 175, 55, 0.4);
  animation: careerGlow 3.2s ease-in-out infinite;
}

.career-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, #bfa34a, #5a2a80);
  border-radius: 999px;
}

@keyframes careerGlow {
  0%,
  100% {
    text-shadow:
      0 0 6px rgba(212, 175, 55, 0.45),
      0 0 14px rgba(212, 175, 55, 0.35),
      0 0 24px rgba(212, 175, 55, 0.3);
  }
  50% {
    text-shadow:
      0 0 14px rgba(212, 175, 55, 0.85),
      0 0 26px rgba(212, 175, 55, 0.75),
      0 0 40px rgba(212, 175, 55, 0.65);
  }
}

.career-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== MARKER (USED IN SUBTITLE) ===== */
.marker {
  position: relative;
  display: inline-block;
  font-weight: 700;
  color: #bfa34a;
  padding: 2px 6px;
  z-index: 1;
}

.marker::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 2px;
  width: calc(100% + 8px);
  height: 45%;
  background: linear-gradient(
    135deg,
    rgba(191, 163, 74, 0.35),
    rgba(90, 42, 128, 0.35)
  );
  border-radius: 6px;
  z-index: -1;
}

.job-info {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-align: left;
}

.job-info h2 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.job-info h3 {
  margin-top: 1.2rem;
  color: #fff;
}

.job-info ul {
  margin-top: 0.5rem;
  margin-left: 1.2rem;
  opacity: 0.9;
}

/* JOB CARDS */
.job-card {
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;

  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #bfa34a, #5a2a80);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0; /* važno */
  filter: blur(10px);
  pointer-events: none; /* da hover i klikovi rade normalno */
}

.job-card > * {
  position: relative;
  z-index: 1; /* sadržaj iznad efekta */
}

.job-card.show {
  opacity: 1;
  transform: translateY(0);
}

.job-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.35),
    0 0 40px rgba(90, 42, 128, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(255, 255, 255, 0.14);
  animation: cardPulse 1.4s ease-in-out infinite;
}

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

.apply-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: gold;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .main-nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav-links {
    width: 100%;
    justify-content: center;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: rgba(20, 20, 20, 0.95);
  border-radius: 18px;
  padding: 2.2rem;
  max-width: 520px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.7);
  background: rgba(255, 255, 255, 0.08);
  color: #d4af37;
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.modal-close:hover {
  transform: scale(1.1);
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
}

.modal-box h2 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.apply-form input,
.apply-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

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

.apply-form input::placeholder,
.apply-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
  padding: 0.9rem;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #d4af37, #bfa34a);
  color: #000;
}

.success-message {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.success-message h3 {
  color: #d4af37;
  margin-bottom: 1rem;
}

.success-message p {
  opacity: 0.9;
  margin-bottom: 0.8rem;
}

.success-message .note {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== DESKTOP NAV ===== */
.nav-left,
.nav-right {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-left a,
.nav-right a,
.mobile-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-left a::after,
.nav-right a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-right a:hover::after,
.mobile-nav a:hover::after {
  width: 100%;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1200;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #d4af37;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== MOBILE MENU ===== */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.mobile-nav.active {
  display: flex;
}

/* X ANIMATION */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo-text {
    position: static;
    transform: none;
  }
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 600px) {
  .career {
    padding: 0 1rem;
  }

  .job-info {
    padding: 1.4rem;
    margin: 1.5rem auto 3rem;
    border-radius: 16px;
  }

  .job-card {
    padding: 1.5rem;
  }

  .apply-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .career-title {
    font-size: 2.2rem;
  }

  .career-subtitle {
    font-size: 0.95rem;
  }
}
