* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0f172a;
  --text-dim: #64748b;
  --accent: #2563eb;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --nav-bg: #0f172a;
  --nav-text: #ffffff;
  --footer-link: #2563eb;
  --primary-blue: #2563eb;
  --scale: 1; /* set by setContentWidth() in careers.js */
}
[data-theme="dark"] {
  --bg: #020617;
  --bg-alt: #070b1d;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --card-bg: #0f172a;
  --border: #1e293b;
  --nav-bg: #ffffff;
  --nav-text: #0f172a;
  --footer-link: #60a5fa;
}

body { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; transition: background-color 0.3s, color 0.3s; zoom: var(--scale); }
.container { width: 90%; max-width: 1100px; margin: auto; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;  }
ul { list-style: none; padding: 0; }
a { text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  padding: 15px 0;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  transition: background-color 0.4s ease;
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 22px; font-weight: 800; color: var(--nav-text); transition: color 0.4s ease; }
.brand span { color: var(--accent); }
#brandFooter { color: #ffffff !important; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--nav-text); font-weight: 600; font-size: 14px; opacity: 0.9; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-links a.active-link { color: var(--accent); opacity: 1; }

/* ---------- Theme switch ---------- */
.theme-switch {
  width: 64px; height: 32px; background: #e2e8f0; border-radius: 50px; border: none;
  cursor: pointer; position: relative; padding: 4px; transition: background-color 0.4s ease;
  display: flex; align-items: center;
}
.switch-handle {
  width: 24px; height: 24px; background: white; border-radius: 50%;
  position: absolute; left: 4px; top: 4px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); z-index: 2;
}
.theme-switch:active .switch-handle { width: 30px; }
.sun-icon { color: #f59e0b; display: block; transition: transform 0.4s ease; }
.moon-icon { color: #1e293b; display: none; transition: transform 0.4s ease; }
[data-theme="dark"] .theme-switch { background: #334155; }
[data-theme="dark"] .switch-handle { left: 36px; background: #0f172a; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; color: #60a5fa; transform: rotate(-15deg); }
.theme-switch:hover { filter: brightness(1.05); }

/* ---------- Mobile hamburger toggle ---------- */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border); border-radius: 12px; font-size: 19px;
  color: var(--nav-text); cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.menu-toggle:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); border-color: var(--accent); background: rgba(37, 99, 235, 0.16); }
.menu-toggle:active { transform: translateY(0) scale(0.92); }
.menu-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-toggle i { display: inline-block; transition: transform 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s ease; }
.menu-toggle i.fa-times { transform: rotate(180deg); color: var(--accent); }
body:has(.nav-links.active) .menu-toggle { border-color: var(--accent); background: rgba(37, 99, 235, 0.16); }

/* ---------- Desktop-mode overlay (kept for parity with home page) ---------- */
#desktop-enforcer { display: none !important; }

/* ---------- Buttons / badge / section basics ---------- */
.btn {
  padding: 16px 32px; border-radius: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden; border: none;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4); }
.btn-primary i { transition: transform 0.3s ease; }
.btn-primary:hover i { transform: translateX(5px); }
.btn:active { transform: scale(0.95); }
.nav-cta { padding: 10px 20px; border-radius: 12px; font-size: 14px; }

.badge { display: inline-block; padding: 8px 16px; background: rgba(37, 99, 235, 0.1); color: var(--accent); border-radius: 50px; font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 2.8rem; margin-bottom: 16px; font-weight: 700; letter-spacing: -0.5px; }
.section-header p { color: var(--text-dim); font-size: 1.1rem; }

.hero { padding: 80px 0; }
.hero-flex { display: flex; align-items: center; gap: 50px; }
.hero-content h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.15; font-weight: 800; margin-bottom: 20px; letter-spacing: -1px; }
.hero-content p { color: var(--text-dim); font-size: 1.1rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 20px; margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { background: #010409; color: #94a3b8; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: #94a3b8; }
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: rgba(37, 99, 235, 0.1); border-radius: 50%; color: #fff; font-size: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid transparent;
}
.social-icons a:hover { color: #2563eb; transform: translateY(-5px); border-color: #2563eb; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3), 0 0 12px rgba(37, 99, 235, 0.5); }

.footer-col h4 { color: #fff; margin-bottom: 20px; }

.quick-links li { margin-bottom: 15px; }
.quick-links a { color: var(--text-dim); font-weight: 500; display: inline-flex; align-items: center; transition: all 0.3s ease; }
.quick-links a::before {
  content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  margin-right: 0; opacity: 0; transition: 0.3s; color: var(--footer-link); font-size: 12px; width: 0; overflow: hidden;
}
.quick-links a:hover { color: var(--footer-link); transform: translateX(5px); }
.quick-links a:hover::before { opacity: 1; margin-right: 8px; width: auto; overflow: visible; }

.contact-list { margin-top: 15px; }
.contact-list li { margin-bottom: 15px; }
.contact-list a { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-weight: 500; transition: all 0.3s ease; }
.contact-list a:hover { color: var(--footer-link); transform: translateX(5px); }
.contact-list a i { width: 20px; color: var(--primary-blue); transition: all 0.3s ease; filter: drop-shadow(0 0 0px var(--primary-blue)); }
.contact-list a:hover i { transform: scale(1.3) rotate(-10deg); filter: drop-shadow(0 0 8px var(--primary-blue)); }

.footer-sitemap { padding: 34px 0 42px; border-top: 1px solid #1e293b; }
.footer-sitemap > h4 { color: #fff; font-size: 1rem; margin-bottom: 26px; }
.footer-sitemap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px; }
.footer-sitemap-col h5 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--footer-link); margin: 0 0 14px; }
.footer-sitemap-col .quick-links li { margin-bottom: 10px; }
.footer-sitemap-col .quick-links a { font-size: 0.86rem; }

.footer-bottom { padding-top: 10px; }
.flex-footer { text-align: center; }

.careers-hero { position: relative; overflow: hidden; }
.careers-hero-flex { justify-content: center; position: relative; z-index: 1; }
.careers-hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
.careers-hero-content h1 span {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.careers-hero .glow-sphere {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 60%);
  filter: blur(70px); animation: careersFloat 10s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes careersFloat {
  from { transform: translate(-52%, -10px); }
  to   { transform: translate(-48%, 15px); }
}

.job-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }

.job-card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px; min-height: 340px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; position: relative; overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.job-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(37, 99, 235, 0.07), transparent);
  transform: translateX(-150%); transition: transform 0.7s ease; pointer-events: none;
}
.job-card:hover::before { transform: translateX(150%); }
.job-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 24px 50px rgba(37, 99, 235, 0.16); }
.job-card h3 { font-size: 1.28rem; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.3px; }

