.hero-engineering {
  background: linear-gradient(rgba(43, 45, 66, 0.8), rgba(43, 45, 66, 0.9)), url('images/hero1-modern-office-technology_orig.jpg') center/cover;
  background-attachment: fixed;
}

.geology-hero {
  background: linear-gradient(rgba(43, 45, 66, 0.7), rgba(43, 45, 66, 0.8)), url('images/section3-data-center-server_orig.jpg') center/cover;
  background-attachment: fixed;
}

.archive-section {
  background: var(--granite-bg);
  position: relative;
  overflow: hidden;
}

.archive-section::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background: var(--accent);
  border: var(--border-width) solid #000;
  opacity: 0.1;
  transform: rotate(45deg);
}

.mining-heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
}

.heritage-card {
  background: var(--bg-card);
  border: var(--border-width) solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  animation-delay: var(--delay, 0s);
}

.heritage-card:hover {
  transform: translate(-3px, -3px) perspective(1000px) rotateY(3deg);
  box-shadow: 9px 9px 0 #000;
}

.heritage-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.heritage-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: var(--bg-secondary);
}

.heritage-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--accent), var(--primary));
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
}

.heritage-card:hover::before {
  opacity: 0.1;
}

.technical-diagram {
  background: var(--bg-card);
  border: var(--border-width) solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 2rem;
  margin: 3rem 0;
  position: relative;
}

.technical-diagram::before {
  content: 'TECHNICAL ARCHIVE';
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: 2px solid #000;
}

.depth-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  padding: 1rem;
  border: var(--border-width) solid #000;
  box-shadow: 4px 4px 0 #000;
  font-family: var(--font-heading);
  font-weight: 700;
  z-index: 1000;
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.geological-cross-section {
  background: linear-gradient(to bottom, 
    #8D99AE 0%, 
    #6C757D 20%, 
    #495057 40%, 
    #343A40 60%, 
    var(--primary) 80%, 
    #1a1c2a 100%);
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border: var(--border-width) solid #000;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.geological-cross-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.1) 40px,
    rgba(255,255,255,0.1) 42px
  );
}

.lode-marker {
  position: absolute;
  background: var(--accent);
  height: 3px;
  border: 1px solid #000;
  box-shadow: 0 0 10px var(--accent);
}

.lode-marker:nth-child(1) { top: 25%; left: 10%; width: 30%; transform: rotate(-15deg); }
.lode-marker:nth-child(2) { top: 45%; left: 20%; width: 40%; transform: rotate(-20deg); }
.lode-marker:nth-child(3) { top: 70%; left: 15%; width: 35%; transform: rotate(-10deg); }

.beam-engine-diagram {
  background: var(--bg-card);
  padding: 3rem;
  border: var(--border-width) solid #000;
  box-shadow: 8px 8px 0 #000;
  margin: 3rem 0;
  position: relative;
}

.engine-component {
  position: absolute;
  background: var(--primary);
  border: 2px solid #000;
  color: white;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  pointer-events: none;
  transform-origin: center;
  animation: pulse 2s infinite alternate;
}

.engine-component:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.engine-component:nth-child(2) { top: 40%; left: 60%; animation-delay: 0.5s; }
.engine-component:nth-child(3) { top: 70%; left: 40%; animation-delay: 1s; }

@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); box-shadow: 0 0 15px var(--accent); }
}

.stannary-timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border: 2px solid #000;
  transform: translateX(-50%);
}

.timeline-event {
  position: relative;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border: var(--border-width) solid #000;
  box-shadow: 6px 6px 0 #000;
  width: 45%;
  transition: all 0.3s ease;
}

.timeline-event:nth-child(odd) {
  left: 0;
}

.timeline-event:nth-child(even) {
  left: 55%;
}

.timeline-event::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 3px solid #000;
  border-radius: 50%;
  transform: translateY(-50%);
}

.timeline-event:nth-child(odd)::before {
  right: -35px;
}

