﻿/* ============================================
   Solutions Section - Industrial Clarity UI
   Redesigned based on Premium React Prototype
   ============================================ */

.solutions {
  padding: 120px 0px;
  background: rgba(243, 244, 246, 0.5); /* f3f4f6/50 */
  position: relative;
  overflow: hidden;
}

.solutions-container {
  max-width: var(--max-width);
  margin: 0 auto;
      padding: 0 24px;
}

/* Header Section */
.solutions-top-header {
      padding-top: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 10px; 
  gap: 32px;
}

@media (min-width: 768px) {
  .solutions-top-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.section-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-indicator {
  width: 48px;
  height: 4px;
  background-color: var(--color-primary);
}

.section-label {
  color: var(--color-primary);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.4em;
}

.solutions-main-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    
    line-height: 1.3;
    margin-bottom: 24px;
}

.solutions-main-title .highlight-text {
  color: var(--color-primary);
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-decoration-grid {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.grid-line {
  width: 4px;
  height: 12px;
  background-color: var(--color-border);
}

.architecture-version {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  
  letter-spacing: 0.2em;
  text-align: right;
  margin: 0;
}

/* Staircase / Ladder UI */
.staircase-wrapper {
  position: relative;
  margin-bottom: 120px;
  padding-top: 12px;
}

.staircase-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.92) 100%),
    url("/images/product/home-solutions.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Mechanical Track System */
.mechanical-track {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 1;
}

.track-border {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-left: 1px solid rgba(15, 118, 110, 0.1);
  border-right: 1px solid rgba(15, 118, 110, 0.1);
}

.track-dashed {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: linear-gradient(to bottom, rgba(15, 118, 110, 0.2) 50%, transparent 50%);
  background-size: 1px 10px;
}

.track-slider {
  position: sticky;
  top: 50%;
  width: 32px;
  height: 2px;
  background-color: rgba(15, 118, 110, 0.3);
  transform: translateY(-50%);
}

.staircase-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 10;
  padding: 16px;
}

@media (min-width: 768px) {
  .staircase-items {
    gap: 24px;
  }
}

.stair-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  background-color: rgba(255, 255, 255, 1);
}

@media (min-width: 768px) {
  .stair-item {
    flex-direction: column;
    gap: 16px;
  }
  .stair-item.reverse {
    flex-direction: column;
  }
}

@media (min-width: 1024px) {
  .staircase-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding-bottom: 90px;
  }

  .stair-item,
  .stair-item.reverse {
    min-height: 0;
  }

  .stair-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    right: -23px;
    width: 42px;
    height: 58px;
    border-top: 1px dashed rgba(15, 118, 110, 0.35);
    border-right: 1px dashed rgba(15, 118, 110, 0.35);
    pointer-events: none;
  }

  .stair-item:nth-child(2) {
    margin-top: 36px;
  }

  .stair-item:nth-child(3) {
    margin-top: 72px;
  }
}

/* Left/Right Visual Parts */
.item-visual {
  flex: 0;
  width: 100%;
}

.visual-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.left-side .visual-content {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .left-side .visual-content {
    align-items: flex-start;
  }
  .right-side .visual-content {
    align-items: flex-start;
  }
}

.watermark-number {
  position: absolute;
  top: 8px;
  right: 6px;
  font-size: 72px;
  font-weight: 900;
  color: rgba(15, 118, 110, 0.1); 
  
  font-family: monospace;
  pointer-events: none;
  line-height: 1;
}

.left-side .watermark-number { right: 6px; }
.right-side .watermark-number { right: 6px; left: auto; }

.node-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 2px;
}

.node-meta .node-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  
  letter-spacing: 0.3em;
  margin-bottom: 4px;
}

 

.node-icon-box {
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 5px 5px 0px rgba(15, 118, 110, 0.2);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              background-color 0.3s ease;
  will-change: transform, box-shadow;
}

.stair-item:hover .node-icon-box {
  box-shadow: 0 0 0 transparent;
  transform: translate(5px, 5px);
}

.lucide-icon {
  width: 26px;
  height: 26px;
}

/* Mechanical Joint */
.mechanical-joint {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
}

.joint-diamond {
  width: 24px;
  height: 24px;
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  transform: rotate(45deg);
  z-index: 20;
}

.joint-line {
  position: absolute;
  width: 96px;
  height: 1px;
  background-color: rgba(15, 118, 110, 0.2);
  z-index: -1;
}

