/* ==========================================================================
   Industries We Serve - Ultra-Luxury Apple + Stripe + Framer Aesthetics
   Light Ivory Theme with Holographic Globe & Futuristic Smart City Hub
   ========================================================================== */

:root {
  --iws-bg: #FFF9F4;
  --iws-white: #FFFFFF;
  --iws-dark-text: #0F172A;
  --iws-body-text: #555555;
  --iws-node-text: #1F2937;
  --iws-orange: #DF643B;
  --iws-orange-light: #F28A2D;
  --iws-gold: #E8A24B;
  --iws-gold-glow: rgba(232, 162, 75, 0.35);
  --iws-border-orange: rgba(223, 100, 59, 0.18);
  --iws-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.07);
  --iws-shadow-hover: 0 20px 45px rgba(223, 100, 59, 0.18);
  --iws-font-heading: 'Syne', 'Outfit', 'Inter', -apple-system, sans-serif;
  --iws-font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --iws-font-script: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
}

.iws-section {
  position: relative;
  background-color: var(--iws-bg);
  color: var(--iws-dark-text);
  padding: 130px 0 150px;
  overflow: hidden;
  font-family: var(--iws-font-body);
}

/* Ambient Radial Glow & Wave Patterns */
.iws-bg-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(223, 100, 59, 0.07) 0%, rgba(232, 162, 75, 0.04) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: iwsGlowPulse 10s ease-in-out infinite alternate;
}

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

/* Side Abstract Wave/Mesh Patterns */
.iws-wave-left,
.iws-wave-right {
  position: absolute;
  top: 20%;
  width: 320px;
  height: 600px;
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.iws-wave-left {
  left: -40px;
}

.iws-wave-right {
  right: -40px;
}

/* Canvas for Upward Light Particles */
.iws-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Container */
.iws-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Header Section */
.iws-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 70px;
}

/* Top Capsule Badge */
.iws-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--iws-white);
  border: 1px solid var(--iws-border-orange);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  color: var(--iws-orange);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.iws-badge.iws-visible {
  opacity: 1;
  transform: translateY(0);
}

.iws-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(223, 100, 59, 0.15);
}

.iws-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--iws-orange);
  box-shadow: 0 0 8px var(--iws-orange);
  animation: iwsDotPing 2s infinite;
}

@keyframes iwsDotPing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Main Heading */
.iws-title {
  font-family: var(--iws-font-heading);
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.iws-title.iws-visible {
  opacity: 1;
  transform: translateY(0);
}

.iws-title-line1 {
  display: block;
  color: var(--iws-dark-text);
}

.iws-title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--iws-orange) 0%, var(--iws-orange-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Decorative Divider */
.iws-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  width: 90px;
  height: 2px;
  position: relative;
  background: linear-gradient(90deg, transparent, var(--iws-orange), transparent);
}

.iws-divider-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--iws-orange);
  box-shadow: 0 0 10px var(--iws-orange);
}

/* Paragraph Description */
.iws-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--iws-body-text);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.iws-description.iws-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Central Visual Stage: Dotted Globe + Holographic Smart City + Orbit
   ========================================================================== */

.iws-stage-wrapper {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* Holographic Globe Canvas & Container */
.iws-globe-container {
  position: relative;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Background Halo Ring & Radial Bloom */
.iws-globe-halo {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1.5px dashed rgba(232, 162, 75, 0.25);
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0%, rgba(253, 240, 228, 0.3) 50%, transparent 75%);
  box-shadow: 0 0 60px rgba(232, 162, 75, 0.12), inset 0 0 40px rgba(255, 255, 255, 0.8);
  animation: iwsHaloPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes iwsHaloPulse {
  0% { transform: scale(0.98); opacity: 0.8; }
  100% { transform: scale(1.03); opacity: 1; box-shadow: 0 0 90px rgba(223, 100, 59, 0.18), inset 0 0 50px rgba(255, 255, 255, 0.9); }
}

.iws-globe-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

/* Center Text Inside Globe */
.iws-globe-text {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  pointer-events: none;
}

.iws-globe-text-prefix {
  font-family: var(--iws-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--iws-dark-text);
  margin-bottom: 2px;
  opacity: 0.9;
}

.iws-globe-text-main {
  font-family: var(--iws-font-script);
  font-size: clamp(3.2rem, 5vw, 4.2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--iws-gold);
  text-shadow: 0 4px 15px rgba(232, 162, 75, 0.3);
  line-height: 1;
}

/* Smart City Skyline at Globe Base */
.iws-city-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 440px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.iws-city-svg {
  width: 100%;
  height: 140px;
  filter: drop-shadow(0 15px 25px rgba(223, 100, 59, 0.12));
  animation: iwsCityGlow 4s ease-in-out infinite alternate;
}

@keyframes iwsCityGlow {
  0% { filter: drop-shadow(0 10px 20px rgba(223, 100, 59, 0.08)); }
  100% { filter: drop-shadow(0 18px 30px rgba(232, 162, 75, 0.22)); }
}

/* Holographic City Platform - Concentric Rings */
.iws-city-platform {
  position: relative;
  width: 380px;
  height: 40px;
  margin-top: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iws-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(223, 100, 59, 0.25);
  transform: rotateX(75deg);
}

.iws-ring-1 {
  width: 360px;
  height: 100px;
  border-color: rgba(232, 162, 75, 0.4);
  box-shadow: 0 0 20px rgba(232, 162, 75, 0.2);
  animation: iwsRingRotate 12s linear infinite;
}

.iws-ring-2 {
  width: 280px;
  height: 80px;
  border-color: rgba(223, 100, 59, 0.3);
  animation: iwsRingRotate 8s linear infinite reverse;
}

.iws-ring-3 {
  width: 200px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(232, 162, 75, 0.3) 0%, transparent 70%);
}

@keyframes iwsRingRotate {
  0% { transform: rotateX(75deg) rotateZ(0deg); }
  100% { transform: rotateX(75deg) rotateZ(360deg); }
}

/* Platform Light Reflection */
.iws-platform-reflection {
  position: absolute;
  bottom: -20px;
  width: 320px;
  height: 25px;
  background: radial-gradient(ellipse, rgba(232, 162, 75, 0.25) 0%, transparent 80%);
  filter: blur(10px);
}

/* Semi-Circular Industry Orbit Path */
.iws-orbit-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1050px;
  height: 680px;
  pointer-events: none;
  z-index: 1;
}

