/* ==========================================
   WHAT WE DELIVER - MORPHING VISUAL
   Smooth 6-state animation with natural transitions
   ========================================== */

:root {
  --deliver-cyan: #00d4ff;
  --deliver-purple: #8b5cf6;
  --deliver-green: #10b981;
  --deliver-orange: #f59e0b;
  --deliver-pink: #ec4899;
  --deliver-blue: #06b6d4;
  --deliver-surface: rgba(15, 23, 42, 0.92);
  --deliver-cycle: 30s; /* Slower, more natural cycle */
}

/* ========== SECTION STYLING ========== */
.solutions-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a1a 0%, #050510 50%, #0a0a1a 100%);
  position: relative;
  overflow: hidden;
}

.solutions-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1200px;
  height: 1200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* ========== STAGE & CONTAINER ========== */
.deliver-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.deliver-morph {
  position: relative;
  background: var(--deliver-surface);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation:
    morphShape var(--deliver-cycle) cubic-bezier(0.4, 0, 0.2, 1) infinite,
    morphGlow var(--deliver-cycle) ease-in-out infinite;
}

/* ========== SHAPE MORPHING ANIMATION - SLOWER ========== */
@keyframes morphShape {
  /* Training: Wide horizontal */
  0%, 13% {
    width: 720px;
    height: 340px;
    border-radius: 28px;
  }
  /* Transition */
  15% {
    width: 600px;
    height: 400px;
    border-radius: 27px;
  }
  /* Development: Tall vertical */
  17%, 30% {
    width: 500px;
    height: 420px;
    border-radius: 26px;
  }
  /* Transition */
  32% {
    width: 620px;
    height: 380px;
    border-radius: 27px;
  }
  /* Partnership: Wide horizontal */
  34%, 47% {
    width: 700px;
    height: 320px;
    border-radius: 28px;
  }
  /* Transition */
  49% {
    width: 520px;
    height: 400px;
    border-radius: 30px;
  }
  /* Consulting: Square */
  51%, 64% {
    width: 460px;
    height: 420px;
    border-radius: 32px;
  }
  /* Transition */
  66% {
    width: 540px;
    height: 380px;
    border-radius: 26px;
  }
  /* Integration: Horizontal */
  68%, 81% {
    width: 600px;
    height: 360px;
    border-radius: 24px;
  }
  /* Transition */
  83% {
    width: 480px;
    height: 400px;
    border-radius: 28px;
  }
  /* Support: Square */
  85%, 98% {
    width: 440px;
    height: 400px;
    border-radius: 28px;
  }
  100% {
    width: 720px;
    height: 340px;
    border-radius: 28px;
  }
}

/* ========== GLOW ANIMATION - SMOOTH TRANSITIONS ========== */
@keyframes morphGlow {
  0%, 13% {
    filter: drop-shadow(0 0 60px rgba(0, 212, 255, 0.35));
    border-color: rgba(0, 212, 255, 0.25);
  }
  17%, 30% {
    filter: drop-shadow(0 0 65px rgba(139, 92, 246, 0.4));
    border-color: rgba(139, 92, 246, 0.3);
  }
  34%, 47% {
    filter: drop-shadow(0 0 60px rgba(16, 185, 129, 0.38));
    border-color: rgba(16, 185, 129, 0.28);
  }
  51%, 64% {
    filter: drop-shadow(0 0 65px rgba(245, 158, 11, 0.42));
    border-color: rgba(245, 158, 11, 0.3);
  }
  68%, 81% {
    filter: drop-shadow(0 0 68px rgba(236, 72, 153, 0.4));
    border-color: rgba(236, 72, 153, 0.3);
  }
  85%, 98% {
    filter: drop-shadow(0 0 60px rgba(6, 182, 212, 0.38));
    border-color: rgba(6, 182, 212, 0.28);
  }
  100% {
    filter: drop-shadow(0 0 60px rgba(0, 212, 255, 0.35));
    border-color: rgba(0, 212, 255, 0.25);
  }
}