.job-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--accent); font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.job-overview { color: var(--text-dim); line-height: 1.65; margin-bottom: 24px; font-size: 0.92rem; }

.skills-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.skill-tag { padding: 6px 14px; border-radius: 8px; background: rgba(37, 99, 235, 0.07); border: 1px solid var(--border); color: var(--text-dim); font-size: 0.8rem; font-weight: 600; transition: 0.3s ease; }
.job-card:hover .skill-tag { border-color: rgba(37, 99, 235, 0.35); }
.skill-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.apply-link { display: block; text-decoration: none; padding: 13px 18px; text-align: center; border-radius: 10px; background: rgba(37, 99, 235, 0.06); border: 1px solid var(--border); color: var(--text); font-weight: 700; transition: all 0.3s ease; }
.job-card:hover .apply-link { background: linear-gradient(135deg, var(--accent), #3b82f6); color: #fff; border-color: transparent; }
.apply-link:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28); }

.animate-fade { animation: careersFadeUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes careersFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .nav-inner { position: relative; }

  body:has(.nav-links.active)::after {
    content: ""; position: fixed; inset: 0; background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 997;
    animation: navOverlayIn 0.4s ease forwards;
  }
  @keyframes navOverlayIn { from { opacity: 0; } to { opacity: 1; } }
  body:has(.nav-links.active) { overflow: hidden; }

  .nav-links {
    position: fixed; top: 0; right: 0; left: auto; height: 100vh; width: min(80vw, 340px);
    margin: 0; padding: 104px 30px 40px; background: var(--nav-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    flex-direction: column; align-items: flex-start; gap: 2px; overflow-y: auto;
    opacity: 1; transform: translateX(100%); z-index: 999;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #60a5fa); }
  .nav-links.active { transform: translateX(0); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }

  .nav-links a:not(.nav-cta) {
    width: 100%; padding: 14px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--border);
    opacity: 0; transform: translateX(26px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s ease, padding-left 0.25s ease;
  }
  .nav-links a:not(.nav-cta):hover { padding-left: 8px; }
  .nav-links.active a:not(.nav-cta) { opacity: 1; transform: translateX(0); }
  .nav-links.active a:not(.nav-cta):nth-of-type(1) { transition-delay: 0.08s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(2) { transition-delay: 0.14s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(3) { transition-delay: 0.20s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(4) { transition-delay: 0.26s; }
  .nav-links.active a:not(.nav-cta):nth-of-type(5) { transition-delay: 0.32s; }

  .nav-links .theme-switch { margin: 18px 0 12px; opacity: 0; transform: translateX(26px); transition: opacity 0.4s ease 0.36s, transform 0.4s ease 0.36s; }
  .nav-links.active .theme-switch { opacity: 1; transform: translateX(0); }

  .nav-links .nav-cta { justify-content: center; margin: 8px 0 0; width: 100%; opacity: 0; transform: translateX(26px); transition: opacity 0.4s ease 0.42s, transform 0.4s ease 0.42s; }
  .nav-links.active .nav-cta { opacity: 1; transform: translateX(0); }

  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-sitemap-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 50px 0 30px; }
  .section { padding: 50px 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 35px; }
  .footer-brand { grid-column: auto; }
  .social-icons { justify-content: center; }
  .contact-list a { justify-content: center; }
  .footer-sitemap-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .job-card { padding: 26px; min-height: auto; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .footer-sitemap-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle, .menu-toggle i, .nav-links, .nav-links a,
  .nav-links .theme-switch, .nav-links .nav-cta, .animate-fade, .careers-hero .glow-sphere {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.theme-switch .switch-handle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Light Mode: Sirf Sun Icon dikhega, Moon completely HIDE hoga */
.theme-switch .sun-icon {
    display: inline-block !important;
    color: #f59e0b !important;
}

.theme-switch .moon-icon {
    display: none !important;
}

/* Dark Mode: Sirf Moon Icon dikhega, Sun completely HIDE hoga */
[data-theme="dark"] .theme-switch .sun-icon {
    display: none !important;
}

[data-theme="dark"] .theme-switch .moon-icon {
    display: inline-block !important;
    color: #60a5fa !important;
    transform: rotate(-15deg);
}