.timeline-event:nth-child(even)::before {
  left: -35px;
}

.timeline-event:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

.migration-map {
  background: var(--bg-card);
  padding: 3rem;
  border: var(--border-width) solid #000;
  box-shadow: 8px 8px 0 #000;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.migration-route {
  position: absolute;
  height: 3px;
  background: var(--accent);
  border: 1px solid #000;
  transform-origin: left center;
  opacity: 0;
  animation: drawLine 2s ease-in-out forwards;
}

.migration-route:nth-child(1) {
  top: 30%;
  left: 20%;
  width: 200px;
  transform: rotate(25deg);
  animation-delay: 0.5s;
}

.migration-route:nth-child(2) {
  top: 50%;
  left: 25%;
  width: 180px;
  transform: rotate(-15deg);
  animation-delay: 1s;
}

.migration-route:nth-child(3) {
  top: 70%;
  left: 30%;
  width: 220px;
  transform: rotate(10deg);
  animation-delay: 1.5s;
}

@keyframes drawLine {
  0% { 
    opacity: 1;
    width: 0;
  }
  100% { 
    opacity: 1;
    width: 200px;
  }
}

.destination-marker {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--accent);
  border: 2px solid #000;
  border-radius: 50%;
  animation: markerPulse 3s infinite;
}

.destination-marker:nth-child(4) { top: 25%; right: 20%; animation-delay: 2s; }
.destination-marker:nth-child(5) { top: 45%; right: 30%; animation-delay: 2.5s; }
.destination-marker:nth-child(6) { top: 65%; right: 25%; animation-delay: 3s; }

@keyframes markerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.5); box-shadow: 0 0 20px var(--accent); }
}

.underground-levels {
  background: linear-gradient(to bottom, 
    var(--bg-primary) 0%,
    #d0d0d0 10%,
    #b0b0b0 25%,
    #909090 40%,
    #707070 55%,
    var(--primary) 70%,
    #1a1c2a 100%);
  min-height: 600px;
  position: relative;
  border: var(--border-width) solid #000;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.7);
}

.level-marker {
  position: absolute;
  left: 20px;
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border: 2px solid #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 #000;
}

.level-marker:nth-child(1) { top: 10%; }
.level-marker:nth-child(2) { top: 30%; }
.level-marker:nth-child(3) { top: 50%; }
.level-marker:nth-child(4) { top: 70%; }
.level-marker:nth-child(5) { top: 90%; }

.mineral-specimen {
  background: var(--bg-card);
  border: var(--border-width) solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.mineral-specimen:hover {
  transform: translate(-3px, -3px) rotateY(5deg);
  box-shadow: 8px 8px 0 #000;
}

.mineral-specimen::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--accent), var(--primary));
  z-index: -1;
  opacity: 0;
  transition: all 0.3s ease;
}

.mineral-specimen:hover::before {
  opacity: 0.2;
}

.mineral-specimen img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.safety-innovation {
  background: var(--bg-card);
  border: var(--border-width) solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.safety-innovation::before {
  content: 'SAFETY RECORD';
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--accent-hover);
  color: white;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: 2px solid #000;
}

.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  background: var(--accent);
  border: 2px solid #000;
  opacity: 0.05;
  animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
  width: 50px;
  height: 50px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  width: 30px;
  height: 30px;
  top: 60%;
  right: 20%;
  animation-delay: 5s;
}

.floating-shape:nth-child(3) {
  width: 40px;
  height: 40px;
  bottom: 20%;
  left: 70%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}

@media (max-width: 768px) {
  .timeline-event {
    width: 90%;
    left: 5% !important;
  }
  
  .timeline-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-event::before {
    left: -35px !important;
    right: auto !important;
  }
  
  .depth-indicator {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin: 2rem 0;
    writing-mode: initial;
    text-orientation: initial;
  }
  
  .migration-route {
    width: 150px !important;
  }
  
  .heritage-card {
    min-width: 280px;
  }
}