/* =========================================================
   Nexotronixlabs — Design tokens
   Ported from the original Angular project's styles.css
   ========================================================= */
:root {
  --primary-color: #2b9dee;
  --primary-dark: #1e8dd6;
  --primary-light: rgba(43, 157, 238, 0.1);
  --surface-0: #ffffff;
  --surface-50: #f6f7f8;
  --surface-100: #f0f3f4;
  --surface-200: #dbe1e6;
  --surface-300: #c8d0d6;
  --surface-ground: #f6f7f8;
  --text-color: #111518;
  --text-color-secondary: #617989;
  --border-color: #e5e7eb;
  --focus-ring: 0 0 0 0.2rem rgba(43, 157, 238, 0.25);
  --transition-duration: 0.3s;
  --border-radius: 0.75rem;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Resets ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; color: var(--text-color); }
p { margin: 0 0 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-duration); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface-100); }
::-webkit-scrollbar-thumb { background: var(--surface-300); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* ===== Layout utilities ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }

/* ===== Buttons (PrimeNG-style, reimplemented) ===== */
.p-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  transition: all var(--transition-duration);
}
.p-button:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43, 157, 238, 0.35); }
.p-button:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.p-button-rounded { border-radius: 2rem; }
.p-button-lg { padding: 0.85rem 2.25rem; font-size: 1rem; }
.p-button-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.p-button-outlined { background: transparent; color: var(--primary-color); }
.p-button-outlined:hover { background: var(--primary-light); color: var(--primary-color); }
.p-button-text { background: transparent; border-color: transparent; color: var(--primary-color); padding: 0.5rem 0.75rem; }
.p-button-text:hover { background: var(--primary-light); color: var(--primary-color); transform: none; box-shadow: none; }

/* ===== Shared section styles ===== */
.eyebrow {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-title { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.75rem; }
.section-description { font-size: 1.125rem; color: var(--text-color-secondary); }

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-duration);
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text-color); }
.brand:hover { color: var(--text-color); }
.brand-logo { height: 30px; width: auto; }
.brand-logo-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
}
.brand-logo-badge img { height: 24px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: var(--text-color-secondary); font-weight: 600; font-size: 0.9375rem; position: relative; padding: 0.25rem 0; }
.nav-link:hover { color: var(--text-color); }
.nav-link.active { color: var(--primary-color); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--primary-color); border-radius: 2px;
}

.navbar-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--surface-100);
  border: none;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 6rem 2rem 5rem;
  background:
    radial-gradient(1200px 500px at 15% -10%, var(--primary-light), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(43,157,238,0.08), transparent 55%),
    var(--surface-0);
}
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.text-gradient {
  background: linear-gradient(90deg, var(--primary-color), #7cd4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { font-size: 1.15rem; color: var(--text-color-secondary); max-width: 640px; margin: 0 auto 2.25rem; }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number, .stat-suffix {
  font-size: 2.25rem; font-weight: 800; color: var(--text-color); display: inline-block;
}
.stat-label { margin-top: 0.35rem; font-size: 0.875rem; color: var(--text-color-secondary); }

/* =========================================================
   Services
   ========================================================= */
.services-section { max-width: 1280px; margin: 0 auto; padding: 6rem 2rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; width: 100%; }

.services-grid .service-card,
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  background: var(--surface-0);
  transition: all var(--transition-duration);
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(43, 157, 238, 0.15); border-color: transparent; }

