/* RESET & BASE
   ====================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  line-height: 1.6;
  background: #050810;
  color: #f7f9fc;
}

/* Light / Dark themes */
body.theme-dark {
  background: radial-gradient(circle at top left, #101626, #050810 50%, #020308 100%);
  color: #f7f9fc;
}

body.theme-light {
  background: #f5f7fb;
  color: #0f1828;
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-accent {
  background: linear-gradient(135deg, #0dc4ff, #f97316);
  color: #0b0f19;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  opacity: 0.8;
}

/* GRID HELPERS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* HEADER / NAV
   ====================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(90deg, rgba(8, 13, 26, 0.96), rgba(8, 13, 20, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.brand-subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #22d3ee;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #e5e7eb;
  position: relative;
  padding-bottom: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #f97316);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.18rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.theme-toggle {
  margin-left: 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* HERO
   ====================================================================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-image: url("/assets/images/hero-mock.png");
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.42), transparent 50%),
              radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.38), transparent 55%),
              rgba(5, 7, 16, 0.85);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  padding: 4.5rem 0 4rem;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3.3vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero-text h1 span {
  background: linear-gradient(120deg, #0ea5e9, #22c55e, #f97316);
  -webkit-background-clip: text;  /* For Chrome, Safari */
  background-clip: text;          /* Standard property */
  -webkit-text-fill-color: transparent; /* Required for Safari */
  color: transparent;
}


.hero-text p {
  max-width: 540px;
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-logo-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-logo-card img {
  display: block;
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
}

.hero-logo-card p {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
}

/* PAGE HERO */
.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%);
}

.page-hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

/* CARDS
   ====================================================================== */
.card-grid {
  display: grid;
  gap: 2rem;
}

.card-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.03), transparent 60%);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.6);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 24px 50px rgba(8, 47, 73, 0.9);
}

.card-img-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.card-img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: transform 0.2s ease-out;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

/* circle variant for team */
.card-img-wrapper.circle {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 999px;
}

/* Buttons
   ====================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e, #f97316);
  color: #0b1120;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: inherit;
}

.btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn.full-width {
  width: 100%;
}

/* TEXT / LISTS
   ====================================================================== */
.stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 60%);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.stat-number {
  font-weight: 700;
  font-size: 1.4rem;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.feature-list .bullet {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-top: 0.35rem;
  background: linear-gradient(135deg, #0ea5e9, #f97316);
}

.testimonial-card {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.25), transparent 60%);
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
}

.quote {
  font-style: italic;
  margin-bottom: 1rem;
}

.quote-author {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.filter-btn {
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #f97316);
  border-color: transparent;
  color: #0b1120;
}

/* JOBS / CONTACT */
.job-card .job-meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.75rem;
}

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.tag-list li {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.75rem;
}

/* FORMS
   ====================================================================== */
form {
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

input,
textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 0.6rem 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  color: inherit;
  font: inherit;
}

body.theme-light input,
body.theme-light textarea {
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.45);
}

.error-message {
  display: block;
  font-size: 0.75rem;
  color: #f97316;
  min-height: 0.9rem;
}

.form-success {
  font-size: 0.86rem;
  margin-top: 0.75rem;
}

