/*
Theme Name: NeuralOptix Theme
Theme URI: http://neuraloptix.com/
Author: NeuralOptix Team
Author URI: http://neuraloptix.com/
Description: A high-performance, physics-informed design for SmartGlass Display.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neuraloptix
*/

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

:root {
  --bg:          #05070C;
  --panel:       rgba(12, 17, 28, 0.7);
  --panel-solid: #0C111C;
  --line:        rgba(29, 39, 51, 0.5);
  --line-lo:     rgba(29, 39, 51, 0.35);
  --panel2:      rgba(12, 17, 28, 0.9);
  --line-glow:   rgba(69, 203, 242, 0.3);
  --ink:         #E9EEF6;
  --muted:       #8B98AC;
  --mist:        #B8C4D6;
  --accent:      #45CBF2; /* Cyan */
  --accent-dark: #2F6FE0; /* Blue */
  --cyan:        var(--accent);
  --blue:        var(--accent-dark);
  --r:           8px; /* Standardized radius */
  --section-gap: 120px;
}

html { min-height: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Aptos', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#primary { flex: 1 0 auto; width: 100%; }
main#primary > :not(.alignfull) {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 5%;
  padding-right: 5%;
}
main#primary > .wp-block-group:not(.alignfull) { padding-top: 100px; padding-bottom: 100px; }
body.neuraloptix-careers-page main#primary,
body.page-contact main#primary { padding-top: 5%; padding-left: 5%; }

body.neuraloptix-careers-page main#primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}
body.neuraloptix-careers-page main#primary::before,
body.neuraloptix-careers-page main#primary::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.neuraloptix-careers-page main#primary::before {
  z-index: -2;
  background-image: url('assets/cr1.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: careers-background-slideshow 18s infinite;
}
body.neuraloptix-careers-page main#primary::after {
  z-index: -1;
  background: rgba(5, 7, 12, 0.58);
}
body.neuraloptix-careers-page main#primary > * {
  position: relative;
  z-index: 1;
}
body.neuraloptix-home-page main#primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}
body.neuraloptix-home-page main#primary::before,
body.neuraloptix-home-page main#primary::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body.neuraloptix-home-page main#primary::before {
  z-index: -2;
  background-image: url('assets/ar1.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: home-background-slideshow 30s infinite;
}
body.neuraloptix-home-page main#primary::after {
  z-index: -1;
  background: rgba(5, 7, 12, 0.58);
}
body.neuraloptix-home-page main#primary > * {
  position: relative;
  z-index: 1;
}
@keyframes home-background-slideshow {
  0%, 18% { background-image: url('assets/ar1.jpg'); }
  20%, 38% { background-image: url('assets/cr2.jpg'); }
  40%, 58% { background-image: url('assets/ar2.jpg'); }
  60%, 78% { background-image: url('assets/cr3.jpg'); }
  80%, 100% { background-image: url('assets/comp2.jpg'); }
}
@keyframes careers-background-slideshow {
  0%, 30% { background-image: url('assets/cr1.jpg'); }
  33%, 63% { background-image: url('assets/ai1.jpg'); }
  66%, 100% { background-image: url('assets/comp1.jpg'); }
}
@media (prefers-reduced-motion: reduce) {
  body.neuraloptix-careers-page main#primary::before {
    animation: none;
    background-image: url('assets/cr1.jpg');
  }
}

/* ── DYNAMIC ENTRANCES ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

h1,h2,h3,h4 {
  font-family: 'Aptos', 'Aptos Display', Arial, sans-serif;
  line-height: 1.1;
  font-weight: 600;
}

.mono { font-family: 'Aptos Mono', 'Consolas', monospace; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85em; }

.node { 
  display: inline-block; width: 6px; height: 6px; border-radius: 50%; 
  background: var(--accent); box-shadow: 0 0 12px var(--accent); 
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.5; } }

/* ── AMBIENT LIGHT PATH ── */
.beam {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--line);
  overflow: hidden;
}
.beam::after {
  content: '';
  position: absolute; top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-dark), transparent);
  animation: travel 4s linear infinite;
}
@keyframes travel { to { left: 130%; } }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 5%;
  background: rgba(5,7,12,0.8);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: color .2s;
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

