/* 
File: css/style.css
Version: 3.0 (NeuraHelix Professional)
Description: Core stylesheet for the NeuraHelix corporate website. 
Reflects a premium, technical, and established engineering organization.
*/

:root {
  /* Core Brand Palette */
  --bg-dark: #131314;     /* Default background: Near-black for high contrast */
  --bg-panel: #1e1f20;    /* Paper background: For cards, sidebars, elevated surfaces */
  --accent: #10B981;      /* Primary accent: Emerald green for CTAs, highlights */
  --text-main: #FFFFFF;   /* Primary text: Pure white for readability */
  --text-muted: #9E9E9E;  /* Secondary text: Gray for subtitles, metadata */
  --border: #2c2d2e;      /* Divider: Subtle border color */
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  
  /* Spacing */
  --container-width: 1100px;
  --section-padding: 80px 0;
}

/* --- Global Resets & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
}


/* --- Reusable Components --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-container {
    max-width: 720px;
}

.text-container-wide {
    max-width: 900px;
}

.content-section {
  padding: var(--section-padding);
}

.bg-panel {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  opacity: 1;
}

.cta-button-secondary {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button-secondary:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
    opacity: 1;
}


/* --- Header & Navigation --- */
.navbar {
  background: rgba(19, 19, 20, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.5em;
  color: var(--text-main);
  letter-spacing: 1px;
}
.logo:hover { opacity: 1; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--text-main);
  border-bottom-color: var(--accent);
  opacity: 1;
}

.cta-button-nav {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}
.cta-button-nav:hover, .cta-button-nav.active {
    color: var(--bg-dark);
    border-bottom-color: transparent;
    transform: translateY(-1px);
}


/* --- Hero Section --- */
.hero {
  height: 85vh;
  position: relative;
  background: url('https://cdn.neurahelix.com/website/image/neurahelix_bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(19, 19, 20, 0.5) 0%, rgba(19, 19, 20, 1) 90%);
}

.hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 30px auto;
}


/* --- Page Specific Headers --- */
.page-header {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-title {
    font-size: 3rem;
}
.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 10px auto 0 auto;
}


/* --- Cards --- */
.section-title {
    font-size: 2.2rem;
    text-align: center;
}
.section-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    text-align: center;
    margin: 10px auto 50px auto;
}

.cards-3-col, .cards-2-col, .cards-2-col-condensed {
  display: grid;
  gap: 30px;
  margin-top: 50px;
}
.cards-3-col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cards-2-col { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.cards-2-col-condensed { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }


.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1); 
}

.card h3 {
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
}

.card-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
    background: var(--accent);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}


/* --- Split & Feature Layouts --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split-layout.reverse {
    grid-template-columns: 1fr 1fr;
}
.split-layout.reverse .split-content { order: 2; }
.split-layout.reverse .split-graphic { order: 1; }

.split-graphic img, .feature-graphic img {
    width: 100%;
    border-radius: 12px;
    opacity: 0.9;
    border: 1px solid var(--border);
}
.split-content .section-title, .feature-text .section-title { text-align: left; }
.split-content h3 { margin-top: 2rem; }
.split-content ul { list-style: none; padding-left: 0; }
.split-content li { padding-left: 25px; position: relative; }
.split-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.feature-section { border-top: 1px solid var(--border); }
.feature-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 60px; align-items: center;}


/* --- Industries Page --- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.industry-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}
.industry-card h3 { color: var(--text-main); }


/* --- Case Studies Page --- */
.case-study-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}
.case-study-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(0,0,0,0.2);
}
.case-study-logo {
    height: 50px;
    width: auto;
}
.case-study-header h2 { font-size: 1.8rem; margin: 0; }
.case-study-header p { margin: 0; color: var(--text-muted); }
.case-study-body { padding: 30px; }
.case-study-section h3 { font-size: 1.3rem; margin-bottom: 1rem; border-left: 3px solid var(--accent); padding-left: 10px;}
.case-study-metrics { margin: 40px 0; }
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}
.metric-item {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}
.metric-label {
    color: var(--text-muted);
}
.testimonial {
    background: var(--bg-dark);
    border-left: 4px solid var(--accent);
    padding: 25px;
    border-radius: 8px;
    font-style: italic;
}
.testimonial p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}
.testimonial footer {
    font-style: normal;
    font-weight: 600;
    color: var(--text-muted);
}
.placeholder-card {
    border: 2px dashed var(--border);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    color: var(--text-muted);
}
.placeholder-card h3 { color: var(--text-main); }


/* --- Careers Page --- */
.job-listing {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}
.job-listing h3 { margin: 0; color: var(--text-main); }


/* --- Contact Page --- */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.contact-form .cta-button {
    width: 100%;
    font-size: 1.1rem;
}
.contact-info h3 { color: var(--text-main); }
.contact-info p { color: var(--text-muted); }


/* --- Legal Pages --- */
.legal-text h2 { margin-top: 2rem; font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.legal-text h2:first-of-type { margin-top: 0; }


/* --- Footer --- */
footer {
  background: var(--bg-dark); 
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: 0.9em;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--text-muted);
}


/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .split-layout, .split-layout.reverse, .contact-container {
        grid-template-columns: 1fr;
    }
    .split-layout.reverse .split-content, .split-layout.reverse .split-graphic {
        order: initial;
    }
    .feature-graphic {
        margin-top: 40px;
    }
    .nav-menu {
        display: none; /* Simplification for this static build */
    }
}
@media (max-width: 768px) {
    .hero-title, .page-title { font-size: 2.5rem; }
    .hero-subtitle, .page-subtitle { font-size: 1.1rem; }
    .cards-2-col { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
}