/* ===========================
   PREMIUM SERVICE SECTIONS
=========================== */
.body{
  background-color: black;

}

/* Remove navbar logo shadow on services page */
.navbar .logo {
  text-shadow: none;
}

.btn-outline {
  display: inline-flex;
  background-color: #FF9933;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: black;
}

.services-main {
  background: #fafbff;
}

.service-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.service-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 600px;
  z-index: 0;
  opacity: 0.02;
}

#cse-detail::before { background-image: radial-gradient(circle, #4361ee 1px, transparent 1px); }
#embedded-detail::before { background-image: radial-gradient(circle, #7209b7 1px, transparent 1px); }
#energy-detail::before { background-image: radial-gradient(circle, #f72585 1px, transparent 1px); }
#matlab-detail::before { background-image: radial-gradient(circle, #2ec4b6 1px, transparent 1px); }

.container.split {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1300px;
  position: relative;
  z-index: 2;
}

.service-text, .service-visual {
  flex: 1;
}

.service-text {
  max-width: 600px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.ai { background: rgba(67, 97, 238, 0.12); color: #4361ee; }
.embedded { background: rgba(114, 9, 183, 0.12); color: #7209b7; }
.energy { background: rgba(247, 37, 133, 0.12); color: #f72585; }
.training { background: rgba(46, 196, 182, 0.12); color: #2ec4b6; }

.section-heading {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px;
  color: #1a1a2e;
}

.section-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 40px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #f0f4ff;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(67, 97, 238, 0.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(67, 97, 238, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: #4361ee;
}

#cse-detail .feature-icon { background: rgba(67, 97, 238, 0.1); color: #4361ee; }
#embedded-detail .feature-icon { background: rgba(114, 9, 183, 0.1); color: #7209b7; }
#energy-detail .feature-icon { background: rgba(247, 37, 133, 0.1); color: #f72585; }
#matlab-detail .feature-icon { background: rgba(46, 196, 182, 0.1); color: #2ec4b6; }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #222;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* CTA Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.05rem;
 
  text-decoration: none;
  padding: 14px 28px;
  border: 2px solid #ffffff;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #000000;
  color: white;
  transform: translateX(4px);
}

/* Visual Mockups */
.service-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-terminal {
  background: #1e293b;
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.mockup-header {
  background: #0f172a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }

.mockup-body {
  padding: 24px;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.line {
  margin: 4px 0;
}

.prompt {
  color: #8897f4;
  margin-right: 8px;
}

.success {
  color: #34d399;
}

.highlight {
  color: #60a5fa;
  font-weight: 600;
}

/* Circuit Board */
.circuit-board {
  width: 100%;
  max-width: 500px;
}

.circuit-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Grid Simulation */
.grid-simulation {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 300px;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;
}

.grid-line {
  position: absolute;
  background: #cbd5e1;
}

.grid-line.horizontal {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  animation: pulseLine 3s ease-in-out infinite;
}

.grid-line.horizontal.delayed {
  animation-delay: 1.5s;
}

.grid-line.vertical {
  height: 100%;
  width: 1px;
  left: 50%;
  top: 0;
  animation: pulseLine 3s ease-in-out 0.75s infinite;
}

.grid-line.vertical.delayed {
  animation-delay: 2.25s;
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

.grid-node {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.grid-node.source { background: #f72585; top: 30%; left: 20%; }
.grid-node.load { background: #4361ee; }
.grid-node.load:nth-of-type(1) { top: 40%; right: 25%; }
.grid-node.load:nth-of-type(2) { top: 60%; right: 20%; }
.grid-node.storage { background: #2ec4b6; bottom: 30%; left: 25%; }

/* MATLAB Plot */
.matlab-plot {
  width: 100%;
  max-width: 500px;
}

.plot-svg {
  display: block;
  width: 100%;
  height: auto;
}

.plot-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawPlot 3s ease forwards;
}

@keyframes drawPlot {
  to { stroke-dashoffset: 0; }
}

/* Reverse Layout */
.split.reverse {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 992px) {
  .container.split {
    flex-direction: column;
    gap: 50px;
  }

  .split.reverse {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 2.3rem;
  }

  .section-lead {
    font-size: 1.15rem;
  }
}

@media (max-width: 576px) {
  .service-section {
    padding: 80px 0;
  }

  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .mockup-header span {
    display: none;
  }
}