/* CONTACT */
.contact-layout {
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.map-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* TIMELINE
   ====================================================================== */
.timeline {
  border-left: 2px solid rgba(148, 163, 184, 0.5);
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.3rem;
}

.timeline-year {
  font-weight: 600;
  margin-bottom: 0.2rem;
  display: inline-block;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #f97316);
}

/* MODAL
   ====================================================================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

.modal-dialog {
  position: relative;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 60%),
              rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.9);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: inherit;
}

.modal-image {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

/* FOOTER
   ====================================================================== */
.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-sub {
  opacity: 0.8;
  font-size: 0.82rem;
}

/* RESPONSIVE
   ====================================================================== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    gap: 0.75rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 64px;
    flex-direction: column;
    background: rgba(8, 13, 20, 0.98);
    padding: 0.75rem 1.25rem 1rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease-out, opacity 0.16s ease-out;
  }

  .main-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding-top: 3.25rem;
  }

  .stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .stats-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-text h1 {
    font-size: 2rem;
  }
}
/* =========================================
   MODAL THEME FIX – DARK + LIGHT MODE
========================================= */

/* ---------- DARK MODE (Default) ---------- */
.modal-dialog {
  background: linear-gradient(180deg, #0f172a, #020617);
}

.modal label {
  color: #e5e7eb;
}

/* ---------- LIGHT MODE OVERRIDE ---------- */
body.theme-light .modal-dialog {
  background: #ffffff;
  border: 1px solid #d1d5db;
}

body.theme-light .modal h2 {
  color: #0f172a;
}

body.theme-light .modal label {
  color: #111827;
  font-weight: 600;
}

body.theme-light .modal input,
body.theme-light .modal textarea {
  background: #f9fafb;
  color: #111827;
  border: 1px solid #cbd5f5;
}

body.theme-light .modal input::placeholder,
body.theme-light .modal textarea::placeholder {
  color: #6b7280;
}

body.theme-light .modal .btn.primary {
  color: #ffffff;
}
/* =========================================
   HERO LIGHT MODE VISIBILITY FIX
========================================= */

/* Fix hero background in LIGHT MODE */
body.theme-light .hero {
  background-image: none; /* remove dark hero image */
  background: linear-gradient(120deg, #e8f2ff, #ffffff, #fff7ed);
}

/* Fix overlay so it doesn’t darken in light mode */
body.theme-light .hero-overlay {
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.92)
  );
}

/* Hero heading in light mode */
body.theme-light .hero-text h1 {
  color: #0f172a;
}

/* Hero paragraph in light mode */
body.theme-light .hero-text p {
  color: #334155;
  opacity: 1;
}

/* Gradient text visibility in light mode */
body.theme-light .hero-text h1 span {
  background: linear-gradient(120deg, #0284c7, #16a34a, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Right logo card in light mode */
body.theme-light .hero-logo-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

body.theme-light .hero-logo-card p {
  color: #0f172a;
}

/* Buttons contrast in light mode */
body.theme-light .btn.ghost {
  color: #0f172a;
  border-color: #94a3b8;
}

body.theme-light .btn.primary {
  color: #ffffff;
}
/* =========================================
   PERFECT UNIFORM APPLY BUTTON ALIGNMENT
========================================= */

/* Force equal height rows */
#jobsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  grid-auto-rows: 1fr;          /*  THIS IS THE KEY FIX */
  align-items: stretch;
}

/* Make each job card fill full row height */
.job-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push Apply button to bottom */
.job-card .apply-btn {
  margin-top: auto;
}
/* =========================================
   FINAL FIX – PERFECT APPLY BUTTON ALIGNMENT
========================================= */

/* Force uniform card height */
.job-card {
  min-height: 420px;      /* 🔥 Key visual fix */
  display: flex;
  flex-direction: column;
}

/* Push Apply button to absolute bottom */
.job-card .apply-btn {
  margin-top: auto;
}

/* Ensure grid does not auto-shrink rows */
#jobsGrid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}
/* =========================================
   CONTACT INFO WITH ICONS
========================================= */

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.2rem;
}

.icon-list i {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e, #f97316);
  color: #0b1120;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-list a {
  color: inherit;
  text-decoration: none;
}

.icon-list a:hover {
  text-decoration: underline;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 1rem;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #22c55e, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1120;
  font-size: 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}
/* ================= FOOTER ================= */

.site-footer {
  padding: 50px 0 30px;
  border-top: 1px solid rgba(148,163,184,0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  width: 52px;
  margin-bottom: 10px;
}

.footer-links-box ul,
.footer-contact-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-box li,
.footer-contact-box li {
  margin-bottom: 12px;
}

.footer-links-box a,
.footer-contact-box a,
.legal-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links-box a:hover,
.footer-contact-box a:hover,
.legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ✅ CONTACT ICONS */
.icon-list li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.icon-list i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg,#0ea5e9,#22c55e,#f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0b1120;
}

/* ✅ SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg,#0ea5e9,#22c55e,#f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-icons a i {
  font-size: 18px;
  color: #0b1120;
}

.social-icons a:hover i {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(148,163,184,0.2);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links {
  display: flex;
  gap: 20px;
}
