:root {
  --polosys-navy: #000c26;
  --polosys-blue: #00609b;
  --polosys-ochre: #a96f18;
  --polosys-purple: #822981;
  --polosys-white: #ffffff;
  --polosys-light-gray: #f8f8f8;
  --polosys-font: 'Inter', 'Segoe UI', Roboto, sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glow-blue: #00d2ff;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--polosys-font) !important;
  background-color: #ffffff;
  color: var(--polosys-navy);
  line-height: 1.6;
}

/* --- Shared Layout Containers --- */
.section-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Institutional Navigation Framework (Synced with Index) --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  padding: 25px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* On desktop, we hide logo and nav-links in scrolled state for a compact toolbar view */
@media (min-width: 1025px) {
  .main-header.scrolled .logo,
  .main-header.scrolled .nav-links {
    display: none !important;
  }
  
  .main-header.scrolled .header-container {
    justify-content: flex-end !important;
  }
  
  .main-header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 15px 40px !important;
    transition: all 0.3s ease;
  }
}

/* On mobile, we ALWAYS want a complete navbar (Logo + Right Tools) */
@media (max-width: 1024px) {
  .main-header.scrolled {
    background: white !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    padding: 10px 0 !important;
  }

  .main-header.scrolled .logo {
    display: block !important;
  }

  .main-header.scrolled .logo img {
    height: 35px !important;
  }

  .main-header.scrolled .header-container {
    justify-content: space-between !important;
  }
}


.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo img {
  height: 45px;
  transition: height 0.3s ease;
}

.desktop-nav { display: block; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--polosys-navy) !important;
  min-width: 260px;
  padding: 20px 0;
  display: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border-top: 3px solid var(--polosys-blue);
}

.nav-links li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: white !important;
  padding: 12px 25px;
  font-size: 13px !important;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-menu li a:hover {
  background: var(--polosys-blue) !important;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 25px;
}

.tool-icon {
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.hamburger {
  width: 28px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: white;
  transition: all 0.3s ease;
}

/* Language Switcher */
.lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-right: 15px;
}

.lang-switch {
  color: white !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.4s ease;
}

.lang-switch:hover {
  opacity: 0.7;
}

.lang-switcher span {
  color: white;
  opacity: 0.3;
}

/* Intelligent Icon Flip for Scrolled State / Light Sections */
.main-header.scrolled .tool-icon,
.main-header.scrolled .lang-switch,
.main-header.scrolled .lang-switcher span,
.main-header.over-light-section .tool-icon,
.main-header.over-light-section .lang-switch,
.main-header.over-light-section .lang-switcher span {
  color: var(--polosys-navy) !important;
}

.main-header.scrolled .hamburger span,
.main-header.over-light-section .hamburger span {
  background: var(--polosys-navy) !important;
}

.brochure-dropdown {
  right: 0;
  left: auto !important;
}

/* Sidebar Menu Styles */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 12, 38, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1001;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: #ffffff;
  z-index: 1002;
  box-shadow: -10px 0 50px rgba(0,0,0,0.1);
  transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
  overflow-y: auto;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 30px;
  cursor: pointer;
  color: var(--polosys-navy);
}

.sidebar-logo {
  height: 40px;
  margin-bottom: 50px;
}

.sidebar-links {
  list-style: none;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 15px;
}

.sidebar-links li a {
  font-size: 20px;
  font-weight: 700;
  color: var(--polosys-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-links li a:hover {
  color: var(--polosys-blue);
}

.side-sub-links {
  display: none;
  list-style: none;
  padding: 15px 0 0 20px;
}

.side-sub-links li a {
  font-size: 16px;
  font-weight: 500;
  color: #64748b !important;
}

/* --- Career Hero (Video) --- */
.careers-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.careers-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  padding: 0 20px;
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -3px;
  margin-bottom: 25px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.hero-title .highlight {
  color: var(--polosys-blue);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}


/* --- Job Openings Section --- */
.careers-section {
  padding: 100px 0;
  background: #f8fafc;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--polosys-navy);
  margin-bottom: 60px;
  letter-spacing: -1.5px;
}

.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.job-terminal {
  background: white;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 40px;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.job-terminal:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -10px rgba(0,12,38,0.08);
  border-color: var(--polosys-blue);
}

.job-main h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--polosys-navy);
}

.job-tag {
  font-size: 13px;
  color: var(--polosys-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.job-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--polosys-blue);
}

.info-content .label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-content .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--polosys-navy);
}

.apl-btn {
  background: var(--polosys-navy);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.apl-btn:hover {
  background: var(--polosys-blue);
  transform: scale(1.05);
  color: white;
}

.view-more-trigger {
  display: block;
  margin-top: 20px;
  color: var(--polosys-blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

/* Job Details (Hidden) */
.job-expanded {
  grid-column: 1 / -1;
  border-top: 1px solid #f1f5f9;
  margin-top: 30px;
  padding-top: 30px;
  display: none;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.details-grid h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-grid ul {
  list-style: none;
  padding: 0;
}

.details-grid ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 14px;
}

.details-grid ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--polosys-blue);
}

/* --- Resume Section --- */
.resume-section {
  padding: 120px 0;
  background: white;
}

.resume-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: center;
}

.resume-visual img {
  width: 100%;
  border-radius: 32px;
}

.form-terminal {
  background: #f8fafc;
  padding: 60px;
  border-radius: 40px;
  border: 1px solid #e2e8f0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field-group { margin-bottom: 25px; }

.input-style {
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.input-style:focus {
  border-color: var(--polosys-blue);
  box-shadow: 0 0 0 4px rgba(0, 96, 155, 0.1);
  outline: none;
}

.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  background: white;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--polosys-blue);
  background: #eff6ff;
}

.submit-btn {
  width: 100%;
  padding: 20px;
  background: var(--polosys-blue);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}

/* --- Sidebar Menu (Synced) --- */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: white;
  z-index: 2000;
  padding: 40px;
  box-shadow: -10px 0 50px rgba(0,0,0,0.1);
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}

.sidebar-menu.active { right: 0; }

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,12,38,0.8);
  backdrop-filter: blur(5px);
  z-index: 1500;
  display: none;
}

/* --- Modern Compact Footer --- */
.footer {
  background: #000a1f; /* Deeper midnight background */
  padding: 60px 0 30px;
  color: white;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1); /* Logo in white for footer */
  opacity: 0.9;
}

.brand-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--polosys-blue);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--polosys-blue);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.country-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.3);
}

/* --- Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .job-terminal { grid-template-columns: 1fr; gap: 20px; }
  .resume-container { grid-template-columns: 1fr; gap: 60px; }
  .desktop-nav { display: none !important; }
  .section-wrapper { padding: 0 20px; }
  .resume-section { padding: 80px 0; }
  .form-terminal { padding: 40px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .submit-btn { padding: 16px; font-size: 14px; }
  .resume-section { padding: 60px 0; }
  .form-terminal { padding: 25px; border-radius: 20px; }
  .upload-area { padding: 25px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
