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

:root {
  --bg-primary: #050b14;
  --bg-surface: #0a1324;
  --bg-card: #0f1c32;
  --bg-card-hover: #152542;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #38bdf8;
  --accent-amber: #f59e0b;
  --accent-cyan: #22d3ee;
  --accent-green: #34d399;
  --border-color: #1e293b;
  --border-light: rgba(56, 189, 248, 0.2);
  --btn-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 19, 36, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-light);
  padding: 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.badge-tag {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.1);
}

/* View switcher */
.page-view {
  display: none;
  flex: 1;
}

.page-view.active {
  display: block;
}

/* Home Section */
#page-home {
  padding: 8rem 1.5rem 10rem;
  background: radial-gradient(circle at 50% 30%, #0d2347 0%, var(--bg-primary) 70%);
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pill-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background: #ffffff;
  color: #050b14;
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-apply-trigger {
  background: var(--btn-gradient);
  color: #ffffff;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
}

.btn-apply-trigger:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Careers Page Layout */
.careers-header-section {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
}

.careers-header-content {
  max-width: 1240px;
  margin: 0 auto;
}

.careers-header-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.careers-header-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.search-bar-wrapper {
  display: flex;
  width: 100%;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.8rem 1.25rem;
  flex: 1;
  color: var(--text-muted);
}

.search-input-group input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  margin-left: 0.75rem;
}

/* Amazon Jobs Split Layout */
.jobs-layout-container {
  max-width: 1240px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 2rem;
  align-items: start;
}

.job-list-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.list-heading-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.active-badge {
  color: var(--accent-cyan);
  font-weight: 600;
}

.job-cards-list {
  display: flex;
  flex-direction: column;
}

.job-card {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.job-card:hover {
  background: var(--bg-card-hover);
}

.job-card.selected {
  background: var(--bg-card);
  border-left: 4px solid var(--accent-blue);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.job-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.badge-tag-fresher {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-tag-exp {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.job-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.job-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.page-nav-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--accent-blue);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-nav-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.15);
}

.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: var(--border-color);
  color: var(--text-muted);
}

.page-indicator {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Right Details Pane */
.job-details-pane {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.25rem;
}

.jd-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}

.jd-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.jd-title {
  font-size: 1.85rem;
  font-weight: 800;
}

.jd-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.location-tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.jd-body h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-main);
}

.jd-body p, .jd-body ul {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.jd-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Application Form - Hidden initially until Apply Now is clicked */
.application-box {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: none; /* hidden until toggled */
  animation: fadeIn 0.3s ease-in-out;
}

.application-box.visible {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.application-box h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.application-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.submit-btn {
  background: var(--btn-gradient);
  color: #ffffff;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.92;
}

/* Modal Confirmation */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.modal-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

.modal-card strong {
  color: var(--accent-cyan);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .jobs-layout-container {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}