.iws-orbit-path {
  fill: none;
  stroke: rgba(223, 100, 59, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}

.iws-orbit-flow {
  fill: none;
  stroke: url(#iws-orbit-gradient);
  stroke-width: 2.5;
  stroke-dasharray: 120 400;
  animation: iwsOrbitFlow 6s linear infinite;
}

@keyframes iwsOrbitFlow {
  0% { stroke-dashoffset: 520; }
  100% { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Industry Nodes (Left & Right Symmetric Layout)
   ========================================================================== */

.iws-nodes-column {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 6;
}

.iws-nodes-left {
  left: 0;
}

.iws-nodes-right {
  right: 0;
}

.iws-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--iws-shadow-soft);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.iws-node.iws-visible {
  opacity: 1;
  transform: translateY(0);
}

.iws-nodes-right .iws-node {
  flex-direction: row-reverse;
  text-align: right;
}

.iws-node:hover {
  transform: translateY(-6px) scale(1.04);
  background: #FFFFFF;
  border-color: rgba(232, 162, 75, 0.4);
  box-shadow: 0 16px 36px rgba(223, 100, 59, 0.15), 0 0 25px rgba(232, 162, 75, 0.25);
}

/* 72px Circular White Icon Button */
.iws-node-icon-btn {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--iws-border-orange);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.iws-node:hover .iws-node-icon-btn {
  border-color: var(--iws-gold);
  box-shadow: 0 0 20px var(--iws-gold-glow);
  transform: rotate(6deg) scale(1.05);
}

.iws-node-svg {
  width: 32px;
  height: 32px;
  stroke: var(--iws-orange);
  fill: #FFFFFF;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, transform 0.3s ease;
}

.iws-node:hover .iws-node-svg {
  stroke: var(--iws-gold);
  transform: scale(1.1);
}

.iws-node-title {
  font-family: var(--iws-font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--iws-node-text);
  line-height: 1.35;
  transition: color 0.3s ease;
}

.iws-node:hover .iws-node-title {
  color: var(--iws-orange);
}

/* Individual Floating Motion Delays */
.iws-node-1 { animation: iwsFloatNode 5s ease-in-out infinite alternate; }
.iws-node-2 { animation: iwsFloatNode 5.5s ease-in-out infinite alternate -1s; }
.iws-node-3 { animation: iwsFloatNode 6s ease-in-out infinite alternate -2s; }
.iws-node-4 { animation: iwsFloatNode 5.2s ease-in-out infinite alternate -1.5s; }
.iws-node-5 { animation: iwsFloatNode 5.8s ease-in-out infinite alternate -2.5s; }
.iws-node-6 { animation: iwsFloatNode 6.2s ease-in-out infinite alternate -3s; }

.iws-node-7 { animation: iwsFloatNode 5.3s ease-in-out infinite alternate -0.5s; }
.iws-node-8 { animation: iwsFloatNode 5.7s ease-in-out infinite alternate -1.8s; }
.iws-node-9 { animation: iwsFloatNode 6.1s ease-in-out infinite alternate -2.2s; }
.iws-node-10 { animation: iwsFloatNode 5.4s ease-in-out infinite alternate -1.2s; }
.iws-node-11 { animation: iwsFloatNode 5.9s ease-in-out infinite alternate -2.8s; }
.iws-node-12 { animation: iwsFloatNode 6.3s ease-in-out infinite alternate -3.5s; }

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

/* ==========================================================================
   Responsive Layout Adaptations
   ========================================================================== */

@media (max-width: 1200px) {
  .iws-stage-wrapper {
    min-height: auto;
    flex-direction: column;
    padding-top: 40px;
  }

  .iws-orbit-svg {
    display: none;
  }

  .iws-nodes-column {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .iws-nodes-right .iws-node {
    flex-direction: row;
    text-align: left;
  }

  .iws-globe-container {
    width: 440px;
    height: 440px;
  }

  .iws-city-wrapper {
    width: 360px;
  }
}

@media (max-width: 768px) {
  .iws-section {
    padding: 80px 0 100px;
  }

  .iws-nodes-column {
    grid-template-columns: 1fr;
  }

  .iws-globe-container {
    width: 320px;
    height: 320px;
  }

  .iws-globe-text-main {
    font-size: 2.8rem;
  }

  .iws-city-wrapper {
    width: 280px;
  }

  .iws-node-icon-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .iws-node-svg {
    width: 26px;
    height: 26px;
  }
}
