/* ===== Servo Control Solution — Stylesheet ===== */
:root {
  --bg: #0a1628;
  --bg-2: #0e1f3a;
  --surface: #122a4d;
  --primary: #1e90ff;
  --primary-2: #3ab0ff;
  --accent: #f4d35e;
  --text: #e6eef8;
  --muted: #a9b6c9;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--primary-2);
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 14px auto 0;
  border-radius: 3px;
}
.eyebrow {
  text-align: center;
  color: var(--primary-2);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.logo-mark {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
}
.logo-light {
  display: none;
}
[data-theme="light"] .logo-dark {
  display: none;
}
[data-theme="light"] .logo-light {
  display: block;
  background: transparent;
  padding: 0;
}
.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  /* .brand-name {
    display: none;
  } */
  .logo-mark {
    height: 40px;
  }
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.logo-text small {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 3px;
  margin-top: 2px;
}
.main-nav {
  display: flex;
  gap: 30px;
}
.main-nav a {
  color: #dbe6f5;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--primary-2);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(5, 15, 30, 0.65), rgba(5, 15, 30, 0.85)),
    url("imgs/saas2-1.png") center/cover no-repeat,
    #061226;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.tagline {
  font-size: 1.2rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 30px;
}
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: 0;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(30, 144, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 144, 255, 0.55);
}

/* ===== About ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}
.about p {
  color: var(--muted);
  margin-bottom: 14px;
}
.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Services ===== */
.services {
  background: var(--bg-2);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}
