/* ==========================================================================
   INTELLEKT GENIE - ROBOTICS PRODUCT SHARED STYLES
   ========================================================================== */

:root {
  --rp-bg-dark: #060911;
  --rp-bg-surface: #0a0f1d;
  --rp-bg-card: rgba(12, 19, 35, 0.75);
  --rp-bg-card-hover: rgba(18, 28, 52, 0.85);
  --rp-border: rgba(148, 163, 184, 0.14);
  --rp-border-accent: rgba(56, 189, 248, 0.28);
  --rp-border-glow: rgba(0, 210, 255, 0.45);
  --rp-blue: #2563eb;
  --rp-blue-light: #38bdf8;
  --rp-cyan: #00d2ff;
  --rp-text-white: #ffffff;
  --rp-text-main: #e2e8f0;
  --rp-text-muted: #94a3b8;
  --rp-text-dim: #64748b;
  --rp-glow-subtle: 0 0 20px rgba(0, 210, 255, 0.15);
  --rp-glow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 99, 235, 0.12);
  --rp-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rp-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Base product container */
.rp-page {
  background-color: var(--rp-bg-dark);
  color: var(--rp-text-main);
  font-family: var(--rp-font-main);
  position: relative;
  overflow-x: hidden;
  padding-top: 76px; /* Offset for fixed navbar */
}

.rp-container {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
}

/* Background Engineering Grid */
.rp-grid-bg {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
}

/* Technical Badges and Chips */
.rp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--rp-border-accent);
  color: var(--rp-cyan);
}

.rp-badge-demo {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.rp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--rp-cyan);
  box-shadow: 0 0 8px var(--rp-cyan);
  animation: rpPulse 2s infinite ease-in-out;
}

.rp-badge-dot-amber {
  background-color: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

@keyframes rpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Section Header Styles */
.rp-section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--rp-border);
}

.rp-section-tag {
  font-family: var(--rp-font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--rp-blue-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.rp-section-heading {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.rp-section-heading.text-start {
  text-align: left;
  margin-left: 0;
}

.rp-section-title {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--rp-text-white);
  margin-bottom: 18px;
}

.rp-section-subtitle {
  color: var(--rp-text-muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.75;
  margin: 0;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Engineering Technical Cards */
.rp-card {
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  box-shadow: var(--rp-glow-card);
}

.rp-card:hover {
  transform: translateY(-4px);
  border-color: var(--rp-border-accent);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.18);
}

.rp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rp-card-num {
  font-family: var(--rp-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--rp-blue-light);
  letter-spacing: 1px;
}

.rp-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--rp-text-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.rp-card-desc {
  color: var(--rp-text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Blueprint corner embellishments */
.rp-corner-bracket {
  position: relative;
}

.rp-corner-bracket::before,
.rp-corner-bracket::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.rp-corner-bracket::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--rp-border-accent);
  border-left: 2px solid var(--rp-border-accent);
}

.rp-corner-bracket::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--rp-border-accent);
  border-right: 2px solid var(--rp-border-accent);
}

/* Interactive Control Buttons */
.rp-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: var(--rp-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rp-text-main);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
}

.rp-control-btn:hover {
  color: var(--rp-text-white);
  border-color: var(--rp-blue-light);
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.rp-control-btn.active,
.rp-control-btn[aria-pressed="true"] {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--rp-cyan);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.3);
}

.rp-control-btn:focus-visible {
  outline: 2px solid var(--rp-cyan);
  outline-offset: 2px;
}

/* Primary High-Tech Action Button */
.rp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.45);
}

.rp-btn-primary:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 12px 30px -4px rgba(0, 210, 255, 0.55);
  border-color: var(--rp-cyan);
}

.rp-btn-primary:focus-visible {
  outline: 2px solid var(--rp-cyan);
  outline-offset: 3px;
}

/* HUD Overlay Styles */
.rp-hud-chip {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  background: rgba(8, 14, 26, 0.85);
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.rp-hud-label {
  font-family: var(--rp-font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rp-text-dim);
  margin-bottom: 4px;
}

.rp-hud-value {
  font-family: var(--rp-font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--rp-cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Application Visual Cards */
.rp-app-card {
  position: relative;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.rp-app-card:hover {
  transform: translateY(-5px);
  border-color: var(--rp-border-accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15);
}

.rp-app-img-wrap {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background: #020610;
}

.rp-app-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.85) contrast(1.05);
}

.rp-app-card:hover .rp-app-img-wrap img {
  transform: scale(1.04);
  filter: brightness(0.95);
}

.rp-app-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.rp-app-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Architecture Specification Table */
.rp-spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--rp-bg-card);
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  overflow: hidden;
}

.rp-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rp-border);
}

.rp-spec-row:last-child {
  border-bottom: none;
}

.rp-spec-key {
  font-size: 14px;
  font-weight: 600;
  color: var(--rp-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-spec-val {
  font-family: var(--rp-font-mono);
  font-size: 13px;
  color: var(--rp-blue-light);
  text-align: right;
}

/* Final CTA Section */
.rp-cta-box {
  background: linear-gradient(135deg, rgba(14, 25, 48, 0.95) 0%, rgba(9, 14, 27, 0.95) 100%);
  border: 1px solid var(--rp-border-accent);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rp-cta-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Scroll Animation Hooks */
.rp-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.rp-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rp-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .rp-badge-dot {
    animation: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .rp-section {
    padding: 72px 0;
  }
  .rp-cta-box {
    padding: 48px 28px;
  }
}

@media (max-width: 576px) {
  .rp-container {
    width: min(100% - 32px, 1240px);
  }
  .rp-section {
    padding: 56px 0;
  }
  .rp-section-heading {
    margin-bottom: 40px;
  }
  .rp-cta-box {
    padding: 36px 20px;
  }
  .rp-spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 18px;
  }
  .rp-spec-val {
    text-align: left;
  }
}

/* Mobile Navbar Integration */
@media (max-width: 991px) {
  .robotics-navbar .navbar-collapse.show {
    display: block;
    background: rgba(8, 12, 20, 0.98);
    border: 1px solid var(--rp-border-accent);
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  }
  .robotics-navbar .navbar-collapse:not(.show) {
    display: none;
  }
}

