/* ============================================
   LANDING PAGE - FIELDWORK SECTION (TOOLS)
   Full Dark Mode
   ============================================ */

/* ========== FIELDWORK SECTION ========== */
.fieldwork-section {
  padding: var(--section-padding) 4rem;
  background: var(--color-bg);
  position: relative;
  z-index: 5;
  overflow: hidden;
}

/* Subtle accent glow at top */
.fieldwork-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center,
      var(--color-accent-subtle) 0%,
      transparent 70%);
  pointer-events: none;
}

.fieldwork-container {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================
   TOOLS ROTATION SECTION
   ============================================ */

.tools-rotation-wrapper {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.tools-circle {
  width: 480px;
  height: 480px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: grab;
  transition: border-color var(--transition-base);
  background: radial-gradient(circle at center,
      var(--color-bg-card) 0%,
      transparent 70%);
  box-shadow: var(--shadow-lg);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.tools-circle:active {
  cursor: grabbing;
  border-color: var(--color-accent);
}

.tool-item {
  width: 130px;
  text-align: center;
  pointer-events: auto;
  transition: transform var(--transition-base);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.tool-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease-bounce);
  position: relative;
}

.tool-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg,
      var(--color-accent) 0%,
      var(--color-accent-dark) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.tool-item:hover .tool-icon-wrapper {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-accent);
}

.tool-item:hover .tool-icon-wrapper::before {
  opacity: 1;
}

.tool-icon-wrapper svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-item:hover .tool-icon-wrapper svg {
  stroke: var(--color-white);
}

.tool-info {
  background: var(--color-bg-card);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.tool-info h3 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.tool-info p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ========== INTERACTION HINT ========== */
.interaction-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  border: 1px solid var(--color-border);
  animation: hint-pulse 2.5s ease-in-out infinite;
}

.interaction-hint svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  animation: hint-rotate 4s linear infinite;
}

@keyframes hint-pulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) scale(1.03);
    opacity: 0.85;
  }
}

@keyframes hint-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  .fieldwork-section {
    padding: var(--section-padding) 2rem;
  }

  .tools-circle {
    width: 380px;
    height: 380px;
  }

  .tool-item {
    width: 110px;
  }

  .tool-icon-wrapper {
    width: 68px;
    height: 68px;
  }

  .tool-icon-wrapper svg {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 768px) {
  .fieldwork-section {
    padding: var(--section-padding-sm) 1.25rem;
  }

  .fieldwork-section::before {
    width: 400px;
    height: 200px;
  }

  .section-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .tools-rotation-wrapper {
    min-height: 400px;
    padding: 0.75rem;
  }

  .tools-circle {
    width: 280px;
    height: 280px;
    border-width: 1px;
  }

  .tool-item {
    width: 90px;
  }

  .tool-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
  }

  .tool-icon-wrapper svg {
    width: 26px;
    height: 26px;
  }

  .tool-info {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
  }

  .tool-info h3 {
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
  }

  .tool-info p {
    font-size: 0.625rem;
    line-height: 1.35;
  }

  .interaction-hint {
    font-size: 0.7rem;
    padding: 0.5rem 0.875rem;
    bottom: 1rem;
  }

  .interaction-hint svg {
    width: 14px;
    height: 14px;
  }

  .interaction-hint span {
    display: inline;
  }
}

@media (max-width: 480px) {
  .fieldwork-section {
    padding: var(--section-padding-sm) 1rem;
  }

  .tools-rotation-wrapper {
    min-height: 350px;
    padding: 0.5rem;
  }

  .tools-circle {
    width: 240px;
    height: 240px;
  }

  .tool-item {
    width: 75px;
  }

  .tool-icon-wrapper {
    width: 44px;
    height: 44px;
    margin-bottom: 0.375rem;
  }

  .tool-icon-wrapper svg {
    width: 22px;
    height: 22px;
  }

  .tool-info {
    padding: 0.375rem;
  }

  .tool-info h3 {
    font-size: 0.6875rem;
  }

  .tool-info p {
    font-size: 0.5625rem;
    display: none;
    /* Hide description on very small screens */
  }

  .interaction-hint {
    font-size: 0.65rem;
    padding: 0.375rem 0.75rem;
    gap: 0.375rem;
  }

  .interaction-hint svg {
    width: 12px;
    height: 12px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .tools-circle {
    cursor: default;
  }

  .tool-item:hover .tool-icon-wrapper {
    transform: none;
    background: var(--color-bg-card);
    border-color: var(--color-border);
  }

  .tool-item:hover .tool-icon-wrapper svg {
    stroke: var(--color-text);
  }

  .interaction-hint span {
    content: "Swipe to explore";
  }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .fieldwork-section {
    padding: 2rem 1.5rem;
  }

  .tools-rotation-wrapper {
    min-height: 300px;
  }

  .tools-circle {
    width: 220px;
    height: 220px;
  }

  .tool-item {
    width: 70px;
  }

  .tool-icon-wrapper {
    width: 40px;
    height: 40px;
  }

  .tool-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }

  .tool-info {
    display: none;
  }

  .interaction-hint {
    bottom: 0.5rem;
  }
}