/* ==============================
   PCB PAGE – FINAL CSS
   ============================== */
:root {
  --primary: #1E3F5C;
  --primary-light: #37A2B5;
  --secondary: #263a63;
  --secondary-dark: #0b233e;
  --pcb-primary: #2E86AB;
  --pcb-primary-dark: #1B5E7A;
  --pcb-secondary: #A23B72;
  --pcb-accent: #F18F01;
  --light: #ffffff;
  --text: #2A2D34;
  --text-dark: #111827;
  --text-light: #f1f2f5;
  --bg-light: #f5f8fb;
  --border: #e9edf5;
  --shadow: 0 6px 18px rgba(16,24,40,.08);
  --shadow-lg: 0 16px 30px rgba(16,24,40,.12);
  --transition: .3s ease;
  --radius: 12px;
  --nav-height: 90px; /* matches global navbar height */
}

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

html,
body {
  height: 100%;
 
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 0%;
}

/* Headings use Lato across the site */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 100vh, 960px);
  overflow: hidden;
}

.background-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  opacity: 0.28;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.10) 50%,
    rgba(0,0,0,0.06) 100%
  );
}

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

.hero-content h1 {
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: .2px;
  color: #0f172a;
  margin-bottom: 10px;
}

.hero-content p {
  color: #334155;
  font-size: 1.08rem;
}

@media (max-width: 640px) {
  .hero {
    min-height: 92vh;
    padding: 56px 16px 28px;
  }

  .background-img {
    object-position: center top;
  }
}

/* ===== PCB SERVICES – ZOOM + COLOR HOVER ===== */
.pcb-services {
  padding: 80px 6%;
  background: #ffffff;
  text-align: center;
}

.pcb-services .section-header h2 {
  font-size: 2.3rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.pcb-services .section-header p {
  color: #475569;
  margin-bottom: 34px;
}

.services-grid.fancy {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 28px;
  justify-items: stretch;
}

@media (max-width: 980px) {
  .services-grid.fancy {
    grid-template-columns: 1fr;
  }
}

.service-card {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: 22px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #7dd3fc, #8bbdfa 40%, #34d399) border-box;
  border: 1.6px solid transparent;
  box-shadow: 0 18px 40px rgba(2, 8, 23, .08);
  text-align: left;
  transform: translateY(0) scale(1);
  transition: all .4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  isolation: isolate;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 68, 33, 0.15),
    rgba(17, 41, 25, 0.25)
  );
  opacity: 0;
  transition: opacity .4s ease;
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 32px 70px rgba(2, 8, 23, .16);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: radial-gradient(120px 60px at 30% 30%, #e0f2fe, #e9d5ff);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(99,102,241,.18);
  margin-bottom: 14px;
  transition: transform .3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15);
}

.service-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.service-desc {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 14px;
}

/* ===== PROCESS ===== */
.process-section {
  padding: 100px 8%;
  background: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.process-section .section-header h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.process-section .section-header p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 60px;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  opacity: .4;
  border-radius: 4px;
  z-index: 0;
}

.step {
  position: relative;
  flex: 1;
  min-width: 200px;
  z-index: 1;
  background: transparent;
}

.step-number {
  width: 46px;
  height: 46px;
  background: linear-gradient(145deg, #06b6d4, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto 14px;
  box-shadow: 0 6px 18px rgba(37,99,235,.25);
  transition: transform .3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .process-steps::before {
    display: none;
  }
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  width: 100%;
  padding: 120px 20px;
  background:
    linear-gradient(135deg, rgba(184, 186, 191, 0.9), rgba(183, 202, 233, 0.85)),
    url('/static/images/PCB_Design/baground.jpg') center/cover no-repeat;
  color: #353434;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: .4px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-buttons .btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all .3s ease;
  border: 2px solid #fff;
}

.btn-transparent {
  background: #7b98a4;
  color: #ffffff;
  border: 2px solid #617bb4;
}

.btn-transparent:hover {
  background: #5a9db9;
  border-color: #5892b5;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 90px 15px;
  }

  .cta-section h2 {
    font-size: 1.9rem;
  }
}