/* ============================================
   TECHNOLOGY SECTION - PREMIUM REDESIGN
   Asymmetric precision engineering showcase
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Syne:wght@700;800&display=swap');

/* Section Container */
#technology.snap-panel {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-block-size: calc(100svh - var(--nav-h, 80px));
  display: flex;
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg,
    #ffffff 0%,
    #fff8f5 30%,
    #ffffff 60%,
    #fef7f3 100%);
  padding: 0;
}

/* Animated background particles (photons) */
#technology::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 0, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 0, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Floating grid overlay */
#technology::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Main Container */
.technology-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.tech-stage {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

/* ============================================
   LEFT SIDE - Content
   ============================================ */

.tech-content-side {
  position: relative;
  z-index: 2;
  padding: 0.5rem 0;
  width: 100%;
  overflow-x: hidden;
}

/* Header with precision line */
.tech-header-premium {
  position: relative;
  margin-bottom: 1.25rem;
}

.tech-precision-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tech-precision-marker {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #ff6b00, #ff8c42);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

.tech-precision-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff6b00;
  opacity: 0.9;
}

/* Main Title */
.tech-title-premium {
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tech-title-gradient {
  background: linear-gradient(135deg, #ff6b00 0%, #ff9447 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(10deg); }
}

/* Description */
.tech-description-premium {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.6;
  color: #2a2a2a;
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid rgba(255, 107, 0, 0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tech-description-premium strong {
  color: #ff6b00;
  font-weight: 600;
}

/* Key Benefit Badge */
.tech-benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg,
    rgba(255, 107, 0, 0.1) 0%,
    rgba(255, 107, 0, 0.05) 100%);
  border: 2px solid rgba(255, 107, 0, 0.3);
  border-radius: 50px;
  padding: 0.6rem 1.25rem;
  margin-top: 0.75rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.tech-benefit-badge:hover {
  background: linear-gradient(135deg,
    rgba(255, 107, 0, 0.15) 0%,
    rgba(255, 107, 0, 0.08) 100%);
  border-color: rgba(255, 107, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.2);
}

.tech-benefit-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ff6b00, #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-benefit-icon svg {
  width: 12px;
  height: 12px;
  stroke: white;
  stroke-width: 3;
}

.tech-benefit-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* Technical Specs */
.tech-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tech-spec-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #ff6b00, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-spec-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 107, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.15);
}

.tech-spec-card:hover::before {
  opacity: 1;
}

.tech-spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 0.3rem;
}

.tech-spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* ============================================
   RIGHT SIDE - Visual Showcase
   ============================================ */

.tech-visual-side {
  position: relative;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating orb container */
.tech-orbs-premium {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5rem;
}

/* Individual orb wrapper */
.tech-orb-frame {
  position: relative;
  width: clamp(200px, 24vw, 280px);
  height: clamp(200px, 24vw, 280px);
}

/* Orb with measurement overlay */
.tech-orb-container-premium {
  position: relative;
  width: 100%;
  height: 100%;
}

.tech-orb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 107, 0, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 20px 60px rgba(255, 107, 0, 0.2),
    inset 0 0 80px rgba(255, 255, 255, 0.3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-orb-frame:hover .tech-orb-image {
  transform: scale(1.05);
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 30px 80px rgba(255, 107, 0, 0.3),
    0 0 100px rgba(255, 107, 0, 0.2),
    inset 0 0 100px rgba(255, 255, 255, 0.4);
}

/* Rotating measurement ring */
.tech-measurement-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-orb-frame:hover .tech-measurement-ring {
  opacity: 1;
  animation: ringRotate 12s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.tech-measurement-ring svg {
  width: 100%;
  height: 100%;
}

/* Orb label */
.tech-orb-label-premium {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b00, #ff8c42);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 6px 20px rgba(255, 107, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.tech-orb-frame:hover .tech-orb-label-premium {
  transform: translateX(-50%) translateY(5px) scale(1.05);
  box-shadow:
    0 12px 35px rgba(255, 107, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Decorative technical markers */
.tech-marker {
  position: absolute;
  width: 45px;
  height: 45px;
  pointer-events: none;
  opacity: 0.3;
  animation: markerPulse 4s ease-in-out infinite;
}

.tech-marker:nth-child(1) {
  top: 10%;
  right: -30px;
  animation-delay: 0s;
}

.tech-marker:nth-child(2) {
  bottom: 15%;
  left: -20px;
  animation-delay: 2s;
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

.tech-marker svg {
  width: 100%;
  height: 100%;
  stroke: #ff6b00;
  fill: none;
  stroke-width: 1;
}

/* Photon flow particles */
.tech-photon-flow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  overflow: visible;
}

.photon {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ff6b00;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
  animation: photonMove 3s ease-in-out infinite;
  opacity: 0;
}

.photon:nth-child(1) { animation-delay: 0s; top: -20px; }
.photon:nth-child(2) { animation-delay: 0.6s; top: 0px; }
.photon:nth-child(3) { animation-delay: 1.2s; top: 20px; }
.photon:nth-child(4) { animation-delay: 1.8s; top: -10px; }
.photon:nth-child(5) { animation-delay: 2.4s; top: 10px; }

@keyframes photonMove {
  0% {
    left: -5%;
    opacity: 0;
    transform: scale(0.5);
  }
  10% { opacity: 1; transform: scale(1); }
  90% { opacity: 1; transform: scale(1); }
  100% {
    left: 105%;
    opacity: 0;
    transform: scale(0.5);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .tech-stage {
    gap: 2rem;
  }

  .tech-title-premium {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
}

@media (max-width: 968px) {
  .tech-stage {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.5rem;
    overflow-x: hidden;
  }

  .tech-content-side {
    order: 1;
    width: 100%;
    overflow-x: hidden;
  }

  .tech-visual-side {
    order: 2;
    min-height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .tech-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 1.25rem;
  }

  .tech-orbs-premium {
    flex-direction: column;
    gap: 4rem;
    padding: 1rem 0;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .tech-orb-frame {
    width: clamp(180px, 45vw, 240px);
    height: clamp(180px, 45vw, 240px);
    margin: 0 auto;
  }

  .tech-title-premium {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    max-width: 100%;
  }

  .tech-description-premium {
    font-size: 0.95rem;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .tech-stage {
    padding: 1.5rem 1rem;
    gap: 2rem;
  }

  .tech-content-side {
    width: 100%;
    max-width: 100%;
  }

  .tech-header-premium {
    margin-bottom: 1rem;
  }

  .tech-title-premium {
    font-size: 2.5rem;
    margin-bottom: 0.85rem;
    max-width: 100%;
  }

  .tech-description-premium {
    font-size: 0.88rem;
    padding-left: 1rem;
    margin-bottom: 1rem;
    line-height: 1.55;
    max-width: 100%;
  }

  .tech-benefit-badge {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    max-width: fit-content;
  }

  .tech-benefit-text {
    font-size: 0.85rem;
  }

  .tech-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .tech-spec-card {
    padding: 0.8rem 0.9rem;
  }

  .tech-visual-side {
    min-height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .tech-orbs-premium {
    flex-direction: column;
    gap: 4rem;
    padding: 0.5rem 0;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .tech-orb-frame {
    width: min(240px, 75vw);
    height: min(240px, 75vw);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .tech-orb-container-premium {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tech-orb-label-premium {
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .tech-precision-text {
    font-size: 0.7rem;
  }

  /* Hide decorative elements on mobile for cleaner look */
  .tech-marker {
    display: none;
  }

  .tech-photon-flow {
    opacity: 0.3;
  }
}

/* Extra small phones */
@media (max-width: 400px) {
  .tech-stage {
    padding: 1.25rem 0.75rem;
    gap: 1.5rem;
  }

  .tech-title-premium {
    font-size: 2.5rem;
    max-width: 100%;
  }

  .tech-description-premium {
    font-size: 0.82rem;
    padding-left: 0.75rem;
    max-width: 100%;
  }

  .tech-benefit-badge {
    padding: 0.5rem 0.95rem;
    font-size: 0.78rem;
    max-width: fit-content;
  }

  .tech-specs-grid {
    gap: 0.5rem;
  }

  .tech-spec-card {
    padding: 0.7rem 0.8rem;
  }

  .tech-spec-label {
    font-size: 0.6rem;
  }

  .tech-spec-value {
    font-size: 0.85rem;
  }

  .tech-visual-side {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .tech-orbs-premium {
    gap: 3.5rem;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .tech-orb-frame {
    width: min(200px, 85vw);
    height: min(200px, 85vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tech-orb-label-premium {
    font-size: 0.7rem;
    padding: 0.4rem 0.9rem;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  /* Hide photon flow on very small screens for cleaner look */
  .tech-photon-flow {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  #technology::after,
  .tech-orb-frame,
  .tech-precision-marker,
  .tech-measurement-ring,
  .photon,
  .tech-marker {
    animation: none !important;
  }

  .tech-orb-frame:hover .tech-orb-image {
    transform: scale(1.02);
  }
}

/* Print styles */
@media print {
  #technology::before,
  #technology::after,
  .tech-photon-flow,
  .tech-marker,
  .tech-measurement-ring {
    display: none;
  }
}

/* ============================================
   ENHANCED LAYOUT - Larger Fonts & 3-Image Grid
   ============================================ */

/* Larger fonts for left side content */
.tech-title-premium {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
}

.tech-description-premium {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.tech-precision-text {
  font-size: 0.85rem;
}

.tech-benefit-text {
  font-size: 1rem;
}

/* Tighter spacing for 3-line text area */
.tech-header-premium {
  margin-bottom: 0.75rem;
}

.tech-precision-line {
  margin-bottom: 0.5rem;
}

/* Right side - New 3-image grid layout */
.tech-images-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

/* Top row: two images side by side */
.tech-images-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
}

/* Bottom row: centered single image */
.tech-images-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Compact orb sizing for 3-image layout - LARGER SIZE */
.tech-orb-compact {
  width: clamp(200px, 24vw, 280px);
  height: clamp(200px, 24vw, 280px);
}

.tech-orb-compact .tech-orb-label-premium {
  font-size: 0.7rem;
  padding: 0.45rem 1rem;
  bottom: -36px;
}

/* Old line connector styles removed - now using JavaScript SVG arrows */

/* PVFAU image - zoom into center while keeping circle size */
.tech-orb-image-contain {
  object-position: bottom;
}

/* Responsive adjustments for new layout */
@media (max-width: 1400px) {
  .tech-orb-compact {
    width: clamp(180px, 20vw, 250px);
    height: clamp(180px, 20vw, 250px);
  }

}

@media (max-width: 1200px) {
  .tech-title-premium {
    font-size: clamp(2rem, 4.5vw, 4rem);
  }

  .tech-orb-compact {
    width: clamp(140px, 16vw, 190px);
    height: clamp(140px, 16vw, 190px);
  }

  .tech-images-grid {
    gap: 3rem;
  }

  .tech-images-top-row {
    gap: 3rem;
  }
}

@media (max-width: 968px) {
  .tech-images-grid {
    gap: 2.5rem;
    padding: 1rem 0;
  }

  .tech-images-top-row {
    flex-direction: row;
    gap: 2rem;
    flex-wrap: nowrap;
  }

  .tech-orb-compact {
    width: clamp(120px, 30vw, 160px);
    height: clamp(120px, 30vw, 160px);
  }

  .tech-orb-compact .tech-orb-label-premium {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
    bottom: -30px;
  }
}

@media (max-width: 640px) {
  .tech-title-premium {
    font-size: 2.25rem;
  }

  .tech-description-premium {
    font-size: 0.95rem;
  }

  .tech-images-grid {
    gap: 2rem;
  }

  .tech-images-top-row {
    gap: 1.5rem;
  }

  .tech-orb-compact {
    width: clamp(100px, 28vw, 140px);
    height: clamp(100px, 28vw, 140px);
  }

  .tech-orb-compact .tech-orb-label-premium {
    font-size: 0.55rem;
    padding: 0.35rem 0.7rem;
    bottom: -28px;
  }

  .tech-orb-image {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 400px) {
  .tech-images-top-row {
    gap: 1rem;
  }

  .tech-orb-compact {
    width: clamp(90px, 26vw, 120px);
    height: clamp(90px, 26vw, 120px);
  }

  .tech-orb-compact .tech-orb-label-premium {
    font-size: 0.5rem;
    padding: 0.3rem 0.6rem;
    bottom: -26px;
  }
}

/* ============================================
   SVG ARROW CONNECTORS
   ============================================ */

.tech-arrows-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.tech-arrow {
  opacity: 0.9;
  transition: opacity 0.3s ease, stroke-width 0.3s ease;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.85;
    stroke-width: 3;
  }
  50% {
    opacity: 1;
    stroke-width: 3.5;
  }
}

/* Hide arrows on mobile screens */
@media (max-width: 968px) {
  .tech-arrows-svg {
    display: none;
  }
}