/* ── CARDS (Unified Logic) ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 64px; }
.card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 48px 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  background: rgba(12, 17, 28, 0.9);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(69, 203, 242, 0.1);
}

.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--bg);
  padding: 10px 24px; border-radius: var(--r);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  transition: background .2s, transform .15s;
}
.nav-social:hover { color: var(--ink) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(27, 111, 176, 0.16), rgba(65, 189, 235, 0.05) 40%, transparent 70%); /* var(--ocean) and var(--sky) */
  pointer-events: none;
}
.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--cyan); margin-bottom: 28px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-family: 'Aptos Mono', 'Consolas', monospace;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 600; max-width: 1000px;
  position: relative; letter-spacing: -0.02em;
  margin: 20px auto;
}
.hero h1 em { color: var(--blue); font-style: normal; }

.hero-sub {
  color: var(--cyan); font-size: clamp(16px,1.6vw,18px);
  max-width: 560px; margin: 26px auto 44px; line-height: 1.8;
  position: relative; font-weight: 300;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; position: relative; }
.btn-primary {
  background: var(--blue); color: #fff;
  padding: 15px 32px; border-radius: var(--r);
  display: inline-block;
  font-weight: 500; font-size: 14px; letter-spacing: 0.02em; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--cyan); color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(65, 189, 235, 0.22);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  padding: 15px 32px; border-radius: var(--r);
  border: 1px solid var(--line);
  font-weight: 500; font-size: 14px; letter-spacing: 0.02em; text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }

.hero-specs {
  display: flex; gap: 56px; margin-top: 90px; position: relative;
  padding-top: 34px; flex-wrap: wrap; justify-content: center;
}
.wp-block-columns.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.wp-block-columns.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.wp-block-column.card,
.wp-block-column.step {
  margin: 0;
}
.hero-specs > div { text-align: center; }
.spec-num {
  font-family: 'Aptos', 'Aptos Display', Arial, sans-serif;
  font-size: 32px; font-weight: 600; color: var(--ink);
  line-height: 1;
}
.spec-label { color: var(--muted); font-size: 12px; margin-top: 8px; letter-spacing: 0.02em; font-family: 'Aptos Mono', 'Consolas', monospace; }

section { padding: 100px 5%; text-align: center; }
.section-label {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 24px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
  font-family: 'Aptos Mono', 'Consolas', monospace;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; max-width: 800px;
  margin: 0 auto;
}
.section-title em { color: var(--cyan); font-style: normal; }
.section-sub { color: var(--muted); margin: 16px auto 0; max-width: 700px; line-height: 1.8; font-weight: 300; }
.section-header { margin-bottom: 64px; }

/* ── PROCESS ── */
.process { background: var(--panel); border-top: 1px solid var(--line-lo); border-bottom: 1px solid var(--line-lo); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: 20px; }
.step {
  padding: 0 36px; border-right: 1px solid var(--line-lo);
  position: relative; text-align: center;
}
.step:last-child { border-right: none; }
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-mark { color: var(--cyan); font-size: 20px; letter-spacing: 0.1em; margin-bottom: 18px; font-weight: 500; font-family: 'Aptos Mono', 'Consolas', monospace; }
.step h3 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.75; font-weight: 300; }