/* Content Card - Redesigned for Premium Look */
.item-content-card {
  flex: 0;
  width: 100%;
}

.terminal-box {
  position: relative;
  background-color: #ffffff;
  padding: clamp(16px, 2.2vw, 10px);
 
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.terminal-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-primary);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.terminal-box:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 28px rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.3);
}

.terminal-box:hover::before {
  transform: scaleX(1);
}

 
.card-title-solution {
  font-size: clamp(17px, 2.2vw, 18px);
  font-weight: 900;
  color: var(--color-primary);
  
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title-solution::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(17, 24, 39, 0.1), transparent);
}

.card-text {
  font-size: clamp(14px, 1.7vw, 14px);
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0;
  position: relative;
  z-index: 2;
}

 

/* Mascot - quality inspector */
.mascot-inspector-wrapper {
  position: absolute;
  right: -64px;
  bottom: 40px;
}

.inspector-box {
  position: relative;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(15, 118, 110, 0.2);
  padding: 16px;
}

.inspector-badge {
  position: absolute;
  top: -24px;
  left: -24px;
  background-color: #111827;
  color: #ffffff;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  
  
  letter-spacing: -0.02em;
  z-index: 5;
}

.inspector-image {
  width: 160px;
  height: 160px;
}

.inspector-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Blueprint Section */
.blueprint-section {
  margin: 0 auto;
}

.blueprint-header {
  display: flex;
  justify-content: center; /* Đổi thành center */
  text-align: center;      /* Thêm căn giữa text */
  align-items: center;     /* Đổi thành center */
  padding-bottom: 40px;
}

.blueprint-label {
  display: block;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 14px;
  
  letter-spacing: 0.3em;
  margin-bottom: 16px;
}

.blueprint-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  color: var(--color-text);
  
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0;
}

.blueprint-title .highlight-text {
  color: var(--color-primary);
}

.header-line {
  width: 128px;
  height: 4px;
  background-color: var(--color-primary);
  margin-bottom: 8px;
}

.blueprint-module {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .blueprint-module {
    flex-direction: row;
  }
}

.blueprint-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: 
    linear-gradient(#000 1px, transparent 1px),
    linear-gradient(90deg, #000 1px, transparent 1px);
  background-size: 30px 30px;
}

.blueprint-phase {
  flex: 1;
  padding: 64px;
  position: relative;
}

@media (max-width: 1024px) {
  .blueprint-phase {
    padding: 64px 10px;
  }
}

.phase-1 {
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .phase-1 {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
}

.phase-2 {
  background-color: rgba(15, 118, 110, 0.02);
}

.phase-watermark {
  position: absolute;
  font-size: 220px;
  font-weight: 900;
  color: #f3f4f6;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  transition: color 0.7s var(--ease-medium);
}

.phase-1 .phase-watermark { top: -48px; left: -32px; }
.phase-2 .phase-watermark { bottom: -48px; right: -32px; color: rgba(15, 118, 110, 0.03); }

.blueprint-phase:hover .phase-watermark {
  color: rgba(15, 118, 110, 0.05);
}

.phase-content {
  position: relative;
  z-index: 10;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #111827;
  color: #ffffff;
  padding: 4px 16px;
  font-size: 10px;
  font-weight: 700;
  
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.phase-2 .phase-badge {
  background-color: var(--color-primary);
}

.pulse-box {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  animation: pulse 2s infinite;
}

.pulse-box.white {
  background-color: #ffffff;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.phase-heading {
  font-size: 30px;
  font-weight: 900;
  color: var(--color-text);
  
  
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 32px;
}

.phase-description {
  position: relative;
  padding-left: 32px;
}

.phase-description::before {
  content: "";
  position: absolute;
  left: 0; top:0; bottom:0;
  width: 4px;
  background-color: var(--color-primary);
}

.phase-description p {
  font-size: 18px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.text-strong {
  color: #111827;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

.text-accent-color {
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 768px) {
  .text-right-aligned { text-align: right; }
  .align-right { margin-left: auto; }
  .phase-description.reverse { padding-left: 0; padding-right: 32px; }
  .phase-description.reverse::before { left: auto; right: 0; background-color: #111827; }
}

/* Central Node Connector */
.central-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.node-diamond {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  border: 4px solid #ffffff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.arrow-down-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
  transform: rotate(-45deg);
}

 
/* Utility */
.desktop-only { display: none; }
@media (min-width: 1024px) {
  .desktop-only { display: flex; }
  .mechanical-track.desktop-only { display: block; }
}
