/* 🔵 IOT LAB - MODERN BLUE GRID THEME (Production Ready) */
.IoTlab-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 80px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e40af 100%);
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.IoTlab-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #60a5fa, transparent);
  animation: shimmer 6s infinite;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #60a5fa, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 15px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.5fr;
  gap: 40px;
  align-items: start;
}

/* Features Grid (Left Side) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #60a5fa, #a5b4fc);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 64px rgba(96, 165, 250, 0.3);
  border-color: rgba(96, 165, 250, 0.5);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin: 16px 0 12px 0; /* Less top margin */
  color: #f8fafc;
  display: block; /* Remove flex - let SVG center naturally */
  text-align: center; /* Center title */
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 28px; /* Perfect emoji size */
}

.plc-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.dcs-icon { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.scada-icon { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.matlab-icon { background: linear-gradient(135deg, #10b981, #34d399); }
.iot-icon { background: linear-gradient(135deg, #f3f3f6, #080708); }


.matlab-logo {
  width: 70%;   /* logo smaller than box */
  height: auto;
  display: block;
}
.iot-logo {
  width: 100%;   /* logo smaller than box */
  height: auto;
  display: block;
}

.feature-card p {
  line-height: 1.5;
  margin: 0;
  opacity: 0.9;
  font-size: 0.92rem;
  flex-grow: 1; /* Fill remaining space */
}

/* Right Panel */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
/* 🖱️ ONLY IMAGE HOVER ENLARGEMENT - Replace THESE rules only */

.image-section {
  position: relative;
  overflow: visible; /* Allow image to grow outside container */
}

.image-wrapper {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.6);
  height: 450px; /* Your existing height */
  margin-left: -20px;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth elastic */
}

.image-wrapper:hover {
  transform: scale(1.08) translateY(-20px); /* 8% BIGGER + lift up */
  box-shadow: 0 80px 160px rgba(96, 165, 250, 0.45);
  height: auto; /* Extra height room during hover */
  z-index: 10; /* Float above everything */
  margin-left: -25px; /* Shift slightly more left */
}

.image-wrapper:hover .ai-hero-visual {
  transform: scale(1.08); /* SVG enlarges smoothly */
}

.image-wrapper:hover .image-overlay {
  opacity: 1;
  backdrop-filter: blur(10px);
}

.image-wrapper:hover .overlay-stats .stat-item {
  transform: scale(1.5); /* Stats pop out */
}



.image-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block !important;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}



.overlay-stats {
  display: flex;
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Section Title & Key Features */
.section-title {
  font-size: 1.8rem;
  color: #60a5fa;
  margin: 0 0 20px 0;
  text-align: center;
}

.key-features-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 28px;
}

.key-features-card h3 {
  color: #f8fafc;
  margin: 0 0 20px 0;
  font-size: 1.3rem;
}

.key-features-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-features-card li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.9;
}

.key-features-card li:last-child {
  border-bottom: none;
}

.key-features-card strong {
  color: #60a5fa;
}

/* Animations */
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.feature-card {
  padding: 24px 20px; /* More compact padding */
  min-height: 180px; /* Ensure consistent height */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* Center all content */
}

.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .right-panel {
    order: -1;
  }
}

@media (max-width: 768px) {
  .IoTlab-container {
    padding: 60px 16px;
  }
  
  .overlay-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .image-wrapper img {
    height: 250px !important;
  }
}

@media (max-width: 480px) {
  .features-grid {
    gap: 20px;
  }
  
  .feature-card {
    padding: 24px 20px;
  }
}
/* UPDATED Hero Section Styles - Add to your existing CSS */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.hero-lead {
  max-width: 900px;
  margin: 0 auto 40px;
}

.lead-text {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  display: block;
}

/* Standards Showcase - NEW Stylized Section */
.standards-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  position: relative;
  overflow: hidden;
}

.standards-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.1), transparent);
  transition: left 0.6s ease;
}

.standards-showcase:hover::before {
  left: 100%;
}

.standard-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 280px;
  position: relative;
  overflow: hidden;
}

.standard-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, #a5b4fc);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.standard-badge:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(96, 165, 250, 0.3);
  border-color: rgba(96, 165, 250, 0.5);
}

.standard-badge:hover::before {
  transform: scaleX(1);
}

.badge-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #f8fafc;
  flex-shrink: 0;
}

.isa95 .badge-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.isa99 .badge-icon {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
}

.badge-label span:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: #60a5fa;
  display: block;
  margin-bottom: 4px;
}

.badge-label span:last-child {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* Training Highlight */
.training-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 153, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 0.4s ease;
  min-width: 320px;
  position: relative;
  overflow: hidden;
}

.training-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(34, 197, 153, 0.3));
}

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #34d399);
  position: relative;
  flex-shrink: 0;
}

.highlight-icon::before {
  content: '✨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}

.training-highlight span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
}

/* Responsive */
@media (max-width: 1024px) {
  .standards-showcase {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }
  
  .standard-badge,
  .training-highlight {
    min-width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .standards-showcase {
    padding: 20px 16px;
    gap: 16px;
  }
  
  .standard-badge,
  .training-highlight {
    padding: 16px 20px;
  }
  
  .badge-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}
