:root{
  --bg:#0b0f14;          /* page background */
  --text:#e8edf5;        /* default text */
  --muted:#a0a8b8;       /* secondary text */
  --brand:#e2e8f0;       /* headings / brand text */
  --card-bg:#111827;     /* card surface */
  --card-border:#1f2937; /* card border */
  --accent:#f39c12;      /* keep your orange accent */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; scroll-behavior:smooth; }
body{
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top-accent{ height:20px; background:linear-gradient(90deg, var(--brand) 0 70%, var(--accent) 70% 100%); }

/* Header + Brand */
.header{ background:#fff; border-bottom:1px solid #e6e9f0; }
.brand{
  	max-width:1600px; 
	margin:0 auto; 
	display:flex; 
	align-items:center; 
	gap:20px;
  	padding:14px 16px 6px;
}
.logo{ 
	width:300px; 
	height:auto; 
	display:block; 
}
.brand-name{ 
	font-size:28px; 
	font-weight:800; 
	color:var(--brand); 
}
.brand-text {display: none !important;}
/* Nav */
.nav{
  max-width:1100px; margin:0 auto; padding:0 16px 10px;
  display:flex; align-items:center; justify-content:flex-end; position:relative;
}
.nav-toggle{
  display:none; border:0; background:transparent; font-size:24px; cursor:pointer;
}
.nav-list{
  list-style:none; display:flex; gap:18px; margin:0; padding:0;
}
.nav-list a{
  text-decoration:none; color:var(--brand); font-weight:600; padding:6px 8px; border-radius:8px;
}
.nav-list a:hover{ background:#edf2f7; }

/* Force navbar links to black text */
.nav-list a {
  color: #000 !important;
}

/* Active and hover states */
.nav-list a:hover,
.nav-list a.active {
  background: rgba(0, 0, 0, 0.08);
  color: #000 !important;
}

/* Hero */
.hero{ text-align:center; padding:20px 16px 6px; }
.hero h1{ margin:0; color:var(--accent); font-size:clamp(20px, 3.2vw, 28px); font-weight:800; }

/* Sections */
.container{ max-width:1100px; margin:0 auto; padding:12px 16px 0; }
.section-plain{ background:#fff; border:1px solid #e6e9f0; border-radius:12px; padding:18px; margin:18px 0 30px; }
.intro p{ margin:12px 0; }
.section-label{ margin-top:8px; margin-bottom:14px; }
.section-title{ font-weight:700; }
.section-subtitle{ font-size:13px; color:var(--muted); margin-top:-2px; }

/* Cards */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:12px 0 36px; }
/* 3D Cards with subtle tint */
.title-industrialautomation {
  color: rgb(6, 3, 187);
  font-weight: bold;
}

.title-embedded {
  color: rgb(223, 121, 5);
  font-weight: bold;
}

.title-DAQ {
  color: rgba(223, 5, 16, 0.685);
  font-weight: bold;
}

.title-HMI {
  color: rgba(53, 170, 190, 0.699);
  font-weight: bold;
}

.title-WEB {
  color: rgba(221, 74, 202, 0.699);
  font-weight: bold;
}

.home-textcolor{
  color: #000;
}

.card{
  position: relative;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  min-height: 160px;
  border: 1px solid rgba(45,55,72,0.12);

  /* soft 3D stack */
  box-shadow:
    0 14px 28px rgba(31,41,55,0.14),
    0 6px 12px rgba(31,41,55,0.08),
    inset 0 1px 0 rgba(255,255,255,0.65);

  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform, box-shadow;
  background: linear-gradient(180deg, #f4f7fb 0%, #e7edf6 100%); /* default */
}

.card:hover{
  transform: translateY(-4px);
  box-shadow:
    0 18px 36px rgba(31,41,55,0.18),
    0 8px 16px rgba(31,41,55,0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);
  filter: saturate(1.02);
}

/* slight glossy top edge */
.card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0; height:10px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
  pointer-events:none;
}

.card h3{
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--brand);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

/* Ensure cards are positioned for ::before */
.card { position: relative; }
.highlight{ color:var(--accent); font-weight:600; }

/* Industrial Automation */
.card.ia{
  background: linear-gradient(180deg, #f5f4ff 0%, #e6eefc 100%);
  border-color: rgba(52, 49, 206, 0.22);
}

/* Embedded Systems */
.card.es{
  background: linear-gradient(180deg, #f5fff8 0%, #e7f6ec 100%);
  border-color: rgba(56, 161, 105, 0.22);
}

/* Data Acquisition & Analysis */
.card.daq{
  background: linear-gradient(180deg, #fff7f4 0%, #fbeae2 100%);
  border-color: rgba(237, 137, 54, 0.22);
}

/* HMI */
.card.hmi{
  background: linear-gradient(180deg, #f8f4ff 0%, #eee7fb 100%);
  border-color: rgba(128, 90, 213, 0.22);
}

/* Web & Cloud */
.card.web{
  background: linear-gradient(180deg, #f2fbff 0%, #e1f3fb 100%);
  border-color: rgba(22, 116, 192, 0.22);
}

/* Automotive & Testing */
.card.auto{
  background: linear-gradient(180deg, #fffdf4 0%, #faf4dd 100%);
  border-color: rgba(214, 158, 46, 0.22);
}

/* Footer */
.footer{ text-align:center; padding:24px 16px 40px; color:var(--muted); font-size:14px; }

/* Responsive */
@media (max-width:960px){
  .card-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:720px){
  .nav{ justify-content:space-between; }
  .nav-toggle{ display:block; }
  .nav-list{
    position:absolute; right:16px; top:44px; background:#fff; border:1px solid #e6e9f0;
    border-radius:12px; padding:10px; flex-direction:column; gap:8px; display:none; min-width:180px;
    box-shadow:0 10px 26px rgba(0,0,0,.08);
  }
  .nav-list.open{ display:flex; }
  .card-grid{ grid-template-columns:1fr; }
}
.card-image {
  width: 100%;
  height: 160px;             /* same height for all images */
  object-fit: cover;         /* crops to fill without distortion */
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/************************************ CONTACT STYLE SHEET- START ***********************************************/
/* Contact Section Background */
.contact-section {
  position: relative;
  /* path is relative to css file in /static/css/, so ../img/... is correct */
  background: url("../img/contactus.jpg") no-repeat center center / cover;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 8px;
  min-height: 280px;          /* ensure it shows even with little text */
  overflow: hidden;
  border: none;                /* in case section-plain styles linger */
}

/* Dark overlay for readability */
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.contact-overlay {
  position: relative;
  z-index: 2;
}

.contact-section h2,
.contact-section p,
.contact-section a {
  color: #fff;
}

.contact-section a { text-decoration: underline; }

/************************************ CONTACT STYLE SHEET- END ***********************************************/

/************************************ SERVICES STYLE SHEET- START ***********************************************/
.hero-small { padding: 28px 16px 10px; }
.hero-sub { margin-top: 6px; color: var(--muted); }
.services-wrap { padding-bottom: 36px; }

.service-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin:10px 0 36px;
}
.service-card{
  background:#fff;
  border:1px solid #e6e9f0;
  border-radius:16px;
  padding:18px 18px 20px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;
  min-height: 220px;
}
.service-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(0,0,0,.10);
}
.service-card h3{ margin:10px 0 8px; font-size:18px; color:var(--brand); }
.svc-bullets{ margin:10px 0 0 18px; }
.svc-bullets li{ margin:4px 0; }

/* round icon */
.svc-icon{
  width:48px;height:48px;border-radius:50%;
  background:linear-gradient(180deg,#fef4e6,#fdebd2);
  display:flex;align-items:center;justify-content:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 6px 14px rgba(243,156,18,.25);
}
.svc-icon svg{ width:26px;height:26px;fill:#f39c12; }

.nav-list a.active{ background:#edf2f7; }

@media (max-width: 960px){
  .service-grid{ grid-template-columns:1fr; }
}


.read-more-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;             /* more horizontal padding for oval shape */
  background-color: var(--accent); /* your orange accent */
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 50px;           /* fully rounded edges */
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.read-more-btn:hover {
  background-color: #f39c12;     /* slightly darker on hover */
  transform: translateY(-2px);   /* subtle lift effect */
}

/* Delivery Process Section */
.delivery-process {
  margin-top: 40px;
  text-align: center;
}

.delivery-process h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--brand);
}

/* Flow container */
.process-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* allows wrap on small screens */
  justify-content: center;
  gap: 10px;
}

/* Each step box */
.process-step {
  background: #fff;
  color: #000;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  white-space: nowrap;
}

/* Arrows */
.arrow {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent);
}

/* Dark mode support */
body.dark-mode .process-step {
  background: #1f2937;
  color: #fff;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .process-flow {
    flex-direction: column;
    gap: 14px;
  }
  .arrow {
    transform: rotate(90deg);
  }
}

/* Road background container */
.delivery-road{
  position: relative;
  margin-top: 36px;
  border-radius: 14px;
  overflow: hidden;
  min-height: 520px; /* ensures image is visible */
  background: url("../img/road.jpg") center bottom / cover no-repeat;
}

/* a soft dark overlay so text is readable */
.delivery-road::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
  z-index: 1;
}

/* content wrapper above the overlay */
.delivery-overlay{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* center the flow on the road */
  padding: 24px 16px;
  text-align: center;
  color: #fff;
}

.delivery-overlay h2{
  color:#fff;
  margin-bottom: 16px;
}

/* vertical flow reused */
.process-flow-vertical{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

/* pill steps */
.process-step{
  display:inline-flex; align-items:center; gap:10px;
  background: rgba(255,255,255,0.92);
  color:#000;
  padding:10px 18px;
  border-radius:50px;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
  min-width: 300px;
  text-align:left;
  backdrop-filter: blur(2px);  /* nice on modern browsers */
}

/* icons */
.step-icon{
  width:36px; height:36px; border-radius:50%;
  background: linear-gradient(180deg,#fef4e6,#fdebd2);
  display:flex; align-items:center; justify-content:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px rgba(243,156,18,.25);
  flex: 0 0 36px;
}
.step-icon svg{ width:20px; height:20px; fill: var(--accent); }
.step-text{ font-weight:600; line-height:1.25; }

/* down arrows */
.arrow{ font-size:22px; font-weight:700; color: var(--accent); line-height:1; }

/* responsive */
@media (max-width: 640px){
  .delivery-road{ min-height: 560px; } /* a bit taller on narrow phones */
  .process-step{ min-width: 240px; }
}

/*********************** SERVICES STYLE SHEET- END **********************************************************************/



/*********************** UPGRADED SERVICES STYLE SHEET- START ***********************************************************/
/* Center the service detail container */
/* Match service card look for detail pages */
.service-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;               /* solid white like service-card */
  border: 1px solid #e6e9f0;         /* subtle border */
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06); /* same as .service-card */
  color: #000;                       /* override dark mode body color */
}

.service-detail h1,
.service-detail h2,
.service-detail p,
.service-detail li {
  color: #000;                       /* ensure all inner text is black */
}

.service-detail ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* Screens & Reports */
.screens-section h2{
  margin: 0 0 8px;
  color: var(--brand);
}
.screens-sub{
  margin: 0 0 14px;
  color: var(--muted);
}

.screens-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 800px){
  .screens-grid{ grid-template-columns: 1fr; }
}

.screen{
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #0b0f14; /* looks good in dark mode; change to #fff for light */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.screen:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.28);
  filter: saturate(1.03);
}
.screen img{
  width: 100%;
  height: 220px;          /* uniform tile height */
  object-fit: cover;      /* crop edges to fit nicely */
  display: block;
}

/* Lightbox */
.lb{
  position: fixed; inset: 0; z-index: 1000;
  display: none;
}
.lb.open{ display: block; }
.lb-backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(2px);
}
.lb-content{
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  margin: 0; padding: 0; max-width: min(92vw, 1100px);
  border-radius: 12px; overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lb-content img{
  width: 100%; height: auto; display: block;
}
.lb-content figcaption{
  color: #e8edf5; padding: 10px 12px; font-size: 14px;
  background: rgba(20,20,20,.85); border-top: 1px solid rgba(255,255,255,.06);
}
.lb-close{
  position: absolute; top: 6px; right: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; cursor: pointer; font-size: 20px; line-height: 1;
  color: #fff; background: rgba(255,255,255,.15);
}
.lb-close:hover{ background: rgba(255,255,255,.25); }

/*********************** UPGRADED SERVICES STYLE SHEET- END ***********************************************************/


/*********************** IMAGE SCROLLING STYLE SHEET- START ***********************************************************/
/* Make each slide fill the carousel area consistently */
/**************** IMAGE SCROLLING (CLEAN) ****************/
.carousel{
  position: relative;
  max-width: 980px;
  margin: 10px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  background: #000;
}
.carousel-track{
  display: flex;
  transform: translateX(0%);
  transition: transform .6s ease;
}
.carousel-track > img{
  width: 100%;
  height: 420px;        /* adjust to 360/400/460 if you prefer */
  object-fit: cover;    /* fill frame; crops edges evenly */
  flex: 0 0 100%;
  display: block;
}
.carousel-dots{
  position: absolute;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.carousel-dots .dot{
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.45); cursor: pointer;
}
.carousel-dots .dot.is-active{ background: #fff; }
@media (max-width: 640px){
  .carousel-track > img{ height: 280px; }
}
/**************** END IMAGE SCROLLING ****************/

/* Service section icons — match Services card look */
.section-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: rgba(245, 116, 0, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(245, 116, 0, 0.25);
  margin-right: 10px;
  vertical-align: middle;
}

.section-icon {
  width: 18px;
  height: 18px;
  fill: #f57400;
}

.screens-section h2 {
  color: #000 !important;
}

.career-card-bg {
  background-image: url('../img/careers/bgimage.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  max-width: 1100px;   /* 🔽 LIMIT the outer card width */
  margin: 2rem auto;   /* ✅ Center it horizontally */
  padding: 2rem;
  padding: 28px;
}

.career-card-bg h1,
.career-card-bg h2,
.career-card-bg p,
.career-card-bg li {
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.career-content-card {
  background-color: rgba(0, 0, 0, 0.65); /* dark transparent background */
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 800px;         /* reduce width here */
  width: 90%;               /* responsive fallback */
  margin: 2rem auto;        /* center the card */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.712);
}

/* Paste this at the end of style.css */

.career-content-card input,
.career-content-card textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: #f1f1f1;
  font-size: 1rem;
}

.career-content-card textarea {
  resize: vertical;
}

.career-content-card input:focus,
.career-content-card textarea:focus {
  outline: 2px solid #ffa726;
  background: #fff;
}

/* Error Pages */
.error-container {
  text-align: center;
  padding: 6rem 2rem;
  color: white;
}

.error-title {
  font-size: 6rem;
  font-weight: bold;
  color: #ff6600;
  margin-bottom: 1rem;
}

.error-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #ccc;
}


/* Responsive adjustments for training page */
@media (max-width: 768px) {
  .training-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .training-block img {
    width: 100% !important;
    max-width: 280px;
    margin-bottom: 15px;
  }

  .training-text {
    text-align: left; /* keep list items aligned */
  }

  .training-form {
    width: 100%;
    max-width: 90%;
    padding: 20px;
  }
}
