* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* ---------- NAVBAR ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: #0f172a !important;
  color: white;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.3s;
  padding: 8px 0;
}

.nav-links a:hover {
  color: #38bdf8;
}

.ActiveLink {
  color: #38bdf8 !important;
  transform: scale(1.3);
}

.logoutLink {
  color: rgb(235, 114, 114) !important;
}

.ProfileLink {
  border-radius: 50%;
  background-color: #38bdf8;
  font-size: 26px;
  font-weight: bold;
  height: 46px;
  width: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.mobile_profile-link {
  display: none;
}

/* ---------- HAMBURGER MENU (hidden on desktop) ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ---------- OVERLAY ---------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* ---------- MOBILE STYLES ---------- */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .menu-toggle {
    display: flex; /* show hamburger */
  }

  @media (max-width: 768px) {
  .nav-links {
    display: none;                /* hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
  }
  .nav-links.active {
    display: flex;                /* show when active */
  }
}

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  /* Show mobile profile link, hide desktop avatar */
  .mobile_profile-link {
    display: block;
  }

  .ProfileLink {
    display: none;
  }

  /* Adjust hero text size */
  .hero h1 {
    font-size: 2.5rem;
  }

  .jobs {
    padding: 2rem 1rem;
  }

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

/* ---------- ANIMATIONS ---------- */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

/* ---------- POPUP ---------- */
.popup {
  position: fixed;
  top: 25px;
  right: 25px;
  min-width: 260px;
  max-width: 320px;
  padding: 16px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  animation: slideIn 0.4s ease;
  z-index: 3000;
}

.popup.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.popup.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.popup .close {
  margin-left: auto;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  opacity: 0.8;
}

.popup .close:hover {
  opacity: 1;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  padding: 5rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(25deg);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(120deg, #ffffff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px #2563eb;
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

/* ---------- JOBS SECTION ---------- */
.jobs {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

.jobs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.jobs h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  background: linear-gradient(120deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.jobs h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 4px;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.job-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
  background: white;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.job-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.job-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fulltime {
  background: #dbeafe;
  color: #1e40af;
}

.parttime {
  background: #dcfce7;
  color: #166534;
}

.freelance {
  background: #fef9c3;
  color: #854d0e;
}

.internship {
  background: #f1f5f9;
  color: #334155;
}

.job-company {
  font-size: 1rem;
  font-weight: 500;
  color: #2563eb;
  margin-bottom: 0.3rem;
}

.job-location,
.job-salary,
.job-experience {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.job-location i,
.job-salary i,
.job-experience i {
  width: 16px;
  color: #2563eb;
}

.job-salary {
  font-weight: 500;
  color: #0f172a;
}

.job-experience {
  margin-bottom: 1rem;
}

.job-description {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.job-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.job-link,
.job-detail-btn {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 0;
}

.job-link:hover,
.job-detail-btn:hover {
  gap: 0.6rem;
  color: #1d4ed8;
}

.job-detail-btn {
  color: #7c3aed;
}

.job-detail-btn:hover {
  color: #6d28d9;
}

/* ---------- MODALS ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  margin: auto;
  padding: 2.5rem;
  border-radius: 40px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #ef4444;
}

.modal h2 {
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Job detail modal */
.job-detail-content p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.5;
}

.job-detail-content strong {
  color: #0f172a;
  min-width: 100px;
  display: inline-block;
}

#detailDescription {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 16px;
  margin-top: 0.3rem;
  white-space: pre-wrap;
}

/* Apply form */
#applyForm .form-group {
  margin-bottom: 1.2rem;
}

#applyForm label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

#applyForm input,
#applyForm textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 40px;
  font-size: 1rem;
  transition: border 0.3s;
}

#applyForm input:focus,
#applyForm textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#applyForm textarea {
  border-radius: 20px;
  resize: vertical;
}

.apply-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border: none;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.apply-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px #2563eb;
}

/* ---------- LOGIN / ABOUT / CONTACT ---------- */
.login {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2);
}

.login h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  background: linear-gradient(120deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.login h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 4px;
}

.login form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.login input:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 8px 12px -4px rgba(37, 99, 235, 0.2);
}

.login button {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px -5px rgba(37, 99, 235, 0.4);
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
}

.login button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -8px #2563eb;
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.about {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  background: linear-gradient(120deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.about h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 4px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1e293b;
  margin: 0 0 1rem 0;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  border-left: 4px solid #2563eb;
}

.contact {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  background: linear-gradient(120deg, #1e293b, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.contact h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 8px 12px -4px rgba(37, 99, 235, 0.2);
}

.contact-form button {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px -5px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -8px #2563eb;
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.contact-map {
  min-height: 320px;
}

.map-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #f1f5f9;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  font-family: "Segoe UI", Roboto, sans-serif;
  padding: 60px 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}