.service-card h3 {
  padding: 16px 18px 6px;
  color: var(--primary-2);
}
.service-card p {
  padding: 0 18px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Siemens Tabs ===== */
.siemens {
  background: var(--bg);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.tab-btn {
  padding: 10px 22px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.tab-btn:hover {
  color: #fff;
  border-color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tab-panel {
  display: none;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
}
.tab-panel.active {
  display: block;
  animation: fadein 0.3s ease;
}
.tab-panel ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.tab-panel li {
  padding: 10px 14px;
  background: rgba(30, 144, 255, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  color: #dbe6f5;
  font-size: 0.92rem;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== Why Us ===== */
.why-us {
  background: var(--bg-2);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.why-card {
  text-align: center;
  background: var(--surface);
  padding: 30px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.25s;
}
.why-card:hover {
  transform: translateY(-6px);
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.why-card h3 {
  color: var(--primary-2);
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.why-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Brands Marquee ===== */
.brands {
  background: #fff;
  color: #111;
}
.brands .section-title {
  color: #0a1628;
}
.brands .section-title::after {
  background: var(--primary);
}
.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 35s linear infinite;
}
.marquee img {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2);
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== Contact ===== */
.contact {
  background: var(--bg);
}
.contact h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
}
.contact-info {
  list-style: none;
  margin-top: 20px;
}
.contact-info li {
  margin-bottom: 14px;
  color: var(--muted);
}
.contact-info a {
  color: var(--text);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow:
    rgba(0, 0, 0, 0.16) 0px 3px 6px,
    rgba(0, 0, 0, 0.23) 0px 3px 6px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}
.form-status {
  font-size: 0.9rem;
  color: var(--accent);
  min-height: 1em;
}

/* ===== Footer ===== */
.site-footer {
  background: #04101f;
  padding: 50px 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-grid h3 {
  color: #fff;
  margin-bottom: 10px;
}
.footer-grid h4 {
  color: var(--primary-2);
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer-grid a:hover {
  color: var(--primary-2);
}
.footer-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }
  .main-nav.open {
    max-height: 400px;
  }
  .main-nav a {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .section {
    padding: 60px 0;
  }
}

/* ===== Page hero (sub-pages) ===== */
.page-hero {
  margin-top: 70px;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #0a1628 0%, #143a6b 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Detail page ===== */
.detail .about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 380px;
  object-fit: cover;
  width: 100%;
}
.detail h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.detail p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ===== Capabilities ===== */
.capabilities {
  background: var(--bg-2);
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cap-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: transform 0.25s;
}
.cap-card:hover {
  transform: translateY(-4px);
}
.cap-card h3 {
  color: var(--primary-2);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.cap-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== Brand grid ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.brand-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.brand-card img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.brand-card p {
  color: #1a2540;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Service card link ===== */
.service-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.service-card .card-link {
  padding: 0 18px 20px;
  color: var(--primary-2);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ===== Secondary button ===== */
.btn-secondary {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 26px;
  border: 1px solid var(--primary);
  color: var(--primary-2);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Nav active state ===== */
.main-nav a.active {
  color: var(--primary-2);
}

/* ===== Map ===== */
.map-section iframe {
  display: block;
}

/* ===== Brands strip (sub-page) ===== */
.brands-strip {
  background: #fff;
  color: #111;
  padding: 50px 0;
}
.brands-strip .section-title {
  color: #0a1628;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.review-card {
  background: #1a2030;
  border: 1px solid #2a3245;
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s;
}
.review-card:hover {
  transform: translateY(-4px);
}
.review-card .stars {
  color: #facc15;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.review-card p {
  color: #cbd5e1;
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.6;
}
.review-card strong {
  color: #fff;
  font-size: 14px;
}
.contact-form select {
  background: #0f1420;
  border: 1px solid #2a3245;
  color: #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  width: 100%;
  margin-top: 6px;
  font-size: 15px;
}
.section-alt {
  background: #0c111c;
}

/* ===== Theme toggle button ===== */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
  margin-left: 10px;
}
.theme-toggle:hover {
  transform: rotate(15deg);
  border-color: var(--primary);
}
@media (max-width: 860px) {
  .theme-toggle {
    position: absolute;
    right: 64px;
    top: 10px;
  }
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #f7f9fc;
  --bg-2: #eef2f8;
  --surface: #ffffff;
  --primary: #1e6fdb;
  --primary-2: #0a4fb0;
  --accent: #d97706;
  --text: #0f1b2d;
  --muted: #4a5a73;
  --border: rgba(15, 27, 45, 0.1);
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .brand,
[data-theme="light"] .main-nav a,
[data-theme="light"] .menu-toggle,
[data-theme="light"] .section-title,
[data-theme="light"] .about h2,
[data-theme="light"] .contact h2,
[data-theme="light"] .detail h2,
[data-theme="light"] .page-hero h1,
[data-theme="light"] .footer-grid h3,
[data-theme="light"] .hero-content h1 {
  color: var(--text);
}
[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav a.active {
  color: var(--primary);
}
[data-theme="light"] .hero {
  background:
    linear-gradient(rgba(247, 249, 252, 0.82), rgba(238, 242, 248, 0.92)),
    url("https://servocontrolsolution.com/wp-content/uploads/2025/02/manufacturing-process-concept-illustration_114360-1310.jpg")
      center/cover no-repeat,
    #eef2f8;
}
[data-theme="light"] .hero-content h1 {
  text-shadow: none;
}
[data-theme="light"] .tagline {
  color: var(--primary-2);
}
[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 24px rgba(30, 111, 219, 0.25);
}
[data-theme="light"] .page-hero {
  background: linear-gradient(135deg, #eef2f8 0%, #dbe6f5 100%);
}
[data-theme="light"] .tab-panel li {
  background: rgba(30, 111, 219, 0.08);
  color: var(--text);
}
[data-theme="light"] .tab-btn {
  color: var(--muted);
}
[data-theme="light"] .tab-btn:hover {
  color: var(--primary-2);
}
[data-theme="light"] .service-card h3,
[data-theme="light"] .why-card h3,
[data-theme="light"] .cap-card h3 {
  color: var(--primary-2);
}
[data-theme="light"] .contact-info a {
  color: var(--text);
}
[data-theme="light"] .site-footer {
  background: #1a2540;
  color: #cbd5e1;
  border-top: none;
}
[data-theme="light"] .site-footer h3,
[data-theme="light"] .site-footer h4 {
  color: #fff;
}
[data-theme="light"] .site-footer p,
[data-theme="light"] .site-footer a,
[data-theme="light"] .footer-bottom {
  color: #a9b6c9;
}
[data-theme="light"] .brands {
  background: var(--bg-2);
  color: var(--text);
}
[data-theme="light"] .brands .section-title,
[data-theme="light"] .brands-strip .section-title {
  color: var(--text);
}
[data-theme="light"] .brand-card {
  background: #fff;
  border: 1px solid var(--border);
}
[data-theme="light"] .brand-card p {
  color: var(--text);
}
[data-theme="light"] .review-card {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 27, 45, 0.06);
}
[data-theme="light"] .review-card p {
  color: var(--muted);
}
[data-theme="light"] .review-card strong {
  color: var(--text);
}
[data-theme="light"] .review-card .stars {
  color: #f59e0b;
}
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea,
[data-theme="light"] .contact-form select {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
[data-theme="light"] .section-alt {
  background: var(--bg-2);
}
@media (max-width: 860px) {
  [data-theme="light"] .main-nav {
    background: #fff;
  }
  [data-theme="light"] .main-nav a {
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
}