.card-header { margin-bottom: 1.5rem; }
.icon-wrapper {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-duration);
}
.icon-wrapper i { font-size: 2rem; color: var(--primary-color); }
.service-card:hover .icon-wrapper { background: var(--primary-color); transform: scale(1.1); }
.service-card:hover .icon-wrapper i { color: #fff; }

.service-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-description { color: var(--text-color-secondary); margin-bottom: 1.5rem; }

.features-list { flex: 1; margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.feature-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: var(--text-color-secondary); }
.feature-check { color: var(--primary-color); font-size: 1rem; flex-shrink: 0; margin-top: 0.125rem; }

.learn-more-btn { align-self: flex-start; font-weight: 700; }

/* =========================================================
   About
   ========================================================= */
.about-section { padding: 6rem 0; background: var(--surface-50); }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.about-copy .section-title { text-align: left; }
.about-text { color: var(--text-color-secondary); font-size: 1.05rem; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.value-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  background: var(--surface-0);
  transition: all var(--transition-duration);
}
.value-card:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transform: translateY(-4px); }
.card-icon-wrapper {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.card-icon-wrapper i { font-size: 1.5rem; color: var(--primary-color); }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.card-description { color: var(--text-color-secondary); margin: 0; }

/* =========================================================
   Careers
   ========================================================= */
.careers-section { padding: 6rem 0; }

.job-card {
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  background: var(--surface-0);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all var(--transition-duration);
}
.job-card:hover { border-color: transparent; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transform: translateY(-2px); }

.job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.job-info { flex: 1; min-width: 250px; }
.job-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-color-secondary); }
.meta-item i { color: var(--primary-color); }
.job-description { color: var(--text-color-secondary); line-height: 1.7; margin-bottom: 1.5rem; }

.job-accordion { border-top: 1px solid var(--border-color); padding-top: 1rem; }
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-50);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-color);
  transition: all var(--transition-duration);
}
.accordion-toggle:hover { background: var(--surface-100); border-color: var(--primary-color); }
.accordion-toggle i { transition: transform var(--transition-duration); color: var(--primary-color); }
.accordion-toggle[aria-expanded="true"] {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.accordion-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.accordion-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--transition-duration); }
.accordion-content > * { overflow: hidden; }
.job-accordion.open .accordion-content { grid-template-rows: 1fr; }
.job-list { padding: 1rem 0 0; margin: 0; }
.job-list li { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--text-color-secondary); line-height: 1.6; }
.job-list li i { color: var(--primary-color); font-size: 1rem; flex-shrink: 0; margin-top: 0.25rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-section { padding: 6rem 0; background: var(--surface-50); }

.contact-info-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all var(--transition-duration);
}
.contact-info-item:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border-color: transparent; }
.contact-info-item i {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 0.75rem;
  font-size: 1.1rem;
}
.contact-info-item h4 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--text-color); }
.contact-info-item p { color: var(--text-color-secondary); margin: 0; word-break: break-word; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #0e1520; color: #cbd5e1; padding-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr 0.6fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand { color: #fff; }
.footer-tagline { color: #94a3b8; margin-top: 0.75rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 2rem 3rem; }
.footer-col h5 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-col a { display: block; color: #94a3b8; margin-bottom: 0.65rem; font-size: 0.9375rem; }
.footer-col a:hover { color: #fff; }

.footer-social { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: flex-end; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 0.6rem;
  color: #cbd5e1;
}
.footer-social a:hover { background: var(--primary-color); color: #fff; }

.footer-bottom { padding: 1.5rem 0; }
.footer-bottom p { margin: 0; text-align: center; color: #64748b; font-size: 0.875rem; }

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(43, 157, 238, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-duration);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* =========================================================
   Animations
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in-view { animation: fadeInUp 0.6s ease forwards; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-copy .section-title, .about-copy .eyebrow { text-align: center; }
  .about-copy { text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: var(--surface-0); flex-direction: column; align-items: stretch; padding: 1.5rem 2rem; gap: 0.5rem; border-bottom: 1px solid var(--border-color); transform: translateY(-130%); transition: transform var(--transition-duration); }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); }
  .nav-link.active::after { display: none; }
  .navbar-actions .p-button-rounded:not(.nav-toggle) { display: none; }
  .nav-toggle { display: flex; }

  .p-button { padding: 0.5rem 1rem; font-size: 0.875rem; }
  .services-section { padding: 3rem 1rem; }
  .about-section, .careers-section, .contact-section { padding: 3rem 0; }
  .values-grid { grid-template-columns: 1fr; }
  .job-header { flex-direction: column; }
  .job-header .p-button { align-self: flex-start; }
}
