/* OXM Engine — Engineering Consulting Website */

:root {
  --bg: #0b0e1a;
  --bg-alt: #111629;
  --bg-card: #141b33;
  --primary: #0891b2;
  --primary-light: #22d3ee;
  --accent: #d97706;
  --accent-light: #fbbf24;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e2954;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(11, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; height: 70px;
}

.logo {
  font-size: 1.5rem; font-weight: 700; text-decoration: none;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.3s; position: relative;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary-light); }

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); transition: 0.3s;
}

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background: radial-gradient(ellipse at 20% 50%, rgba(8, 145, 178, 0.08), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(217, 119, 6, 0.06), transparent 50%);
}

.hero-content { max-width: 820px; }

.hero h1 {
  font-size: 3.2rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 28px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 32px; line-height: 1.8;
}

.trust-row {
  display: flex; gap: 32px; margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.95rem;
}

.trust-icon { font-size: 1.3rem; color: var(--accent); }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; padding: 14px 36px; border-radius: 6px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.25);
}

/* Sections common */
section { padding: 90px 0; }

.section-title {
  text-align: center; font-size: 2.2rem; font-weight: 700;
  margin-bottom: 60px;
}

.section-title::after {
  content: ''; display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 12px auto 0; border-radius: 2px;
}

/* Stats */
.stats { background: var(--bg-alt); }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center; padding: 28px 16px;
  background: var(--bg-card); border-radius: 10px;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-4px); }

.stat-number {
  display: block; font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* Services */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card); border-radius: 12px;
  padding: 32px 28px; border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.service-icon { font-size: 2.2rem; margin-bottom: 16px; }

.service-card h3 {
  font-size: 1.2rem; margin-bottom: 14px;
  color: var(--primary-light);
}

.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

.read-more {
  display: inline-block; margin-top: 14px;
  color: var(--accent); text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
}

.read-more:hover { color: var(--accent-light); }

/* About */
.about { background: var(--bg-alt); }

.about-content {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 40px; align-items: start;
}

.about-text p {
  color: var(--text-muted); margin-bottom: 20px;
  font-size: 1rem; line-height: 1.8;
}

.info-card {
  background: var(--bg-card); border-radius: 12px;
  padding: 28px; border: 1px solid var(--border);
}

.info-card h4 {
  font-size: 1.1rem; margin-bottom: 18px;
  color: var(--accent);
}

.info-card table { width: 100%; border-collapse: collapse; }

.info-card td {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.info-card td:first-child {
  color: var(--text-muted); width: 40%;
  font-weight: 600;
}

.info-card tr:last-child td { border-bottom: none; }

/* Process */
.process-steps {
  display: grid; gap: 28px;
  max-width: 800px; margin: 0 auto;
}

.step {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 24px; padding: 24px;
  background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.step:hover { border-color: var(--accent); }

.step-num {
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary-light); }

.step p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* Industries */
.industries { background: var(--bg-alt); }

.industries-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.ind-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 24px 12px;
  background: var(--bg-card); border-radius: 10px;
  border: 1px solid var(--border);
  text-align: center; font-size: 0.9rem; font-weight: 500;
  transition: transform 0.3s, border-color 0.3s;
  color: var(--text);
}

.ind-item:hover { transform: translateY(-4px); border-color: var(--primary); }

.ind-icon { font-size: 2rem; }

/* Testimonials */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card); border-radius: 12px;
  padding: 32px; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}

.quote-icon {
  font-size: 3rem; color: var(--accent);
  line-height: 1; margin-bottom: 12px;
  opacity: 0.5;
}

.quote-text {
  font-size: 0.92rem; color: var(--text-muted);
  line-height: 1.8; flex: 1; font-style: italic;
}

.client-info {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

.client-info strong { display: block; font-size: 0.95rem; color: var(--primary-light); }

.client-info span { font-size: 0.83rem; color: var(--text-muted); }

/* CTA */
.cta {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(8, 145, 178, 0.08), transparent 70%);
}

.cta h2 { font-size: 2.2rem; margin-bottom: 20px; }

.cta p { color: var(--text-muted); max-width: 640px; margin: 0 auto 32px; font-size: 1.05rem; }

/* Footer */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem; margin-bottom: 16px;
  color: var(--primary-light);
}

.footer-col p, .footer-col li {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.8;
}

.footer-col ul { list-style: none; }

.footer-col a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0; text-align: center;
}

.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* Page Hero (subpages) */
.page-hero {
  padding: 120px 0 60px;
  background: radial-gradient(ellipse at 30% 50%, rgba(8, 145, 178, 0.06), transparent 60%);
  text-align: center;
}

.page-hero h1 { font-size: 2.6rem; margin-bottom: 12px; }

.page-hero p { color: var(--text-muted); font-size: 1.1rem; }

.page-content { padding: 60px 0 90px; }

/* Subpage service detail */
.service-detail {
  margin-bottom: 48px; padding: 32px;
  background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border);
}

.service-detail h2 {
  font-size: 1.5rem; color: var(--primary-light);
  margin-bottom: 16px;
}

.service-detail p {
  color: var(--text-muted); margin-bottom: 14px;
  line-height: 1.8;
}

/* About full page */
.about-full h2 {
  font-size: 1.6rem; color: var(--primary-light);
  margin: 32px 0 16px;
}

.about-full p {
  color: var(--text-muted); margin-bottom: 16px;
  line-height: 1.8;
}

.about-full h2:first-child { margin-top: 0; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-info h2 {
  font-size: 1.15rem; color: var(--accent);
  margin: 24px 0 8px;
}

.contact-info h2:first-child { margin-top: 0; }

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

.contact-info a { color: var(--primary-light); text-decoration: none; }

.contact-info a:hover { color: var(--accent); }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text);
}

.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px;
  font-size: 0.95rem; font-family: var(--font);
  transition: border-color 0.3s;
}

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

.form-status { margin-top: 14px; font-size: 0.9rem; }

/* Legal content */
.legal-content h2 {
  font-size: 1.4rem; color: var(--primary-light);
  margin: 36px 0 14px;
}

.legal-content p {
  color: var(--text-muted); margin-bottom: 14px;
  line-height: 1.8;
}

.legal-content ol {
  padding-left: 24px; margin-bottom: 14px;
}

.legal-content ol li {
  color: var(--text-muted); margin-bottom: 10px;
  line-height: 1.7;
}

/* CTA inline */
.cta-inline { text-align: center; margin-top: 48px; }

/* Animations - scroll reveal */
.card-hidden {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-visible {
  opacity: 1; transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 70px; left: 0; width: 100%;
    background: rgba(11, 14, 26, 0.98); flex-direction: column;
    padding: 24px; gap: 0;
  }
  .nav-links.active { display: flex; }
  .nav-links li { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .trust-row { gap: 16px; }
  .trust-item { font-size: 0.85rem; }
}