/* ========== UNIVERSAL CONTENT STYLING ========== */
.deliver-content {
  position: absolute;
  inset: 0;
  padding: 2.5rem 3rem;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transition: opacity 0.8s ease-in-out;
}

.deliver-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: white;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.deliver-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0 0 1.25rem 0;
}

/* Icon styling */
.state-icon {
  width: 85px;
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.state-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
}

/* Icon and text areas */
.state-icon-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.state-text-area {
  flex: 1;
}

.state-text-area h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.state-text-area p {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.state-features {
  gap: 0.5rem;
}

.feature-item {
  font-size: clamp(0.75rem, 1vw, 0.85rem);
}

.tech-tag {
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  padding: 0.45rem 0.9rem;
}

.grid-item {
  font-size: clamp(0.75rem, 1vw, 0.8rem);
  padding: 0.9rem;
}

.support-item {
  font-size: clamp(0.75rem, 1vw, 0.8rem);
  padding: 0.9rem;
}

/* Features grid */
.state-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Tech tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tech-tag i {
  font-size: 0.85rem;
}

/* ========== STATE 1: TRAINING ========== */
.state-training {
  flex-direction: row;
  animation: showTraining var(--deliver-cycle) ease-in-out infinite;
}

@keyframes showTraining {
  0%, 13% { opacity: 1; }
  15%, 100% { opacity: 0; }
}

.state-training .state-icon {
  background: linear-gradient(135deg, var(--deliver-cyan), #0ea5e9);
  box-shadow: 0 15px 45px rgba(0, 212, 255, 0.45);
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.state-training .state-badge {
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--deliver-cyan);
}

.state-training .feature-item i {
  color: var(--deliver-cyan);
}

/* ========== STATE 2: DEVELOPMENT ========== */
.state-development {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  animation: showDevelopment var(--deliver-cycle) ease-in-out infinite;
}

@keyframes showDevelopment {
  0%, 15% { opacity: 0; }
  17%, 30% { opacity: 1; }
  32%, 100% { opacity: 0; }
}

.state-development .state-icon {
  background: linear-gradient(135deg, var(--deliver-purple), #a78bfa);
  box-shadow: 0 15px 45px rgba(139, 92, 246, 0.45);
  margin: 0 auto 1.2rem;
  animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.state-development .state-icon-area {
  margin-bottom: 0;
}

.state-development .state-text-area {
  max-width: 420px;
  margin: 0 auto;
}

.state-development .tech-tag {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: rgba(255, 255, 255, 0.95);
}

.state-development .tech-tag i {
  color: var(--deliver-purple);
}

/* ========== STATE 3: PARTNERSHIP ========== */
.state-partnership {
  flex-direction: row-reverse;
  animation: showPartnership var(--deliver-cycle) ease-in-out infinite;
}

@keyframes showPartnership {
  0%, 32% { opacity: 0; }
  34%, 47% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.state-partnership .state-icon {
  background: linear-gradient(135deg, var(--deliver-green), #34d399);
  box-shadow: 0 15px 45px rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  animation: pulseGreen 3.5s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 15px 45px rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 18px 55px rgba(16, 185, 129, 0.65);
  }
}

.state-partnership .state-badge {
  background: linear-gradient(135deg, var(--deliver-green), #34d399);
  color: white;
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.35);
}

.state-partnership .feature-item i {
  color: var(--deliver-green);
}

/* ========== STATE 4: CONSULTING ========== */
.state-consulting {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: showConsulting var(--deliver-cycle) ease-in-out infinite;
}

@keyframes showConsulting {
  0%, 49% { opacity: 0; }
  51%, 64% { opacity: 1; }
  66%, 100% { opacity: 0; }
}

.consulting-center {
  text-align: center;
  margin-bottom: 1.5rem;
}

.state-consulting .state-icon {
  background: linear-gradient(135deg, var(--deliver-orange), #eab308);
  box-shadow: 0 15px 45px rgba(245, 158, 11, 0.45);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: floatIcon 4s ease-in-out infinite;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 340px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
}

.grid-item:hover {
  background: rgba(245, 158, 11, 0.18);
  transform: translateY(-3px);
}

.grid-item i {
  font-size: 1.4rem;
  color: var(--deliver-orange);
}

/* ========== STATE 5: INTEGRATION ========== */
.state-integration {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: showIntegration var(--deliver-cycle) ease-in-out infinite;
}

@keyframes showIntegration {
  0%, 66% { opacity: 0; }
  68%, 81% { opacity: 1; }
  83%, 100% { opacity: 0; }
}

.integration-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.state-integration .state-icon {
  background: linear-gradient(135deg, var(--deliver-pink), #f472b6);
  box-shadow: 0 15px 45px rgba(236, 72, 153, 0.45);
  margin: 0 auto 1rem;
  animation: pulseIcon 3s ease-in-out infinite;
}

.integration-nodes {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 460px;
}

.node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.node-item i {
  width: 58px;
  height: 58px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--deliver-pink);
  transition: all 0.4s ease;
}

.node-item:hover i {
  background: rgba(236, 72, 153, 0.22);
  transform: translateY(-3px);
}

/* ========== STATE 6: SUPPORT ========== */
.state-support {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: showSupport var(--deliver-cycle) ease-in-out infinite;
}

@keyframes showSupport {
  0%, 83% { opacity: 0; }
  85%, 98% { opacity: 1; }
  100% { opacity: 0; }
}

.support-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.state-support .state-icon {
  background: linear-gradient(135deg, var(--deliver-blue), #22d3ee);
  box-shadow: 0 15px 45px rgba(6, 182, 212, 0.45);
  margin: 0 auto 1rem;
  animation: floatIcon 4s ease-in-out infinite;
}

.support-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.support-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.15rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.4s ease;
}

.support-item:hover {
  background: rgba(6, 182, 212, 0.18);
  transform: translateY(-3px);
}

.support-item i {
  font-size: 1.5rem;
  color: var(--deliver-blue);
}

/* ========== NAVIGATION DOTS ========== */
.deliver-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  position: relative;
  z-index: 20;
}

.deliver-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(100, 200, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.deliver-dot:hover {
  border-color: rgba(100, 200, 255, 0.6);
  background: rgba(100, 200, 255, 0.15);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.4);
}

.deliver-dot.active {
  width: 14px;
  height: 14px;
  transform: scale(1.1);
}

.deliver-dot[data-index="0"].active {
  background: var(--deliver-cyan);
  border-color: var(--deliver-cyan);
  box-shadow: 0 0 20px var(--deliver-cyan), 0 0 40px rgba(0, 212, 255, 0.3);
}

.deliver-dot[data-index="1"].active {
  background: var(--deliver-purple);
  border-color: var(--deliver-purple);
  box-shadow: 0 0 20px var(--deliver-purple), 0 0 40px rgba(139, 92, 246, 0.3);
}

.deliver-dot[data-index="2"].active {
  background: var(--deliver-green);
  border-color: var(--deliver-green);
  box-shadow: 0 0 20px var(--deliver-green), 0 0 40px rgba(16, 185, 129, 0.3);
}

.deliver-dot[data-index="3"].active {
  background: var(--deliver-orange);
  border-color: var(--deliver-orange);
  box-shadow: 0 0 20px var(--deliver-orange), 0 0 40px rgba(245, 158, 11, 0.3);
}

.deliver-dot[data-index="4"].active {
  background: var(--deliver-pink);
  border-color: var(--deliver-pink);
  box-shadow: 0 0 20px var(--deliver-pink), 0 0 40px rgba(236, 72, 153, 0.3);
}

.deliver-dot[data-index="5"].active {
  background: var(--deliver-blue);
  border-color: var(--deliver-blue);
  box-shadow: 0 0 20px var(--deliver-blue), 0 0 40px rgba(6, 182, 212, 0.3);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
  .deliver-stage {
    height: 540px;
  }

  @keyframes morphShape {
    0%, 13% { width: 90vw; max-width: 680px; height: 380px; border-radius: 24px; }
    17%, 30% { width: 85vw; max-width: 500px; height: 480px; border-radius: 22px; }
    34%, 47% { width: 90vw; max-width: 680px; height: 360px; border-radius: 24px; }
    51%, 64% { width: 85vw; max-width: 480px; height: 460px; border-radius: 28px; }
    68%, 81% { width: 88vw; max-width: 580px; height: 400px; border-radius: 20px; }
    85%, 98% { width: 85vw; max-width: 460px; height: 440px; border-radius: 24px; }
    100% { width: 90vw; max-width: 680px; height: 380px; border-radius: 24px; }
  }

  .deliver-content {
    padding: 2rem;
  }

  .state-icon {
    width: 75px;
    height: 75px;
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .solutions-section {
    padding: 60px 0;
  }

  .deliver-stage {
    height: auto;
    min-height: 450px;
  }

  .state-support {
    padding: 1.5rem;
  }

  .support-options {
    max-width: 100%;
    gap: 0.75rem;
  }

  .support-item {
    padding: 0.75rem;
    font-size: 0.7rem;
  }

  .state-text-area h2 {
    font-size: 1.3rem;
  }

  .state-text-area p {
    font-size: 0.8rem;
  }
}

/* Mobile Small - 480px and below */
@media (max-width: 480px) {
  .deliver-stage {
    min-height: 500px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .deliver-morph {
    width: 95vw !important;
    max-width: 500px !important;
    height: auto !important;
    min-height: 450px !important;
    margin: 0 auto;
    position: relative;
  }

  @keyframes morphShape {
    0%, 13% { width: 95vw !important; max-width: 500px !important; height: 450px !important; border-radius: 20px; }
    17%, 30% { width: 95vw !important; max-width: 450px !important; height: 480px !important; border-radius: 20px; }
    34%, 47% { width: 95vw !important; max-width: 500px !important; height: 450px !important; border-radius: 20px; }
    51%, 64% { width: 95vw !important; max-width: 450px !important; height: 480px !important; border-radius: 24px; }
    68%, 81% { width: 95vw !important; max-width: 480px !important; height: 460px !important; border-radius: 18px; }
    85%, 98% { width: 95vw !important; max-width: 450px !important; height: 460px !important; border-radius: 20px; }
    100% { width: 95vw !important; max-width: 500px !important; height: 450px !important; border-radius: 20px; }
  }

  .deliver-content {
    padding: 1.5rem !important;
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
  }

  .deliver-content h2 {
    font-size: 1.4rem !important;
    margin-bottom: 0.75rem !important;
  }

  .deliver-content p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .state-icon-area {
    width: 100%;
    align-items: center;
  }

  .state-icon {
    width: 70px !important;
    height: 70px !important;
    font-size: 1.8rem !important;
    margin: 0 auto 0.75rem !important;
  }

  .state-text-area {
    width: 100%;
    text-align: center;
  }

  .state-features {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 0.5rem !important;
    justify-items: center;
  }

  .feature-item {
    justify-content: center;
    font-size: 0.8rem;
  }

  .tech-tags {
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .consulting-grid,
  .support-options {
    max-width: 100% !important;
    width: 100%;
    gap: 0.75rem;
  }

  .grid-item,
  .support-item {
    padding: 0.875rem;
    font-size: 0.75rem;
  }

  .integration-nodes {
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 100% !important;
    gap: 0.75rem;
  }

  .node-item {
    flex: 0 0 calc(50% - 0.375rem);
  }

  .node-item i {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
  }

  .state-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }
}