/* ── CAPABILITIES ── */
.capabilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line-lo); border: 1px solid var(--line-lo); }
.cap-card {
  background: var(--bg); padding: 48px 40px;
  position: relative; overflow: hidden;
  transition: background .25s;
  text-align: center;
}
.cap-card:hover { background: var(--panel2); }
.cap-mark {
  font-family: 'Aptos Mono', 'Consolas', monospace;
  font-size: 16px; color: var(--cyan); margin-bottom: 26px;
  letter-spacing: 0.06em;
}
.cap-card h3 { font-size: 23px; margin-bottom: 14px; font-weight: 600; }
.cap-card p { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 26px; font-weight: 300; }
.cap-features { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cap-features li {
  color: var(--mist); font-size: 13.5px;
  display: flex; align-items: flex-start; gap: 10px;
}
.cap-features li::before { content: '-'; color: var(--cyan); font-weight: 500; flex-shrink: 0; }
.spec-chip {
  display: block; margin: 30px auto 0;
  border-top: 1px solid var(--line);
  color: var(--muted); padding-top: 18px; font-size: 12.5px; font-weight: 400;
  font-family: 'Aptos Mono', 'Consolas', monospace;
}

/* ── WHY ── */
.why { background: var(--panel); border-top: 1px solid var(--line-lo); border-bottom: 1px solid var(--line-lo); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; margin-top: 64px; background: var(--line-lo); border: 1px solid var(--line-lo); }
.why-item { padding: 38px; background: var(--bg); text-align: center; }
.why-mark { font-family: 'Aptos Mono', 'Consolas', monospace; color: var(--cyan); font-size: 12px; margin-bottom: 18px; letter-spacing: 0.05em; }
.why-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.why-item p { color: var(--muted); font-size: 14px; line-height: 1.75; font-weight: 300; }

/* ── TEAM ── */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px; margin-top: 64px; background: var(--line-lo); border: 1px solid var(--line-lo);
  max-width: 920px; margin-left: auto; margin-right: auto;
}
.team-card { background: var(--bg); padding: 3%; text-align: center; }
.team-avatar {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-family: 'Aptos', 'Aptos Display', Arial, sans-serif; font-weight: 600; font-size: 20px; color: var(--bg);
}
.team-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.team-role { font-family: 'Aptos Mono', 'Consolas', monospace; font-size: 12px; color: var(--cyan); letter-spacing: 0.06em; margin-bottom: 22px; }
.team-card p { color: var(--muted); font-size: 14px; line-height: 1.8; font-weight: 300; margin-bottom: 22px; }
.team-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.application-note { color: var(--cyan); margin-top: 30px; }
.team-tag {
  font-family: 'Aptos Mono', 'Consolas', monospace; font-size: 11px; color: var(--mist);
  border: 1px solid var(--line); border-radius: var(--r); padding: 5px 10px;
}

/* ── CONTACT ── */
.contact-inner {
  max-width: 640px; margin: 0 auto; text-align: center;
}
.contact-inner .section-label { justify-content: center; }
.contact-inner .section-title { margin: 0 auto 16px; }
.contact-inner .section-sub { margin: 0 auto 50px; }
.contact-form { text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; font-family: 'Aptos Mono', 'Consolas', monospace; }
.form-input, .form-select, .form-textarea {
  background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--r); padding: 13px 16px; font-size: 14px;
  font-family: 'Aptos', Arial, sans-serif;
  transition: border-color .2s;
  width: 100%;
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: #56607A; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(65, 189, 235, 0.1);
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238496A9' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-select option { background: var(--panel); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-full { margin-bottom: 16px; }
.form-submit {
  width: 100%; padding: 16px; background: var(--blue); color: #fff;
  border: none; border-radius: var(--r); font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer; font-family: 'Aptos', Arial, sans-serif;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 8px;
}
.form-submit:hover {
  background: var(--cyan); color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(65, 189, 235, 0.18);
}
.form-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; font-family: 'Aptos Mono', 'Consolas', monospace; }
.success-msg {
  display: none; text-align: center; padding: 50px 40px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink);
}
.success-msg h3 { font-size: 24px; margin-bottom: 12px; color: var(--cyan); }
.success-msg p { color: var(--muted); font-size: 14px; font-weight: 300; }

/* ── FOOTER ── */
footer {
  background: var(--panel); border-top: 1px solid var(--line-lo);
  padding: 18px 5% 12px; display: flex; flex-direction: column; justify-content: space-between;
  align-items: stretch; min-height: 0; margin-top: auto; gap: 12px;
}
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; }
.footer-logo { display: flex; padding-bottom: 12px; padding-top: 10px; align-items: center; gap: 10px; }
.footer-logo img { height: 72px; width: auto; }
.footer-social { color: var(--muted); display: inline-flex; padding-top: 16px; align-items: center; transition: color .2s; }
.footer-social:hover { color: var(--ink); }
.footer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-meta address,
.footer-meta p { color: var(--muted); font-size: 13px; font-weight: 300; font-style: normal; }
.footer-meta p { margin: 0; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  nav .nav-links { display: none; }
  nav .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 5%;
    background: rgba(5, 7, 12, 0.98);
    border-bottom: 1px solid var(--line);
  }
  nav .nav-links.is-open li { width: 100%; }
  nav .nav-links.is-open a { display: block; padding: 12px 0; }
  .step { border-right: none; border-bottom: 1px solid var(--line-lo); padding: 0 0 32px 0 !important; margin-bottom: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  footer { min-height: 0; padding: 16px 5% 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .beam::after { display: none; }
}
